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

Side by Side Diff: src/arm64/simulator-arm64.h

Issue 2852983002: [simulator] Make reference redirection thread-safe. (Closed)
Patch Set: Created 3 years, 7 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 | « src/arm/simulator-arm.cc ('k') | src/arm64/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 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef V8_ARM64_SIMULATOR_ARM64_H_ 5 #ifndef V8_ARM64_SIMULATOR_ARM64_H_
6 #define V8_ARM64_SIMULATOR_ARM64_H_ 6 #define V8_ARM64_SIMULATOR_ARM64_H_
7 7
8 #include <stdarg.h> 8 #include <stdarg.h>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 255 matching lines...) Expand 10 before | Expand all | Expand 10 after
266 uintptr_t PushAddress(uintptr_t address); 266 uintptr_t PushAddress(uintptr_t address);
267 267
268 // Pop an address from the JS stack. 268 // Pop an address from the JS stack.
269 uintptr_t PopAddress(); 269 uintptr_t PopAddress();
270 270
271 // Accessor to the internal simulator stack area. 271 // Accessor to the internal simulator stack area.
272 uintptr_t StackLimit(uintptr_t c_limit) const; 272 uintptr_t StackLimit(uintptr_t c_limit) const;
273 273
274 void ResetState(); 274 void ResetState();
275 275
276 // Runtime call support. 276 // Runtime call support. Uses the isolate in a thread-safe way.
277 static void* RedirectExternalReference(Isolate* isolate, 277 static void* RedirectExternalReference(Isolate* isolate,
278 void* external_function, 278 void* external_function,
279 ExternalReference::Type type); 279 ExternalReference::Type type);
280 void DoRuntimeCall(Instruction* instr); 280 void DoRuntimeCall(Instruction* instr);
281 281
282 // Run the simulator. 282 // Run the simulator.
283 static const Instruction* kEndOfSimAddress; 283 static const Instruction* kEndOfSimAddress;
284 void DecodeInstruction(); 284 void DecodeInstruction();
285 void Run(); 285 void Run();
286 void RunFrom(Instruction* start); 286 void RunFrom(Instruction* start);
(...skipping 705 matching lines...) Expand 10 before | Expand all | Expand 10 after
992 Simulator::current(isolate)->PopAddress(); 992 Simulator::current(isolate)->PopAddress();
993 } 993 }
994 }; 994 };
995 995
996 #endif // !defined(USE_SIMULATOR) 996 #endif // !defined(USE_SIMULATOR)
997 997
998 } // namespace internal 998 } // namespace internal
999 } // namespace v8 999 } // namespace v8
1000 1000
1001 #endif // V8_ARM64_SIMULATOR_ARM64_H_ 1001 #endif // V8_ARM64_SIMULATOR_ARM64_H_
OLDNEW
« no previous file with comments | « src/arm/simulator-arm.cc ('k') | src/arm64/simulator-arm64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698