[cleanup] Finish Tnodifying builtins-array-gen.cc
Bug: v8:9810 Change-Id: I5bf191a77c79c96f25eb97d0fbbc05d967af17fb Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/1906572 Reviewed-by: Igor Sheludko <ishell@chromium.org> Commit-Queue: Dan Elphick <delphick@chromium.org> Cr-Commit-Position: refs/heads/master@{#64942}
This commit is contained in:
parent
961619261d
commit
a5376b7e8f
@ -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,
|
||||
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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user