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

Side by Side Diff: src/regexp/mips64/regexp-macro-assembler-mips64.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 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_MIPS64 5 #if V8_TARGET_ARCH_MIPS64
6 6
7 #include "src/regexp/mips64/regexp-macro-assembler-mips64.h" 7 #include "src/regexp/mips64/regexp-macro-assembler-mips64.h"
8 8
9 #include "src/code-stubs.h" 9 #include "src/code-stubs.h"
10 #include "src/log.h" 10 #include "src/log.h"
(...skipping 918 matching lines...) Expand 10 before | Expand all | Expand 10 after
929 if (exit_with_exception.is_linked()) { 929 if (exit_with_exception.is_linked()) {
930 // If any of the code above needed to exit with an exception. 930 // If any of the code above needed to exit with an exception.
931 __ bind(&exit_with_exception); 931 __ bind(&exit_with_exception);
932 // Exit with Result EXCEPTION(-1) to signal thrown exception. 932 // Exit with Result EXCEPTION(-1) to signal thrown exception.
933 __ li(v0, Operand(EXCEPTION)); 933 __ li(v0, Operand(EXCEPTION));
934 __ jmp(&return_v0); 934 __ jmp(&return_v0);
935 } 935 }
936 } 936 }
937 937
938 CodeDesc code_desc; 938 CodeDesc code_desc;
939 masm_->GetCode(&code_desc); 939 masm_->GetCode(isolate(), &code_desc);
940 Handle<Code> code = isolate()->factory()->NewCode( 940 Handle<Code> code = isolate()->factory()->NewCode(
941 code_desc, Code::ComputeFlags(Code::REGEXP), masm_->CodeObject()); 941 code_desc, Code::ComputeFlags(Code::REGEXP), masm_->CodeObject());
942 LOG(masm_->isolate(), 942 LOG(masm_->isolate(),
943 RegExpCodeCreateEvent(AbstractCode::cast(*code), *source)); 943 RegExpCodeCreateEvent(AbstractCode::cast(*code), *source));
944 return Handle<HeapObject>::cast(code); 944 return Handle<HeapObject>::cast(code);
945 } 945 }
946 946
947 947
948 void RegExpMacroAssemblerMIPS::GoTo(Label* to) { 948 void RegExpMacroAssemblerMIPS::GoTo(Label* to) {
949 if (to == NULL) { 949 if (to == NULL) {
(...skipping 375 matching lines...) Expand 10 before | Expand all | Expand 10 after
1325 } 1325 }
1326 1326
1327 #undef __ 1327 #undef __
1328 1328
1329 #endif // V8_INTERPRETED_REGEXP 1329 #endif // V8_INTERPRETED_REGEXP
1330 1330
1331 } // namespace internal 1331 } // namespace internal
1332 } // namespace v8 1332 } // namespace v8
1333 1333
1334 #endif // V8_TARGET_ARCH_MIPS64 1334 #endif // V8_TARGET_ARCH_MIPS64
OLDNEW
« no previous file with comments | « src/regexp/mips/regexp-macro-assembler-mips.cc ('k') | src/regexp/x64/regexp-macro-assembler-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698