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 "assembler.h" | 8 #include "assembler.h" |
9 #include "mips/assembler-mips.h" | 9 #include "mips/assembler-mips.h" |
10 #include "v8globals.h" | 10 #include "v8globals.h" |
(...skipping 1474 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1485 | 1485 |
1486 template<typename Field> | 1486 template<typename Field> |
1487 void DecodeField(Register reg) { | 1487 void DecodeField(Register reg) { |
1488 static const int shift = Field::kShift; | 1488 static const int shift = Field::kShift; |
1489 static const int mask = Field::kMask >> shift; | 1489 static const int mask = Field::kMask >> shift; |
1490 srl(reg, reg, shift); | 1490 srl(reg, reg, shift); |
1491 And(reg, reg, Operand(mask)); | 1491 And(reg, reg, Operand(mask)); |
1492 } | 1492 } |
1493 | 1493 |
1494 // Generates function and stub prologue code. | 1494 // Generates function and stub prologue code. |
1495 void Prologue(CompilationInfo* info); | 1495 void StubPrologue(); |
| 1496 void Prologue(bool code_pre_aging); |
1496 | 1497 |
1497 // Activation support. | 1498 // Activation support. |
1498 void EnterFrame(StackFrame::Type type); | 1499 void EnterFrame(StackFrame::Type type); |
1499 void LeaveFrame(StackFrame::Type type); | 1500 void LeaveFrame(StackFrame::Type type); |
1500 | 1501 |
1501 // Patch the relocated value (lui/ori pair). | 1502 // Patch the relocated value (lui/ori pair). |
1502 void PatchRelocatedValue(Register li_location, | 1503 void PatchRelocatedValue(Register li_location, |
1503 Register scratch, | 1504 Register scratch, |
1504 Register new_value); | 1505 Register new_value); |
1505 // Get the relocatad value (loaded data) from the lui/ori pair. | 1506 // Get the relocatad value (loaded data) from the lui/ori pair. |
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1651 #define CODE_COVERAGE_TOSTRING(x) CODE_COVERAGE_STRINGIFY(x) | 1652 #define CODE_COVERAGE_TOSTRING(x) CODE_COVERAGE_STRINGIFY(x) |
1652 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) | 1653 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) |
1653 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> | 1654 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> |
1654 #else | 1655 #else |
1655 #define ACCESS_MASM(masm) masm-> | 1656 #define ACCESS_MASM(masm) masm-> |
1656 #endif | 1657 #endif |
1657 | 1658 |
1658 } } // namespace v8::internal | 1659 } } // namespace v8::internal |
1659 | 1660 |
1660 #endif // V8_MIPS_MACRO_ASSEMBLER_MIPS_H_ | 1661 #endif // V8_MIPS_MACRO_ASSEMBLER_MIPS_H_ |
OLD | NEW |