Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(51)

Side by Side Diff: runtime/vm/simulator_arm.h

Issue 1562253002: Add a CompareAndSwapUint32 variant to AtomicOperations so that it is possible to a CAS of a 32 bit … (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « runtime/vm/atomic_win.h ('k') | runtime/vm/simulator_arm.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 // Declares a Simulator for ARM instructions if we are not generating a native 5 // Declares a Simulator for ARM instructions if we are not generating a native
6 // ARM binary. This Simulator allows us to run and debug ARM code generation on 6 // ARM binary. This Simulator allows us to run and debug ARM code generation on
7 // regular desktop machines. 7 // regular desktop machines.
8 // Dart calls into generated code by "calling" the InvokeDartCode stub, 8 // Dart calls into generated code by "calling" the InvokeDartCode stub,
9 // which will start execution in the Simulator or forwards to the real entry 9 // which will start execution in the Simulator or forwards to the real entry
10 // on a ARM HW platform. 10 // on a ARM HW platform.
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 int32_t parameter2, 100 int32_t parameter2,
101 int32_t parameter3, 101 int32_t parameter3,
102 bool fp_return = false, 102 bool fp_return = false,
103 bool fp_args = false); 103 bool fp_args = false);
104 104
105 // Implementation of atomic compare and exchange in the same synchronization 105 // Implementation of atomic compare and exchange in the same synchronization
106 // domain as other synchronization primitive instructions (e.g. ldrex, strex). 106 // domain as other synchronization primitive instructions (e.g. ldrex, strex).
107 static uword CompareExchange(uword* address, 107 static uword CompareExchange(uword* address,
108 uword compare_value, 108 uword compare_value,
109 uword new_value); 109 uword new_value);
110 static uint32_t CompareExchangeUint32(uint32_t* address,
111 uint32_t compare_value,
112 uint32_t new_value);
110 113
111 // Runtime and native call support. 114 // Runtime and native call support.
112 enum CallKind { 115 enum CallKind {
113 kRuntimeCall, 116 kRuntimeCall,
114 kLeafRuntimeCall, 117 kLeafRuntimeCall,
115 kLeafFloatRuntimeCall, 118 kLeafFloatRuntimeCall,
116 kBootstrapNativeCall, 119 kBootstrapNativeCall,
117 kNativeCall 120 kNativeCall
118 }; 121 };
119 static uword RedirectExternalReference(uword function, 122 static uword RedirectExternalReference(uword function,
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after
274 } 277 }
275 278
276 friend class SimulatorDebugger; 279 friend class SimulatorDebugger;
277 friend class SimulatorSetjmpBuffer; 280 friend class SimulatorSetjmpBuffer;
278 DISALLOW_COPY_AND_ASSIGN(Simulator); 281 DISALLOW_COPY_AND_ASSIGN(Simulator);
279 }; 282 };
280 283
281 } // namespace dart 284 } // namespace dart
282 285
283 #endif // VM_SIMULATOR_ARM_H_ 286 #endif // VM_SIMULATOR_ARM_H_
OLDNEW
« no previous file with comments | « runtime/vm/atomic_win.h ('k') | runtime/vm/simulator_arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698