| 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/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 561 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 572 // Never fall through to here. | 572 // Never fall through to here. |
| 573 if (FLAG_debug_code) { | 573 if (FLAG_debug_code) { |
| 574 __ Unreachable(); | 574 __ Unreachable(); |
| 575 } | 575 } |
| 576 | 576 |
| 577 __ Bind(&slow); | 577 __ Bind(&slow); |
| 578 | 578 |
| 579 if (cond == eq) { | 579 if (cond == eq) { |
| 580 { | 580 { |
| 581 FrameScope scope(masm, StackFrame::INTERNAL); | 581 FrameScope scope(masm, StackFrame::INTERNAL); |
| 582 __ Push(lhs, rhs); | 582 __ Push(cp); |
| 583 __ CallRuntime(strict() ? Runtime::kStrictEqual : Runtime::kEqual); | 583 __ Call(strict() ? isolate()->builtins()->StrictEqual() |
| 584 : isolate()->builtins()->Equal(), |
| 585 RelocInfo::CODE_TARGET); |
| 586 __ Pop(cp); |
| 584 } | 587 } |
| 585 // Turn true into 0 and false into some non-zero value. | 588 // Turn true into 0 and false into some non-zero value. |
| 586 STATIC_ASSERT(EQUAL == 0); | 589 STATIC_ASSERT(EQUAL == 0); |
| 587 __ LoadRoot(x1, Heap::kTrueValueRootIndex); | 590 __ LoadRoot(x1, Heap::kTrueValueRootIndex); |
| 588 __ Sub(x0, x0, x1); | 591 __ Sub(x0, x0, x1); |
| 589 __ Ret(); | 592 __ Ret(); |
| 590 } else { | 593 } else { |
| 591 __ Push(lhs, rhs); | 594 __ Push(lhs, rhs); |
| 592 int ncr; // NaN compare result | 595 int ncr; // NaN compare result |
| 593 if ((cond == lt) || (cond == le)) { | 596 if ((cond == lt) || (cond == le)) { |
| (...skipping 3958 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4552 kStackUnwindSpace, NULL, spill_offset, | 4555 kStackUnwindSpace, NULL, spill_offset, |
| 4553 return_value_operand, NULL); | 4556 return_value_operand, NULL); |
| 4554 } | 4557 } |
| 4555 | 4558 |
| 4556 #undef __ | 4559 #undef __ |
| 4557 | 4560 |
| 4558 } // namespace internal | 4561 } // namespace internal |
| 4559 } // namespace v8 | 4562 } // namespace v8 |
| 4560 | 4563 |
| 4561 #endif // V8_TARGET_ARCH_ARM64 | 4564 #endif // V8_TARGET_ARCH_ARM64 |
| OLD | NEW |