| 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 880 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 891 if (exit_with_exception.is_linked()) { | 891 if (exit_with_exception.is_linked()) { |
| 892 // If any of the code above needed to exit with an exception. | 892 // If any of the code above needed to exit with an exception. |
| 893 __ bind(&exit_with_exception); | 893 __ bind(&exit_with_exception); |
| 894 // Exit with Result EXCEPTION(-1) to signal thrown exception. | 894 // Exit with Result EXCEPTION(-1) to signal thrown exception. |
| 895 __ li(v0, Operand(EXCEPTION)); | 895 __ li(v0, Operand(EXCEPTION)); |
| 896 __ jmp(&return_v0); | 896 __ jmp(&return_v0); |
| 897 } | 897 } |
| 898 } | 898 } |
| 899 | 899 |
| 900 CodeDesc code_desc; | 900 CodeDesc code_desc; |
| 901 masm_->GetCode(&code_desc); | 901 masm_->GetCode(isolate(), &code_desc); |
| 902 Handle<Code> code = isolate()->factory()->NewCode( | 902 Handle<Code> code = isolate()->factory()->NewCode( |
| 903 code_desc, Code::ComputeFlags(Code::REGEXP), masm_->CodeObject()); | 903 code_desc, Code::ComputeFlags(Code::REGEXP), masm_->CodeObject()); |
| 904 LOG(masm_->isolate(), | 904 LOG(masm_->isolate(), |
| 905 RegExpCodeCreateEvent(AbstractCode::cast(*code), *source)); | 905 RegExpCodeCreateEvent(AbstractCode::cast(*code), *source)); |
| 906 return Handle<HeapObject>::cast(code); | 906 return Handle<HeapObject>::cast(code); |
| 907 } | 907 } |
| 908 | 908 |
| 909 | 909 |
| 910 void RegExpMacroAssemblerMIPS::GoTo(Label* to) { | 910 void RegExpMacroAssemblerMIPS::GoTo(Label* to) { |
| 911 if (to == NULL) { | 911 if (to == NULL) { |
| (...skipping 376 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1288 | 1288 |
| 1289 | 1289 |
| 1290 #undef __ | 1290 #undef __ |
| 1291 | 1291 |
| 1292 #endif // V8_INTERPRETED_REGEXP | 1292 #endif // V8_INTERPRETED_REGEXP |
| 1293 | 1293 |
| 1294 } // namespace internal | 1294 } // namespace internal |
| 1295 } // namespace v8 | 1295 } // namespace v8 |
| 1296 | 1296 |
| 1297 #endif // V8_TARGET_ARCH_MIPS | 1297 #endif // V8_TARGET_ARCH_MIPS |
| OLD | NEW |