Commit ae569cf8 authored by Milad Fa's avatar Milad Fa Committed by V8 LUCI CQ

PPC/s390: Update comments about argument count in interface descriptors

Port 2e955523

Original Commit Message:

    Comments in interface-descriptors stated that the argument count is
    without the receiver, which is no longer true (see [1]).

    [1] https://crrev.com/c/3140608

R=pthier@chromium.org, joransiu@ca.ibm.com, junyan@redhat.com, midawson@redhat.com
BUG=
LOG=N

Change-Id: I1bbce6672f19a3e508676e4b23cf9910542cbb21
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3285407Reviewed-by: 's avatarPatrick Thier <pthier@chromium.org>
Reviewed-by: 's avatarJoran Siu <joransiu@ca.ibm.com>
Commit-Queue: Milad Fa <mfarazma@redhat.com>
Cr-Commit-Position: refs/heads/main@{#77949}
parent 62a0841b
...@@ -121,7 +121,7 @@ constexpr auto CallTrampolineDescriptor::registers() { ...@@ -121,7 +121,7 @@ constexpr auto CallTrampolineDescriptor::registers() {
// static // static
constexpr auto CallVarargsDescriptor::registers() { constexpr auto CallVarargsDescriptor::registers() {
// r3 : number of arguments (on the stack, not including receiver) // r3 : number of arguments (on the stack)
// r4 : the target to call // r4 : the target to call
// r7 : arguments list length (untagged) // r7 : arguments list length (untagged)
// r5 : arguments list (FixedArray) // r5 : arguments list (FixedArray)
...@@ -139,13 +139,13 @@ constexpr auto CallForwardVarargsDescriptor::registers() { ...@@ -139,13 +139,13 @@ constexpr auto CallForwardVarargsDescriptor::registers() {
// static // static
constexpr auto CallFunctionTemplateDescriptor::registers() { constexpr auto CallFunctionTemplateDescriptor::registers() {
// r4 : function template info // r4 : function template info
// r5 : number of arguments (on the stack, not including receiver) // r5 : number of arguments (on the stack)
return RegisterArray(r4, r5); return RegisterArray(r4, r5);
} }
// static // static
constexpr auto CallWithSpreadDescriptor::registers() { constexpr auto CallWithSpreadDescriptor::registers() {
// r3 : number of arguments (on the stack, not including receiver) // r3 : number of arguments (on the stack)
// r4 : the target to call // r4 : the target to call
// r5 : the object to spread // r5 : the object to spread
return RegisterArray(r4, r3, r5); return RegisterArray(r4, r3, r5);
...@@ -160,7 +160,7 @@ constexpr auto CallWithArrayLikeDescriptor::registers() { ...@@ -160,7 +160,7 @@ constexpr auto CallWithArrayLikeDescriptor::registers() {
// static // static
constexpr auto ConstructVarargsDescriptor::registers() { constexpr auto ConstructVarargsDescriptor::registers() {
// r3 : number of arguments (on the stack, not including receiver) // r3 : number of arguments (on the stack)
// r4 : the target to call // r4 : the target to call
// r6 : the new target // r6 : the new target
// r7 : arguments list length (untagged) // r7 : arguments list length (untagged)
...@@ -179,7 +179,7 @@ constexpr auto ConstructForwardVarargsDescriptor::registers() { ...@@ -179,7 +179,7 @@ constexpr auto ConstructForwardVarargsDescriptor::registers() {
// static // static
constexpr auto ConstructWithSpreadDescriptor::registers() { constexpr auto ConstructWithSpreadDescriptor::registers() {
// r3 : number of arguments (on the stack, not including receiver) // r3 : number of arguments (on the stack)
// r4 : the target to call // r4 : the target to call
// r6 : the new target // r6 : the new target
// r5 : the object to spread // r5 : the object to spread
...@@ -241,7 +241,7 @@ constexpr auto InterpreterDispatchDescriptor::registers() { ...@@ -241,7 +241,7 @@ constexpr auto InterpreterDispatchDescriptor::registers() {
// static // static
constexpr auto InterpreterPushArgsThenCallDescriptor::registers() { constexpr auto InterpreterPushArgsThenCallDescriptor::registers() {
return RegisterArray(r3, // argument count (not including receiver) return RegisterArray(r3, // argument count
r5, // address of first argument r5, // address of first argument
r4); // the target callable to be call r4); // the target callable to be call
} }
...@@ -249,7 +249,7 @@ constexpr auto InterpreterPushArgsThenCallDescriptor::registers() { ...@@ -249,7 +249,7 @@ constexpr auto InterpreterPushArgsThenCallDescriptor::registers() {
// static // static
constexpr auto InterpreterPushArgsThenConstructDescriptor::registers() { constexpr auto InterpreterPushArgsThenConstructDescriptor::registers() {
return RegisterArray( return RegisterArray(
r3, // argument count (not including receiver) r3, // argument count
r7, // address of the first argument r7, // address of the first argument
r4, // constructor to call r4, // constructor to call
r6, // new target r6, // new target
......
...@@ -121,7 +121,7 @@ constexpr auto CallTrampolineDescriptor::registers() { ...@@ -121,7 +121,7 @@ constexpr auto CallTrampolineDescriptor::registers() {
// static // static
constexpr auto CallVarargsDescriptor::registers() { constexpr auto CallVarargsDescriptor::registers() {
// r2 : number of arguments (on the stack, not including receiver) // r2 : number of arguments (on the stack)
// r3 : the target to call // r3 : the target to call
// r6 : arguments list length (untagged) // r6 : arguments list length (untagged)
// r4 : arguments list (FixedArray) // r4 : arguments list (FixedArray)
...@@ -139,13 +139,13 @@ constexpr auto CallForwardVarargsDescriptor::registers() { ...@@ -139,13 +139,13 @@ constexpr auto CallForwardVarargsDescriptor::registers() {
// static // static
constexpr auto CallFunctionTemplateDescriptor::registers() { constexpr auto CallFunctionTemplateDescriptor::registers() {
// r3 : function template info // r3 : function template info
// r4 : number of arguments (on the stack, not including receiver) // r4 : number of arguments (on the stack)
return RegisterArray(r3, r4); return RegisterArray(r3, r4);
} }
// static // static
constexpr auto CallWithSpreadDescriptor::registers() { constexpr auto CallWithSpreadDescriptor::registers() {
// r2: number of arguments (on the stack, not including receiver) // r2: number of arguments (on the stack)
// r3 : the target to call // r3 : the target to call
// r4 : the object to spread // r4 : the object to spread
return RegisterArray(r3, r2, r4); return RegisterArray(r3, r2, r4);
...@@ -160,7 +160,7 @@ constexpr auto CallWithArrayLikeDescriptor::registers() { ...@@ -160,7 +160,7 @@ constexpr auto CallWithArrayLikeDescriptor::registers() {
// static // static
constexpr auto ConstructVarargsDescriptor::registers() { constexpr auto ConstructVarargsDescriptor::registers() {
// r2 : number of arguments (on the stack, not including receiver) // r2 : number of arguments (on the stack)
// r3 : the target to call // r3 : the target to call
// r5 : the new target // r5 : the new target
// r6 : arguments list length (untagged) // r6 : arguments list length (untagged)
...@@ -179,7 +179,7 @@ constexpr auto ConstructForwardVarargsDescriptor::registers() { ...@@ -179,7 +179,7 @@ constexpr auto ConstructForwardVarargsDescriptor::registers() {
// static // static
constexpr auto ConstructWithSpreadDescriptor::registers() { constexpr auto ConstructWithSpreadDescriptor::registers() {
// r2 : number of arguments (on the stack, not including receiver) // r2 : number of arguments (on the stack)
// r3 : the target to call // r3 : the target to call
// r5 : the new target // r5 : the new target
// r4 : the object to spread // r4 : the object to spread
...@@ -241,7 +241,7 @@ constexpr auto InterpreterDispatchDescriptor::registers() { ...@@ -241,7 +241,7 @@ constexpr auto InterpreterDispatchDescriptor::registers() {
// static // static
constexpr auto InterpreterPushArgsThenCallDescriptor::registers() { constexpr auto InterpreterPushArgsThenCallDescriptor::registers() {
return RegisterArray(r2, // argument count (not including receiver) return RegisterArray(r2, // argument count
r4, // address of first argument r4, // address of first argument
r3); // the target callable to be call r3); // the target callable to be call
} }
...@@ -249,7 +249,7 @@ constexpr auto InterpreterPushArgsThenCallDescriptor::registers() { ...@@ -249,7 +249,7 @@ constexpr auto InterpreterPushArgsThenCallDescriptor::registers() {
// static // static
constexpr auto InterpreterPushArgsThenConstructDescriptor::registers() { constexpr auto InterpreterPushArgsThenConstructDescriptor::registers() {
return RegisterArray( return RegisterArray(
r2, // argument count (not including receiver) r2, // argument count
r6, // address of the first argument r6, // address of the first argument
r3, // constructor to call r3, // constructor to call
r5, // new target r5, // new target
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment