| OLD | NEW |
| 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 739 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 750 0x7ff000007f801000UL; | 750 0x7ff000007f801000UL; |
| 751 // This value is a mix of 32/64-bits NaN and "verbose" immediate. | 751 // This value is a mix of 32/64-bits NaN and "verbose" immediate. |
| 752 static const uint64_t kDefaultCPURegisterCorruptionValue = | 752 static const uint64_t kDefaultCPURegisterCorruptionValue = |
| 753 0x7ffbad007f8bad00UL; | 753 0x7ffbad007f8bad00UL; |
| 754 | 754 |
| 755 void CorruptRegisters(CPURegList* list, | 755 void CorruptRegisters(CPURegList* list, |
| 756 uint64_t value = kDefaultCPURegisterCorruptionValue); | 756 uint64_t value = kDefaultCPURegisterCorruptionValue); |
| 757 void CorruptAllCallerSavedCPURegisters(); | 757 void CorruptAllCallerSavedCPURegisters(); |
| 758 #endif | 758 #endif |
| 759 | 759 |
| 760 // Pseudo Printf instruction |
| 761 void DoPrintf(Instruction* instr); |
| 762 |
| 760 // Processor state --------------------------------------- | 763 // Processor state --------------------------------------- |
| 761 | 764 |
| 762 // Output stream. | 765 // Output stream. |
| 763 FILE* stream_; | 766 FILE* stream_; |
| 764 PrintDisassembler* print_disasm_; | 767 PrintDisassembler* print_disasm_; |
| 765 void PRINTF_METHOD_CHECKING TraceSim(const char* format, ...); | 768 void PRINTF_METHOD_CHECKING TraceSim(const char* format, ...); |
| 766 | 769 |
| 767 // Instrumentation. | 770 // Instrumentation. |
| 768 Instrument* instrument_; | 771 Instrument* instrument_; |
| 769 | 772 |
| (...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 877 static void UnregisterCTryCatch() { | 880 static void UnregisterCTryCatch() { |
| 878 Simulator::current(Isolate::Current())->PopAddress(); | 881 Simulator::current(Isolate::Current())->PopAddress(); |
| 879 } | 882 } |
| 880 }; | 883 }; |
| 881 | 884 |
| 882 #endif // !defined(USE_SIMULATOR) | 885 #endif // !defined(USE_SIMULATOR) |
| 883 | 886 |
| 884 } } // namespace v8::internal | 887 } } // namespace v8::internal |
| 885 | 888 |
| 886 #endif // V8_ARM64_SIMULATOR_ARM64_H_ | 889 #endif // V8_ARM64_SIMULATOR_ARM64_H_ |
| OLD | NEW |