| 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_MIPS64 | 7 #if V8_TARGET_ARCH_MIPS64 |
| 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 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 124 * (in regexp-macro-assembler.cc) via the CALL_GENERATED_REGEXP_CODE macro | 124 * (in regexp-macro-assembler.cc) via the CALL_GENERATED_REGEXP_CODE macro |
| 125 * in mips/simulator-mips.h. | 125 * in mips/simulator-mips.h. |
| 126 * When calling as a non-direct call (i.e., from C++ code), the return address | 126 * When calling as a non-direct call (i.e., from C++ code), the return address |
| 127 * area is overwritten with the ra register by the RegExp code. When doing a | 127 * area is overwritten with the ra register by the RegExp code. When doing a |
| 128 * direct call from generated code, the return address is placed there by | 128 * direct call from generated code, the return address is placed there by |
| 129 * the calling code, as in a normal exit frame. | 129 * the calling code, as in a normal exit frame. |
| 130 */ | 130 */ |
| 131 | 131 |
| 132 #define __ ACCESS_MASM(masm_) | 132 #define __ ACCESS_MASM(masm_) |
| 133 | 133 |
| 134 RegExpMacroAssemblerMIPS::RegExpMacroAssemblerMIPS( | 134 RegExpMacroAssemblerMIPS::RegExpMacroAssemblerMIPS(Isolate* isolate, Zone* zone, |
| 135 Mode mode, | 135 Mode mode, |
| 136 int registers_to_save, | 136 int registers_to_save) |
| 137 Zone* zone) | 137 : NativeRegExpMacroAssembler(isolate, zone), |
| 138 : NativeRegExpMacroAssembler(zone), | 138 masm_(new MacroAssembler(isolate, NULL, kRegExpCodeSize)), |
| 139 masm_(new MacroAssembler(zone->isolate(), NULL, kRegExpCodeSize)), | |
| 140 mode_(mode), | 139 mode_(mode), |
| 141 num_registers_(registers_to_save), | 140 num_registers_(registers_to_save), |
| 142 num_saved_registers_(registers_to_save), | 141 num_saved_registers_(registers_to_save), |
| 143 entry_label_(), | 142 entry_label_(), |
| 144 start_label_(), | 143 start_label_(), |
| 145 success_label_(), | 144 success_label_(), |
| 146 backtrack_label_(), | 145 backtrack_label_(), |
| 147 exit_label_(), | 146 exit_label_(), |
| 148 internal_failure_label_() { | 147 internal_failure_label_() { |
| 149 DCHECK_EQ(0, registers_to_save % 2); | 148 DCHECK_EQ(0, registers_to_save % 2); |
| (...skipping 1212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1362 } | 1361 } |
| 1363 } | 1362 } |
| 1364 | 1363 |
| 1365 #undef __ | 1364 #undef __ |
| 1366 | 1365 |
| 1367 #endif // V8_INTERPRETED_REGEXP | 1366 #endif // V8_INTERPRETED_REGEXP |
| 1368 | 1367 |
| 1369 }} // namespace v8::internal | 1368 }} // namespace v8::internal |
| 1370 | 1369 |
| 1371 #endif // V8_TARGET_ARCH_MIPS64 | 1370 #endif // V8_TARGET_ARCH_MIPS64 |
| OLD | NEW |