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

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

Issue 2604273003: [csa] Refactor promises API (Closed)
Patch Set: comments 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 1110 matching lines...) Expand 10 before | Expand all | Expand 10 after
1121 1121
1122 Node* ElementOffsetFromIndex(Node* index, ElementsKind kind, 1122 Node* ElementOffsetFromIndex(Node* index, ElementsKind kind,
1123 ParameterMode mode, int base_size = 0); 1123 ParameterMode mode, int base_size = 0);
1124 1124
1125 Node* AllocateFunctionWithMapAndContext(Node* map, Node* shared_info, 1125 Node* AllocateFunctionWithMapAndContext(Node* map, Node* shared_info,
1126 Node* context); 1126 Node* context);
1127 1127
1128 // Promise helpers 1128 // Promise helpers
1129 Node* IsPromiseHookEnabled(); 1129 Node* IsPromiseHookEnabled();
1130 1130
1131 Node* AllocateJSPromise(Node* context);
1132 void PromiseInit(Node* promise);
1133
1134 // Other promise fields may also be need to set/reset. This only
1135 // provides a helper for certain init patterns.
1136 void PromiseSet(Node* promise, Node* status, Node* result);
1137
1138 Node* AllocatePromiseReactionJobInfo(Node* promise, Node* value, Node* tasks, 1131 Node* AllocatePromiseReactionJobInfo(Node* promise, Node* value, Node* tasks,
1139 Node* deferred_promise, 1132 Node* deferred_promise,
1140 Node* deferred_on_resolve, 1133 Node* deferred_on_resolve,
1141 Node* deferred_on_reject, Node* context); 1134 Node* deferred_on_reject, Node* context);
1142 1135
1143 protected: 1136 protected:
1144 void DescriptorLookupLinear(Node* unique_name, Node* descriptors, Node* nof, 1137 void DescriptorLookupLinear(Node* unique_name, Node* descriptors, Node* nof,
1145 Label* if_found, Variable* var_name_index, 1138 Label* if_found, Variable* var_name_index,
1146 Label* if_not_found); 1139 Label* if_not_found);
1147 1140
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
1259 } 1252 }
1260 #else 1253 #else
1261 #define CSA_SLOW_ASSERT(csa, x) ((void)0) 1254 #define CSA_SLOW_ASSERT(csa, x) ((void)0)
1262 #endif 1255 #endif
1263 1256
1264 DEFINE_OPERATORS_FOR_FLAGS(CodeStubAssembler::AllocationFlags); 1257 DEFINE_OPERATORS_FOR_FLAGS(CodeStubAssembler::AllocationFlags);
1265 1258
1266 } // namespace internal 1259 } // namespace internal
1267 } // namespace v8 1260 } // namespace v8
1268 #endif // V8_CODE_STUB_ASSEMBLER_H_ 1261 #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