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

Side by Side Diff: src/regexp/arm/regexp-macro-assembler-arm.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
« no previous file with comments | « src/mips64/codegen-mips64.cc ('k') | src/regexp/arm64/regexp-macro-assembler-arm64.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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_ARM 5 #if V8_TARGET_ARCH_ARM
6 6
7 #include "src/regexp/arm/regexp-macro-assembler-arm.h" 7 #include "src/regexp/arm/regexp-macro-assembler-arm.h"
8 8
9 #include "src/assembler-inl.h" 9 #include "src/assembler-inl.h"
10 #include "src/code-stubs.h" 10 #include "src/code-stubs.h"
(...skipping 868 matching lines...) Expand 10 before | Expand all | Expand 10 after
879 879
880 if (exit_with_exception.is_linked()) { 880 if (exit_with_exception.is_linked()) {
881 // If any of the code above needed to exit with an exception. 881 // If any of the code above needed to exit with an exception.
882 __ bind(&exit_with_exception); 882 __ bind(&exit_with_exception);
883 // Exit with Result EXCEPTION(-1) to signal thrown exception. 883 // Exit with Result EXCEPTION(-1) to signal thrown exception.
884 __ mov(r0, Operand(EXCEPTION)); 884 __ mov(r0, Operand(EXCEPTION));
885 __ jmp(&return_r0); 885 __ jmp(&return_r0);
886 } 886 }
887 887
888 CodeDesc code_desc; 888 CodeDesc code_desc;
889 masm_->GetCode(&code_desc); 889 masm_->GetCode(isolate(), &code_desc);
890 Handle<Code> code = isolate()->factory()->NewCode( 890 Handle<Code> code = isolate()->factory()->NewCode(
891 code_desc, Code::ComputeFlags(Code::REGEXP), masm_->CodeObject()); 891 code_desc, Code::ComputeFlags(Code::REGEXP), masm_->CodeObject());
892 PROFILE(masm_->isolate(), 892 PROFILE(masm_->isolate(),
893 RegExpCodeCreateEvent(AbstractCode::cast(*code), *source)); 893 RegExpCodeCreateEvent(AbstractCode::cast(*code), *source));
894 return Handle<HeapObject>::cast(code); 894 return Handle<HeapObject>::cast(code);
895 } 895 }
896 896
897 897
898 void RegExpMacroAssemblerARM::GoTo(Label* to) { 898 void RegExpMacroAssemblerARM::GoTo(Label* to) {
899 BranchOrBacktrack(al, to); 899 BranchOrBacktrack(al, to);
(...skipping 337 matching lines...) Expand 10 before | Expand all | Expand 10 after
1237 1237
1238 1238
1239 #undef __ 1239 #undef __
1240 1240
1241 #endif // V8_INTERPRETED_REGEXP 1241 #endif // V8_INTERPRETED_REGEXP
1242 1242
1243 } // namespace internal 1243 } // namespace internal
1244 } // namespace v8 1244 } // namespace v8
1245 1245
1246 #endif // V8_TARGET_ARCH_ARM 1246 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « src/mips64/codegen-mips64.cc ('k') | src/regexp/arm64/regexp-macro-assembler-arm64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698