| OLD | NEW |
| 1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 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 PPC instructions if we are not generating a native | 6 // Declares a Simulator for PPC instructions if we are not generating a native |
| 7 // PPC binary. This Simulator allows us to run and debug PPC code generation on | 7 // PPC binary. This Simulator allows us to run and debug PPC 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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 59 USE(isolate); | 59 USE(isolate); |
| 60 } | 60 } |
| 61 }; | 61 }; |
| 62 } // namespace internal | 62 } // namespace internal |
| 63 } // namespace v8 | 63 } // namespace v8 |
| 64 | 64 |
| 65 #else // !defined(USE_SIMULATOR) | 65 #else // !defined(USE_SIMULATOR) |
| 66 // Running with a simulator. | 66 // Running with a simulator. |
| 67 | 67 |
| 68 #include "src/assembler.h" | 68 #include "src/assembler.h" |
| 69 #include "src/hashmap.h" | 69 #include "src/base/hashmap.h" |
| 70 #include "src/ppc/constants-ppc.h" | 70 #include "src/ppc/constants-ppc.h" |
| 71 | 71 |
| 72 namespace v8 { | 72 namespace v8 { |
| 73 namespace internal { | 73 namespace internal { |
| 74 | 74 |
| 75 class CachePage { | 75 class CachePage { |
| 76 public: | 76 public: |
| 77 static const int LINE_VALID = 0; | 77 static const int LINE_VALID = 0; |
| 78 static const int LINE_INVALID = 1; | 78 static const int LINE_INVALID = 1; |
| 79 | 79 |
| (...skipping 352 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 432 | 432 |
| 433 static inline void UnregisterCTryCatch(v8::internal::Isolate* isolate) { | 433 static inline void UnregisterCTryCatch(v8::internal::Isolate* isolate) { |
| 434 Simulator::current(isolate)->PopAddress(); | 434 Simulator::current(isolate)->PopAddress(); |
| 435 } | 435 } |
| 436 }; | 436 }; |
| 437 } // namespace internal | 437 } // namespace internal |
| 438 } // namespace v8 | 438 } // namespace v8 |
| 439 | 439 |
| 440 #endif // !defined(USE_SIMULATOR) | 440 #endif // !defined(USE_SIMULATOR) |
| 441 #endif // V8_PPC_SIMULATOR_PPC_H_ | 441 #endif // V8_PPC_SIMULATOR_PPC_H_ |
| OLD | NEW |