| 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_X64 | 5 #if V8_TARGET_ARCH_X64 |
| 6 | 6 |
| 7 #include "src/regexp/x64/regexp-macro-assembler-x64.h" | 7 #include "src/regexp/x64/regexp-macro-assembler-x64.h" |
| 8 | 8 |
| 9 #include "src/log.h" | 9 #include "src/log.h" |
| 10 #include "src/macro-assembler.h" | 10 #include "src/macro-assembler.h" |
| (...skipping 990 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1001 } | 1001 } |
| 1002 | 1002 |
| 1003 FixupCodeRelativePositions(); | 1003 FixupCodeRelativePositions(); |
| 1004 | 1004 |
| 1005 CodeDesc code_desc; | 1005 CodeDesc code_desc; |
| 1006 masm_.GetCode(&code_desc); | 1006 masm_.GetCode(&code_desc); |
| 1007 Isolate* isolate = this->isolate(); | 1007 Isolate* isolate = this->isolate(); |
| 1008 Handle<Code> code = isolate->factory()->NewCode( | 1008 Handle<Code> code = isolate->factory()->NewCode( |
| 1009 code_desc, Code::ComputeFlags(Code::REGEXP), | 1009 code_desc, Code::ComputeFlags(Code::REGEXP), |
| 1010 masm_.CodeObject()); | 1010 masm_.CodeObject()); |
| 1011 PROFILE(isolate, RegExpCodeCreateEvent(*code, *source)); | 1011 PROFILE(isolate, RegExpCodeCreateEvent(AbstractCode::cast(*code), *source)); |
| 1012 return Handle<HeapObject>::cast(code); | 1012 return Handle<HeapObject>::cast(code); |
| 1013 } | 1013 } |
| 1014 | 1014 |
| 1015 | 1015 |
| 1016 void RegExpMacroAssemblerX64::GoTo(Label* to) { | 1016 void RegExpMacroAssemblerX64::GoTo(Label* to) { |
| 1017 BranchOrBacktrack(no_condition, to); | 1017 BranchOrBacktrack(no_condition, to); |
| 1018 } | 1018 } |
| 1019 | 1019 |
| 1020 | 1020 |
| 1021 void RegExpMacroAssemblerX64::IfRegisterGE(int reg, | 1021 void RegExpMacroAssemblerX64::IfRegisterGE(int reg, |
| (...skipping 372 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1394 } | 1394 } |
| 1395 | 1395 |
| 1396 #undef __ | 1396 #undef __ |
| 1397 | 1397 |
| 1398 #endif // V8_INTERPRETED_REGEXP | 1398 #endif // V8_INTERPRETED_REGEXP |
| 1399 | 1399 |
| 1400 } // namespace internal | 1400 } // namespace internal |
| 1401 } // namespace v8 | 1401 } // namespace v8 |
| 1402 | 1402 |
| 1403 #endif // V8_TARGET_ARCH_X64 | 1403 #endif // V8_TARGET_ARCH_X64 |
| OLD | NEW |