| 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 #include <assert.h> // For assert | 5 #include <assert.h> // For assert |
| 6 #include <limits.h> // For LONG_MIN, LONG_MAX. | 6 #include <limits.h> // For LONG_MIN, LONG_MAX. |
| 7 | 7 |
| 8 #if V8_TARGET_ARCH_S390 | 8 #if V8_TARGET_ARCH_S390 |
| 9 | 9 |
| 10 #include "src/base/bits.h" | 10 #include "src/base/bits.h" |
| (...skipping 2694 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2705 CallCFunction(function, num_arguments, 0); | 2705 CallCFunction(function, num_arguments, 0); |
| 2706 } | 2706 } |
| 2707 | 2707 |
| 2708 void MacroAssembler::CallCFunction(Register function, int num_arguments) { | 2708 void MacroAssembler::CallCFunction(Register function, int num_arguments) { |
| 2709 CallCFunction(function, num_arguments, 0); | 2709 CallCFunction(function, num_arguments, 0); |
| 2710 } | 2710 } |
| 2711 | 2711 |
| 2712 void MacroAssembler::CallCFunctionHelper(Register function, | 2712 void MacroAssembler::CallCFunctionHelper(Register function, |
| 2713 int num_reg_arguments, | 2713 int num_reg_arguments, |
| 2714 int num_double_arguments) { | 2714 int num_double_arguments) { |
| 2715 DCHECK_LE(num_reg_arguments + num_double_arguments, kMaxCParameters); |
| 2715 DCHECK(has_frame()); | 2716 DCHECK(has_frame()); |
| 2716 | 2717 |
| 2717 // Just call directly. The function called cannot cause a GC, or | 2718 // Just call directly. The function called cannot cause a GC, or |
| 2718 // allow preemption, so the return address in the link register | 2719 // allow preemption, so the return address in the link register |
| 2719 // stays correct. | 2720 // stays correct. |
| 2720 Register dest = function; | 2721 Register dest = function; |
| 2721 if (ABI_CALL_VIA_IP) { | 2722 if (ABI_CALL_VIA_IP) { |
| 2722 Move(ip, function); | 2723 Move(ip, function); |
| 2723 dest = ip; | 2724 dest = ip; |
| 2724 } | 2725 } |
| (...skipping 2652 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5377 } | 5378 } |
| 5378 if (mag.shift > 0) ShiftRightArith(result, result, Operand(mag.shift)); | 5379 if (mag.shift > 0) ShiftRightArith(result, result, Operand(mag.shift)); |
| 5379 ExtractBit(r0, dividend, 31); | 5380 ExtractBit(r0, dividend, 31); |
| 5380 AddP(result, r0); | 5381 AddP(result, r0); |
| 5381 } | 5382 } |
| 5382 | 5383 |
| 5383 } // namespace internal | 5384 } // namespace internal |
| 5384 } // namespace v8 | 5385 } // namespace v8 |
| 5385 | 5386 |
| 5386 #endif // V8_TARGET_ARCH_S390 | 5387 #endif // V8_TARGET_ARCH_S390 |
| OLD | NEW |