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/code-stubs.h" | 7 #include "src/code-stubs.h" |
8 #include "src/api-arguments.h" | 8 #include "src/api-arguments.h" |
9 #include "src/bootstrapper.h" | 9 #include "src/bootstrapper.h" |
10 #include "src/codegen.h" | 10 #include "src/codegen.h" |
(...skipping 652 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
663 } else { | 663 } else { |
664 StringHelper::GenerateCompareFlatOneByteStrings(masm, lhs, rhs, a2, a3, a4, | 664 StringHelper::GenerateCompareFlatOneByteStrings(masm, lhs, rhs, a2, a3, a4, |
665 a5); | 665 a5); |
666 } | 666 } |
667 // Never falls through to here. | 667 // Never falls through to here. |
668 | 668 |
669 __ bind(&slow); | 669 __ bind(&slow); |
670 if (cc == eq) { | 670 if (cc == eq) { |
671 { | 671 { |
672 FrameScope scope(masm, StackFrame::INTERNAL); | 672 FrameScope scope(masm, StackFrame::INTERNAL); |
673 __ Push(lhs, rhs); | 673 __ Push(cp); |
674 __ CallRuntime(strict() ? Runtime::kStrictEqual : Runtime::kEqual); | 674 __ Call(strict() ? isolate()->builtins()->StrictEqual() |
| 675 : isolate()->builtins()->Equal(), |
| 676 RelocInfo::CODE_TARGET); |
| 677 __ Pop(cp); |
675 } | 678 } |
676 // Turn true into 0 and false into some non-zero value. | 679 // Turn true into 0 and false into some non-zero value. |
677 STATIC_ASSERT(EQUAL == 0); | 680 STATIC_ASSERT(EQUAL == 0); |
678 __ LoadRoot(a0, Heap::kTrueValueRootIndex); | 681 __ LoadRoot(a0, Heap::kTrueValueRootIndex); |
679 __ Ret(USE_DELAY_SLOT); | 682 __ Ret(USE_DELAY_SLOT); |
680 __ subu(v0, v0, a0); // In delay slot. | 683 __ subu(v0, v0, a0); // In delay slot. |
681 } else { | 684 } else { |
682 // Prepare for call to builtin. Push object pointers, a0 (lhs) first, | 685 // Prepare for call to builtin. Push object pointers, a0 (lhs) first, |
683 // a1 (rhs) second. | 686 // a1 (rhs) second. |
684 __ Push(lhs, rhs); | 687 __ Push(lhs, rhs); |
(...skipping 3701 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4386 kStackUnwindSpace, kInvalidStackOffset, | 4389 kStackUnwindSpace, kInvalidStackOffset, |
4387 return_value_operand, NULL); | 4390 return_value_operand, NULL); |
4388 } | 4391 } |
4389 | 4392 |
4390 #undef __ | 4393 #undef __ |
4391 | 4394 |
4392 } // namespace internal | 4395 } // namespace internal |
4393 } // namespace v8 | 4396 } // namespace v8 |
4394 | 4397 |
4395 #endif // V8_TARGET_ARCH_MIPS64 | 4398 #endif // V8_TARGET_ARCH_MIPS64 |
OLD | NEW |