[CSA][cleanup] TNodify builtins reflect gen

Bug: v8:6949
Change-Id: I25d2247f149b296157cb422342cb7c218f724496
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/1807363
Reviewed-by: Dan Elphick <delphick@chromium.org>
Commit-Queue: Santiago Aboy Solanes <solanes@chromium.org>
Cr-Commit-Position: refs/heads/master@{#63834}
This commit is contained in:
Santiago Aboy Solanes 2019-09-17 12:19:37 +01:00 committed by Commit Bot
parent 7988045ced
commit 1257f60ece

View File

@ -11,12 +11,12 @@ namespace internal {
// ES section #sec-reflect.has
TF_BUILTIN(ReflectHas, CodeStubAssembler) {
Node* target = Parameter(Descriptor::kTarget);
Node* key = Parameter(Descriptor::kKey);
TNode<Object> target = CAST(Parameter(Descriptor::kTarget));
TNode<Object> key = CAST(Parameter(Descriptor::kKey));
TNode<Context> context = CAST(Parameter(Descriptor::kContext));
ThrowIfNotJSReceiver(context, CAST(target),
MessageTemplate::kCalledOnNonObject, "Reflect.has");
ThrowIfNotJSReceiver(context, target, MessageTemplate::kCalledOnNonObject,
"Reflect.has");
Return(CallBuiltin(Builtins::kHasProperty, context, target, key));
}