@@ -642,6 +642,24 @@ class ImmediateInfo {
642642 AliasedBuffer<uint32_t , v8::Uint32Array> fields_;
643643};
644644
645+ class TickInfo {
646+ public:
647+ inline AliasedBuffer<uint8_t , v8::Uint8Array>& fields ();
648+ inline bool has_tick_scheduled () const ;
649+ inline bool has_rejection_to_warn () const ;
650+
651+ TickInfo (const TickInfo&) = delete ;
652+ TickInfo& operator =(const TickInfo&) = delete ;
653+
654+ private:
655+ friend class Environment ; // So we can call the constructor.
656+ inline explicit TickInfo (v8::Isolate* isolate);
657+
658+ enum Fields { kHasTickScheduled = 0 , kHasRejectionToWarn , kFieldsCount };
659+
660+ AliasedBuffer<uint8_t , v8::Uint8Array> fields_;
661+ };
662+
645663class Environment {
646664 public:
647665 Environment (const Environment&) = delete ;
@@ -651,28 +669,6 @@ class Environment {
651669 inline void PushAsyncCallbackScope ();
652670 inline void PopAsyncCallbackScope ();
653671
654- class TickInfo {
655- public:
656- inline AliasedBuffer<uint8_t , v8::Uint8Array>& fields ();
657- inline bool has_tick_scheduled () const ;
658- inline bool has_rejection_to_warn () const ;
659-
660- TickInfo (const TickInfo&) = delete ;
661- TickInfo& operator =(const TickInfo&) = delete ;
662-
663- private:
664- friend class Environment ; // So we can call the constructor.
665- inline explicit TickInfo (v8::Isolate* isolate);
666-
667- enum Fields {
668- kHasTickScheduled = 0 ,
669- kHasRejectionToWarn ,
670- kFieldsCount
671- };
672-
673- AliasedBuffer<uint8_t , v8::Uint8Array> fields_;
674- };
675-
676672 enum Flags {
677673 kNoFlags = 0 ,
678674 kIsMainThread = 1 << 0 ,
0 commit comments