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 1685 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1696 class CodePatcher { | 1696 class CodePatcher { |
1697 public: | 1697 public: |
1698 enum FlushICache { | 1698 enum FlushICache { |
1699 FLUSH, | 1699 FLUSH, |
1700 DONT_FLUSH | 1700 DONT_FLUSH |
1701 }; | 1701 }; |
1702 | 1702 |
1703 CodePatcher(byte* address, | 1703 CodePatcher(byte* address, |
1704 int instructions, | 1704 int instructions, |
1705 FlushICache flush_cache = FLUSH); | 1705 FlushICache flush_cache = FLUSH); |
1706 virtual ~CodePatcher(); | 1706 ~CodePatcher(); |
1707 | 1707 |
1708 // Macro assembler to emit code. | 1708 // Macro assembler to emit code. |
1709 MacroAssembler* masm() { return &masm_; } | 1709 MacroAssembler* masm() { return &masm_; } |
1710 | 1710 |
1711 // Emit an instruction directly. | 1711 // Emit an instruction directly. |
1712 void Emit(Instr instr); | 1712 void Emit(Instr instr); |
1713 | 1713 |
1714 // Emit an address directly. | 1714 // Emit an address directly. |
1715 void Emit(Address addr); | 1715 void Emit(Address addr); |
1716 | 1716 |
(...skipping 15 matching lines...) Expand all Loading... |
1732 #define CODE_COVERAGE_TOSTRING(x) CODE_COVERAGE_STRINGIFY(x) | 1732 #define CODE_COVERAGE_TOSTRING(x) CODE_COVERAGE_STRINGIFY(x) |
1733 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) | 1733 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) |
1734 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> | 1734 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> |
1735 #else | 1735 #else |
1736 #define ACCESS_MASM(masm) masm-> | 1736 #define ACCESS_MASM(masm) masm-> |
1737 #endif | 1737 #endif |
1738 | 1738 |
1739 } } // namespace v8::internal | 1739 } } // namespace v8::internal |
1740 | 1740 |
1741 #endif // V8_MIPS_MACRO_ASSEMBLER_MIPS_H_ | 1741 #endif // V8_MIPS_MACRO_ASSEMBLER_MIPS_H_ |
OLD | NEW |