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

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

Issue 1925463003: [turbofan] Don't use the CompareIC in JSGenericLowering. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@5.0
Patch Set: Created 4 years, 7 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 697 matching lines...) Expand 10 before | Expand all | Expand 10 after
708 a3); 708 a3);
709 if (cc == eq) { 709 if (cc == eq) {
710 StringHelper::GenerateFlatOneByteStringEquals(masm, lhs, rhs, a2, a3, a4); 710 StringHelper::GenerateFlatOneByteStringEquals(masm, lhs, rhs, a2, a3, a4);
711 } else { 711 } else {
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 // Prepare for call to builtin. Push object pointers, a0 (lhs) first,
719 // a1 (rhs) second.
720 __ Push(lhs, rhs);
721 // Figure out which native to call and setup the arguments.
722 if (cc == eq) { 718 if (cc == eq) {
723 __ TailCallRuntime(strict() ? Runtime::kStrictEquals : Runtime::kEquals); 719 {
720 FrameScope scope(masm, StackFrame::INTERNAL);
721 __ Push(lhs, rhs);
722 __ CallRuntime(strict() ? Runtime::kStrictEqual : Runtime::kEqual);
723 }
724 // Turn true into 0 and false into some non-zero value.
725 STATIC_ASSERT(EQUAL == 0);
726 __ LoadRoot(a0, Heap::kTrueValueRootIndex);
727 __ Ret(USE_DELAY_SLOT);
728 __ subu(v0, v0, a0); // In delay slot.
724 } else { 729 } else {
730 // Prepare for call to builtin. Push object pointers, a0 (lhs) first,
731 // a1 (rhs) second.
732 __ Push(lhs, rhs);
725 int ncr; // NaN compare result. 733 int ncr; // NaN compare result.
726 if (cc == lt || cc == le) { 734 if (cc == lt || cc == le) {
727 ncr = GREATER; 735 ncr = GREATER;
728 } else { 736 } else {
729 DCHECK(cc == gt || cc == ge); // Remaining cases. 737 DCHECK(cc == gt || cc == ge); // Remaining cases.
730 ncr = LESS; 738 ncr = LESS;
731 } 739 }
732 __ li(a0, Operand(Smi::FromInt(ncr))); 740 __ li(a0, Operand(Smi::FromInt(ncr)));
733 __ push(a0); 741 __ push(a0);
734 742
(...skipping 5081 matching lines...) Expand 10 before | Expand all | Expand 10 after
5816 return_value_operand, NULL); 5824 return_value_operand, NULL);
5817 } 5825 }
5818 5826
5819 5827
5820 #undef __ 5828 #undef __
5821 5829
5822 } // namespace internal 5830 } // namespace internal
5823 } // namespace v8 5831 } // namespace v8
5824 5832
5825 #endif // V8_TARGET_ARCH_MIPS64 5833 #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