| 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/mips/assembler-mips.h" | 10 #include "src/mips/assembler-mips.h" |
| (...skipping 693 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 704 } | 704 } |
| 705 | 705 |
| 706 void Pop(uint32_t count = 1) { | 706 void Pop(uint32_t count = 1) { |
| 707 Addu(sp, sp, Operand(count * kPointerSize)); | 707 Addu(sp, sp, Operand(count * kPointerSize)); |
| 708 } | 708 } |
| 709 | 709 |
| 710 // Push and pop the registers that can hold pointers, as defined by the | 710 // Push and pop the registers that can hold pointers, as defined by the |
| 711 // RegList constant kSafepointSavedRegisters. | 711 // RegList constant kSafepointSavedRegisters. |
| 712 void PushSafepointRegisters(); | 712 void PushSafepointRegisters(); |
| 713 void PopSafepointRegisters(); | 713 void PopSafepointRegisters(); |
| 714 void PushSafepointRegistersAndDoubles(); | |
| 715 void PopSafepointRegistersAndDoubles(); | |
| 716 // Store value in register src in the safepoint stack slot for | 714 // Store value in register src in the safepoint stack slot for |
| 717 // register dst. | 715 // register dst. |
| 718 void StoreToSafepointRegisterSlot(Register src, Register dst); | 716 void StoreToSafepointRegisterSlot(Register src, Register dst); |
| 719 void StoreToSafepointRegistersAndDoublesSlot(Register src, Register dst); | |
| 720 // Load the value of the src register from its safepoint stack slot | 717 // Load the value of the src register from its safepoint stack slot |
| 721 // into register dst. | 718 // into register dst. |
| 722 void LoadFromSafepointRegisterSlot(Register dst, Register src); | 719 void LoadFromSafepointRegisterSlot(Register dst, Register src); |
| 723 | 720 |
| 724 // Flush the I-cache from asm code. You should use CpuFeatures::FlushICache | 721 // Flush the I-cache from asm code. You should use CpuFeatures::FlushICache |
| 725 // from C. | 722 // from C. |
| 726 // Does not handle errors. | 723 // Does not handle errors. |
| 727 void FlushICache(Register address, unsigned instructions); | 724 void FlushICache(Register address, unsigned instructions); |
| 728 | 725 |
| 729 // MIPS32 R2 instruction macro. | 726 // MIPS32 R2 instruction macro. |
| (...skipping 967 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1697 #define CODE_COVERAGE_TOSTRING(x) CODE_COVERAGE_STRINGIFY(x) | 1694 #define CODE_COVERAGE_TOSTRING(x) CODE_COVERAGE_STRINGIFY(x) |
| 1698 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) | 1695 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) |
| 1699 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> | 1696 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> |
| 1700 #else | 1697 #else |
| 1701 #define ACCESS_MASM(masm) masm-> | 1698 #define ACCESS_MASM(masm) masm-> |
| 1702 #endif | 1699 #endif |
| 1703 | 1700 |
| 1704 } } // namespace v8::internal | 1701 } } // namespace v8::internal |
| 1705 | 1702 |
| 1706 #endif // V8_MIPS_MACRO_ASSEMBLER_MIPS_H_ | 1703 #endif // V8_MIPS_MACRO_ASSEMBLER_MIPS_H_ |
| OLD | NEW |