Commit 2d48f00c authored by Joshua Litt's avatar Joshua Litt Committed by Commit Bot

[torque] Change Call(...) macros to take JSAny instead of callable.

Currently, the implementation of Call throws if the property is
non-callable. This CL just updates the torque type signature to reflect
this.

Change-Id: I3f8626ba96f41e6d52564df8d481fba52b05a3fc
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/1989572
Commit-Queue: Joshua Litt <joshualitt@chromium.org>
Reviewed-by: 's avatarTobias Tebbi <tebbi@chromium.org>
Reviewed-by: 's avatarJakob Gruber <jgruber@chromium.org>
Cr-Commit-Position: refs/heads/master@{#65607}
parent 0645b9e2
......@@ -1000,15 +1000,19 @@ macro GetFastAliasedArgumentsMap(implicit context: Context)(): Map {
context)[NativeContextSlot::FAST_ALIASED_ARGUMENTS_MAP_INDEX]);
}
extern transitioning macro Call(Context, Callable, JSAny): JSAny;
extern transitioning macro Call(Context, Callable, JSAny, JSAny): JSAny;
extern transitioning macro Call(Context, Callable, JSAny, JSAny, JSAny): JSAny;
// Call(Context, Target, Receiver, ...Args)
// TODO(joshualitt): Assuming the context parameter is for throwing when Target
// is non-callable, then we should make it an implicit
// parameter.
extern transitioning macro Call(Context, JSAny, JSAny): JSAny;
extern transitioning macro Call(Context, JSAny, JSAny, JSAny): JSAny;
extern transitioning macro Call(Context, JSAny, JSAny, JSAny, JSAny): JSAny;
extern transitioning macro Call(
Context, Callable, JSAny, JSAny, JSAny, JSAny): JSAny;
Context, JSAny, JSAny, JSAny, JSAny, JSAny): JSAny;
extern transitioning macro Call(
Context, Callable, JSAny, JSAny, JSAny, JSAny, JSAny): JSAny;
Context, JSAny, JSAny, JSAny, JSAny, JSAny, JSAny): JSAny;
extern transitioning macro Call(
Context, Callable, JSAny, JSAny, JSAny, JSAny, JSAny, JSAny): JSAny;
Context, JSAny, JSAny, JSAny, JSAny, JSAny, JSAny, JSAny): JSAny;
extern macro TransitionElementsKind(
JSObject, Map, constexpr ElementsKind,
......
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