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

Side by Side Diff: src/regexp/s390/regexp-macro-assembler-s390.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/regexp/ppc/regexp-macro-assembler-ppc.cc ('k') | src/s390/assembler-s390.h » ('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 2015 the V8 project authors. All rights reserved. 1 // Copyright 2015 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 #include "src/v8.h" 5 #include "src/v8.h"
6 6
7 #if V8_TARGET_ARCH_S390 7 #if V8_TARGET_ARCH_S390
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 910 matching lines...) Expand 10 before | Expand all | Expand 10 after
921 921
922 if (exit_with_exception.is_linked()) { 922 if (exit_with_exception.is_linked()) {
923 // If any of the code above needed to exit with an exception. 923 // If any of the code above needed to exit with an exception.
924 __ bind(&exit_with_exception); 924 __ bind(&exit_with_exception);
925 // Exit with Result EXCEPTION(-1) to signal thrown exception. 925 // Exit with Result EXCEPTION(-1) to signal thrown exception.
926 __ LoadImmP(r2, Operand(EXCEPTION)); 926 __ LoadImmP(r2, Operand(EXCEPTION));
927 __ b(&return_r2); 927 __ b(&return_r2);
928 } 928 }
929 929
930 CodeDesc code_desc; 930 CodeDesc code_desc;
931 masm_->GetCode(&code_desc); 931 masm_->GetCode(isolate(), &code_desc);
932 Handle<Code> code = isolate()->factory()->NewCode( 932 Handle<Code> code = isolate()->factory()->NewCode(
933 code_desc, Code::ComputeFlags(Code::REGEXP), masm_->CodeObject()); 933 code_desc, Code::ComputeFlags(Code::REGEXP), masm_->CodeObject());
934 PROFILE(masm_->isolate(), 934 PROFILE(masm_->isolate(),
935 RegExpCodeCreateEvent(AbstractCode::cast(*code), *source)); 935 RegExpCodeCreateEvent(AbstractCode::cast(*code), *source));
936 return Handle<HeapObject>::cast(code); 936 return Handle<HeapObject>::cast(code);
937 } 937 }
938 938
939 void RegExpMacroAssemblerS390::GoTo(Label* to) { BranchOrBacktrack(al, to); } 939 void RegExpMacroAssemblerS390::GoTo(Label* to) { BranchOrBacktrack(al, to); }
940 940
941 void RegExpMacroAssemblerS390::IfRegisterGE(int reg, int comparand, 941 void RegExpMacroAssemblerS390::IfRegisterGE(int reg, int comparand,
(...skipping 331 matching lines...) Expand 10 before | Expand all | Expand 10 after
1273 } 1273 }
1274 } 1274 }
1275 1275
1276 #undef __ 1276 #undef __
1277 1277
1278 #endif // V8_INTERPRETED_REGEXP 1278 #endif // V8_INTERPRETED_REGEXP
1279 } // namespace internal 1279 } // namespace internal
1280 } // namespace v8 1280 } // namespace v8
1281 1281
1282 #endif // V8_TARGET_ARCH_S390 1282 #endif // V8_TARGET_ARCH_S390
OLDNEW
« no previous file with comments | « src/regexp/ppc/regexp-macro-assembler-ppc.cc ('k') | src/s390/assembler-s390.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698