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

Side by Side Diff: src/full-codegen/s390/full-codegen-s390.cc

Issue 2153783002: [fullcode] Restore context after calling ToNumber builtin. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 5 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/full-codegen/ppc/full-codegen-ppc.cc ('k') | src/full-codegen/x64/full-codegen-x64.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 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 #if V8_TARGET_ARCH_S390 5 #if V8_TARGET_ARCH_S390
6 6
7 #include "src/ast/scopes.h" 7 #include "src/ast/scopes.h"
8 #include "src/code-factory.h" 8 #include "src/code-factory.h"
9 #include "src/code-stubs.h" 9 #include "src/code-stubs.h"
10 #include "src/codegen.h" 10 #include "src/codegen.h"
(...skipping 3188 matching lines...) Expand 10 before | Expand all | Expand 10 after
3199 __ AddAndCheckForOverflow(r2, r2, scratch1, scratch2, r0); 3199 __ AddAndCheckForOverflow(r2, r2, scratch1, scratch2, r0);
3200 __ BranchOnNoOverflow(&done); 3200 __ BranchOnNoOverflow(&done);
3201 // Call stub. Undo operation first. 3201 // Call stub. Undo operation first.
3202 __ SubP(r2, r2, scratch1); 3202 __ SubP(r2, r2, scratch1);
3203 __ b(&stub_call); 3203 __ b(&stub_call);
3204 __ bind(&slow); 3204 __ bind(&slow);
3205 } 3205 }
3206 3206
3207 // Convert old value into a number. 3207 // Convert old value into a number.
3208 __ Call(isolate()->builtins()->ToNumber(), RelocInfo::CODE_TARGET); 3208 __ Call(isolate()->builtins()->ToNumber(), RelocInfo::CODE_TARGET);
3209 RestoreContext();
3209 PrepareForBailoutForId(expr->ToNumberId(), BailoutState::TOS_REGISTER); 3210 PrepareForBailoutForId(expr->ToNumberId(), BailoutState::TOS_REGISTER);
3210 3211
3211 // Save result for postfix expressions. 3212 // Save result for postfix expressions.
3212 if (expr->is_postfix()) { 3213 if (expr->is_postfix()) {
3213 if (!context()->IsEffect()) { 3214 if (!context()->IsEffect()) {
3214 // Save the result on the stack. If we have a named or keyed property 3215 // Save the result on the stack. If we have a named or keyed property
3215 // we store the result under the receiver that is currently on top 3216 // we store the result under the receiver that is currently on top
3216 // of the stack. 3217 // of the stack.
3217 switch (assign_type) { 3218 switch (assign_type) {
3218 case VARIABLE: 3219 case VARIABLE:
(...skipping 461 matching lines...) Expand 10 before | Expand all | Expand 10 after
3680 DCHECK(kOSRBranchInstruction == br_instr); 3681 DCHECK(kOSRBranchInstruction == br_instr);
3681 3682
3682 DCHECK(interrupt_address == 3683 DCHECK(interrupt_address ==
3683 isolate->builtins()->OnStackReplacement()->entry()); 3684 isolate->builtins()->OnStackReplacement()->entry());
3684 return ON_STACK_REPLACEMENT; 3685 return ON_STACK_REPLACEMENT;
3685 } 3686 }
3686 3687
3687 } // namespace internal 3688 } // namespace internal
3688 } // namespace v8 3689 } // namespace v8
3689 #endif // V8_TARGET_ARCH_S390 3690 #endif // V8_TARGET_ARCH_S390
OLDNEW
« no previous file with comments | « src/full-codegen/ppc/full-codegen-ppc.cc ('k') | src/full-codegen/x64/full-codegen-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698