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

Side by Side Diff: src/mips/macro-assembler-mips.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/mips/codegen-mips.cc ('k') | src/mips/macro-assembler-mips.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/mips/assembler-mips.h" 10 #include "src/mips/assembler-mips.h"
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 CodeObjectRequired 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
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_
OLDNEW
« no previous file with comments | « src/mips/codegen-mips.cc ('k') | src/mips/macro-assembler-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698