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 918 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
929 if (exit_with_exception.is_linked()) { | 929 if (exit_with_exception.is_linked()) { |
930 // If any of the code above needed to exit with an exception. | 930 // If any of the code above needed to exit with an exception. |
931 __ bind(&exit_with_exception); | 931 __ bind(&exit_with_exception); |
932 // Exit with Result EXCEPTION(-1) to signal thrown exception. | 932 // Exit with Result EXCEPTION(-1) to signal thrown exception. |
933 __ li(v0, Operand(EXCEPTION)); | 933 __ li(v0, Operand(EXCEPTION)); |
934 __ jmp(&return_v0); | 934 __ jmp(&return_v0); |
935 } | 935 } |
936 } | 936 } |
937 | 937 |
938 CodeDesc code_desc; | 938 CodeDesc code_desc; |
939 masm_->GetCode(&code_desc); | 939 masm_->GetCode(isolate(), &code_desc); |
940 Handle<Code> code = isolate()->factory()->NewCode( | 940 Handle<Code> code = isolate()->factory()->NewCode( |
941 code_desc, Code::ComputeFlags(Code::REGEXP), masm_->CodeObject()); | 941 code_desc, Code::ComputeFlags(Code::REGEXP), masm_->CodeObject()); |
942 LOG(masm_->isolate(), | 942 LOG(masm_->isolate(), |
943 RegExpCodeCreateEvent(AbstractCode::cast(*code), *source)); | 943 RegExpCodeCreateEvent(AbstractCode::cast(*code), *source)); |
944 return Handle<HeapObject>::cast(code); | 944 return Handle<HeapObject>::cast(code); |
945 } | 945 } |
946 | 946 |
947 | 947 |
948 void RegExpMacroAssemblerMIPS::GoTo(Label* to) { | 948 void RegExpMacroAssemblerMIPS::GoTo(Label* to) { |
949 if (to == NULL) { | 949 if (to == NULL) { |
(...skipping 375 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1325 } | 1325 } |
1326 | 1326 |
1327 #undef __ | 1327 #undef __ |
1328 | 1328 |
1329 #endif // V8_INTERPRETED_REGEXP | 1329 #endif // V8_INTERPRETED_REGEXP |
1330 | 1330 |
1331 } // namespace internal | 1331 } // namespace internal |
1332 } // namespace v8 | 1332 } // namespace v8 |
1333 | 1333 |
1334 #endif // V8_TARGET_ARCH_MIPS64 | 1334 #endif // V8_TARGET_ARCH_MIPS64 |
OLD | NEW |