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

Side by Side Diff: src/regexp/mips/regexp-macro-assembler-mips.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_MIPS 5 #if V8_TARGET_ARCH_MIPS
6 6
7 #include "src/regexp/mips/regexp-macro-assembler-mips.h" 7 #include "src/regexp/mips/regexp-macro-assembler-mips.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 880 matching lines...) Expand 10 before | Expand all | Expand 10 after
891 if (exit_with_exception.is_linked()) { 891 if (exit_with_exception.is_linked()) {
892 // If any of the code above needed to exit with an exception. 892 // If any of the code above needed to exit with an exception.
893 __ bind(&exit_with_exception); 893 __ bind(&exit_with_exception);
894 // Exit with Result EXCEPTION(-1) to signal thrown exception. 894 // Exit with Result EXCEPTION(-1) to signal thrown exception.
895 __ li(v0, Operand(EXCEPTION)); 895 __ li(v0, Operand(EXCEPTION));
896 __ jmp(&return_v0); 896 __ jmp(&return_v0);
897 } 897 }
898 } 898 }
899 899
900 CodeDesc code_desc; 900 CodeDesc code_desc;
901 masm_->GetCode(&code_desc); 901 masm_->GetCode(isolate(), &code_desc);
902 Handle<Code> code = isolate()->factory()->NewCode( 902 Handle<Code> code = isolate()->factory()->NewCode(
903 code_desc, Code::ComputeFlags(Code::REGEXP), masm_->CodeObject()); 903 code_desc, Code::ComputeFlags(Code::REGEXP), masm_->CodeObject());
904 LOG(masm_->isolate(), 904 LOG(masm_->isolate(),
905 RegExpCodeCreateEvent(AbstractCode::cast(*code), *source)); 905 RegExpCodeCreateEvent(AbstractCode::cast(*code), *source));
906 return Handle<HeapObject>::cast(code); 906 return Handle<HeapObject>::cast(code);
907 } 907 }
908 908
909 909
910 void RegExpMacroAssemblerMIPS::GoTo(Label* to) { 910 void RegExpMacroAssemblerMIPS::GoTo(Label* to) {
911 if (to == NULL) { 911 if (to == NULL) {
(...skipping 376 matching lines...) Expand 10 before | Expand all | Expand 10 after
1288 1288
1289 1289
1290 #undef __ 1290 #undef __
1291 1291
1292 #endif // V8_INTERPRETED_REGEXP 1292 #endif // V8_INTERPRETED_REGEXP
1293 1293
1294 } // namespace internal 1294 } // namespace internal
1295 } // namespace v8 1295 } // namespace v8
1296 1296
1297 #endif // V8_TARGET_ARCH_MIPS 1297 #endif // V8_TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « src/regexp/ia32/regexp-macro-assembler-ia32.cc ('k') | src/regexp/mips64/regexp-macro-assembler-mips64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698