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

[builtins] Add typing to builtins-array-gen

Convert all context, receiver and argc Node*s to their appropriate TNode
type.

Bug: v8:7310
Change-Id: Ic6bf22ffb22199d390731d424b7395c47a8f19cf
Reviewed-on: https://chromium-review.googlesource.com/934442
Commit-Queue: Dan Elphick <delphick@chromium.org>
Reviewed-by: 's avatarPeter Marshall <petermarshall@chromium.org>
Cr-Commit-Position: refs/heads/master@{#51511}
parent 4be3f416
This diff is collapsed.
......@@ -69,10 +69,10 @@ class ArrayBuiltinsAssembler : public CodeStubAssembler {
void NullPostLoopAction();
protected:
Node* context() { return context_; }
Node* receiver() { return receiver_; }
TNode<Context> context() { return context_; }
TNode<Object> receiver() { return receiver_; }
Node* new_target() { return new_target_; }
Node* argc() { return argc_; }
TNode<IntPtrT> argc() { return argc_; }
Node* o() { return o_; }
Node* len() { return len_; }
Node* callbackfn() { return callbackfn_; }
......@@ -82,9 +82,10 @@ class ArrayBuiltinsAssembler : public CodeStubAssembler {
void ReturnFromBuiltin(Node* value);
void InitIteratingArrayBuiltinBody(Node* context, Node* receiver,
Node* callbackfn, Node* this_arg,
Node* new_target, Node* argc);
void InitIteratingArrayBuiltinBody(TNode<Context> context,
TNode<Object> receiver, Node* callbackfn,
Node* this_arg, Node* new_target,
TNode<IntPtrT> argc);
void GenerateIteratingArrayBuiltinBody(
const char* name, const BuiltinResultGenerator& generator,
......@@ -92,11 +93,9 @@ class ArrayBuiltinsAssembler : public CodeStubAssembler {
const Callable& slow_case_continuation,
MissingPropertyMode missing_property_mode,
ForEachDirection direction = ForEachDirection::kForward);
void InitIteratingArrayBuiltinLoopContinuation(Node* context, Node* receiver,
Node* callbackfn,
Node* this_arg, Node* a,
Node* o, Node* initial_k,
Node* len, Node* to);
void InitIteratingArrayBuiltinLoopContinuation(
TNode<Context> context, TNode<Object> receiver, Node* callbackfn,
Node* this_arg, Node* a, Node* o, Node* initial_k, Node* len, Node* to);
void GenerateIteratingTypedArrayBuiltinBody(
const char* name, const BuiltinResultGenerator& generator,
......@@ -138,10 +137,10 @@ class ArrayBuiltinsAssembler : public CodeStubAssembler {
Node* o_ = nullptr;
Node* this_arg_ = nullptr;
Node* len_ = nullptr;
Node* context_ = nullptr;
Node* receiver_ = nullptr;
TNode<Context> context_;
TNode<Object> receiver_;
Node* new_target_ = nullptr;
Node* argc_ = nullptr;
TNode<IntPtrT> argc_;
Node* fast_typed_array_target_ = nullptr;
const char* name_ = nullptr;
Variable k_;
......
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