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 #include "src/v8.h" | 5 #include "src/v8.h" |
6 | 6 |
7 #if V8_TARGET_ARCH_MIPS | 7 #if V8_TARGET_ARCH_MIPS |
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 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
88 * (in regexp-macro-assembler.cc) via the CALL_GENERATED_REGEXP_CODE macro | 88 * (in regexp-macro-assembler.cc) via the CALL_GENERATED_REGEXP_CODE macro |
89 * in mips/simulator-mips.h. | 89 * in mips/simulator-mips.h. |
90 * When calling as a non-direct call (i.e., from C++ code), the return address | 90 * When calling as a non-direct call (i.e., from C++ code), the return address |
91 * area is overwritten with the ra register by the RegExp code. When doing a | 91 * area is overwritten with the ra register by the RegExp code. When doing a |
92 * direct call from generated code, the return address is placed there by | 92 * direct call from generated code, the return address is placed there by |
93 * the calling code, as in a normal exit frame. | 93 * the calling code, as in a normal exit frame. |
94 */ | 94 */ |
95 | 95 |
96 #define __ ACCESS_MASM(masm_) | 96 #define __ ACCESS_MASM(masm_) |
97 | 97 |
98 RegExpMacroAssemblerMIPS::RegExpMacroAssemblerMIPS( | 98 RegExpMacroAssemblerMIPS::RegExpMacroAssemblerMIPS(Isolate* isolate, Zone* zone, |
99 Mode mode, | 99 Mode mode, |
100 int registers_to_save, | 100 int registers_to_save) |
101 Zone* zone) | 101 : NativeRegExpMacroAssembler(isolate, zone), |
102 : NativeRegExpMacroAssembler(zone), | 102 masm_(new MacroAssembler(isolate, NULL, kRegExpCodeSize)), |
103 masm_(new MacroAssembler(zone->isolate(), NULL, kRegExpCodeSize)), | |
104 mode_(mode), | 103 mode_(mode), |
105 num_registers_(registers_to_save), | 104 num_registers_(registers_to_save), |
106 num_saved_registers_(registers_to_save), | 105 num_saved_registers_(registers_to_save), |
107 entry_label_(), | 106 entry_label_(), |
108 start_label_(), | 107 start_label_(), |
109 success_label_(), | 108 success_label_(), |
110 backtrack_label_(), | 109 backtrack_label_(), |
111 exit_label_(), | 110 exit_label_(), |
112 internal_failure_label_() { | 111 internal_failure_label_() { |
113 DCHECK_EQ(0, registers_to_save % 2); | 112 DCHECK_EQ(0, registers_to_save % 2); |
(...skipping 1203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1317 } | 1316 } |
1318 | 1317 |
1319 | 1318 |
1320 #undef __ | 1319 #undef __ |
1321 | 1320 |
1322 #endif // V8_INTERPRETED_REGEXP | 1321 #endif // V8_INTERPRETED_REGEXP |
1323 | 1322 |
1324 }} // namespace v8::internal | 1323 }} // namespace v8::internal |
1325 | 1324 |
1326 #endif // V8_TARGET_ARCH_MIPS | 1325 #endif // V8_TARGET_ARCH_MIPS |
OLD | NEW |