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_ARM | 5 #if V8_TARGET_ARCH_ARM |
6 | 6 |
7 #include "src/regexp/arm/regexp-macro-assembler-arm.h" | 7 #include "src/regexp/arm/regexp-macro-assembler-arm.h" |
8 | 8 |
9 #include "src/assembler-inl.h" | 9 #include "src/assembler-inl.h" |
10 #include "src/code-stubs.h" | 10 #include "src/code-stubs.h" |
(...skipping 868 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
879 | 879 |
880 if (exit_with_exception.is_linked()) { | 880 if (exit_with_exception.is_linked()) { |
881 // If any of the code above needed to exit with an exception. | 881 // If any of the code above needed to exit with an exception. |
882 __ bind(&exit_with_exception); | 882 __ bind(&exit_with_exception); |
883 // Exit with Result EXCEPTION(-1) to signal thrown exception. | 883 // Exit with Result EXCEPTION(-1) to signal thrown exception. |
884 __ mov(r0, Operand(EXCEPTION)); | 884 __ mov(r0, Operand(EXCEPTION)); |
885 __ jmp(&return_r0); | 885 __ jmp(&return_r0); |
886 } | 886 } |
887 | 887 |
888 CodeDesc code_desc; | 888 CodeDesc code_desc; |
889 masm_->GetCode(&code_desc); | 889 masm_->GetCode(isolate(), &code_desc); |
890 Handle<Code> code = isolate()->factory()->NewCode( | 890 Handle<Code> code = isolate()->factory()->NewCode( |
891 code_desc, Code::ComputeFlags(Code::REGEXP), masm_->CodeObject()); | 891 code_desc, Code::ComputeFlags(Code::REGEXP), masm_->CodeObject()); |
892 PROFILE(masm_->isolate(), | 892 PROFILE(masm_->isolate(), |
893 RegExpCodeCreateEvent(AbstractCode::cast(*code), *source)); | 893 RegExpCodeCreateEvent(AbstractCode::cast(*code), *source)); |
894 return Handle<HeapObject>::cast(code); | 894 return Handle<HeapObject>::cast(code); |
895 } | 895 } |
896 | 896 |
897 | 897 |
898 void RegExpMacroAssemblerARM::GoTo(Label* to) { | 898 void RegExpMacroAssemblerARM::GoTo(Label* to) { |
899 BranchOrBacktrack(al, to); | 899 BranchOrBacktrack(al, to); |
(...skipping 337 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1237 | 1237 |
1238 | 1238 |
1239 #undef __ | 1239 #undef __ |
1240 | 1240 |
1241 #endif // V8_INTERPRETED_REGEXP | 1241 #endif // V8_INTERPRETED_REGEXP |
1242 | 1242 |
1243 } // namespace internal | 1243 } // namespace internal |
1244 } // namespace v8 | 1244 } // namespace v8 |
1245 | 1245 |
1246 #endif // V8_TARGET_ARCH_ARM | 1246 #endif // V8_TARGET_ARCH_ARM |
OLD | NEW |