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

Side by Side Diff: src/mips/simulator-mips.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/isolate.h ('k') | src/mips/simulator-mips.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 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 MIPS instructions if we are not generating a native 6 // Declares a Simulator for MIPS instructions if we are not generating a native
7 // MIPS binary. This Simulator allows us to run and debug MIPS code generation 7 // MIPS binary. This Simulator allows us to run and debug MIPS code generation
8 // on regular desktop machines. 8 // on 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 445 matching lines...) Expand 10 before | Expand all | Expand 10 after
456 none, 456 none,
457 kIntegerOverflow, 457 kIntegerOverflow,
458 kIntegerUnderflow, 458 kIntegerUnderflow,
459 kDivideByZero, 459 kDivideByZero,
460 kNumExceptions 460 kNumExceptions
461 }; 461 };
462 462
463 // Exceptions. 463 // Exceptions.
464 void SignalException(Exception e); 464 void SignalException(Exception e);
465 465
466 // Runtime call support. 466 // Runtime call support. Uses the isolate in a thread-safe way.
467 static void* RedirectExternalReference(Isolate* isolate, 467 static void* RedirectExternalReference(Isolate* isolate,
468 void* external_function, 468 void* external_function,
469 ExternalReference::Type type); 469 ExternalReference::Type type);
470 470
471 // Handle arguments and return value for runtime FP functions. 471 // Handle arguments and return value for runtime FP functions.
472 void GetFpArgs(double* x, double* y, int32_t* z); 472 void GetFpArgs(double* x, double* y, int32_t* z);
473 void SetFpResult(const double& result); 473 void SetFpResult(const double& result);
474 474
475 void CallInternal(byte* entry); 475 void CallInternal(byte* entry);
476 476
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
550 static inline void UnregisterCTryCatch(Isolate* isolate) { 550 static inline void UnregisterCTryCatch(Isolate* isolate) {
551 Simulator::current(isolate)->PopAddress(); 551 Simulator::current(isolate)->PopAddress();
552 } 552 }
553 }; 553 };
554 554
555 } // namespace internal 555 } // namespace internal
556 } // namespace v8 556 } // namespace v8
557 557
558 #endif // !defined(USE_SIMULATOR) 558 #endif // !defined(USE_SIMULATOR)
559 #endif // V8_MIPS_SIMULATOR_MIPS_H_ 559 #endif // V8_MIPS_SIMULATOR_MIPS_H_
OLDNEW
« no previous file with comments | « src/isolate.h ('k') | src/mips/simulator-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698