| 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/code-stubs.h" | 9 #include "src/code-stubs.h" |
| 10 #include "src/log.h" | 10 #include "src/log.h" |
| (...skipping 873 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 884 __ bind(&exit_with_exception); | 884 __ bind(&exit_with_exception); |
| 885 // Exit with Result EXCEPTION(-1) to signal thrown exception. | 885 // Exit with Result EXCEPTION(-1) to signal thrown exception. |
| 886 __ mov(r0, Operand(EXCEPTION)); | 886 __ mov(r0, Operand(EXCEPTION)); |
| 887 __ jmp(&return_r0); | 887 __ jmp(&return_r0); |
| 888 } | 888 } |
| 889 | 889 |
| 890 CodeDesc code_desc; | 890 CodeDesc code_desc; |
| 891 masm_->GetCode(&code_desc); | 891 masm_->GetCode(&code_desc); |
| 892 Handle<Code> code = isolate()->factory()->NewCode( | 892 Handle<Code> code = isolate()->factory()->NewCode( |
| 893 code_desc, Code::ComputeFlags(Code::REGEXP), masm_->CodeObject()); | 893 code_desc, Code::ComputeFlags(Code::REGEXP), masm_->CodeObject()); |
| 894 PROFILE(masm_->isolate(), RegExpCodeCreateEvent(*code, *source)); | 894 PROFILE(masm_->isolate(), |
| 895 RegExpCodeCreateEvent(AbstractCode::cast(*code), *source)); |
| 895 return Handle<HeapObject>::cast(code); | 896 return Handle<HeapObject>::cast(code); |
| 896 } | 897 } |
| 897 | 898 |
| 898 | 899 |
| 899 void RegExpMacroAssemblerARM::GoTo(Label* to) { | 900 void RegExpMacroAssemblerARM::GoTo(Label* to) { |
| 900 BranchOrBacktrack(al, to); | 901 BranchOrBacktrack(al, to); |
| 901 } | 902 } |
| 902 | 903 |
| 903 | 904 |
| 904 void RegExpMacroAssemblerARM::IfRegisterGE(int reg, | 905 void RegExpMacroAssemblerARM::IfRegisterGE(int reg, |
| (...skipping 338 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1243 | 1244 |
| 1244 | 1245 |
| 1245 #undef __ | 1246 #undef __ |
| 1246 | 1247 |
| 1247 #endif // V8_INTERPRETED_REGEXP | 1248 #endif // V8_INTERPRETED_REGEXP |
| 1248 | 1249 |
| 1249 } // namespace internal | 1250 } // namespace internal |
| 1250 } // namespace v8 | 1251 } // namespace v8 |
| 1251 | 1252 |
| 1252 #endif // V8_TARGET_ARCH_ARM | 1253 #endif // V8_TARGET_ARCH_ARM |
| OLD | NEW |