| OLD | NEW |
| 1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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_ARM64 | 7 #if V8_TARGET_ARCH_ARM64 |
| 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 1023 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1034 __ Bind(&exit_with_exception); | 1034 __ Bind(&exit_with_exception); |
| 1035 __ Mov(w0, EXCEPTION); | 1035 __ Mov(w0, EXCEPTION); |
| 1036 __ B(&return_w0); | 1036 __ B(&return_w0); |
| 1037 } | 1037 } |
| 1038 | 1038 |
| 1039 CodeDesc code_desc; | 1039 CodeDesc code_desc; |
| 1040 masm_->GetCode(&code_desc); | 1040 masm_->GetCode(&code_desc); |
| 1041 Handle<Code> code = isolate()->factory()->NewCode( | 1041 Handle<Code> code = isolate()->factory()->NewCode( |
| 1042 code_desc, Code::ComputeFlags(Code::REGEXP), masm_->CodeObject()); | 1042 code_desc, Code::ComputeFlags(Code::REGEXP), masm_->CodeObject()); |
| 1043 PROFILE(masm_->isolate(), RegExpCodeCreateEvent(*code, *source)); | 1043 PROFILE(masm_->isolate(), RegExpCodeCreateEvent(*code, *source)); |
| 1044 masm_->isolate()->CodeCreateEvent(*code, *source); |
| 1044 return Handle<HeapObject>::cast(code); | 1045 return Handle<HeapObject>::cast(code); |
| 1045 } | 1046 } |
| 1046 | 1047 |
| 1047 | 1048 |
| 1048 void RegExpMacroAssemblerARM64::GoTo(Label* to) { | 1049 void RegExpMacroAssemblerARM64::GoTo(Label* to) { |
| 1049 BranchOrBacktrack(al, to); | 1050 BranchOrBacktrack(al, to); |
| 1050 } | 1051 } |
| 1051 | 1052 |
| 1052 void RegExpMacroAssemblerARM64::IfRegisterGE(int reg, int comparand, | 1053 void RegExpMacroAssemblerARM64::IfRegisterGE(int reg, int comparand, |
| 1053 Label* if_ge) { | 1054 Label* if_ge) { |
| (...skipping 645 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1699 __ Ldrh(current_character(), MemOperand(input_end(), offset, SXTW)); | 1700 __ Ldrh(current_character(), MemOperand(input_end(), offset, SXTW)); |
| 1700 } | 1701 } |
| 1701 } | 1702 } |
| 1702 } | 1703 } |
| 1703 | 1704 |
| 1704 #endif // V8_INTERPRETED_REGEXP | 1705 #endif // V8_INTERPRETED_REGEXP |
| 1705 | 1706 |
| 1706 }} // namespace v8::internal | 1707 }} // namespace v8::internal |
| 1707 | 1708 |
| 1708 #endif // V8_TARGET_ARCH_ARM64 | 1709 #endif // V8_TARGET_ARCH_ARM64 |
| OLD | NEW |