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_X64_MACRO_ASSEMBLER_X64_H_ | 5 #ifndef V8_X64_MACRO_ASSEMBLER_X64_H_ |
6 #define V8_X64_MACRO_ASSEMBLER_X64_H_ | 6 #define V8_X64_MACRO_ASSEMBLER_X64_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/base/flags.h" | 10 #include "src/base/flags.h" |
(...skipping 1568 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1579 | 1579 |
1580 // Moves the smi value to the destination register. | 1580 // Moves the smi value to the destination register. |
1581 void LoadSmiConstant(Register dst, Smi* value); | 1581 void LoadSmiConstant(Register dst, Smi* value); |
1582 | 1582 |
1583 // This handle will be patched with the code object on installation. | 1583 // This handle will be patched with the code object on installation. |
1584 Handle<Object> code_object_; | 1584 Handle<Object> code_object_; |
1585 | 1585 |
1586 // Helper functions for generating invokes. | 1586 // Helper functions for generating invokes. |
1587 void InvokePrologue(const ParameterCount& expected, | 1587 void InvokePrologue(const ParameterCount& expected, |
1588 const ParameterCount& actual, | 1588 const ParameterCount& actual, |
1589 Handle<Code> code_constant, | |
1590 Register code_register, | |
1591 Label* done, | 1589 Label* done, |
1592 bool* definitely_mismatches, | 1590 bool* definitely_mismatches, |
1593 InvokeFlag flag, | 1591 InvokeFlag flag, |
1594 Label::Distance near_jump = Label::kFar, | 1592 Label::Distance near_jump = Label::kFar, |
1595 const CallWrapper& call_wrapper = NullCallWrapper()); | 1593 const CallWrapper& call_wrapper = NullCallWrapper()); |
1596 | 1594 |
1597 void EnterExitFramePrologue(bool save_rax); | 1595 void EnterExitFramePrologue(bool save_rax); |
1598 | 1596 |
1599 // Allocates arg_stack_space * kPointerSize memory (not GCed) on the stack | 1597 // Allocates arg_stack_space * kPointerSize memory (not GCed) on the stack |
1600 // accessible via StackSpaceOperand. | 1598 // accessible via StackSpaceOperand. |
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1734 } \ | 1732 } \ |
1735 masm-> | 1733 masm-> |
1736 #else | 1734 #else |
1737 #define ACCESS_MASM(masm) masm-> | 1735 #define ACCESS_MASM(masm) masm-> |
1738 #endif | 1736 #endif |
1739 | 1737 |
1740 } // namespace internal | 1738 } // namespace internal |
1741 } // namespace v8 | 1739 } // namespace v8 |
1742 | 1740 |
1743 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_ | 1741 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_ |
OLD | NEW |