| 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 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 134 DCHECK(index > kCArgSlotCount); | 134 DCHECK(index > kCArgSlotCount); |
| 135 // Argument 5 takes the slot just past the four Arg-slots. | 135 // Argument 5 takes the slot just past the four Arg-slots. |
| 136 int offset = (index - 5) * kPointerSize + kCArgsSlotsSize; | 136 int offset = (index - 5) * kPointerSize + kCArgsSlotsSize; |
| 137 return MemOperand(sp, offset); | 137 return MemOperand(sp, offset); |
| 138 } | 138 } |
| 139 | 139 |
| 140 | 140 |
| 141 // MacroAssembler implements a collection of frequently used macros. | 141 // MacroAssembler implements a collection of frequently used macros. |
| 142 class MacroAssembler: public Assembler { | 142 class MacroAssembler: public Assembler { |
| 143 public: | 143 public: |
| 144 // The isolate parameter can be NULL if the macro assembler should | 144 MacroAssembler(Isolate* isolate, void* buffer, int size, |
| 145 // not use isolate-dependent functionality. In this case, it's the | 145 bool create_code_object); |
| 146 // responsibility of the caller to never invoke such function on the | |
| 147 // macro assembler. | |
| 148 MacroAssembler(Isolate* isolate, void* buffer, int size); | |
| 149 | 146 |
| 150 // Arguments macros. | 147 // Arguments macros. |
| 151 #define COND_TYPED_ARGS Condition cond, Register r1, const Operand& r2 | 148 #define COND_TYPED_ARGS Condition cond, Register r1, const Operand& r2 |
| 152 #define COND_ARGS cond, r1, r2 | 149 #define COND_ARGS cond, r1, r2 |
| 153 | 150 |
| 154 // Cases when relocation is not needed. | 151 // Cases when relocation is not needed. |
| 155 #define DECLARE_NORELOC_PROTOTYPE(Name, target_type) \ | 152 #define DECLARE_NORELOC_PROTOTYPE(Name, target_type) \ |
| 156 void Name(target_type target, BranchDelaySlot bd = PROTECT); \ | 153 void Name(target_type target, BranchDelaySlot bd = PROTECT); \ |
| 157 inline void Name(BranchDelaySlot bd, target_type target) { \ | 154 inline void Name(BranchDelaySlot bd, target_type target) { \ |
| 158 Name(target, bd); \ | 155 Name(target, bd); \ |
| (...skipping 1599 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1758 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) | 1755 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) |
| 1759 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> | 1756 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> |
| 1760 #else | 1757 #else |
| 1761 #define ACCESS_MASM(masm) masm-> | 1758 #define ACCESS_MASM(masm) masm-> |
| 1762 #endif | 1759 #endif |
| 1763 | 1760 |
| 1764 } // namespace internal | 1761 } // namespace internal |
| 1765 } // namespace v8 | 1762 } // namespace v8 |
| 1766 | 1763 |
| 1767 #endif // V8_MIPS_MACRO_ASSEMBLER_MIPS_H_ | 1764 #endif // V8_MIPS_MACRO_ASSEMBLER_MIPS_H_ |
| OLD | NEW |