| OLD | NEW |
| 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 22 matching lines...) Expand all Loading... |
| 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 | 36 |
| 37 static void CreateResolvingFunctions(Isolate* isolate, | 37 static void CreateResolvingFunctions(Isolate* isolate, |
| 38 Handle<JSObject> promise, | 38 Handle<JSObject> promise, |
| 39 Handle<Object> debug_event, | 39 Handle<Object> debug_event, |
| 40 Handle<JSFunction>* resolve, | 40 Handle<JSFunction>* resolve, |
| 41 Handle<JSFunction>* reject); | 41 Handle<JSFunction>* reject); |
| 42 }; | 42 }; |
| 43 |
| 44 class GetPromiseCapabilityExecutor : public AllStatic { |
| 45 public: |
| 46 enum FunctionContextSlot { |
| 47 kCapabilitySlot = Context::MIN_CONTEXT_SLOTS, |
| 48 |
| 49 kContextLength, |
| 50 }; |
| 51 }; |
| 52 |
| 43 } // namespace internal | 53 } // namespace internal |
| 44 } // namespace v8 | 54 } // namespace v8 |
| 45 | 55 |
| 46 #endif // V8_PROMISE_UTILS_H_ | 56 #endif // V8_PROMISE_UTILS_H_ |
| OLD | NEW |