| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |