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_ARM_MACRO_ASSEMBLER_ARM_H_ | 5 #ifndef V8_ARM_MACRO_ASSEMBLER_ARM_H_ |
6 #define V8_ARM_MACRO_ASSEMBLER_ARM_H_ | 6 #define V8_ARM_MACRO_ASSEMBLER_ARM_H_ |
7 | 7 |
8 #include "src/assembler.h" | 8 #include "src/assembler.h" |
9 #include "src/bailout-reason.h" | 9 #include "src/bailout-reason.h" |
10 #include "src/frames.h" | 10 #include "src/frames.h" |
(...skipping 572 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
583 DwVfpRegister double_scratch0, | 583 DwVfpRegister double_scratch0, |
584 LowDwVfpRegister double_scratch1, | 584 LowDwVfpRegister double_scratch1, |
585 Label* not_int32); | 585 Label* not_int32); |
586 | 586 |
587 // Generates function and stub prologue code. | 587 // Generates function and stub prologue code. |
588 void StubPrologue(StackFrame::Type type); | 588 void StubPrologue(StackFrame::Type type); |
589 void Prologue(bool code_pre_aging); | 589 void Prologue(bool code_pre_aging); |
590 | 590 |
591 // Enter exit frame. | 591 // Enter exit frame. |
592 // stack_space - extra stack space, used for alignment before call to C. | 592 // stack_space - extra stack space, used for alignment before call to C. |
593 void EnterExitFrame(bool save_doubles, int stack_space = 0); | 593 void EnterExitFrame(bool save_doubles, int stack_space = 0, |
| 594 StackFrame::Type frame_type = StackFrame::EXIT); |
594 | 595 |
595 // Leave the current exit frame. Expects the return value in r0. | 596 // Leave the current exit frame. Expects the return value in r0. |
596 // Expect the number of values, pushed prior to the exit frame, to | 597 // Expect the number of values, pushed prior to the exit frame, to |
597 // remove in a register (or no_reg, if there is nothing to remove). | 598 // remove in a register (or no_reg, if there is nothing to remove). |
598 void LeaveExitFrame(bool save_doubles, Register argument_count, | 599 void LeaveExitFrame(bool save_doubles, Register argument_count, |
599 bool restore_context, | 600 bool restore_context, |
600 bool argument_count_is_length = false); | 601 bool argument_count_is_length = false); |
601 | 602 |
602 // Get the actual activation frame alignment for target environment. | 603 // Get the actual activation frame alignment for target environment. |
603 static int ActivationFrameAlignment(); | 604 static int ActivationFrameAlignment(); |
(...skipping 555 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1159 int num_reg_arguments, | 1160 int num_reg_arguments, |
1160 int num_double_arguments); | 1161 int num_double_arguments); |
1161 void CallCFunction(Register function, | 1162 void CallCFunction(Register function, |
1162 int num_reg_arguments, | 1163 int num_reg_arguments, |
1163 int num_double_arguments); | 1164 int num_double_arguments); |
1164 | 1165 |
1165 void MovFromFloatParameter(DwVfpRegister dst); | 1166 void MovFromFloatParameter(DwVfpRegister dst); |
1166 void MovFromFloatResult(DwVfpRegister dst); | 1167 void MovFromFloatResult(DwVfpRegister dst); |
1167 | 1168 |
1168 // Jump to a runtime routine. | 1169 // Jump to a runtime routine. |
1169 void JumpToExternalReference(const ExternalReference& builtin); | 1170 void JumpToExternalReference(const ExternalReference& builtin, |
| 1171 bool builtin_exit_frame = false); |
1170 | 1172 |
1171 Handle<Object> CodeObject() { | 1173 Handle<Object> CodeObject() { |
1172 DCHECK(!code_object_.is_null()); | 1174 DCHECK(!code_object_.is_null()); |
1173 return code_object_; | 1175 return code_object_; |
1174 } | 1176 } |
1175 | 1177 |
1176 | 1178 |
1177 // Emit code for a truncating division by a constant. The dividend register is | 1179 // Emit code for a truncating division by a constant. The dividend register is |
1178 // unchanged and ip gets clobbered. Dividend and result must be different. | 1180 // unchanged and ip gets clobbered. Dividend and result must be different. |
1179 void TruncatingDiv(Register result, Register dividend, int32_t divisor); | 1181 void TruncatingDiv(Register result, Register dividend, int32_t divisor); |
(...skipping 396 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1576 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> | 1578 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> |
1577 #else | 1579 #else |
1578 #define ACCESS_MASM(masm) masm-> | 1580 #define ACCESS_MASM(masm) masm-> |
1579 #endif | 1581 #endif |
1580 | 1582 |
1581 | 1583 |
1582 } // namespace internal | 1584 } // namespace internal |
1583 } // namespace v8 | 1585 } // namespace v8 |
1584 | 1586 |
1585 #endif // V8_ARM_MACRO_ASSEMBLER_ARM_H_ | 1587 #endif // V8_ARM_MACRO_ASSEMBLER_ARM_H_ |
OLD | NEW |