| 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 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 162 DCHECK(index > kCArgSlotCount); | 162 DCHECK(index > kCArgSlotCount); |
| 163 // Argument 5 takes the slot just past the four Arg-slots. | 163 // Argument 5 takes the slot just past the four Arg-slots. |
| 164 int offset = (index - 5) * kPointerSize + kCArgsSlotsSize; | 164 int offset = (index - 5) * kPointerSize + kCArgsSlotsSize; |
| 165 return MemOperand(sp, offset); | 165 return MemOperand(sp, offset); |
| 166 } | 166 } |
| 167 | 167 |
| 168 | 168 |
| 169 // MacroAssembler implements a collection of frequently used macros. | 169 // MacroAssembler implements a collection of frequently used macros. |
| 170 class MacroAssembler: public Assembler { | 170 class MacroAssembler: public Assembler { |
| 171 public: | 171 public: |
| 172 // The isolate parameter can be NULL if the macro assembler should | 172 MacroAssembler(Isolate* isolate, void* buffer, int size, |
| 173 // not use isolate-dependent functionality. In this case, it's the | 173 CodeObjectRequired create_code_object); |
| 174 // responsibility of the caller to never invoke such function on the | |
| 175 // macro assembler. | |
| 176 MacroAssembler(Isolate* isolate, void* buffer, int size); | |
| 177 | 174 |
| 178 // Arguments macros. | 175 // Arguments macros. |
| 179 #define COND_TYPED_ARGS Condition cond, Register r1, const Operand& r2 | 176 #define COND_TYPED_ARGS Condition cond, Register r1, const Operand& r2 |
| 180 #define COND_ARGS cond, r1, r2 | 177 #define COND_ARGS cond, r1, r2 |
| 181 | 178 |
| 182 // Cases when relocation is not needed. | 179 // Cases when relocation is not needed. |
| 183 #define DECLARE_NORELOC_PROTOTYPE(Name, target_type) \ | 180 #define DECLARE_NORELOC_PROTOTYPE(Name, target_type) \ |
| 184 void Name(target_type target, BranchDelaySlot bd = PROTECT); \ | 181 void Name(target_type target, BranchDelaySlot bd = PROTECT); \ |
| 185 inline void Name(BranchDelaySlot bd, target_type target) { \ | 182 inline void Name(BranchDelaySlot bd, target_type target) { \ |
| 186 Name(target, bd); \ | 183 Name(target, bd); \ |
| (...skipping 1662 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1849 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) | 1846 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) |
| 1850 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> | 1847 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> |
| 1851 #else | 1848 #else |
| 1852 #define ACCESS_MASM(masm) masm-> | 1849 #define ACCESS_MASM(masm) masm-> |
| 1853 #endif | 1850 #endif |
| 1854 | 1851 |
| 1855 } // namespace internal | 1852 } // namespace internal |
| 1856 } // namespace v8 | 1853 } // namespace v8 |
| 1857 | 1854 |
| 1858 #endif // V8_MIPS_MACRO_ASSEMBLER_MIPS_H_ | 1855 #endif // V8_MIPS_MACRO_ASSEMBLER_MIPS_H_ |
| OLD | NEW |