OLD | NEW |
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_MIPS64 | 5 #if V8_TARGET_ARCH_MIPS64 |
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 701 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
712 StringHelper::GenerateCompareFlatOneByteStrings(masm, lhs, rhs, a2, a3, a4, | 712 StringHelper::GenerateCompareFlatOneByteStrings(masm, lhs, rhs, a2, a3, a4, |
713 a5); | 713 a5); |
714 } | 714 } |
715 // Never falls through to here. | 715 // Never falls through to here. |
716 | 716 |
717 __ bind(&slow); | 717 __ bind(&slow); |
718 if (cc == eq) { | 718 if (cc == eq) { |
719 { | 719 { |
720 FrameScope scope(masm, StackFrame::INTERNAL); | 720 FrameScope scope(masm, StackFrame::INTERNAL); |
721 __ Push(lhs, rhs); | 721 __ Push(lhs, rhs); |
722 __ CallRuntime(strict() ? Runtime::kStrictEquals : Runtime::kEquals); | 722 __ CallRuntime(strict() ? Runtime::kStrictEqual : Runtime::kEqual); |
723 } | 723 } |
724 // Turn true into 0 and false into some non-zero value. | 724 // Turn true into 0 and false into some non-zero value. |
725 STATIC_ASSERT(EQUAL == 0); | 725 STATIC_ASSERT(EQUAL == 0); |
726 __ LoadRoot(a0, Heap::kTrueValueRootIndex); | 726 __ LoadRoot(a0, Heap::kTrueValueRootIndex); |
727 __ Ret(USE_DELAY_SLOT); | 727 __ Ret(USE_DELAY_SLOT); |
728 __ subu(v0, v0, a0); // In delay slot. | 728 __ subu(v0, v0, a0); // In delay slot. |
729 } else { | 729 } else { |
730 // Prepare for call to builtin. Push object pointers, a0 (lhs) first, | 730 // Prepare for call to builtin. Push object pointers, a0 (lhs) first, |
731 // a1 (rhs) second. | 731 // a1 (rhs) second. |
732 __ Push(lhs, rhs); | 732 __ Push(lhs, rhs); |
(...skipping 5090 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5823 return_value_operand, NULL); | 5823 return_value_operand, NULL); |
5824 } | 5824 } |
5825 | 5825 |
5826 | 5826 |
5827 #undef __ | 5827 #undef __ |
5828 | 5828 |
5829 } // namespace internal | 5829 } // namespace internal |
5830 } // namespace v8 | 5830 } // namespace v8 |
5831 | 5831 |
5832 #endif // V8_TARGET_ARCH_MIPS64 | 5832 #endif // V8_TARGET_ARCH_MIPS64 |
OLD | NEW |