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 1771 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1782 class CodePatcher { | 1782 class CodePatcher { |
1783 public: | 1783 public: |
1784 enum FlushICache { | 1784 enum FlushICache { |
1785 FLUSH, | 1785 FLUSH, |
1786 DONT_FLUSH | 1786 DONT_FLUSH |
1787 }; | 1787 }; |
1788 | 1788 |
1789 CodePatcher(byte* address, | 1789 CodePatcher(byte* address, |
1790 int instructions, | 1790 int instructions, |
1791 FlushICache flush_cache = FLUSH); | 1791 FlushICache flush_cache = FLUSH); |
1792 virtual ~CodePatcher(); | 1792 ~CodePatcher(); |
1793 | 1793 |
1794 // Macro assembler to emit code. | 1794 // Macro assembler to emit code. |
1795 MacroAssembler* masm() { return &masm_; } | 1795 MacroAssembler* masm() { return &masm_; } |
1796 | 1796 |
1797 // Emit an instruction directly. | 1797 // Emit an instruction directly. |
1798 void Emit(Instr instr); | 1798 void Emit(Instr instr); |
1799 | 1799 |
1800 // Emit an address directly. | 1800 // Emit an address directly. |
1801 void Emit(Address addr); | 1801 void Emit(Address addr); |
1802 | 1802 |
(...skipping 15 matching lines...) Expand all Loading... |
1818 #define CODE_COVERAGE_TOSTRING(x) CODE_COVERAGE_STRINGIFY(x) | 1818 #define CODE_COVERAGE_TOSTRING(x) CODE_COVERAGE_STRINGIFY(x) |
1819 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) | 1819 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) |
1820 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> | 1820 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> |
1821 #else | 1821 #else |
1822 #define ACCESS_MASM(masm) masm-> | 1822 #define ACCESS_MASM(masm) masm-> |
1823 #endif | 1823 #endif |
1824 | 1824 |
1825 } } // namespace v8::internal | 1825 } } // namespace v8::internal |
1826 | 1826 |
1827 #endif // V8_MIPS_MACRO_ASSEMBLER_MIPS_H_ | 1827 #endif // V8_MIPS_MACRO_ASSEMBLER_MIPS_H_ |
OLD | NEW |