| OLD | NEW |
| 1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 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_PPC | 7 #if V8_TARGET_ARCH_PPC |
| 8 | 8 |
| 9 #include "src/base/bits.h" | 9 #include "src/base/bits.h" |
| 10 #include "src/code-stubs.h" | 10 #include "src/code-stubs.h" |
| (...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 91 * (in regexp-macro-assembler.cc) via the CALL_GENERATED_REGEXP_CODE macro | 91 * (in regexp-macro-assembler.cc) via the CALL_GENERATED_REGEXP_CODE macro |
| 92 * in ppc/simulator-ppc.h. | 92 * in ppc/simulator-ppc.h. |
| 93 * When calling as a non-direct call (i.e., from C++ code), the return address | 93 * When calling as a non-direct call (i.e., from C++ code), the return address |
| 94 * area is overwritten with the LR register by the RegExp code. When doing a | 94 * area is overwritten with the LR register by the RegExp code. When doing a |
| 95 * direct call from generated code, the return address is placed there by | 95 * direct call from generated code, the return address is placed there by |
| 96 * the calling code, as in a normal exit frame. | 96 * the calling code, as in a normal exit frame. |
| 97 */ | 97 */ |
| 98 | 98 |
| 99 #define __ ACCESS_MASM(masm_) | 99 #define __ ACCESS_MASM(masm_) |
| 100 | 100 |
| 101 RegExpMacroAssemblerPPC::RegExpMacroAssemblerPPC(Mode mode, | 101 RegExpMacroAssemblerPPC::RegExpMacroAssemblerPPC(Isolate* isolate, Zone* zone, |
| 102 int registers_to_save, | 102 Mode mode, |
| 103 Zone* zone) | 103 int registers_to_save) |
| 104 : NativeRegExpMacroAssembler(zone), | 104 : NativeRegExpMacroAssembler(isolate, zone), |
| 105 masm_(new MacroAssembler(zone->isolate(), NULL, kRegExpCodeSize)), | 105 masm_(new MacroAssembler(isolate, NULL, kRegExpCodeSize)), |
| 106 mode_(mode), | 106 mode_(mode), |
| 107 num_registers_(registers_to_save), | 107 num_registers_(registers_to_save), |
| 108 num_saved_registers_(registers_to_save), | 108 num_saved_registers_(registers_to_save), |
| 109 entry_label_(), | 109 entry_label_(), |
| 110 start_label_(), | 110 start_label_(), |
| 111 success_label_(), | 111 success_label_(), |
| 112 backtrack_label_(), | 112 backtrack_label_(), |
| 113 exit_label_(), | 113 exit_label_(), |
| 114 internal_failure_label_() { | 114 internal_failure_label_() { |
| 115 DCHECK_EQ(0, registers_to_save % 2); | 115 DCHECK_EQ(0, registers_to_save % 2); |
| (...skipping 1210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1326 } | 1326 } |
| 1327 | 1327 |
| 1328 | 1328 |
| 1329 #undef __ | 1329 #undef __ |
| 1330 | 1330 |
| 1331 #endif // V8_INTERPRETED_REGEXP | 1331 #endif // V8_INTERPRETED_REGEXP |
| 1332 } | 1332 } |
| 1333 } // namespace v8::internal | 1333 } // namespace v8::internal |
| 1334 | 1334 |
| 1335 #endif // V8_TARGET_ARCH_PPC | 1335 #endif // V8_TARGET_ARCH_PPC |
| OLD | NEW |