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_ARM | 5 #if V8_TARGET_ARCH_ARM |
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 657 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
668 r5); | 668 r5); |
669 } | 669 } |
670 // Never falls through to here. | 670 // Never falls through to here. |
671 | 671 |
672 __ bind(&slow); | 672 __ bind(&slow); |
673 | 673 |
674 if (cc == eq) { | 674 if (cc == eq) { |
675 { | 675 { |
676 FrameAndConstantPoolScope scope(masm, StackFrame::INTERNAL); | 676 FrameAndConstantPoolScope scope(masm, StackFrame::INTERNAL); |
677 __ Push(lhs, rhs); | 677 __ Push(lhs, rhs); |
678 __ CallRuntime(strict() ? Runtime::kStrictEquals : Runtime::kEquals); | 678 __ CallRuntime(strict() ? Runtime::kStrictEqual : Runtime::kEqual); |
679 } | 679 } |
680 // Turn true into 0 and false into some non-zero value. | 680 // Turn true into 0 and false into some non-zero value. |
681 STATIC_ASSERT(EQUAL == 0); | 681 STATIC_ASSERT(EQUAL == 0); |
682 __ LoadRoot(r1, Heap::kTrueValueRootIndex); | 682 __ LoadRoot(r1, Heap::kTrueValueRootIndex); |
683 __ sub(r0, r0, r1); | 683 __ sub(r0, r0, r1); |
684 __ Ret(); | 684 __ Ret(); |
685 } else { | 685 } else { |
686 __ Push(lhs, rhs); | 686 __ Push(lhs, rhs); |
687 int ncr; // NaN compare result | 687 int ncr; // NaN compare result |
688 if (cc == lt || cc == le) { | 688 if (cc == lt || cc == le) { |
(...skipping 4931 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5620 kStackUnwindSpace, NULL, return_value_operand, NULL); | 5620 kStackUnwindSpace, NULL, return_value_operand, NULL); |
5621 } | 5621 } |
5622 | 5622 |
5623 | 5623 |
5624 #undef __ | 5624 #undef __ |
5625 | 5625 |
5626 } // namespace internal | 5626 } // namespace internal |
5627 } // namespace v8 | 5627 } // namespace v8 |
5628 | 5628 |
5629 #endif // V8_TARGET_ARCH_ARM | 5629 #endif // V8_TARGET_ARCH_ARM |
OLD | NEW |