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 #if V8_TARGET_ARCH_IA32 | 5 #if V8_TARGET_ARCH_IA32 |
6 | 6 |
7 #include "src/regexp/ia32/regexp-macro-assembler-ia32.h" | 7 #include "src/regexp/ia32/regexp-macro-assembler-ia32.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 Loading... |
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 RegExpMacroAssemblerIA32::RegExpMacroAssemblerIA32(Isolate* isolate, Zone* zone, | 80 RegExpMacroAssemblerIA32::RegExpMacroAssemblerIA32(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, |
| 85 CodeObjectRequired::kYes)), |
85 mode_(mode), | 86 mode_(mode), |
86 num_registers_(registers_to_save), | 87 num_registers_(registers_to_save), |
87 num_saved_registers_(registers_to_save), | 88 num_saved_registers_(registers_to_save), |
88 entry_label_(), | 89 entry_label_(), |
89 start_label_(), | 90 start_label_(), |
90 success_label_(), | 91 success_label_(), |
91 backtrack_label_(), | 92 backtrack_label_(), |
92 exit_label_() { | 93 exit_label_() { |
93 DCHECK_EQ(0, registers_to_save % 2); | 94 DCHECK_EQ(0, registers_to_save % 2); |
94 __ jmp(&entry_label_); // We'll write the entry code later. | 95 __ jmp(&entry_label_); // We'll write the entry code later. |
(...skipping 1158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1253 | 1254 |
1254 | 1255 |
1255 #undef __ | 1256 #undef __ |
1256 | 1257 |
1257 #endif // V8_INTERPRETED_REGEXP | 1258 #endif // V8_INTERPRETED_REGEXP |
1258 | 1259 |
1259 } // namespace internal | 1260 } // namespace internal |
1260 } // namespace v8 | 1261 } // namespace v8 |
1261 | 1262 |
1262 #endif // V8_TARGET_ARCH_IA32 | 1263 #endif // V8_TARGET_ARCH_IA32 |
OLD | NEW |