| OLD | NEW |
| 1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 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_S390 | 5 #if V8_TARGET_ARCH_S390 |
| 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/base/bits.h" | 9 #include "src/base/bits.h" |
| 10 #include "src/bootstrapper.h" | 10 #include "src/bootstrapper.h" |
| (...skipping 618 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 629 } else { | 629 } else { |
| 630 StringHelper::GenerateCompareFlatOneByteStrings(masm, lhs, rhs, r4, r5, r6); | 630 StringHelper::GenerateCompareFlatOneByteStrings(masm, lhs, rhs, r4, r5, r6); |
| 631 } | 631 } |
| 632 // Never falls through to here. | 632 // Never falls through to here. |
| 633 | 633 |
| 634 __ bind(&slow); | 634 __ bind(&slow); |
| 635 | 635 |
| 636 if (cc == eq) { | 636 if (cc == eq) { |
| 637 { | 637 { |
| 638 FrameAndConstantPoolScope scope(masm, StackFrame::INTERNAL); | 638 FrameAndConstantPoolScope scope(masm, StackFrame::INTERNAL); |
| 639 __ Push(lhs, rhs); | 639 __ Push(cp); |
| 640 __ CallRuntime(strict() ? Runtime::kStrictEqual : Runtime::kEqual); | 640 __ Call(strict() ? isolate()->builtins()->StrictEqual() |
| 641 : isolate()->builtins()->Equal(), |
| 642 RelocInfo::CODE_TARGET); |
| 643 __ Pop(cp); |
| 641 } | 644 } |
| 642 // Turn true into 0 and false into some non-zero value. | 645 // Turn true into 0 and false into some non-zero value. |
| 643 STATIC_ASSERT(EQUAL == 0); | 646 STATIC_ASSERT(EQUAL == 0); |
| 644 __ LoadRoot(r3, Heap::kTrueValueRootIndex); | 647 __ LoadRoot(r3, Heap::kTrueValueRootIndex); |
| 645 __ SubP(r2, r2, r3); | 648 __ SubP(r2, r2, r3); |
| 646 __ Ret(); | 649 __ Ret(); |
| 647 } else { | 650 } else { |
| 648 __ Push(lhs, rhs); | 651 __ Push(lhs, rhs); |
| 649 int ncr; // NaN compare result | 652 int ncr; // NaN compare result |
| 650 if (cc == lt || cc == le) { | 653 if (cc == lt || cc == le) { |
| (...skipping 3697 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4348 CallApiFunctionAndReturn(masm, api_function_address, thunk_ref, | 4351 CallApiFunctionAndReturn(masm, api_function_address, thunk_ref, |
| 4349 kStackUnwindSpace, NULL, return_value_operand, NULL); | 4352 kStackUnwindSpace, NULL, return_value_operand, NULL); |
| 4350 } | 4353 } |
| 4351 | 4354 |
| 4352 #undef __ | 4355 #undef __ |
| 4353 | 4356 |
| 4354 } // namespace internal | 4357 } // namespace internal |
| 4355 } // namespace v8 | 4358 } // namespace v8 |
| 4356 | 4359 |
| 4357 #endif // V8_TARGET_ARCH_S390 | 4360 #endif // V8_TARGET_ARCH_S390 |
| OLD | NEW |