| 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 #if V8_TARGET_ARCH_MIPS64 | 5 #if V8_TARGET_ARCH_MIPS64 |
| 6 | 6 |
| 7 #include "src/regexp/mips64/regexp-macro-assembler-mips64.h" | 7 #include "src/regexp/mips64/regexp-macro-assembler-mips64.h" |
| 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 924 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 935 // Exit with Result EXCEPTION(-1) to signal thrown exception. | 935 // Exit with Result EXCEPTION(-1) to signal thrown exception. |
| 936 __ li(v0, Operand(EXCEPTION)); | 936 __ li(v0, Operand(EXCEPTION)); |
| 937 __ jmp(&return_v0); | 937 __ jmp(&return_v0); |
| 938 } | 938 } |
| 939 } | 939 } |
| 940 | 940 |
| 941 CodeDesc code_desc; | 941 CodeDesc code_desc; |
| 942 masm_->GetCode(&code_desc); | 942 masm_->GetCode(&code_desc); |
| 943 Handle<Code> code = isolate()->factory()->NewCode( | 943 Handle<Code> code = isolate()->factory()->NewCode( |
| 944 code_desc, Code::ComputeFlags(Code::REGEXP), masm_->CodeObject()); | 944 code_desc, Code::ComputeFlags(Code::REGEXP), masm_->CodeObject()); |
| 945 LOG(masm_->isolate(), RegExpCodeCreateEvent(*code, *source)); | 945 LOG(masm_->isolate(), |
| 946 RegExpCodeCreateEvent(AbstractCode::cast(*code), *source)); |
| 946 return Handle<HeapObject>::cast(code); | 947 return Handle<HeapObject>::cast(code); |
| 947 } | 948 } |
| 948 | 949 |
| 949 | 950 |
| 950 void RegExpMacroAssemblerMIPS::GoTo(Label* to) { | 951 void RegExpMacroAssemblerMIPS::GoTo(Label* to) { |
| 951 if (to == NULL) { | 952 if (to == NULL) { |
| 952 Backtrack(); | 953 Backtrack(); |
| 953 return; | 954 return; |
| 954 } | 955 } |
| 955 __ jmp(to); | 956 __ jmp(to); |
| (...skipping 371 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1327 } | 1328 } |
| 1328 | 1329 |
| 1329 #undef __ | 1330 #undef __ |
| 1330 | 1331 |
| 1331 #endif // V8_INTERPRETED_REGEXP | 1332 #endif // V8_INTERPRETED_REGEXP |
| 1332 | 1333 |
| 1333 } // namespace internal | 1334 } // namespace internal |
| 1334 } // namespace v8 | 1335 } // namespace v8 |
| 1335 | 1336 |
| 1336 #endif // V8_TARGET_ARCH_MIPS64 | 1337 #endif // V8_TARGET_ARCH_MIPS64 |
| OLD | NEW |