Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(518)

Side by Side Diff: src/s390/macro-assembler-s390.cc

Issue 2841693003: PPC/s390: [sim] Consistent support for C calls with up to 9 args (Closed)
Patch Set: rebased and addressed comments Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/ppc/simulator-ppc.cc ('k') | src/s390/simulator-s390.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « src/ppc/simulator-ppc.cc ('k') | src/s390/simulator-s390.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698