| 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/mips64/assembler-mips64.h" | 10 #include "src/mips64/assembler-mips64.h" |
| (...skipping 1042 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1053 Register scratch1, | 1053 Register scratch1, |
| 1054 Register scratch2, | 1054 Register scratch2, |
| 1055 FPURegister double_scratch0, | 1055 FPURegister double_scratch0, |
| 1056 FPURegister double_scratch1, | 1056 FPURegister double_scratch1, |
| 1057 Label* not_int32); | 1057 Label* not_int32); |
| 1058 | 1058 |
| 1059 // Enter exit frame. | 1059 // Enter exit frame. |
| 1060 // argc - argument count to be dropped by LeaveExitFrame. | 1060 // argc - argument count to be dropped by LeaveExitFrame. |
| 1061 // save_doubles - saves FPU registers on stack, currently disabled. | 1061 // save_doubles - saves FPU registers on stack, currently disabled. |
| 1062 // stack_space - extra stack space. | 1062 // stack_space - extra stack space. |
| 1063 void EnterExitFrame(bool save_doubles, | 1063 void EnterExitFrame(bool save_doubles, int stack_space = 0, |
| 1064 int stack_space = 0); | 1064 StackFrame::Type frame_type = StackFrame::EXIT); |
| 1065 | 1065 |
| 1066 // Leave the current exit frame. | 1066 // Leave the current exit frame. |
| 1067 void LeaveExitFrame(bool save_doubles, Register arg_count, | 1067 void LeaveExitFrame(bool save_doubles, Register arg_count, |
| 1068 bool restore_context, bool do_return = NO_EMIT_RETURN, | 1068 bool restore_context, bool do_return = NO_EMIT_RETURN, |
| 1069 bool argument_count_is_length = false); | 1069 bool argument_count_is_length = false); |
| 1070 | 1070 |
| 1071 // Get the actual activation frame alignment for target environment. | 1071 // Get the actual activation frame alignment for target environment. |
| 1072 static int ActivationFrameAlignment(); | 1072 static int ActivationFrameAlignment(); |
| 1073 | 1073 |
| 1074 // Make sure the stack is aligned. Only emits code in debug mode. | 1074 // Make sure the stack is aligned. Only emits code in debug mode. |
| (...skipping 462 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1537 // There are two ways of passing double arguments on MIPS, depending on | 1537 // There are two ways of passing double arguments on MIPS, depending on |
| 1538 // whether soft or hard floating point ABI is used. These functions | 1538 // whether soft or hard floating point ABI is used. These functions |
| 1539 // abstract parameter passing for the three different ways we call | 1539 // abstract parameter passing for the three different ways we call |
| 1540 // C functions from generated code. | 1540 // C functions from generated code. |
| 1541 void MovToFloatParameter(DoubleRegister src); | 1541 void MovToFloatParameter(DoubleRegister src); |
| 1542 void MovToFloatParameters(DoubleRegister src1, DoubleRegister src2); | 1542 void MovToFloatParameters(DoubleRegister src1, DoubleRegister src2); |
| 1543 void MovToFloatResult(DoubleRegister src); | 1543 void MovToFloatResult(DoubleRegister src); |
| 1544 | 1544 |
| 1545 // Jump to the builtin routine. | 1545 // Jump to the builtin routine. |
| 1546 void JumpToExternalReference(const ExternalReference& builtin, | 1546 void JumpToExternalReference(const ExternalReference& builtin, |
| 1547 BranchDelaySlot bd = PROTECT); | 1547 BranchDelaySlot bd = PROTECT, |
| 1548 bool builtin_exit_frame = false); |
| 1548 | 1549 |
| 1549 struct Unresolved { | 1550 struct Unresolved { |
| 1550 int pc; | 1551 int pc; |
| 1551 uint32_t flags; // See Bootstrapper::FixupFlags decoders/encoders. | 1552 uint32_t flags; // See Bootstrapper::FixupFlags decoders/encoders. |
| 1552 const char* name; | 1553 const char* name; |
| 1553 }; | 1554 }; |
| 1554 | 1555 |
| 1555 Handle<Object> CodeObject() { | 1556 Handle<Object> CodeObject() { |
| 1556 DCHECK(!code_object_.is_null()); | 1557 DCHECK(!code_object_.is_null()); |
| 1557 return code_object_; | 1558 return code_object_; |
| (...skipping 479 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2037 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) | 2038 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) |
| 2038 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> | 2039 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> |
| 2039 #else | 2040 #else |
| 2040 #define ACCESS_MASM(masm) masm-> | 2041 #define ACCESS_MASM(masm) masm-> |
| 2041 #endif | 2042 #endif |
| 2042 | 2043 |
| 2043 } // namespace internal | 2044 } // namespace internal |
| 2044 } // namespace v8 | 2045 } // namespace v8 |
| 2045 | 2046 |
| 2046 #endif // V8_MIPS_MACRO_ASSEMBLER_MIPS_H_ | 2047 #endif // V8_MIPS_MACRO_ASSEMBLER_MIPS_H_ |
| OLD | NEW |