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

Side by Side Diff: src/full-codegen/ppc/full-codegen-ppc.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
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/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 3267 matching lines...) Expand 10 before | Expand all | Expand 10 after
3278 __ AddAndCheckForOverflow(r3, r3, scratch1, scratch2, r0); 3278 __ AddAndCheckForOverflow(r3, r3, scratch1, scratch2, r0);
3279 __ BranchOnNoOverflow(&done); 3279 __ BranchOnNoOverflow(&done);
3280 // Call stub. Undo operation first. 3280 // Call stub. Undo operation first.
3281 __ sub(r3, r3, scratch1); 3281 __ sub(r3, r3, scratch1);
3282 __ b(&stub_call); 3282 __ b(&stub_call);
3283 __ bind(&slow); 3283 __ bind(&slow);
3284 } 3284 }
3285 3285
3286 // Convert old value into a number. 3286 // Convert old value into a number.
3287 __ Call(isolate()->builtins()->ToNumber(), RelocInfo::CODE_TARGET); 3287 __ Call(isolate()->builtins()->ToNumber(), RelocInfo::CODE_TARGET);
3288 RestoreContext();
3288 PrepareForBailoutForId(expr->ToNumberId(), BailoutState::TOS_REGISTER); 3289 PrepareForBailoutForId(expr->ToNumberId(), BailoutState::TOS_REGISTER);
3289 3290
3290 // Save result for postfix expressions. 3291 // Save result for postfix expressions.
3291 if (expr->is_postfix()) { 3292 if (expr->is_postfix()) {
3292 if (!context()->IsEffect()) { 3293 if (!context()->IsEffect()) {
3293 // Save the result on the stack. If we have a named or keyed property 3294 // Save the result on the stack. If we have a named or keyed property
3294 // we store the result under the receiver that is currently on top 3295 // we store the result under the receiver that is currently on top
3295 // of the stack. 3296 // of the stack.
3296 switch (assign_type) { 3297 switch (assign_type) {
3297 case VARIABLE: 3298 case VARIABLE:
(...skipping 468 matching lines...) Expand 10 before | Expand all | Expand 10 after
3766 3767
3767 DCHECK(Assembler::IsCrSet(Assembler::instr_at(cmp_address))); 3768 DCHECK(Assembler::IsCrSet(Assembler::instr_at(cmp_address)));
3768 3769
3769 DCHECK(interrupt_address == 3770 DCHECK(interrupt_address ==
3770 isolate->builtins()->OnStackReplacement()->entry()); 3771 isolate->builtins()->OnStackReplacement()->entry());
3771 return ON_STACK_REPLACEMENT; 3772 return ON_STACK_REPLACEMENT;
3772 } 3773 }
3773 } // namespace internal 3774 } // namespace internal
3774 } // namespace v8 3775 } // namespace v8
3775 #endif // V8_TARGET_ARCH_PPC 3776 #endif // V8_TARGET_ARCH_PPC
OLDNEW
« no previous file with comments | « src/full-codegen/mips64/full-codegen-mips64.cc ('k') | src/full-codegen/s390/full-codegen-s390.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698