/external/v8/src/heap/ |
D | marking.h | 39 template <AccessMode mode = AccessMode::NON_ATOMIC> 42 template <AccessMode mode = AccessMode::NON_ATOMIC> 47 template <AccessMode mode = AccessMode::NON_ATOMIC> 59 inline bool MarkBit::Set<AccessMode::NON_ATOMIC>() { 66 inline bool MarkBit::Set<AccessMode::ATOMIC>() { 71 inline bool MarkBit::Get<AccessMode::NON_ATOMIC>() { 76 inline bool MarkBit::Get<AccessMode::ATOMIC>() { 81 inline bool MarkBit::Clear<AccessMode::NON_ATOMIC>() { 88 inline bool MarkBit::Clear<AccessMode::ATOMIC>() { 149 template <AccessMode mode = AccessMode::NON_ATOMIC> [all …]
|
D | slot-set.h | 58 template <AccessMode access_mode = AccessMode::ATOMIC> 309 template <AccessMode access_mode = AccessMode::ATOMIC> 311 if (access_mode == AccessMode::ATOMIC) in LoadBucket() 316 template <AccessMode access_mode = AccessMode::ATOMIC> 318 if (access_mode == AccessMode::ATOMIC) { in StoreBucket() 334 template <AccessMode access_mode = AccessMode::ATOMIC> 336 if (access_mode == AccessMode::ATOMIC) { in SwapInNewBucket() 346 template <AccessMode access_mode = AccessMode::ATOMIC> 348 if (access_mode == AccessMode::ATOMIC) in LoadCell() 361 template <AccessMode access_mode = AccessMode::ATOMIC> [all …]
|
D | marking.cc | 38 SetBitsInCell<AccessMode::ATOMIC>(start_cell_index, in SetRange() 46 SetBitsInCell<AccessMode::ATOMIC>(end_cell_index, (end_index_mask - 1)); in SetRange() 48 SetBitsInCell<AccessMode::ATOMIC>(start_cell_index, in SetRange() 66 ClearBitsInCell<AccessMode::ATOMIC>(start_cell_index, in ClearRange() 74 ClearBitsInCell<AccessMode::ATOMIC>(end_cell_index, (end_index_mask - 1)); in ClearRange() 76 ClearBitsInCell<AccessMode::ATOMIC>(start_cell_index, in ClearRange()
|
/external/libbrillo/brillo/streams/ |
D | fake_stream_unittest.cc | 30 void CreateStream(Stream::AccessMode mode) { in CreateStream() 69 CreateStream(Stream::AccessMode::READ); in TEST_F() 81 CreateStream(Stream::AccessMode::WRITE); in TEST_F() 93 CreateStream(Stream::AccessMode::READ_WRITE); in TEST_F() 105 CreateStream(Stream::AccessMode::READ); in TEST_F() 114 CreateStream(Stream::AccessMode::READ); in TEST_F() 128 CreateStream(Stream::AccessMode::READ); in TEST_F() 146 CreateStream(Stream::AccessMode::READ); in TEST_F() 179 CreateStream(Stream::AccessMode::READ); in TEST_F() 204 CreateStream(Stream::AccessMode::READ); in TEST_F() [all …]
|
D | file_stream.h | 36 using DataCallback = base::Callback<void(Stream::AccessMode)>; 48 virtual bool WaitForData(AccessMode mode, 51 virtual int WaitForDataBlocking(AccessMode in_mode, 53 AccessMode* out_mode) = 0; 73 AccessMode mode, 135 bool WaitForData(AccessMode mode, 136 const base::Callback<void(AccessMode)>& callback, 141 bool WaitForDataBlocking(AccessMode in_mode, 143 AccessMode* out_mode, 155 AccessMode mode); [all …]
|
D | stream_utils.h | 62 inline bool IsReadAccessMode(Stream::AccessMode mode) { in IsReadAccessMode() 63 return mode == Stream::AccessMode::READ || in IsReadAccessMode() 64 mode == Stream::AccessMode::READ_WRITE; in IsReadAccessMode() 68 inline bool IsWriteAccessMode(Stream::AccessMode mode) { in IsWriteAccessMode() 69 return mode == Stream::AccessMode::WRITE || in IsWriteAccessMode() 70 mode == Stream::AccessMode::READ_WRITE; in IsWriteAccessMode() 74 inline Stream::AccessMode MakeAccessMode(bool read, bool write) { in MakeAccessMode() 77 return Stream::AccessMode::READ_WRITE; in MakeAccessMode() 78 return write ? Stream::AccessMode::WRITE : Stream::AccessMode::READ; in MakeAccessMode()
|
D | stream_unittest.cc | 35 using AccessMode = Stream::AccessMode; typedef 73 MOCK_METHOD3(WaitForData, bool(AccessMode, 74 const base::Callback<void(AccessMode)>&, 77 bool(AccessMode, base::TimeDelta, AccessMode*, ErrorPtr*)); 120 base::Callback<void(AccessMode)> data_callback; in TEST() 128 EXPECT_CALL(stream_mock, WaitForData(AccessMode::READ, _, _)) in TEST() 152 data_callback.Run(AccessMode::READ); in TEST() 205 base::Callback<void(AccessMode)> data_callback; in TEST() 213 EXPECT_CALL(stream_mock, WaitForData(AccessMode::READ, _, _)) in TEST() 230 EXPECT_CALL(stream_mock, WaitForData(AccessMode::READ, _, _)) in TEST() [all …]
|
D | file_stream_unittest.cc | 143 bool(Stream::AccessMode, const DataCallback&, ErrorPtr*)); 145 int(Stream::AccessMode, base::TimeDelta, Stream::AccessMode*)); 152 CreateStream(S_IFREG, Stream::AccessMode::READ_WRITE); in SetUp() 159 void CreateStream(mode_t file_mode, Stream::AccessMode access_mode) { in CreateStream() 186 bool CallWaitForData(Stream::AccessMode mode, ErrorPtr* error) { in CallWaitForData() 208 CreateStream(S_IFREG, Stream::AccessMode::READ_WRITE); in TEST_F() 212 CreateStream(S_IFREG, Stream::AccessMode::READ); in TEST_F() 214 CreateStream(S_IFREG, Stream::AccessMode::WRITE); in TEST_F() 219 CreateStream(S_IFREG, Stream::AccessMode::READ_WRITE); in TEST_F() 223 CreateStream(S_IFREG, Stream::AccessMode::READ); in TEST_F() [all …]
|
D | tls_stream.cc | 96 bool WaitForData(AccessMode mode, 97 const base::Callback<void(AccessMode)>& callback, 99 bool WaitForDataBlocking(AccessMode in_mode, 101 AccessMode* out_mode, 113 Stream::AccessMode mode); 225 if (!socket_->WaitForDataBlocking(AccessMode::READ, kTimeout, nullptr, in Close() 230 if (!socket_->WaitForDataBlocking(AccessMode::WRITE, kTimeout, nullptr, in Close() 244 AccessMode mode, in WaitForData() 245 const base::Callback<void(AccessMode)>& callback, in WaitForData() 254 callback.Run(AccessMode::READ); in WaitForData() [all …]
|
D | file_stream.cc | 82 bool WaitForData(Stream::AccessMode mode, in WaitForData() 124 int WaitForDataBlocking(Stream::AccessMode in_mode, in WaitForDataBlocking() 126 Stream::AccessMode* out_mode) override { in WaitForDataBlocking() 176 cb.Run(Stream::AccessMode::READ); in OnFileCanReadWithoutBlocking() 183 cb.Run(Stream::AccessMode::WRITE); in OnFileCanWriteWithoutBlocking() 209 AccessMode mode, in Open() 215 case AccessMode::READ: in Open() 218 case AccessMode::WRITE: in Open() 221 case AccessMode::READ_WRITE: in Open() 304 AccessMode access_mode = AccessMode::READ_WRITE; in FromFileDescriptor() [all …]
|
D | stream.h | 89 enum class AccessMode { READ, WRITE, READ_WRITE }; enum 373 virtual bool WaitForData(AccessMode mode, 374 const base::Callback<void(AccessMode)>& callback, 385 virtual bool WaitForDataBlocking(AccessMode in_mode, 387 AccessMode* out_mode, 436 AccessMode mode); 469 AccessMode mode);
|
D | fake_stream.h | 40 FakeStream(Stream::AccessMode mode, 108 bool WaitForData(AccessMode mode, 109 const base::Callback<void(AccessMode)>& callback, 111 bool WaitForDataBlocking(AccessMode in_mode, 113 AccessMode* out_mode, 147 Stream::AccessMode mode_;
|
D | mock_stream.h | 63 MOCK_METHOD3(WaitForData, bool(AccessMode, 64 const base::Callback<void(AccessMode)>&, 67 bool(AccessMode, base::TimeDelta, AccessMode*, ErrorPtr*));
|
D | tls_stream.h | 63 bool WaitForData(AccessMode mode, 64 const base::Callback<void(AccessMode)>& callback, 66 bool WaitForDataBlocking(AccessMode in_mode, 68 AccessMode* out_mode,
|
D | input_stream_set.h | 97 bool WaitForData(AccessMode mode, 98 const base::Callback<void(AccessMode)>& callback, 101 bool WaitForDataBlocking(AccessMode in_mode, 103 AccessMode* out_mode,
|
D | memory_stream.h | 180 bool WaitForData(AccessMode mode, 181 const base::Callback<void(AccessMode)>& callback, 184 bool WaitForDataBlocking(AccessMode in_mode, 186 AccessMode* out_mode,
|
D | stream.cc | 77 if (!WaitForDataBlocking(AccessMode::READ, base::TimeDelta::Max(), nullptr, in ReadBlocking() 149 if (!WaitForDataBlocking(AccessMode::WRITE, base::TimeDelta::Max(), nullptr, in WriteBlocking() 226 AccessMode::READ, in ReadAsyncImpl() 246 AccessMode mode) { in OnReadAvailable() 289 AccessMode::WRITE, in WriteAsyncImpl() 308 AccessMode mode) { in OnWriteAvailable()
|
D | input_stream_set.cc | 159 AccessMode mode, in WaitForData() 160 const base::Callback<void(AccessMode)>& callback, in WaitForData() 177 bool InputStreamSet::WaitForDataBlocking(AccessMode in_mode, in WaitForDataBlocking() 179 AccessMode* out_mode, in WaitForDataBlocking()
|
D | fake_stream.cc | 37 Stream::AccessMode* mode, base::TimeDelta* delay) { in GetMinDelayAndMode() 57 FakeStream::FakeStream(Stream::AccessMode mode, in FakeStream() 358 bool FakeStream::WaitForData(AccessMode mode, in WaitForData() 359 const base::Callback<void(AccessMode)>& callback, in WaitForData() 380 bool FakeStream::WaitForDataBlocking(AccessMode in_mode, in WaitForDataBlocking() 382 AccessMode* out_mode, in WaitForDataBlocking()
|
/external/v8/src/compiler/ |
D | access-info.cc | 56 std::ostream& operator<<(std::ostream& os, AccessMode access_mode) { in operator <<() 58 case AccessMode::kLoad: in operator <<() 60 case AccessMode::kStore: in operator <<() 62 case AccessMode::kStoreInLiteral: in operator <<() 152 AccessMode access_mode, Zone* zone) { in Merge() 169 case AccessMode::kLoad: { in Merge() 182 case AccessMode::kStore: in Merge() 183 case AccessMode::kStoreInLiteral: { in Merge() 254 Handle<Map> map, AccessMode access_mode, ElementAccessInfo* access_info) { in ComputeElementAccessInfo() 263 MapHandles const& maps, AccessMode access_mode, in ComputeElementAccessInfos() [all …]
|
D | access-info.h | 32 enum class AccessMode { kLoad, kStore, kStoreInLiteral }; enum 34 std::ostream& operator<<(std::ostream&, AccessMode); 90 bool Merge(PropertyAccessInfo const* that, AccessMode access_mode, 148 bool ComputeElementAccessInfo(Handle<Map> map, AccessMode access_mode, 150 bool ComputeElementAccessInfos(MapHandles const& maps, AccessMode access_mode, 153 AccessMode access_mode, 156 AccessMode access_mode, 159 AccessMode access_mode,
|
D | js-native-context-specialization.h | 23 enum class AccessMode; variable 83 AccessMode access_mode, 88 AccessMode access_mode, 94 AccessMode access_mode); 97 Handle<Name> name, AccessMode access_mode, 100 Handle<Name> name, AccessMode access_mode, 130 AccessMode access_mode); 143 AccessMode access_mode); 164 ElementAccessInfo const& access_info, AccessMode access_mode,
|
D | js-native-context-specialization.cc | 201 receiver_map, factory()->has_instance_symbol(), AccessMode::kLoad, in ReduceJSInstanceOf() 496 factory()->then_string(), AccessMode::kLoad, &access_info)) { in ReduceJSResolvePromise() 557 AccessMode access_mode, Node* index) { in ReduceGlobalAccess() 573 if (access_mode == AccessMode::kStore) { in ReduceGlobalAccess() 606 if (access_mode == AccessMode::kLoad) { in ReduceGlobalAccess() 663 DCHECK_EQ(AccessMode::kStore, access_mode); in ReduceGlobalAccess() 769 AccessMode::kLoad); in ReduceJSLoadGlobal() 797 AccessMode::kStore); in ReduceJSStoreGlobal() 802 AccessMode access_mode, Node* index) { in ReduceNamedAccess() 1062 AccessMode access_mode) { in ReduceNamedAccessFromNexus() [all …]
|
/external/robolectric-shadows/resources/src/main/java/org/robolectric/res/android/ |
D | Asset.java | 3 import static org.robolectric.res.android.Asset.AccessMode.ACCESS_BUFFER; 53 public enum AccessMode { enum in Asset 64 AccessMode(int mode) { in AccessMode() method in Asset.AccessMode 72 public static AccessMode fromInt(int mode) { in fromInt() 73 for (AccessMode enumMode : values()) { in fromInt() 175 AccessMode getAccessMode() { return mAccessMode; } in getAccessMode() 243 AccessMode mAccessMode; // how the asset was opened 328 mAccessMode = AccessMode.ACCESS_UNKNOWN; in Asset() 337 static Asset createFromFile(final String fileName, AccessMode mode) in createFromFile() 400 AccessMode mode) in createFromCompressedFile() [all …]
|
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/ |
D | ShadowArscAssetManager.java | 46 import org.robolectric.res.android.Asset.AccessMode; 327 if (mode != AccessMode.ACCESS_UNKNOWN.mode() && mode != AccessMode.ACCESS_RANDOM.mode() in openAsset() 328 && mode != AccessMode.ACCESS_STREAMING.mode() && mode != AccessMode.ACCESS_BUFFER.mode()) { in openAsset() 332 Asset a = am.open(fileName8, AccessMode.fromInt(mode)); in openAsset() 354 Asset a = am.open(fileName8, Asset.AccessMode.ACCESS_RANDOM); in openAssetFd() 375 AccessMode mode = AccessMode.fromInt(accessMode); in openNonAssetNative() 376 if (mode != Asset.AccessMode.ACCESS_UNKNOWN && mode != Asset.AccessMode.ACCESS_RANDOM in openNonAssetNative() 377 && mode != Asset.AccessMode.ACCESS_STREAMING && mode != Asset.AccessMode.ACCESS_BUFFER) { in openNonAssetNative() 405 ? am.openNonAsset(cookie, fileName, Asset.AccessMode.ACCESS_RANDOM) in openNonAssetFdNative() 406 : am.openNonAsset(fileName, Asset.AccessMode.ACCESS_RANDOM, null); in openNonAssetFdNative() [all …]
|