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/code-stubs.h" | 7 #include "src/code-stubs.h" |
8 #include "src/api-arguments.h" | 8 #include "src/api-arguments.h" |
9 #include "src/base/bits.h" | 9 #include "src/base/bits.h" |
10 #include "src/bootstrapper.h" | 10 #include "src/bootstrapper.h" |
(...skipping 635 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
646 } else { | 646 } else { |
647 StringHelper::GenerateCompareFlatOneByteStrings(masm, lhs, rhs, r5, r6, r7); | 647 StringHelper::GenerateCompareFlatOneByteStrings(masm, lhs, rhs, r5, r6, r7); |
648 } | 648 } |
649 // Never falls through to here. | 649 // Never falls through to here. |
650 | 650 |
651 __ bind(&slow); | 651 __ bind(&slow); |
652 | 652 |
653 if (cc == eq) { | 653 if (cc == eq) { |
654 { | 654 { |
655 FrameAndConstantPoolScope scope(masm, StackFrame::INTERNAL); | 655 FrameAndConstantPoolScope scope(masm, StackFrame::INTERNAL); |
656 __ Push(lhs, rhs); | 656 __ Push(cp); |
657 __ CallRuntime(strict() ? Runtime::kStrictEqual : Runtime::kEqual); | 657 __ Call(strict() ? isolate()->builtins()->StrictEqual() |
| 658 : isolate()->builtins()->Equal(), |
| 659 RelocInfo::CODE_TARGET); |
| 660 __ Pop(cp); |
658 } | 661 } |
659 // Turn true into 0 and false into some non-zero value. | 662 // Turn true into 0 and false into some non-zero value. |
660 STATIC_ASSERT(EQUAL == 0); | 663 STATIC_ASSERT(EQUAL == 0); |
661 __ LoadRoot(r4, Heap::kTrueValueRootIndex); | 664 __ LoadRoot(r4, Heap::kTrueValueRootIndex); |
662 __ sub(r3, r3, r4); | 665 __ sub(r3, r3, r4); |
663 __ Ret(); | 666 __ Ret(); |
664 } else { | 667 } else { |
665 __ Push(lhs, rhs); | 668 __ Push(lhs, rhs); |
666 int ncr; // NaN compare result | 669 int ncr; // NaN compare result |
667 if (cc == lt || cc == le) { | 670 if (cc == lt || cc == le) { |
(...skipping 3751 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4419 fp, (PropertyCallbackArguments::kReturnValueOffset + 3) * kPointerSize); | 4422 fp, (PropertyCallbackArguments::kReturnValueOffset + 3) * kPointerSize); |
4420 CallApiFunctionAndReturn(masm, api_function_address, thunk_ref, | 4423 CallApiFunctionAndReturn(masm, api_function_address, thunk_ref, |
4421 kStackUnwindSpace, NULL, return_value_operand, NULL); | 4424 kStackUnwindSpace, NULL, return_value_operand, NULL); |
4422 } | 4425 } |
4423 | 4426 |
4424 #undef __ | 4427 #undef __ |
4425 } // namespace internal | 4428 } // namespace internal |
4426 } // namespace v8 | 4429 } // namespace v8 |
4427 | 4430 |
4428 #endif // V8_TARGET_ARCH_PPC | 4431 #endif // V8_TARGET_ARCH_PPC |
OLD | NEW |