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

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

Issue 841443004: [turbofan] Allow deoptimization for JSToNumber operator. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebase Created 5 years, 11 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/ia32/full-codegen-ia32.cc ('k') | src/mips64/full-codegen-mips64.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 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 #include "src/v8.h" 5 #include "src/v8.h"
6 6
7 #if V8_TARGET_ARCH_MIPS 7 #if V8_TARGET_ARCH_MIPS
8 8
9 // Note on Mips implementation: 9 // Note on Mips implementation:
10 // 10 //
(...skipping 4663 matching lines...) Expand 10 before | Expand all | Expand 10 after
4674 __ li(scratch1, Operand(Smi::FromInt(count_value))); 4674 __ li(scratch1, Operand(Smi::FromInt(count_value)));
4675 __ AdduAndCheckForOverflow(v0, v0, scratch1, scratch2); 4675 __ AdduAndCheckForOverflow(v0, v0, scratch1, scratch2);
4676 __ BranchOnNoOverflow(&done, scratch2); 4676 __ BranchOnNoOverflow(&done, scratch2);
4677 // Call stub. Undo operation first. 4677 // Call stub. Undo operation first.
4678 __ Move(v0, a0); 4678 __ Move(v0, a0);
4679 __ jmp(&stub_call); 4679 __ jmp(&stub_call);
4680 __ bind(&slow); 4680 __ bind(&slow);
4681 } 4681 }
4682 ToNumberStub convert_stub(isolate()); 4682 ToNumberStub convert_stub(isolate());
4683 __ CallStub(&convert_stub); 4683 __ CallStub(&convert_stub);
4684 PrepareForBailoutForId(expr->ToNumberId(), TOS_REG);
4684 4685
4685 // Save result for postfix expressions. 4686 // Save result for postfix expressions.
4686 if (expr->is_postfix()) { 4687 if (expr->is_postfix()) {
4687 if (!context()->IsEffect()) { 4688 if (!context()->IsEffect()) {
4688 // Save the result on the stack. If we have a named or keyed property 4689 // Save the result on the stack. If we have a named or keyed property
4689 // we store the result under the receiver that is currently on top 4690 // we store the result under the receiver that is currently on top
4690 // of the stack. 4691 // of the stack.
4691 switch (assign_type) { 4692 switch (assign_type) {
4692 case VARIABLE: 4693 case VARIABLE:
4693 __ push(v0); 4694 __ push(v0);
(...skipping 543 matching lines...) Expand 10 before | Expand all | Expand 10 after
5237 Assembler::target_address_at(pc_immediate_load_address)) == 5238 Assembler::target_address_at(pc_immediate_load_address)) ==
5238 reinterpret_cast<uint32_t>( 5239 reinterpret_cast<uint32_t>(
5239 isolate->builtins()->OsrAfterStackCheck()->entry())); 5240 isolate->builtins()->OsrAfterStackCheck()->entry()));
5240 return OSR_AFTER_STACK_CHECK; 5241 return OSR_AFTER_STACK_CHECK;
5241 } 5242 }
5242 5243
5243 5244
5244 } } // namespace v8::internal 5245 } } // namespace v8::internal
5245 5246
5246 #endif // V8_TARGET_ARCH_MIPS 5247 #endif // V8_TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « src/ia32/full-codegen-ia32.cc ('k') | src/mips64/full-codegen-mips64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698