| 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_ARM_MACRO_ASSEMBLER_ARM_H_ | 5 #ifndef V8_ARM_MACRO_ASSEMBLER_ARM_H_ |
| 6 #define V8_ARM_MACRO_ASSEMBLER_ARM_H_ | 6 #define V8_ARM_MACRO_ASSEMBLER_ARM_H_ |
| 7 | 7 |
| 8 #include "src/assembler.h" | 8 #include "src/assembler.h" |
| 9 #include "src/bailout-reason.h" | 9 #include "src/bailout-reason.h" |
| 10 #include "src/frames.h" | 10 #include "src/frames.h" |
| (...skipping 1488 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1499 class CodePatcher { | 1499 class CodePatcher { |
| 1500 public: | 1500 public: |
| 1501 enum FlushICache { | 1501 enum FlushICache { |
| 1502 FLUSH, | 1502 FLUSH, |
| 1503 DONT_FLUSH | 1503 DONT_FLUSH |
| 1504 }; | 1504 }; |
| 1505 | 1505 |
| 1506 CodePatcher(byte* address, | 1506 CodePatcher(byte* address, |
| 1507 int instructions, | 1507 int instructions, |
| 1508 FlushICache flush_cache = FLUSH); | 1508 FlushICache flush_cache = FLUSH); |
| 1509 virtual ~CodePatcher(); | 1509 ~CodePatcher(); |
| 1510 | 1510 |
| 1511 // Macro assembler to emit code. | 1511 // Macro assembler to emit code. |
| 1512 MacroAssembler* masm() { return &masm_; } | 1512 MacroAssembler* masm() { return &masm_; } |
| 1513 | 1513 |
| 1514 // Emit an instruction directly. | 1514 // Emit an instruction directly. |
| 1515 void Emit(Instr instr); | 1515 void Emit(Instr instr); |
| 1516 | 1516 |
| 1517 // Emit an address directly. | 1517 // Emit an address directly. |
| 1518 void Emit(Address addr); | 1518 void Emit(Address addr); |
| 1519 | 1519 |
| (...skipping 28 matching lines...) Expand all Loading... |
| 1548 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) | 1548 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) |
| 1549 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> | 1549 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> |
| 1550 #else | 1550 #else |
| 1551 #define ACCESS_MASM(masm) masm-> | 1551 #define ACCESS_MASM(masm) masm-> |
| 1552 #endif | 1552 #endif |
| 1553 | 1553 |
| 1554 | 1554 |
| 1555 } } // namespace v8::internal | 1555 } } // namespace v8::internal |
| 1556 | 1556 |
| 1557 #endif // V8_ARM_MACRO_ASSEMBLER_ARM_H_ | 1557 #endif // V8_ARM_MACRO_ASSEMBLER_ARM_H_ |
| OLD | NEW |