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

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

Issue 1722013002: Enable concurrent sweep on MIPS and ARM64. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: clrex and assembler tests Created 4 years, 10 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/pages.cc ('k') | runtime/vm/simulator_arm64.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) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, 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 ARM64 instructions if we are not generating a native 5 // Declares a Simulator for ARM64 instructions if we are not generating a native
6 // ARM64 binary. This Simulator allows us to run and debug ARM64 code generation 6 // ARM64 binary. This Simulator allows us to run and debug ARM64 code generation
7 // on regular desktop machines. 7 // on 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 ARM64 HW platform. 10 // on a ARM64 HW platform.
(...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after
201 static Mutex* exclusive_access_lock_; 201 static Mutex* exclusive_access_lock_;
202 static const int kNumAddressTags = 16; 202 static const int kNumAddressTags = 16;
203 static struct AddressTag { 203 static struct AddressTag {
204 Thread* thread; 204 Thread* thread;
205 uword addr; 205 uword addr;
206 } exclusive_access_state_[kNumAddressTags]; 206 } exclusive_access_state_[kNumAddressTags];
207 static int next_address_tag_; 207 static int next_address_tag_;
208 208
209 // Synchronization primitives support. 209 // Synchronization primitives support.
210 void ClearExclusive(); 210 void ClearExclusive();
211 intptr_t ReadExclusiveW(uword addr, Instr* instr); 211 intptr_t ReadExclusiveX(uword addr, Instr* instr);
212 intptr_t WriteExclusiveW(uword addr, intptr_t value, Instr* instr); 212 intptr_t WriteExclusiveX(uword addr, intptr_t value, Instr* instr);
213 213
214 // Set access to given address to 'exclusive state' for current thread. 214 // Set access to given address to 'exclusive state' for current thread.
215 static void SetExclusiveAccess(uword addr); 215 static void SetExclusiveAccess(uword addr);
216 216
217 // Returns true if the current thread has exclusive access to given address, 217 // Returns true if the current thread has exclusive access to given address,
218 // returns false otherwise. In either case, set access to given address to 218 // returns false otherwise. In either case, set access to given address to
219 // 'open state' for all threads. 219 // 'open state' for all threads.
220 // If given addr is NULL, set access to 'open state' for current 220 // If given addr is NULL, set access to 'open state' for current
221 // thread (CLREX). 221 // thread (CLREX).
222 static bool HasExclusiveAccessAndOpen(uword addr); 222 static bool HasExclusiveAccessAndOpen(uword addr);
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
272 } 272 }
273 273
274 friend class SimulatorDebugger; 274 friend class SimulatorDebugger;
275 friend class SimulatorSetjmpBuffer; 275 friend class SimulatorSetjmpBuffer;
276 DISALLOW_COPY_AND_ASSIGN(Simulator); 276 DISALLOW_COPY_AND_ASSIGN(Simulator);
277 }; 277 };
278 278
279 } // namespace dart 279 } // namespace dart
280 280
281 #endif // VM_SIMULATOR_ARM64_H_ 281 #endif // VM_SIMULATOR_ARM64_H_
OLDNEW
« no previous file with comments | « runtime/vm/pages.cc ('k') | runtime/vm/simulator_arm64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698