| OLD | NEW |
| 1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 the V8 project authors. All rights reserved. |
| 2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
| 3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
| 4 // met: | 4 // met: |
| 5 // | 5 // |
| 6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
| 7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
| 8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
| 9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
| 10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
| (...skipping 958 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 969 | 969 |
| 970 // Check that the stack is aligned. | 970 // Check that the stack is aligned. |
| 971 void CheckStackAlignment(); | 971 void CheckStackAlignment(); |
| 972 | 972 |
| 973 // Verify restrictions about code generated in stubs. | 973 // Verify restrictions about code generated in stubs. |
| 974 void set_generating_stub(bool value) { generating_stub_ = value; } | 974 void set_generating_stub(bool value) { generating_stub_ = value; } |
| 975 bool generating_stub() { return generating_stub_; } | 975 bool generating_stub() { return generating_stub_; } |
| 976 void set_allow_stub_calls(bool value) { allow_stub_calls_ = value; } | 976 void set_allow_stub_calls(bool value) { allow_stub_calls_ = value; } |
| 977 bool allow_stub_calls() { return allow_stub_calls_; } | 977 bool allow_stub_calls() { return allow_stub_calls_; } |
| 978 | 978 |
| 979 static int SafepointRegisterStackIndex(Register reg) { |
| 980 return SafepointRegisterStackIndex(reg.code()); |
| 981 } |
| 982 |
| 979 private: | 983 private: |
| 980 // Order general registers are pushed by Pushad. | 984 // Order general registers are pushed by Pushad. |
| 981 // rax, rcx, rdx, rbx, rsi, rdi, r8, r9, r11, r12, r14. | 985 // rax, rcx, rdx, rbx, rsi, rdi, r8, r9, r11, r12, r14. |
| 982 static int kSafepointPushRegisterIndices[Register::kNumRegisters]; | 986 static int kSafepointPushRegisterIndices[Register::kNumRegisters]; |
| 983 static const int kNumSafepointSavedRegisters = 11; | 987 static const int kNumSafepointSavedRegisters = 11; |
| 984 | 988 |
| 985 bool generating_stub_; | 989 bool generating_stub_; |
| 986 bool allow_stub_calls_; | 990 bool allow_stub_calls_; |
| 987 | 991 |
| 988 // Returns a register holding the smi value. The register MUST NOT be | 992 // Returns a register holding the smi value. The register MUST NOT be |
| (...skipping 854 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1843 Jump(adaptor, RelocInfo::CODE_TARGET); | 1847 Jump(adaptor, RelocInfo::CODE_TARGET); |
| 1844 } | 1848 } |
| 1845 bind(&invoke); | 1849 bind(&invoke); |
| 1846 } | 1850 } |
| 1847 } | 1851 } |
| 1848 | 1852 |
| 1849 | 1853 |
| 1850 } } // namespace v8::internal | 1854 } } // namespace v8::internal |
| 1851 | 1855 |
| 1852 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_ | 1856 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_ |
| OLD | NEW |