| 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 #if V8_TARGET_ARCH_PPC | 5 #if V8_TARGET_ARCH_PPC |
| 6 | 6 |
| 7 #include "src/regexp/ppc/regexp-macro-assembler-ppc.h" | 7 #include "src/regexp/ppc/regexp-macro-assembler-ppc.h" |
| 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 914 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 925 if (exit_with_exception.is_linked()) { | 925 if (exit_with_exception.is_linked()) { |
| 926 // If any of the code above needed to exit with an exception. | 926 // If any of the code above needed to exit with an exception. |
| 927 __ bind(&exit_with_exception); | 927 __ bind(&exit_with_exception); |
| 928 // Exit with Result EXCEPTION(-1) to signal thrown exception. | 928 // Exit with Result EXCEPTION(-1) to signal thrown exception. |
| 929 __ li(r3, Operand(EXCEPTION)); | 929 __ li(r3, Operand(EXCEPTION)); |
| 930 __ b(&return_r3); | 930 __ b(&return_r3); |
| 931 } | 931 } |
| 932 } | 932 } |
| 933 | 933 |
| 934 CodeDesc code_desc; | 934 CodeDesc code_desc; |
| 935 masm_->GetCode(&code_desc); | 935 masm_->GetCode(isolate(), &code_desc); |
| 936 Handle<Code> code = isolate()->factory()->NewCode( | 936 Handle<Code> code = isolate()->factory()->NewCode( |
| 937 code_desc, Code::ComputeFlags(Code::REGEXP), masm_->CodeObject()); | 937 code_desc, Code::ComputeFlags(Code::REGEXP), masm_->CodeObject()); |
| 938 PROFILE(masm_->isolate(), | 938 PROFILE(masm_->isolate(), |
| 939 RegExpCodeCreateEvent(AbstractCode::cast(*code), *source)); | 939 RegExpCodeCreateEvent(AbstractCode::cast(*code), *source)); |
| 940 return Handle<HeapObject>::cast(code); | 940 return Handle<HeapObject>::cast(code); |
| 941 } | 941 } |
| 942 | 942 |
| 943 | 943 |
| 944 void RegExpMacroAssemblerPPC::GoTo(Label* to) { BranchOrBacktrack(al, to); } | 944 void RegExpMacroAssemblerPPC::GoTo(Label* to) { BranchOrBacktrack(al, to); } |
| 945 | 945 |
| (...skipping 376 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1322 } | 1322 } |
| 1323 | 1323 |
| 1324 | 1324 |
| 1325 #undef __ | 1325 #undef __ |
| 1326 | 1326 |
| 1327 #endif // V8_INTERPRETED_REGEXP | 1327 #endif // V8_INTERPRETED_REGEXP |
| 1328 } // namespace internal | 1328 } // namespace internal |
| 1329 } // namespace v8 | 1329 } // namespace v8 |
| 1330 | 1330 |
| 1331 #endif // V8_TARGET_ARCH_PPC | 1331 #endif // V8_TARGET_ARCH_PPC |
| OLD | NEW |