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

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

Issue 1745643002: PPC: [turbofan] Don't use the CompareIC in JSGenericLowering. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: 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 | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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_PPC 5 #if V8_TARGET_ARCH_PPC
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 684 matching lines...) Expand 10 before | Expand all | Expand 10 after
695 StringHelper::GenerateCompareFlatOneByteStrings(masm, lhs, rhs, r5, r6, r7); 695 StringHelper::GenerateCompareFlatOneByteStrings(masm, lhs, rhs, r5, r6, r7);
696 } 696 }
697 // Never falls through to here. 697 // Never falls through to here.
698 698
699 __ bind(&slow); 699 __ bind(&slow);
700 700
701 if (cc == eq) { 701 if (cc == eq) {
702 { 702 {
703 FrameAndConstantPoolScope scope(masm, StackFrame::INTERNAL); 703 FrameAndConstantPoolScope scope(masm, StackFrame::INTERNAL);
704 __ Push(lhs, rhs); 704 __ Push(lhs, rhs);
705 __ CallRuntime(strict() ? Runtime::kStrictEquals : Runtime::kEquals); 705 __ CallRuntime(strict() ? Runtime::kStrictEqual : Runtime::kEqual);
706 } 706 }
707 // Turn true into 0 and false into some non-zero value. 707 // Turn true into 0 and false into some non-zero value.
708 STATIC_ASSERT(EQUAL == 0); 708 STATIC_ASSERT(EQUAL == 0);
709 __ LoadRoot(r4, Heap::kTrueValueRootIndex); 709 __ LoadRoot(r4, Heap::kTrueValueRootIndex);
710 __ sub(r3, r3, r4); 710 __ sub(r3, r3, r4);
711 __ Ret(); 711 __ Ret();
712 } else { 712 } else {
713 __ Push(lhs, rhs); 713 __ Push(lhs, rhs);
714 int ncr; // NaN compare result 714 int ncr; // NaN compare result
715 if (cc == lt || cc == le) { 715 if (cc == lt || cc == le) {
(...skipping 5147 matching lines...) Expand 10 before | Expand all | Expand 10 after
5863 CallApiFunctionAndReturn(masm, api_function_address, thunk_ref, 5863 CallApiFunctionAndReturn(masm, api_function_address, thunk_ref,
5864 kStackUnwindSpace, NULL, return_value_operand, NULL); 5864 kStackUnwindSpace, NULL, return_value_operand, NULL);
5865 } 5865 }
5866 5866
5867 5867
5868 #undef __ 5868 #undef __
5869 } // namespace internal 5869 } // namespace internal
5870 } // namespace v8 5870 } // namespace v8
5871 5871
5872 #endif // V8_TARGET_ARCH_PPC 5872 #endif // V8_TARGET_ARCH_PPC
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698