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

Side by Side Diff: src/mips/code-stubs-mips.cc

Issue 1738153002: [turbofan] Don't use the CompareIC in JSGenericLowering. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Consistent SIMD.js equality Created 4 years, 9 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/interpreter/interpreter.cc ('k') | src/mips64/code-stubs-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 #include "src/base/bits.h" 7 #include "src/base/bits.h"
8 #include "src/bootstrapper.h" 8 #include "src/bootstrapper.h"
9 #include "src/code-stubs.h" 9 #include "src/code-stubs.h"
10 #include "src/codegen.h" 10 #include "src/codegen.h"
(...skipping 704 matching lines...) Expand 10 before | Expand all | Expand 10 after
715 StringHelper::GenerateCompareFlatOneByteStrings(masm, lhs, rhs, a2, a3, t0, 715 StringHelper::GenerateCompareFlatOneByteStrings(masm, lhs, rhs, a2, a3, t0,
716 t1); 716 t1);
717 } 717 }
718 // Never falls through to here. 718 // Never falls through to here.
719 719
720 __ bind(&slow); 720 __ bind(&slow);
721 if (cc == eq) { 721 if (cc == eq) {
722 { 722 {
723 FrameScope scope(masm, StackFrame::INTERNAL); 723 FrameScope scope(masm, StackFrame::INTERNAL);
724 __ Push(lhs, rhs); 724 __ Push(lhs, rhs);
725 __ CallRuntime(strict() ? Runtime::kStrictEquals : Runtime::kEquals); 725 __ CallRuntime(strict() ? Runtime::kStrictEqual : Runtime::kEqual);
726 } 726 }
727 // Turn true into 0 and false into some non-zero value. 727 // Turn true into 0 and false into some non-zero value.
728 STATIC_ASSERT(EQUAL == 0); 728 STATIC_ASSERT(EQUAL == 0);
729 __ LoadRoot(a0, Heap::kTrueValueRootIndex); 729 __ LoadRoot(a0, Heap::kTrueValueRootIndex);
730 __ Ret(USE_DELAY_SLOT); 730 __ Ret(USE_DELAY_SLOT);
731 __ subu(v0, v0, a0); // In delay slot. 731 __ subu(v0, v0, a0); // In delay slot.
732 } else { 732 } else {
733 // Prepare for call to builtin. Push object pointers, a0 (lhs) first, 733 // Prepare for call to builtin. Push object pointers, a0 (lhs) first,
734 // a1 (rhs) second. 734 // a1 (rhs) second.
735 __ Push(lhs, rhs); 735 __ Push(lhs, rhs);
(...skipping 5059 matching lines...) Expand 10 before | Expand all | Expand 10 after
5795 return_value_operand, NULL); 5795 return_value_operand, NULL);
5796 } 5796 }
5797 5797
5798 5798
5799 #undef __ 5799 #undef __
5800 5800
5801 } // namespace internal 5801 } // namespace internal
5802 } // namespace v8 5802 } // namespace v8
5803 5803
5804 #endif // V8_TARGET_ARCH_MIPS 5804 #endif // V8_TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « src/interpreter/interpreter.cc ('k') | src/mips64/code-stubs-mips64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698