Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(357)

Side by Side Diff: src/builtins/builtins-async-gen.cc

Issue 2752143004: [refactor] Separate generated builtins and C++ builtins into separate files (Closed)
Patch Set: tentative gcmole fix Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/builtins/builtins-async-function-gen.cc ('k') | src/builtins/builtins-async-iterator.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 the V8 project authors. All rights reserved. 1 // Copyright 2016 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "src/builtins/builtins-async.h" 5 #include "src/builtins/builtins-async.h"
6 #include "src/builtins/builtins-utils.h"
7 #include "src/builtins/builtins.h"
8 #include "src/code-factory.h"
9 #include "src/code-stub-assembler.h"
10 #include "src/frames-inl.h"
11 6
12 namespace v8 { 7 namespace v8 {
13 namespace internal { 8 namespace internal {
14 9
10 using compiler::Node;
11
15 Node* AsyncBuiltinsAssembler::Await( 12 Node* AsyncBuiltinsAssembler::Await(
16 Node* context, Node* generator, Node* value, Node* outer_promise, 13 Node* context, Node* generator, Node* value, Node* outer_promise,
17 const NodeGenerator1& create_closure_context, int on_resolve_context_index, 14 const NodeGenerator1& create_closure_context, int on_resolve_context_index,
18 int on_reject_context_index, bool is_predicted_as_caught) { 15 int on_reject_context_index, bool is_predicted_as_caught) {
19 // Let promiseCapability be ! NewPromiseCapability(%Promise%). 16 // Let promiseCapability be ! NewPromiseCapability(%Promise%).
20 Node* const wrapped_value = AllocateAndInitJSPromise(context); 17 Node* const wrapped_value = AllocateAndInitJSPromise(context);
21 18
22 // Perform ! Call(promiseCapability.[[Resolve]], undefined, « promise »). 19 // Perform ! Call(promiseCapability.[[Resolve]], undefined, « promise »).
23 InternalResolvePromise(context, wrapped_value, value); 20 InternalResolvePromise(context, wrapped_value, value);
24 21
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 Bind(&do_perform_promise_then); 80 Bind(&do_perform_promise_then);
84 InternalPerformPromiseThen(context, wrapped_value, on_resolve, on_reject, 81 InternalPerformPromiseThen(context, wrapped_value, on_resolve, on_reject,
85 throwaway_promise, UndefinedConstant(), 82 throwaway_promise, UndefinedConstant(),
86 UndefinedConstant()); 83 UndefinedConstant());
87 84
88 return wrapped_value; 85 return wrapped_value;
89 } 86 }
90 87
91 } // namespace internal 88 } // namespace internal
92 } // namespace v8 89 } // namespace v8
OLDNEW
« no previous file with comments | « src/builtins/builtins-async-function-gen.cc ('k') | src/builtins/builtins-async-iterator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698