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

Side by Side Diff: src/code-stub-assembler.h

Issue 2590563003: [promises] Remove deferred object (Closed)
Patch Set: rebase Created 3 years, 11 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-promise.cc ('k') | src/code-stub-assembler.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 #ifndef V8_CODE_STUB_ASSEMBLER_H_ 5 #ifndef V8_CODE_STUB_ASSEMBLER_H_
6 #define V8_CODE_STUB_ASSEMBLER_H_ 6 #define V8_CODE_STUB_ASSEMBLER_H_
7 7
8 #include <functional> 8 #include <functional>
9 9
10 #include "src/compiler/code-assembler.h" 10 #include "src/compiler/code-assembler.h"
(...skipping 1116 matching lines...) Expand 10 before | Expand all | Expand 10 after
1127 // Promise helpers 1127 // Promise helpers
1128 Node* IsPromiseHookEnabled(); 1128 Node* IsPromiseHookEnabled();
1129 1129
1130 Node* AllocateJSPromise(Node* context); 1130 Node* AllocateJSPromise(Node* context);
1131 void PromiseInit(Node* promise); 1131 void PromiseInit(Node* promise);
1132 1132
1133 // Other promise fields may also be need to set/reset. This only 1133 // Other promise fields may also be need to set/reset. This only
1134 // provides a helper for certain init patterns. 1134 // provides a helper for certain init patterns.
1135 void PromiseSet(Node* promise, Node* status, Node* result); 1135 void PromiseSet(Node* promise, Node* status, Node* result);
1136 1136
1137 Node* AllocatePromiseReactionJobInfo(Node* value, Node* promise, Node* tasks, 1137 Node* AllocatePromiseReactionJobInfo(Node* promise, Node* value, Node* tasks,
1138 Node* deferred, Node* context); 1138 Node* deferred_promise,
1139 Node* deferred_on_resolve,
1140 Node* deferred_on_reject, Node* context);
1139 1141
1140 protected: 1142 protected:
1141 void DescriptorLookupLinear(Node* unique_name, Node* descriptors, Node* nof, 1143 void DescriptorLookupLinear(Node* unique_name, Node* descriptors, Node* nof,
1142 Label* if_found, Variable* var_name_index, 1144 Label* if_found, Variable* var_name_index,
1143 Label* if_not_found); 1145 Label* if_not_found);
1144 1146
1145 Node* CallGetterIfAccessor(Node* value, Node* details, Node* context, 1147 Node* CallGetterIfAccessor(Node* value, Node* details, Node* context,
1146 Node* receiver, Label* if_bailout); 1148 Node* receiver, Label* if_bailout);
1147 1149
1148 Node* TryToIntptr(Node* key, Label* miss); 1150 Node* TryToIntptr(Node* key, Label* miss);
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
1241 } 1243 }
1242 #else 1244 #else
1243 #define CSA_SLOW_ASSERT(csa, x) ((void)0) 1245 #define CSA_SLOW_ASSERT(csa, x) ((void)0)
1244 #endif 1246 #endif
1245 1247
1246 DEFINE_OPERATORS_FOR_FLAGS(CodeStubAssembler::AllocationFlags); 1248 DEFINE_OPERATORS_FOR_FLAGS(CodeStubAssembler::AllocationFlags);
1247 1249
1248 } // namespace internal 1250 } // namespace internal
1249 } // namespace v8 1251 } // namespace v8
1250 #endif // V8_CODE_STUB_ASSEMBLER_H_ 1252 #endif // V8_CODE_STUB_ASSEMBLER_H_
OLDNEW
« no previous file with comments | « src/builtins/builtins-promise.cc ('k') | src/code-stub-assembler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698