Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(37)

Side by Side Diff: src/mips64/macro-assembler-mips64.h

Issue 1476763002: Make whether or not a Code object should be created by masm explicit (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: enum class FTW Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/mips64/codegen-mips64.cc ('k') | src/mips64/macro-assembler-mips64.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « src/mips64/codegen-mips64.cc ('k') | src/mips64/macro-assembler-mips64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698