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

Side by Side Diff: src/arm64/code-stubs-arm64.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/arm/code-stubs-arm.cc ('k') | src/compiler/js-generic-lowering.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 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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_ARM64 5 #if V8_TARGET_ARCH_ARM64
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 614 matching lines...) Expand 10 before | Expand all | Expand 10 after
625 if (FLAG_debug_code) { 625 if (FLAG_debug_code) {
626 __ Unreachable(); 626 __ Unreachable();
627 } 627 }
628 628
629 __ Bind(&slow); 629 __ Bind(&slow);
630 630
631 if (cond == eq) { 631 if (cond == eq) {
632 { 632 {
633 FrameScope scope(masm, StackFrame::INTERNAL); 633 FrameScope scope(masm, StackFrame::INTERNAL);
634 __ Push(lhs, rhs); 634 __ Push(lhs, rhs);
635 __ CallRuntime(strict() ? Runtime::kStrictEquals : Runtime::kEquals); 635 __ CallRuntime(strict() ? Runtime::kStrictEqual : Runtime::kEqual);
636 } 636 }
637 // Turn true into 0 and false into some non-zero value. 637 // Turn true into 0 and false into some non-zero value.
638 STATIC_ASSERT(EQUAL == 0); 638 STATIC_ASSERT(EQUAL == 0);
639 __ LoadRoot(x1, Heap::kTrueValueRootIndex); 639 __ LoadRoot(x1, Heap::kTrueValueRootIndex);
640 __ Sub(x0, x0, x1); 640 __ Sub(x0, x0, x1);
641 __ Ret(); 641 __ Ret();
642 } else { 642 } else {
643 __ Push(lhs, rhs); 643 __ Push(lhs, rhs);
644 int ncr; // NaN compare result 644 int ncr; // NaN compare result
645 if ((cond == lt) || (cond == le)) { 645 if ((cond == lt) || (cond == le)) {
(...skipping 5357 matching lines...) Expand 10 before | Expand all | Expand 10 after
6003 return_value_operand, NULL); 6003 return_value_operand, NULL);
6004 } 6004 }
6005 6005
6006 6006
6007 #undef __ 6007 #undef __
6008 6008
6009 } // namespace internal 6009 } // namespace internal
6010 } // namespace v8 6010 } // namespace v8
6011 6011
6012 #endif // V8_TARGET_ARCH_ARM64 6012 #endif // V8_TARGET_ARCH_ARM64
OLDNEW
« no previous file with comments | « src/arm/code-stubs-arm.cc ('k') | src/compiler/js-generic-lowering.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698