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

Side by Side Diff: src/regexp/mips/regexp-macro-assembler-mips.cc

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
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 #if V8_TARGET_ARCH_MIPS 5 #if V8_TARGET_ARCH_MIPS
6 6
7 #include "src/regexp/mips/regexp-macro-assembler-mips.h" 7 #include "src/regexp/mips/regexp-macro-assembler-mips.h"
8 8
9 #include "src/code-stubs.h" 9 #include "src/code-stubs.h"
10 #include "src/log.h" 10 #include "src/log.h"
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 * direct call from generated code, the return address is placed there by 90 * direct call from generated code, the return address is placed there by
91 * the calling code, as in a normal exit frame. 91 * the calling code, as in a normal exit frame.
92 */ 92 */
93 93
94 #define __ ACCESS_MASM(masm_) 94 #define __ ACCESS_MASM(masm_)
95 95
96 RegExpMacroAssemblerMIPS::RegExpMacroAssemblerMIPS(Isolate* isolate, Zone* zone, 96 RegExpMacroAssemblerMIPS::RegExpMacroAssemblerMIPS(Isolate* isolate, Zone* zone,
97 Mode mode, 97 Mode mode,
98 int registers_to_save) 98 int registers_to_save)
99 : NativeRegExpMacroAssembler(isolate, zone), 99 : NativeRegExpMacroAssembler(isolate, zone),
100 masm_(new MacroAssembler(isolate, NULL, kRegExpCodeSize)), 100 masm_(new MacroAssembler(isolate, NULL, kRegExpCodeSize,
101 CodeObjectRequired::kYes)),
101 mode_(mode), 102 mode_(mode),
102 num_registers_(registers_to_save), 103 num_registers_(registers_to_save),
103 num_saved_registers_(registers_to_save), 104 num_saved_registers_(registers_to_save),
104 entry_label_(), 105 entry_label_(),
105 start_label_(), 106 start_label_(),
106 success_label_(), 107 success_label_(),
107 backtrack_label_(), 108 backtrack_label_(),
108 exit_label_(), 109 exit_label_(),
109 internal_failure_label_() { 110 internal_failure_label_() {
110 DCHECK_EQ(0, registers_to_save % 2); 111 DCHECK_EQ(0, registers_to_save % 2);
(...skipping 1169 matching lines...) Expand 10 before | Expand all | Expand 10 after
1280 1281
1281 1282
1282 #undef __ 1283 #undef __
1283 1284
1284 #endif // V8_INTERPRETED_REGEXP 1285 #endif // V8_INTERPRETED_REGEXP
1285 1286
1286 } // namespace internal 1287 } // namespace internal
1287 } // namespace v8 1288 } // namespace v8
1288 1289
1289 #endif // V8_TARGET_ARCH_MIPS 1290 #endif // V8_TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « src/regexp/ia32/regexp-macro-assembler-ia32.cc ('k') | src/regexp/mips64/regexp-macro-assembler-mips64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698