V8 API Reference, 7.2.502.16 (for Deno 0.2.4)
microtask-inl.h
1 // Copyright 2018 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 
5 #ifndef V8_OBJECTS_MICROTASK_INL_H_
6 #define V8_OBJECTS_MICROTASK_INL_H_
7 
8 #include "src/objects/microtask.h"
9 
10 #include "src/objects-inl.h" // Needed for write barriers
11 
12 // Has to be the last include (doesn't have include guards):
13 #include "src/objects/object-macros.h"
14 
15 namespace v8 {
16 namespace internal {
17 
18 CAST_ACCESSOR(Microtask)
19 CAST_ACCESSOR(CallbackTask)
20 CAST_ACCESSOR(CallableTask)
21 
22 ACCESSORS(CallableTask, callable, JSReceiver, kCallableOffset)
23 ACCESSORS2(CallableTask, context, Context, kContextOffset)
24 
25 ACCESSORS(CallbackTask, callback, Foreign, kCallbackOffset)
26 ACCESSORS(CallbackTask, data, Foreign, kDataOffset)
27 
28 } // namespace internal
29 } // namespace v8
30 
31 #include "src/objects/object-macros-undef.h"
32 
33 #endif // V8_OBJECTS_MICROTASK_INL_H_
Definition: libplatform.h:13