| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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_MIPS_MACRO_ASSEMBLER_MIPS_H_ | 5 #ifndef V8_MIPS_MACRO_ASSEMBLER_MIPS_H_ |
| 6 #define V8_MIPS_MACRO_ASSEMBLER_MIPS_H_ | 6 #define V8_MIPS_MACRO_ASSEMBLER_MIPS_H_ |
| 7 | 7 |
| 8 #include "src/assembler.h" | 8 #include "src/assembler.h" |
| 9 #include "src/globals.h" | 9 #include "src/globals.h" |
| 10 #include "src/mips/assembler-mips.h" | 10 #include "src/mips/assembler-mips.h" |
| 11 | 11 |
| 12 namespace v8 { | 12 namespace v8 { |
| 13 namespace internal { | 13 namespace internal { |
| 14 | 14 |
| 15 // Give alias names to registers for calling conventions. |
| 16 const Register kReturnRegister0 = {kRegister_v0_Code}; |
| 17 const Register kReturnRegister1 = {kRegister_v1_Code}; |
| 18 const Register kJSFunctionRegister = {kRegister_a1_Code}; |
| 19 const Register kContextRegister = {Register::kCpRegister}; |
| 20 const Register kInterpreterBytecodeOffsetRegister = {kRegister_t4_Code}; |
| 21 const Register kInterpreterBytecodeArrayRegister = {kRegister_t5_Code}; |
| 22 const Register kInterpreterDispatchTableRegister = {kRegister_t6_Code}; |
| 23 const Register kRuntimeCallFunctionRegister = {kRegister_a1_Code}; |
| 24 const Register kRuntimeCallArgCountRegister = {kRegister_a0_Code}; |
| 25 |
| 15 // Forward declaration. | 26 // Forward declaration. |
| 16 class JumpTarget; | 27 class JumpTarget; |
| 17 | 28 |
| 18 // Reserved Register Usage Summary. | 29 // Reserved Register Usage Summary. |
| 19 // | 30 // |
| 20 // Registers t8, t9, and at are reserved for use by the MacroAssembler. | 31 // Registers t8, t9, and at are reserved for use by the MacroAssembler. |
| 21 // | 32 // |
| 22 // The programmer should know that the MacroAssembler may clobber these three, | 33 // The programmer should know that the MacroAssembler may clobber these three, |
| 23 // but won't touch other registers except in special cases. | 34 // but won't touch other registers except in special cases. |
| 24 // | 35 // |
| (...skipping 1718 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1743 #define CODE_COVERAGE_TOSTRING(x) CODE_COVERAGE_STRINGIFY(x) | 1754 #define CODE_COVERAGE_TOSTRING(x) CODE_COVERAGE_STRINGIFY(x) |
| 1744 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) | 1755 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) |
| 1745 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> | 1756 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> |
| 1746 #else | 1757 #else |
| 1747 #define ACCESS_MASM(masm) masm-> | 1758 #define ACCESS_MASM(masm) masm-> |
| 1748 #endif | 1759 #endif |
| 1749 | 1760 |
| 1750 } } // namespace v8::internal | 1761 } } // namespace v8::internal |
| 1751 | 1762 |
| 1752 #endif // V8_MIPS_MACRO_ASSEMBLER_MIPS_H_ | 1763 #endif // V8_MIPS_MACRO_ASSEMBLER_MIPS_H_ |
| OLD | NEW |