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 519 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
530 if (log_parameters() & LOG_FP_REGS) PrintFPRegisters(); | 530 if (log_parameters() & LOG_FP_REGS) PrintFPRegisters(); |
531 } | 531 } |
532 | 532 |
533 // Specify relevant register sizes, for PrintFPRegister. | 533 // Specify relevant register sizes, for PrintFPRegister. |
534 // | 534 // |
535 // These values are bit masks; they can be combined in case multiple views of | 535 // These values are bit masks; they can be combined in case multiple views of |
536 // a machine register are interesting. | 536 // a machine register are interesting. |
537 enum PrintFPRegisterSizes { | 537 enum PrintFPRegisterSizes { |
538 kPrintDRegValue = 1 << kDRegSize, | 538 kPrintDRegValue = 1 << kDRegSize, |
539 kPrintSRegValue = 1 << kSRegSize, | 539 kPrintSRegValue = 1 << kSRegSize, |
540 kPrintAllFPRegValues = kPrintDRegValue | kPrintSRegValue, | 540 kPrintAllFPRegValues = kPrintDRegValue | kPrintSRegValue |
541 }; | 541 }; |
542 | 542 |
543 // Print individual register values (after update). | 543 // Print individual register values (after update). |
544 void PrintRegister(unsigned code, Reg31Mode r31mode = Reg31IsStackPointer); | 544 void PrintRegister(unsigned code, Reg31Mode r31mode = Reg31IsStackPointer); |
545 void PrintFPRegister(unsigned code, | 545 void PrintFPRegister(unsigned code, |
546 PrintFPRegisterSizes sizes = kPrintAllFPRegValues); | 546 PrintFPRegisterSizes sizes = kPrintAllFPRegValues); |
547 void PrintSystemRegister(SystemRegister id); | 547 void PrintSystemRegister(SystemRegister id); |
548 | 548 |
549 // Like Print* (above), but respect log_parameters(). | 549 // Like Print* (above), but respect log_parameters(). |
550 void LogRegister(unsigned code, Reg31Mode r31mode = Reg31IsStackPointer) { | 550 void LogRegister(unsigned code, Reg31Mode r31mode = Reg31IsStackPointer) { |
(...skipping 357 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
908 static void UnregisterCTryCatch() { | 908 static void UnregisterCTryCatch() { |
909 Simulator::current(Isolate::Current())->PopAddress(); | 909 Simulator::current(Isolate::Current())->PopAddress(); |
910 } | 910 } |
911 }; | 911 }; |
912 | 912 |
913 #endif // !defined(USE_SIMULATOR) | 913 #endif // !defined(USE_SIMULATOR) |
914 | 914 |
915 } } // namespace v8::internal | 915 } } // namespace v8::internal |
916 | 916 |
917 #endif // V8_ARM64_SIMULATOR_ARM64_H_ | 917 #endif // V8_ARM64_SIMULATOR_ARM64_H_ |
OLD | NEW |