| 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_MIPS | 5 #if V8_TARGET_ARCH_MIPS |
| 6 | 6 |
| 7 #include "src/regexp/mips/regexp-macro-assembler-mips.h" | 7 #include "src/regexp/mips/regexp-macro-assembler-mips.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 887 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 898 // Exit with Result EXCEPTION(-1) to signal thrown exception. | 898 // Exit with Result EXCEPTION(-1) to signal thrown exception. |
| 899 __ li(v0, Operand(EXCEPTION)); | 899 __ li(v0, Operand(EXCEPTION)); |
| 900 __ jmp(&return_v0); | 900 __ jmp(&return_v0); |
| 901 } | 901 } |
| 902 } | 902 } |
| 903 | 903 |
| 904 CodeDesc code_desc; | 904 CodeDesc code_desc; |
| 905 masm_->GetCode(&code_desc); | 905 masm_->GetCode(&code_desc); |
| 906 Handle<Code> code = isolate()->factory()->NewCode( | 906 Handle<Code> code = isolate()->factory()->NewCode( |
| 907 code_desc, Code::ComputeFlags(Code::REGEXP), masm_->CodeObject()); | 907 code_desc, Code::ComputeFlags(Code::REGEXP), masm_->CodeObject()); |
| 908 LOG(masm_->isolate(), RegExpCodeCreateEvent(*code, *source)); | 908 LOG(masm_->isolate(), |
| 909 RegExpCodeCreateEvent(AbstractCode::cast(*code), *source)); |
| 909 return Handle<HeapObject>::cast(code); | 910 return Handle<HeapObject>::cast(code); |
| 910 } | 911 } |
| 911 | 912 |
| 912 | 913 |
| 913 void RegExpMacroAssemblerMIPS::GoTo(Label* to) { | 914 void RegExpMacroAssemblerMIPS::GoTo(Label* to) { |
| 914 if (to == NULL) { | 915 if (to == NULL) { |
| 915 Backtrack(); | 916 Backtrack(); |
| 916 return; | 917 return; |
| 917 } | 918 } |
| 918 __ jmp(to); | 919 __ jmp(to); |
| (...skipping 372 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1291 | 1292 |
| 1292 | 1293 |
| 1293 #undef __ | 1294 #undef __ |
| 1294 | 1295 |
| 1295 #endif // V8_INTERPRETED_REGEXP | 1296 #endif // V8_INTERPRETED_REGEXP |
| 1296 | 1297 |
| 1297 } // namespace internal | 1298 } // namespace internal |
| 1298 } // namespace v8 | 1299 } // namespace v8 |
| 1299 | 1300 |
| 1300 #endif // V8_TARGET_ARCH_MIPS | 1301 #endif // V8_TARGET_ARCH_MIPS |
| OLD | NEW |