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

Side by Side Diff: src/arm/code-stubs-arm.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 | « no previous file | src/arm64/code-stubs-arm64.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_ARM 5 #if V8_TARGET_ARCH_ARM
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 657 matching lines...) Expand 10 before | Expand all | Expand 10 after
668 r5); 668 r5);
669 } 669 }
670 // Never falls through to here. 670 // Never falls through to here.
671 671
672 __ bind(&slow); 672 __ bind(&slow);
673 673
674 if (cc == eq) { 674 if (cc == eq) {
675 { 675 {
676 FrameAndConstantPoolScope scope(masm, StackFrame::INTERNAL); 676 FrameAndConstantPoolScope scope(masm, StackFrame::INTERNAL);
677 __ Push(lhs, rhs); 677 __ Push(lhs, rhs);
678 __ CallRuntime(strict() ? Runtime::kStrictEquals : Runtime::kEquals); 678 __ CallRuntime(strict() ? Runtime::kStrictEqual : Runtime::kEqual);
679 } 679 }
680 // Turn true into 0 and false into some non-zero value. 680 // Turn true into 0 and false into some non-zero value.
681 STATIC_ASSERT(EQUAL == 0); 681 STATIC_ASSERT(EQUAL == 0);
682 __ LoadRoot(r1, Heap::kTrueValueRootIndex); 682 __ LoadRoot(r1, Heap::kTrueValueRootIndex);
683 __ sub(r0, r0, r1); 683 __ sub(r0, r0, r1);
684 __ Ret(); 684 __ Ret();
685 } else { 685 } else {
686 __ Push(lhs, rhs); 686 __ Push(lhs, rhs);
687 int ncr; // NaN compare result 687 int ncr; // NaN compare result
688 if (cc == lt || cc == le) { 688 if (cc == lt || cc == le) {
(...skipping 4931 matching lines...) Expand 10 before | Expand all | Expand 10 after
5620 kStackUnwindSpace, NULL, return_value_operand, NULL); 5620 kStackUnwindSpace, NULL, return_value_operand, NULL);
5621 } 5621 }
5622 5622
5623 5623
5624 #undef __ 5624 #undef __
5625 5625
5626 } // namespace internal 5626 } // namespace internal
5627 } // namespace v8 5627 } // namespace v8
5628 5628
5629 #endif // V8_TARGET_ARCH_ARM 5629 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « no previous file | src/arm64/code-stubs-arm64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698