Commit a5376b7e authored by Dan Elphick's avatar Dan Elphick Committed by Commit Bot

[cleanup] Finish Tnodifying builtins-array-gen.cc

Bug: v8:9810
Change-Id: I5bf191a77c79c96f25eb97d0fbbc05d967af17fb
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/1906572Reviewed-by: 's avatarIgor Sheludko <ishell@chromium.org>
Commit-Queue: Dan Elphick <delphick@chromium.org>
Cr-Commit-Position: refs/heads/master@{#64942}
parent 96161926
......@@ -442,8 +442,8 @@ TF_BUILTIN(ExtractFastJSArray, ArrayBuiltinsAssembler) {
ParameterMode mode = OptimalParameterMode();
TNode<Context> context = CAST(Parameter(Descriptor::kContext));
TNode<JSArray> array = CAST(Parameter(Descriptor::kSource));
Node* begin = TaggedToParameter(Parameter(Descriptor::kBegin), mode);
Node* count = TaggedToParameter(Parameter(Descriptor::kCount), mode);
TNode<BInt> begin = SmiToBInt(CAST(Parameter(Descriptor::kBegin)));
TNode<BInt> count = SmiToBInt(CAST(Parameter(Descriptor::kCount)));
CSA_ASSERT(this, Word32BinaryNot(IsNoElementsProtectorCellInvalid()));
......@@ -659,10 +659,11 @@ TF_BUILTIN(ArrayFrom, ArrayPopulatorAssembler) {
GotoIf(IsUndefined(map_function), &next);
CSA_ASSERT(this, IsCallable(CAST(map_function)));
Node* v = CallJS(CodeFactory::Call(isolate()), context, map_function,
this_arg, value.value(), index.value());
TNode<Object> v =
CallJS(CodeFactory::Call(isolate()), context, map_function,
this_arg, value.value(), index.value());
GotoIfException(v, &on_exception, &var_exception);
value = CAST(v);
value = v;
Goto(&next);
BIND(&next);
}
......
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