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

Side by Side Diff: src/promise-utils.h

Issue 2611083002: [promises] Add AllocatePromiseResolveThenableJobInfo to TF (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/factory.cc ('k') | src/promise-utils.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_PROMISE_UTILS_H_ 5 #ifndef V8_PROMISE_UTILS_H_
6 #define V8_PROMISE_UTILS_H_ 6 #define V8_PROMISE_UTILS_H_
7 7
8 #include "src/contexts.h" 8 #include "src/contexts.h"
9 #include "src/objects.h" 9 #include "src/objects.h"
10 10
(...skipping 15 matching lines...) Expand all
26 kDebugEventSlot, 26 kDebugEventSlot,
27 kPromiseContextLength, 27 kPromiseContextLength,
28 }; 28 };
29 29
30 // These get and set the slots on the PromiseResolvingContext, which 30 // These get and set the slots on the PromiseResolvingContext, which
31 // is used by the resolve/reject promise callbacks. 31 // is used by the resolve/reject promise callbacks.
32 static JSPromise* GetPromise(Handle<Context> context); 32 static JSPromise* GetPromise(Handle<Context> context);
33 static Object* GetDebugEvent(Handle<Context> context); 33 static Object* GetDebugEvent(Handle<Context> context);
34 static bool HasAlreadyVisited(Handle<Context> context); 34 static bool HasAlreadyVisited(Handle<Context> context);
35 static void SetAlreadyVisited(Handle<Context> context); 35 static void SetAlreadyVisited(Handle<Context> context);
36
37 static void CreateResolvingFunctions(Isolate* isolate,
38 Handle<JSObject> promise,
39 Handle<Object> debug_event,
40 Handle<JSFunction>* resolve,
41 Handle<JSFunction>* reject);
42 }; 36 };
43 37
44 class GetPromiseCapabilityExecutor : public AllStatic { 38 class GetPromiseCapabilityExecutor : public AllStatic {
45 public: 39 public:
46 enum FunctionContextSlot { 40 enum FunctionContextSlot {
47 kCapabilitySlot = Context::MIN_CONTEXT_SLOTS, 41 kCapabilitySlot = Context::MIN_CONTEXT_SLOTS,
48 42
49 kContextLength, 43 kContextLength,
50 }; 44 };
51 }; 45 };
52 46
53 } // namespace internal 47 } // namespace internal
54 } // namespace v8 48 } // namespace v8
55 49
56 #endif // V8_PROMISE_UTILS_H_ 50 #endif // V8_PROMISE_UTILS_H_
OLDNEW
« no previous file with comments | « src/factory.cc ('k') | src/promise-utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698