| 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 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 81 | 81 |
| 82 | 82 |
| 83 enum TargetAddressStorageMode { | 83 enum TargetAddressStorageMode { |
| 84 CAN_INLINE_TARGET_ADDRESS, | 84 CAN_INLINE_TARGET_ADDRESS, |
| 85 NEVER_INLINE_TARGET_ADDRESS | 85 NEVER_INLINE_TARGET_ADDRESS |
| 86 }; | 86 }; |
| 87 | 87 |
| 88 // MacroAssembler implements a collection of frequently used macros. | 88 // MacroAssembler implements a collection of frequently used macros. |
| 89 class MacroAssembler: public Assembler { | 89 class MacroAssembler: public Assembler { |
| 90 public: | 90 public: |
| 91 // The isolate parameter can be NULL if the macro assembler should | 91 MacroAssembler(Isolate* isolate, void* buffer, int size, |
| 92 // not use isolate-dependent functionality. In this case, it's the | 92 CodeObjectRequired create_code_object); |
| 93 // responsibility of the caller to never invoke such function on the | |
| 94 // macro assembler. | |
| 95 MacroAssembler(Isolate* isolate, void* buffer, int size); | |
| 96 | 93 |
| 97 | 94 |
| 98 // Returns the size of a call in instructions. Note, the value returned is | 95 // Returns the size of a call in instructions. Note, the value returned is |
| 99 // only valid as long as no entries are added to the constant pool between | 96 // only valid as long as no entries are added to the constant pool between |
| 100 // checking the call size and emitting the actual call. | 97 // checking the call size and emitting the actual call. |
| 101 static int CallSize(Register target, Condition cond = al); | 98 static int CallSize(Register target, Condition cond = al); |
| 102 int CallSize(Address target, RelocInfo::Mode rmode, Condition cond = al); | 99 int CallSize(Address target, RelocInfo::Mode rmode, Condition cond = al); |
| 103 int CallStubSize(CodeStub* stub, | 100 int CallStubSize(CodeStub* stub, |
| 104 TypeFeedbackId ast_id = TypeFeedbackId::None(), | 101 TypeFeedbackId ast_id = TypeFeedbackId::None(), |
| 105 Condition cond = al); | 102 Condition cond = al); |
| (...skipping 1452 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1558 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> | 1555 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> |
| 1559 #else | 1556 #else |
| 1560 #define ACCESS_MASM(masm) masm-> | 1557 #define ACCESS_MASM(masm) masm-> |
| 1561 #endif | 1558 #endif |
| 1562 | 1559 |
| 1563 | 1560 |
| 1564 } // namespace internal | 1561 } // namespace internal |
| 1565 } // namespace v8 | 1562 } // namespace v8 |
| 1566 | 1563 |
| 1567 #endif // V8_ARM_MACRO_ASSEMBLER_ARM_H_ | 1564 #endif // V8_ARM_MACRO_ASSEMBLER_ARM_H_ |
| OLD | NEW |