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

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

Issue 2929843002: PPC/s390: [compiler] Delay allocation of code-embedded heap numbers. (Closed)
Patch Set: missing codegen changes 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/ppc/codegen-ppc.cc ('k') | src/regexp/s390/regexp-macro-assembler-s390.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 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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_PPC 5 #if V8_TARGET_ARCH_PPC
6 6
7 #include "src/regexp/ppc/regexp-macro-assembler-ppc.h" 7 #include "src/regexp/ppc/regexp-macro-assembler-ppc.h"
8 8
9 #include "src/base/bits.h" 9 #include "src/base/bits.h"
10 #include "src/code-stubs.h" 10 #include "src/code-stubs.h"
(...skipping 914 matching lines...) Expand 10 before | Expand all | Expand 10 after
925 if (exit_with_exception.is_linked()) { 925 if (exit_with_exception.is_linked()) {
926 // If any of the code above needed to exit with an exception. 926 // If any of the code above needed to exit with an exception.
927 __ bind(&exit_with_exception); 927 __ bind(&exit_with_exception);
928 // Exit with Result EXCEPTION(-1) to signal thrown exception. 928 // Exit with Result EXCEPTION(-1) to signal thrown exception.
929 __ li(r3, Operand(EXCEPTION)); 929 __ li(r3, Operand(EXCEPTION));
930 __ b(&return_r3); 930 __ b(&return_r3);
931 } 931 }
932 } 932 }
933 933
934 CodeDesc code_desc; 934 CodeDesc code_desc;
935 masm_->GetCode(&code_desc); 935 masm_->GetCode(isolate(), &code_desc);
936 Handle<Code> code = isolate()->factory()->NewCode( 936 Handle<Code> code = isolate()->factory()->NewCode(
937 code_desc, Code::ComputeFlags(Code::REGEXP), masm_->CodeObject()); 937 code_desc, Code::ComputeFlags(Code::REGEXP), masm_->CodeObject());
938 PROFILE(masm_->isolate(), 938 PROFILE(masm_->isolate(),
939 RegExpCodeCreateEvent(AbstractCode::cast(*code), *source)); 939 RegExpCodeCreateEvent(AbstractCode::cast(*code), *source));
940 return Handle<HeapObject>::cast(code); 940 return Handle<HeapObject>::cast(code);
941 } 941 }
942 942
943 943
944 void RegExpMacroAssemblerPPC::GoTo(Label* to) { BranchOrBacktrack(al, to); } 944 void RegExpMacroAssemblerPPC::GoTo(Label* to) { BranchOrBacktrack(al, to); }
945 945
(...skipping 376 matching lines...) Expand 10 before | Expand all | Expand 10 after
1322 } 1322 }
1323 1323
1324 1324
1325 #undef __ 1325 #undef __
1326 1326
1327 #endif // V8_INTERPRETED_REGEXP 1327 #endif // V8_INTERPRETED_REGEXP
1328 } // namespace internal 1328 } // namespace internal
1329 } // namespace v8 1329 } // namespace v8
1330 1330
1331 #endif // V8_TARGET_ARCH_PPC 1331 #endif // V8_TARGET_ARCH_PPC
OLDNEW
« no previous file with comments | « src/ppc/codegen-ppc.cc ('k') | src/regexp/s390/regexp-macro-assembler-s390.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698