| 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_X64 | 7 #if V8_TARGET_ARCH_X64 |
| 8 | 8 |
| 9 #include "src/cpu-profiler.h" | 9 #include "src/cpu-profiler.h" |
| 10 #include "src/log.h" | 10 #include "src/log.h" |
| (...skipping 962 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 973 | 973 |
| 974 FixupCodeRelativePositions(); | 974 FixupCodeRelativePositions(); |
| 975 | 975 |
| 976 CodeDesc code_desc; | 976 CodeDesc code_desc; |
| 977 masm_.GetCode(&code_desc); | 977 masm_.GetCode(&code_desc); |
| 978 Isolate* isolate = this->isolate(); | 978 Isolate* isolate = this->isolate(); |
| 979 Handle<Code> code = isolate->factory()->NewCode( | 979 Handle<Code> code = isolate->factory()->NewCode( |
| 980 code_desc, Code::ComputeFlags(Code::REGEXP), | 980 code_desc, Code::ComputeFlags(Code::REGEXP), |
| 981 masm_.CodeObject()); | 981 masm_.CodeObject()); |
| 982 PROFILE(isolate, RegExpCodeCreateEvent(*code, *source)); | 982 PROFILE(isolate, RegExpCodeCreateEvent(*code, *source)); |
| 983 isolate->CodeCreateEvent(*code, *source); |
| 983 return Handle<HeapObject>::cast(code); | 984 return Handle<HeapObject>::cast(code); |
| 984 } | 985 } |
| 985 | 986 |
| 986 | 987 |
| 987 void RegExpMacroAssemblerX64::GoTo(Label* to) { | 988 void RegExpMacroAssemblerX64::GoTo(Label* to) { |
| 988 BranchOrBacktrack(no_condition, to); | 989 BranchOrBacktrack(no_condition, to); |
| 989 } | 990 } |
| 990 | 991 |
| 991 | 992 |
| 992 void RegExpMacroAssemblerX64::IfRegisterGE(int reg, | 993 void RegExpMacroAssemblerX64::IfRegisterGE(int reg, |
| (...skipping 442 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1435 } | 1436 } |
| 1436 } | 1437 } |
| 1437 | 1438 |
| 1438 #undef __ | 1439 #undef __ |
| 1439 | 1440 |
| 1440 #endif // V8_INTERPRETED_REGEXP | 1441 #endif // V8_INTERPRETED_REGEXP |
| 1441 | 1442 |
| 1442 }} // namespace v8::internal | 1443 }} // namespace v8::internal |
| 1443 | 1444 |
| 1444 #endif // V8_TARGET_ARCH_X64 | 1445 #endif // V8_TARGET_ARCH_X64 |
| OLD | NEW |