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