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

Side by Side Diff: src/regexp/x87/regexp-macro-assembler-x87.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: updates 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_X87 5 #if V8_TARGET_ARCH_X87
6 6
7 #include "src/regexp/x87/regexp-macro-assembler-x87.h" 7 #include "src/regexp/x87/regexp-macro-assembler-x87.h"
8 8
9 #include "src/log.h" 9 #include "src/log.h"
10 #include "src/macro-assembler.h" 10 #include "src/macro-assembler.h"
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 * byte* stack_area_base, 74 * byte* stack_area_base,
75 * bool direct_call) 75 * bool direct_call)
76 */ 76 */
77 77
78 #define __ ACCESS_MASM(masm_) 78 #define __ ACCESS_MASM(masm_)
79 79
80 RegExpMacroAssemblerX87::RegExpMacroAssemblerX87(Isolate* isolate, Zone* zone, 80 RegExpMacroAssemblerX87::RegExpMacroAssemblerX87(Isolate* isolate, Zone* zone,
81 Mode mode, 81 Mode mode,
82 int registers_to_save) 82 int registers_to_save)
83 : NativeRegExpMacroAssembler(isolate, zone), 83 : NativeRegExpMacroAssembler(isolate, zone),
84 masm_(new MacroAssembler(isolate, NULL, kRegExpCodeSize)), 84 masm_(new MacroAssembler(isolate, NULL, kRegExpCodeSize, true)),
85 mode_(mode), 85 mode_(mode),
86 num_registers_(registers_to_save), 86 num_registers_(registers_to_save),
87 num_saved_registers_(registers_to_save), 87 num_saved_registers_(registers_to_save),
88 entry_label_(), 88 entry_label_(),
89 start_label_(), 89 start_label_(),
90 success_label_(), 90 success_label_(),
91 backtrack_label_(), 91 backtrack_label_(),
92 exit_label_() { 92 exit_label_() {
93 DCHECK_EQ(0, registers_to_save % 2); 93 DCHECK_EQ(0, registers_to_save % 2);
94 __ jmp(&entry_label_); // We'll write the entry code later. 94 __ jmp(&entry_label_); // We'll write the entry code later.
(...skipping 1158 matching lines...) Expand 10 before | Expand all | Expand 10 after
1253 1253
1254 1254
1255 #undef __ 1255 #undef __
1256 1256
1257 #endif // V8_INTERPRETED_REGEXP 1257 #endif // V8_INTERPRETED_REGEXP
1258 1258
1259 } // namespace internal 1259 } // namespace internal
1260 } // namespace v8 1260 } // namespace v8
1261 1261
1262 #endif // V8_TARGET_ARCH_X87 1262 #endif // V8_TARGET_ARCH_X87
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698