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

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

Issue 2160533003: MIPS: Fix deoptimization failure in WordCompare (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 | « no previous file | src/full-codegen/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 #if V8_TARGET_ARCH_MIPS 5 #if V8_TARGET_ARCH_MIPS
6 6
7 // Note on Mips implementation: 7 // Note on Mips implementation:
8 // 8 //
9 // The result_register() for mips is the 'v0' register, which is defined 9 // The result_register() for mips is the 'v0' register, which is defined
10 // by the ABI to contain function return values. However, the first 10 // by the ABI to contain function return values. However, the first
(...skipping 718 matching lines...) Expand 10 before | Expand all | Expand 10 after
729 // Only prepare for bailouts before splits if we're in a test 729 // Only prepare for bailouts before splits if we're in a test
730 // context. Otherwise, we let the Visit function deal with the 730 // context. Otherwise, we let the Visit function deal with the
731 // preparation to avoid preparing with the same AST id twice. 731 // preparation to avoid preparing with the same AST id twice.
732 if (!context()->IsTest()) return; 732 if (!context()->IsTest()) return;
733 733
734 Label skip; 734 Label skip;
735 if (should_normalize) __ Branch(&skip); 735 if (should_normalize) __ Branch(&skip);
736 PrepareForBailout(expr, BailoutState::TOS_REGISTER); 736 PrepareForBailout(expr, BailoutState::TOS_REGISTER);
737 if (should_normalize) { 737 if (should_normalize) {
738 __ LoadRoot(t0, Heap::kTrueValueRootIndex); 738 __ LoadRoot(t0, Heap::kTrueValueRootIndex);
739 Split(eq, a0, Operand(t0), if_true, if_false, NULL); 739 Split(eq, v0, Operand(t0), if_true, if_false, NULL);
740 __ bind(&skip); 740 __ bind(&skip);
741 } 741 }
742 } 742 }
743 743
744 744
745 void FullCodeGenerator::EmitDebugCheckDeclarationContext(Variable* variable) { 745 void FullCodeGenerator::EmitDebugCheckDeclarationContext(Variable* variable) {
746 // The variable in the declaration always resides in the current function 746 // The variable in the declaration always resides in the current function
747 // context. 747 // context.
748 DCHECK_EQ(0, scope()->ContextChainLength(variable->scope())); 748 DCHECK_EQ(0, scope()->ContextChainLength(variable->scope()));
749 if (FLAG_debug_code) { 749 if (FLAG_debug_code) {
(...skipping 3037 matching lines...) Expand 10 before | Expand all | Expand 10 after
3787 reinterpret_cast<uint32_t>( 3787 reinterpret_cast<uint32_t>(
3788 isolate->builtins()->OnStackReplacement()->entry())); 3788 isolate->builtins()->OnStackReplacement()->entry()));
3789 return ON_STACK_REPLACEMENT; 3789 return ON_STACK_REPLACEMENT;
3790 } 3790 }
3791 3791
3792 3792
3793 } // namespace internal 3793 } // namespace internal
3794 } // namespace v8 3794 } // namespace v8
3795 3795
3796 #endif // V8_TARGET_ARCH_MIPS 3796 #endif // V8_TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « no previous file | src/full-codegen/mips64/full-codegen-mips64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698