| 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 922 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 933 // Exit with Result EXCEPTION(-1) to signal thrown exception. | 933 // Exit with Result EXCEPTION(-1) to signal thrown exception. |
| 934 __ li(r3, Operand(EXCEPTION)); | 934 __ li(r3, Operand(EXCEPTION)); |
| 935 __ b(&return_r3); | 935 __ b(&return_r3); |
| 936 } | 936 } |
| 937 } | 937 } |
| 938 | 938 |
| 939 CodeDesc code_desc; | 939 CodeDesc code_desc; |
| 940 masm_->GetCode(&code_desc); | 940 masm_->GetCode(&code_desc); |
| 941 Handle<Code> code = isolate()->factory()->NewCode( | 941 Handle<Code> code = isolate()->factory()->NewCode( |
| 942 code_desc, Code::ComputeFlags(Code::REGEXP), masm_->CodeObject()); | 942 code_desc, Code::ComputeFlags(Code::REGEXP), masm_->CodeObject()); |
| 943 PROFILE(masm_->isolate(), RegExpCodeCreateEvent(*code, *source)); | 943 PROFILE(masm_->isolate(), |
| 944 RegExpCodeCreateEvent(AbstractCode::cast(*code), *source)); |
| 944 return Handle<HeapObject>::cast(code); | 945 return Handle<HeapObject>::cast(code); |
| 945 } | 946 } |
| 946 | 947 |
| 947 | 948 |
| 948 void RegExpMacroAssemblerPPC::GoTo(Label* to) { BranchOrBacktrack(al, to); } | 949 void RegExpMacroAssemblerPPC::GoTo(Label* to) { BranchOrBacktrack(al, to); } |
| 949 | 950 |
| 950 | 951 |
| 951 void RegExpMacroAssemblerPPC::IfRegisterGE(int reg, int comparand, | 952 void RegExpMacroAssemblerPPC::IfRegisterGE(int reg, int comparand, |
| 952 Label* if_ge) { | 953 Label* if_ge) { |
| 953 __ LoadP(r3, register_location(reg), r0); | 954 __ LoadP(r3, register_location(reg), r0); |
| (...skipping 344 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1298 } | 1299 } |
| 1299 | 1300 |
| 1300 | 1301 |
| 1301 #undef __ | 1302 #undef __ |
| 1302 | 1303 |
| 1303 #endif // V8_INTERPRETED_REGEXP | 1304 #endif // V8_INTERPRETED_REGEXP |
| 1304 } // namespace internal | 1305 } // namespace internal |
| 1305 } // namespace v8 | 1306 } // namespace v8 |
| 1306 | 1307 |
| 1307 #endif // V8_TARGET_ARCH_PPC | 1308 #endif // V8_TARGET_ARCH_PPC |
| OLD | NEW |