summaryrefslogtreecommitdiff
path: root/src/env.h
diff options
context:
space:
mode:
authorJoyee Cheung <joyeec9h3@gmail.com>2019-03-20 19:42:02 +0800
committerJoyee Cheung <joyeec9h3@gmail.com>2019-03-27 10:30:14 -0400
commit242466167d6379791858ce59ca11d823c2eb4469 (patch)
tree5c937f7f0bbfc7801758e98c4c6f4dbef3b0294a /src/env.h
parent4565698227c2644cc59bcdb705c4f4c92667d0d7 (diff)
downloadandroid-node-v8-242466167d6379791858ce59ca11d823c2eb4469.tar.gz
android-node-v8-242466167d6379791858ce59ca11d823c2eb4469.tar.bz2
android-node-v8-242466167d6379791858ce59ca11d823c2eb4469.zip
src: move TickInfo out of Environment
PR-URL: https://github.com/nodejs/node/pull/26824 Refs: https://github.com/nodejs/node/issues/26776 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'src/env.h')
-rw-r--r--src/env.h40
1 files changed, 18 insertions, 22 deletions
diff --git a/src/env.h b/src/env.h
index 27603db19e..c7ec9670a9 100644
--- a/src/env.h
+++ b/src/env.h
@@ -647,6 +647,24 @@ class ImmediateInfo {
AliasedBuffer<uint32_t, v8::Uint32Array> fields_;
};
+class TickInfo {
+ public:
+ inline AliasedBuffer<uint8_t, v8::Uint8Array>& fields();
+ inline bool has_tick_scheduled() const;
+ inline bool has_rejection_to_warn() const;
+
+ TickInfo(const TickInfo&) = delete;
+ TickInfo& operator=(const TickInfo&) = delete;
+
+ private:
+ friend class Environment; // So we can call the constructor.
+ inline explicit TickInfo(v8::Isolate* isolate);
+
+ enum Fields { kHasTickScheduled = 0, kHasRejectionToWarn, kFieldsCount };
+
+ AliasedBuffer<uint8_t, v8::Uint8Array> fields_;
+};
+
class Environment {
public:
Environment(const Environment&) = delete;
@@ -656,28 +674,6 @@ class Environment {
inline void PushAsyncCallbackScope();
inline void PopAsyncCallbackScope();
- class TickInfo {
- public:
- inline AliasedBuffer<uint8_t, v8::Uint8Array>& fields();
- inline bool has_tick_scheduled() const;
- inline bool has_rejection_to_warn() const;
-
- TickInfo(const TickInfo&) = delete;
- TickInfo& operator=(const TickInfo&) = delete;
-
- private:
- friend class Environment; // So we can call the constructor.
- inline explicit TickInfo(v8::Isolate* isolate);
-
- enum Fields {
- kHasTickScheduled = 0,
- kHasRejectionToWarn,
- kFieldsCount
- };
-
- AliasedBuffer<uint8_t, v8::Uint8Array> fields_;
- };
-
enum Flags {
kNoFlags = 0,
kIsMainThread = 1 << 0,