Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(311)

Side by Side Diff: src/regexp/arm64/regexp-macro-assembler-arm64.cc

Issue 2900683002: [compiler] Delay allocation of code-embedded heap numbers. (Closed)
Patch Set: Fix rebase. Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 #if V8_TARGET_ARCH_ARM64 5 #if V8_TARGET_ARCH_ARM64
6 6
7 #include "src/regexp/arm64/regexp-macro-assembler-arm64.h" 7 #include "src/regexp/arm64/regexp-macro-assembler-arm64.h"
8 8
9 #include "src/arm64/macro-assembler-arm64-inl.h" 9 #include "src/arm64/macro-assembler-arm64-inl.h"
10 #include "src/code-stubs.h" 10 #include "src/code-stubs.h"
(...skipping 1060 matching lines...) Expand 10 before | Expand all | Expand 10 after
1071 __ Ret(); 1071 __ Ret();
1072 } 1072 }
1073 1073
1074 if (exit_with_exception.is_linked()) { 1074 if (exit_with_exception.is_linked()) {
1075 __ Bind(&exit_with_exception); 1075 __ Bind(&exit_with_exception);
1076 __ Mov(w0, EXCEPTION); 1076 __ Mov(w0, EXCEPTION);
1077 __ B(&return_w0); 1077 __ B(&return_w0);
1078 } 1078 }
1079 1079
1080 CodeDesc code_desc; 1080 CodeDesc code_desc;
1081 masm_->GetCode(&code_desc); 1081 masm_->GetCode(isolate(), &code_desc);
1082 Handle<Code> code = isolate()->factory()->NewCode( 1082 Handle<Code> code = isolate()->factory()->NewCode(
1083 code_desc, Code::ComputeFlags(Code::REGEXP), masm_->CodeObject()); 1083 code_desc, Code::ComputeFlags(Code::REGEXP), masm_->CodeObject());
1084 PROFILE(masm_->isolate(), 1084 PROFILE(masm_->isolate(),
1085 RegExpCodeCreateEvent(AbstractCode::cast(*code), *source)); 1085 RegExpCodeCreateEvent(AbstractCode::cast(*code), *source));
1086 return Handle<HeapObject>::cast(code); 1086 return Handle<HeapObject>::cast(code);
1087 } 1087 }
1088 1088
1089 1089
1090 void RegExpMacroAssemblerARM64::GoTo(Label* to) { 1090 void RegExpMacroAssemblerARM64::GoTo(Label* to) {
1091 BranchOrBacktrack(al, to); 1091 BranchOrBacktrack(al, to);
(...skipping 557 matching lines...) Expand 10 before | Expand all | Expand 10 after
1649 } 1649 }
1650 } 1650 }
1651 } 1651 }
1652 1652
1653 #endif // V8_INTERPRETED_REGEXP 1653 #endif // V8_INTERPRETED_REGEXP
1654 1654
1655 } // namespace internal 1655 } // namespace internal
1656 } // namespace v8 1656 } // namespace v8
1657 1657
1658 #endif // V8_TARGET_ARCH_ARM64 1658 #endif // V8_TARGET_ARCH_ARM64
OLDNEW
« no previous file with comments | « src/regexp/arm/regexp-macro-assembler-arm.cc ('k') | src/regexp/ia32/regexp-macro-assembler-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698