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

Side by Side Diff: src/mips64/code-stubs-mips64.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/mips/code-stubs-mips.cc ('k') | src/objects-inl.h » ('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_MIPS64 5 #if V8_TARGET_ARCH_MIPS64
6 6
7 #include "src/bootstrapper.h" 7 #include "src/bootstrapper.h"
8 #include "src/code-stubs.h" 8 #include "src/code-stubs.h"
9 #include "src/codegen.h" 9 #include "src/codegen.h"
10 #include "src/ic/handler-compiler.h" 10 #include "src/ic/handler-compiler.h"
(...skipping 701 matching lines...) Expand 10 before | Expand all | Expand 10 after
712 StringHelper::GenerateCompareFlatOneByteStrings(masm, lhs, rhs, a2, a3, a4, 712 StringHelper::GenerateCompareFlatOneByteStrings(masm, lhs, rhs, a2, a3, a4,
713 a5); 713 a5);
714 } 714 }
715 // Never falls through to here. 715 // Never falls through to here.
716 716
717 __ bind(&slow); 717 __ bind(&slow);
718 if (cc == eq) { 718 if (cc == eq) {
719 { 719 {
720 FrameScope scope(masm, StackFrame::INTERNAL); 720 FrameScope scope(masm, StackFrame::INTERNAL);
721 __ Push(lhs, rhs); 721 __ Push(lhs, rhs);
722 __ CallRuntime(strict() ? Runtime::kStrictEquals : Runtime::kEquals); 722 __ CallRuntime(strict() ? Runtime::kStrictEqual : Runtime::kEqual);
723 } 723 }
724 // Turn true into 0 and false into some non-zero value. 724 // Turn true into 0 and false into some non-zero value.
725 STATIC_ASSERT(EQUAL == 0); 725 STATIC_ASSERT(EQUAL == 0);
726 __ LoadRoot(a0, Heap::kTrueValueRootIndex); 726 __ LoadRoot(a0, Heap::kTrueValueRootIndex);
727 __ Ret(USE_DELAY_SLOT); 727 __ Ret(USE_DELAY_SLOT);
728 __ subu(v0, v0, a0); // In delay slot. 728 __ subu(v0, v0, a0); // In delay slot.
729 } else { 729 } else {
730 // Prepare for call to builtin. Push object pointers, a0 (lhs) first, 730 // Prepare for call to builtin. Push object pointers, a0 (lhs) first,
731 // a1 (rhs) second. 731 // a1 (rhs) second.
732 __ Push(lhs, rhs); 732 __ Push(lhs, rhs);
(...skipping 5090 matching lines...) Expand 10 before | Expand all | Expand 10 after
5823 return_value_operand, NULL); 5823 return_value_operand, NULL);
5824 } 5824 }
5825 5825
5826 5826
5827 #undef __ 5827 #undef __
5828 5828
5829 } // namespace internal 5829 } // namespace internal
5830 } // namespace v8 5830 } // namespace v8
5831 5831
5832 #endif // V8_TARGET_ARCH_MIPS64 5832 #endif // V8_TARGET_ARCH_MIPS64
OLDNEW
« no previous file with comments | « src/mips/code-stubs-mips.cc ('k') | src/objects-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698