| OLD | NEW |
| 1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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_ARM64 | 5 #if V8_TARGET_ARCH_ARM64 |
| 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 614 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 625 if (FLAG_debug_code) { | 625 if (FLAG_debug_code) { |
| 626 __ Unreachable(); | 626 __ Unreachable(); |
| 627 } | 627 } |
| 628 | 628 |
| 629 __ Bind(&slow); | 629 __ Bind(&slow); |
| 630 | 630 |
| 631 if (cond == eq) { | 631 if (cond == eq) { |
| 632 { | 632 { |
| 633 FrameScope scope(masm, StackFrame::INTERNAL); | 633 FrameScope scope(masm, StackFrame::INTERNAL); |
| 634 __ Push(lhs, rhs); | 634 __ Push(lhs, rhs); |
| 635 __ CallRuntime(strict() ? Runtime::kStrictEquals : Runtime::kEquals); | 635 __ CallRuntime(strict() ? Runtime::kStrictEqual : Runtime::kEqual); |
| 636 } | 636 } |
| 637 // Turn true into 0 and false into some non-zero value. | 637 // Turn true into 0 and false into some non-zero value. |
| 638 STATIC_ASSERT(EQUAL == 0); | 638 STATIC_ASSERT(EQUAL == 0); |
| 639 __ LoadRoot(x1, Heap::kTrueValueRootIndex); | 639 __ LoadRoot(x1, Heap::kTrueValueRootIndex); |
| 640 __ Sub(x0, x0, x1); | 640 __ Sub(x0, x0, x1); |
| 641 __ Ret(); | 641 __ Ret(); |
| 642 } else { | 642 } else { |
| 643 __ Push(lhs, rhs); | 643 __ Push(lhs, rhs); |
| 644 int ncr; // NaN compare result | 644 int ncr; // NaN compare result |
| 645 if ((cond == lt) || (cond == le)) { | 645 if ((cond == lt) || (cond == le)) { |
| (...skipping 5357 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6003 return_value_operand, NULL); | 6003 return_value_operand, NULL); |
| 6004 } | 6004 } |
| 6005 | 6005 |
| 6006 | 6006 |
| 6007 #undef __ | 6007 #undef __ |
| 6008 | 6008 |
| 6009 } // namespace internal | 6009 } // namespace internal |
| 6010 } // namespace v8 | 6010 } // namespace v8 |
| 6011 | 6011 |
| 6012 #endif // V8_TARGET_ARCH_ARM64 | 6012 #endif // V8_TARGET_ARCH_ARM64 |
| OLD | NEW |