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

Side by Side Diff: src/arm/simulator-arm.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 | « no previous file | src/arm/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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 5
6 // Declares a Simulator for ARM instructions if we are not generating a native 6 // Declares a Simulator for ARM instructions if we are not generating a native
7 // ARM binary. This Simulator allows us to run and debug ARM code generation on 7 // ARM binary. This Simulator allows us to run and debug ARM code generation on
8 // regular desktop machines. 8 // regular desktop machines.
9 // V8 calls into generated code by "calling" the CALL_GENERATED_CODE macro, 9 // V8 calls into generated code by "calling" the CALL_GENERATED_CODE macro,
10 // which will start execution in the Simulator or forwards to the real entry 10 // which will start execution in the Simulator or forwards to the real entry
(...skipping 343 matching lines...) Expand 10 before | Expand all | Expand 10 after
354 void InstructionDecode(Instruction* instr); 354 void InstructionDecode(Instruction* instr);
355 355
356 // ICache. 356 // ICache.
357 static void CheckICache(base::CustomMatcherHashMap* i_cache, 357 static void CheckICache(base::CustomMatcherHashMap* i_cache,
358 Instruction* instr); 358 Instruction* instr);
359 static void FlushOnePage(base::CustomMatcherHashMap* i_cache, intptr_t start, 359 static void FlushOnePage(base::CustomMatcherHashMap* i_cache, intptr_t start,
360 int size); 360 int size);
361 static CachePage* GetCachePage(base::CustomMatcherHashMap* i_cache, 361 static CachePage* GetCachePage(base::CustomMatcherHashMap* i_cache,
362 void* page); 362 void* page);
363 363
364 // Runtime call support. 364 // Runtime call support. Uses the isolate in a thread-safe way.
365 static void* RedirectExternalReference( 365 static void* RedirectExternalReference(
366 Isolate* isolate, void* external_function, 366 Isolate* isolate, void* external_function,
367 v8::internal::ExternalReference::Type type); 367 v8::internal::ExternalReference::Type type);
368 368
369 // Handle arguments and return value for runtime FP functions. 369 // Handle arguments and return value for runtime FP functions.
370 void GetFpArgs(double* x, double* y, int32_t* z); 370 void GetFpArgs(double* x, double* y, int32_t* z);
371 void SetFpResult(const double& result); 371 void SetFpResult(const double& result);
372 void TrashCallerSaveRegisters(); 372 void TrashCallerSaveRegisters();
373 373
374 template<class ReturnType, int register_size> 374 template<class ReturnType, int register_size>
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after
568 static inline void UnregisterCTryCatch(v8::internal::Isolate* isolate) { 568 static inline void UnregisterCTryCatch(v8::internal::Isolate* isolate) {
569 Simulator::current(isolate)->PopAddress(); 569 Simulator::current(isolate)->PopAddress();
570 } 570 }
571 }; 571 };
572 572
573 } // namespace internal 573 } // namespace internal
574 } // namespace v8 574 } // namespace v8
575 575
576 #endif // !defined(USE_SIMULATOR) 576 #endif // !defined(USE_SIMULATOR)
577 #endif // V8_ARM_SIMULATOR_ARM_H_ 577 #endif // V8_ARM_SIMULATOR_ARM_H_
OLDNEW
« no previous file with comments | « no previous file | src/arm/simulator-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698