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 1598 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1609 | 1609 |
1610 template<typename Field> | 1610 template<typename Field> |
1611 void DecodeFieldToSmi(Register reg) { | 1611 void DecodeFieldToSmi(Register reg) { |
1612 DecodeField<Field>(reg, reg); | 1612 DecodeField<Field>(reg, reg); |
1613 } | 1613 } |
1614 // Generates function and stub prologue code. | 1614 // Generates function and stub prologue code. |
1615 void StubPrologue(); | 1615 void StubPrologue(); |
1616 void Prologue(bool code_pre_aging); | 1616 void Prologue(bool code_pre_aging); |
1617 | 1617 |
1618 // Activation support. | 1618 // Activation support. |
1619 void EnterFrame(StackFrame::Type type); | 1619 void EnterFrame(StackFrame::Type type, |
| 1620 bool load_constant_pool_pointer_reg = false); |
1620 void LeaveFrame(StackFrame::Type type); | 1621 void LeaveFrame(StackFrame::Type type); |
1621 | 1622 |
1622 // Patch the relocated value (lui/ori pair). | 1623 // Patch the relocated value (lui/ori pair). |
1623 void PatchRelocatedValue(Register li_location, | 1624 void PatchRelocatedValue(Register li_location, |
1624 Register scratch, | 1625 Register scratch, |
1625 Register new_value); | 1626 Register new_value); |
1626 // Get the relocatad value (loaded data) from the lui/ori pair. | 1627 // Get the relocatad value (loaded data) from the lui/ori pair. |
1627 void GetRelocatedValue(Register li_location, | 1628 void GetRelocatedValue(Register li_location, |
1628 Register value, | 1629 Register value, |
1629 Register scratch); | 1630 Register scratch); |
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1772 #define CODE_COVERAGE_TOSTRING(x) CODE_COVERAGE_STRINGIFY(x) | 1773 #define CODE_COVERAGE_TOSTRING(x) CODE_COVERAGE_STRINGIFY(x) |
1773 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) | 1774 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) |
1774 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> | 1775 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> |
1775 #else | 1776 #else |
1776 #define ACCESS_MASM(masm) masm-> | 1777 #define ACCESS_MASM(masm) masm-> |
1777 #endif | 1778 #endif |
1778 | 1779 |
1779 } } // namespace v8::internal | 1780 } } // namespace v8::internal |
1780 | 1781 |
1781 #endif // V8_MIPS_MACRO_ASSEMBLER_MIPS_H_ | 1782 #endif // V8_MIPS_MACRO_ASSEMBLER_MIPS_H_ |
OLD | NEW |