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_ARM | 5 #if V8_TARGET_ARCH_ARM |
6 | 6 |
7 #include "src/regexp/arm/regexp-macro-assembler-arm.h" | 7 #include "src/regexp/arm/regexp-macro-assembler-arm.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 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
91 * direct call from generated code, the return address is placed there by | 91 * direct call from generated code, the return address is placed there by |
92 * the calling code, as in a normal exit frame. | 92 * the calling code, as in a normal exit frame. |
93 */ | 93 */ |
94 | 94 |
95 #define __ ACCESS_MASM(masm_) | 95 #define __ ACCESS_MASM(masm_) |
96 | 96 |
97 RegExpMacroAssemblerARM::RegExpMacroAssemblerARM(Isolate* isolate, Zone* zone, | 97 RegExpMacroAssemblerARM::RegExpMacroAssemblerARM(Isolate* isolate, Zone* zone, |
98 Mode mode, | 98 Mode mode, |
99 int registers_to_save) | 99 int registers_to_save) |
100 : NativeRegExpMacroAssembler(isolate, zone), | 100 : NativeRegExpMacroAssembler(isolate, zone), |
101 masm_(new MacroAssembler(isolate, NULL, kRegExpCodeSize)), | 101 masm_(new MacroAssembler(isolate, NULL, kRegExpCodeSize, |
| 102 CodeObjectRequired::kYes)), |
102 mode_(mode), | 103 mode_(mode), |
103 num_registers_(registers_to_save), | 104 num_registers_(registers_to_save), |
104 num_saved_registers_(registers_to_save), | 105 num_saved_registers_(registers_to_save), |
105 entry_label_(), | 106 entry_label_(), |
106 start_label_(), | 107 start_label_(), |
107 success_label_(), | 108 success_label_(), |
108 backtrack_label_(), | 109 backtrack_label_(), |
109 exit_label_() { | 110 exit_label_() { |
110 DCHECK_EQ(0, registers_to_save % 2); | 111 DCHECK_EQ(0, registers_to_save % 2); |
111 __ jmp(&entry_label_); // We'll write the entry code later. | 112 __ jmp(&entry_label_); // We'll write the entry code later. |
(...skipping 1120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1232 | 1233 |
1233 | 1234 |
1234 #undef __ | 1235 #undef __ |
1235 | 1236 |
1236 #endif // V8_INTERPRETED_REGEXP | 1237 #endif // V8_INTERPRETED_REGEXP |
1237 | 1238 |
1238 } // namespace internal | 1239 } // namespace internal |
1239 } // namespace v8 | 1240 } // namespace v8 |
1240 | 1241 |
1241 #endif // V8_TARGET_ARCH_ARM | 1242 #endif // V8_TARGET_ARCH_ARM |
OLD | NEW |