Commit 2f1bc98f authored by Dan Elphick's avatar Dan Elphick Committed by Commit Bot

[csa] Tnodifiy builtins-async-iterator-gen.cc

Bug: v8:6949
Change-Id: I6cafec59b063e46d55967b678b209202d0328cd3
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/1852770Reviewed-by: 's avatarSantiago Aboy Solanes <solanes@chromium.org>
Commit-Queue: Dan Elphick <delphick@chromium.org>
Cr-Commit-Position: refs/heads/master@{#64237}
parent 7aa91da5
...@@ -278,7 +278,7 @@ void AsyncBuiltinsAssembler::InitializeNativeClosure( ...@@ -278,7 +278,7 @@ void AsyncBuiltinsAssembler::InitializeNativeClosure(
} }
TNode<JSFunction> AsyncBuiltinsAssembler::CreateUnwrapClosure( TNode<JSFunction> AsyncBuiltinsAssembler::CreateUnwrapClosure(
TNode<NativeContext> native_context, TNode<HeapObject> done) { TNode<NativeContext> native_context, TNode<Oddball> done) {
const TNode<Map> map = CAST(LoadContextElement( const TNode<Map> map = CAST(LoadContextElement(
native_context, Context::STRICT_FUNCTION_WITHOUT_PROTOTYPE_MAP_INDEX)); native_context, Context::STRICT_FUNCTION_WITHOUT_PROTOTYPE_MAP_INDEX));
const TNode<SharedFunctionInfo> on_fulfilled_shared = CAST(LoadContextElement( const TNode<SharedFunctionInfo> on_fulfilled_shared = CAST(LoadContextElement(
...@@ -290,7 +290,7 @@ TNode<JSFunction> AsyncBuiltinsAssembler::CreateUnwrapClosure( ...@@ -290,7 +290,7 @@ TNode<JSFunction> AsyncBuiltinsAssembler::CreateUnwrapClosure(
} }
TNode<Context> AsyncBuiltinsAssembler::AllocateAsyncIteratorValueUnwrapContext( TNode<Context> AsyncBuiltinsAssembler::AllocateAsyncIteratorValueUnwrapContext(
TNode<NativeContext> native_context, TNode<HeapObject> done) { TNode<NativeContext> native_context, TNode<Oddball> done) {
CSA_ASSERT(this, IsBoolean(done)); CSA_ASSERT(this, IsBoolean(done));
TNode<Context> context = TNode<Context> context =
......
...@@ -50,7 +50,7 @@ class AsyncBuiltinsAssembler : public PromiseBuiltinsAssembler { ...@@ -50,7 +50,7 @@ class AsyncBuiltinsAssembler : public PromiseBuiltinsAssembler {
// Return a new built-in function object as defined in // Return a new built-in function object as defined in
// Async Iterator Value Unwrap Functions // Async Iterator Value Unwrap Functions
TNode<JSFunction> CreateUnwrapClosure(TNode<NativeContext> native_context, TNode<JSFunction> CreateUnwrapClosure(TNode<NativeContext> native_context,
TNode<HeapObject> done); TNode<Oddball> done);
private: private:
void InitializeNativeClosure(TNode<Context> context, void InitializeNativeClosure(TNode<Context> context,
...@@ -58,7 +58,7 @@ class AsyncBuiltinsAssembler : public PromiseBuiltinsAssembler { ...@@ -58,7 +58,7 @@ class AsyncBuiltinsAssembler : public PromiseBuiltinsAssembler {
TNode<HeapObject> function, TNode<HeapObject> function,
TNode<IntPtrT> context_index); TNode<IntPtrT> context_index);
TNode<Context> AllocateAsyncIteratorValueUnwrapContext( TNode<Context> AllocateAsyncIteratorValueUnwrapContext(
TNode<NativeContext> native_context, TNode<HeapObject> done); TNode<NativeContext> native_context, TNode<Oddball> done);
TNode<Object> AwaitOld(TNode<Context> context, TNode<Object> AwaitOld(TNode<Context> context,
TNode<JSGeneratorObject> generator, TNode<JSGeneratorObject> generator,
......
This diff is collapsed.
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