| 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 #include "src/v8.h" | 5 #include "src/v8.h" |
| 6 | 6 |
| 7 #if V8_TARGET_ARCH_ARM | 7 #if V8_TARGET_ARCH_ARM |
| 8 | 8 |
| 9 #include "src/code-stubs.h" | 9 #include "src/code-stubs.h" |
| 10 #include "src/cpu-profiler.h" | 10 #include "src/cpu-profiler.h" |
| (...skipping 832 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 843 // Exit with Result EXCEPTION(-1) to signal thrown exception. | 843 // Exit with Result EXCEPTION(-1) to signal thrown exception. |
| 844 __ mov(r0, Operand(EXCEPTION)); | 844 __ mov(r0, Operand(EXCEPTION)); |
| 845 __ jmp(&return_r0); | 845 __ jmp(&return_r0); |
| 846 } | 846 } |
| 847 | 847 |
| 848 CodeDesc code_desc; | 848 CodeDesc code_desc; |
| 849 masm_->GetCode(&code_desc); | 849 masm_->GetCode(&code_desc); |
| 850 Handle<Code> code = isolate()->factory()->NewCode( | 850 Handle<Code> code = isolate()->factory()->NewCode( |
| 851 code_desc, Code::ComputeFlags(Code::REGEXP), masm_->CodeObject()); | 851 code_desc, Code::ComputeFlags(Code::REGEXP), masm_->CodeObject()); |
| 852 PROFILE(masm_->isolate(), RegExpCodeCreateEvent(*code, *source)); | 852 PROFILE(masm_->isolate(), RegExpCodeCreateEvent(*code, *source)); |
| 853 masm_->isolate()->CodeCreateEvent(*code, *source); |
| 853 return Handle<HeapObject>::cast(code); | 854 return Handle<HeapObject>::cast(code); |
| 854 } | 855 } |
| 855 | 856 |
| 856 | 857 |
| 857 void RegExpMacroAssemblerARM::GoTo(Label* to) { | 858 void RegExpMacroAssemblerARM::GoTo(Label* to) { |
| 858 BranchOrBacktrack(al, to); | 859 BranchOrBacktrack(al, to); |
| 859 } | 860 } |
| 860 | 861 |
| 861 | 862 |
| 862 void RegExpMacroAssemblerARM::IfRegisterGE(int reg, | 863 void RegExpMacroAssemblerARM::IfRegisterGE(int reg, |
| (...skipping 407 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1270 } | 1271 } |
| 1271 | 1272 |
| 1272 | 1273 |
| 1273 #undef __ | 1274 #undef __ |
| 1274 | 1275 |
| 1275 #endif // V8_INTERPRETED_REGEXP | 1276 #endif // V8_INTERPRETED_REGEXP |
| 1276 | 1277 |
| 1277 }} // namespace v8::internal | 1278 }} // namespace v8::internal |
| 1278 | 1279 |
| 1279 #endif // V8_TARGET_ARCH_ARM | 1280 #endif // V8_TARGET_ARCH_ARM |
| OLD | NEW |