summaryrefslogtreecommitdiff
path: root/src/env.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/env.h')
-rw-r--r--src/env.h11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/env.h b/src/env.h
index cf118ac8d7..268abd441d 100644
--- a/src/env.h
+++ b/src/env.h
@@ -455,20 +455,19 @@ class Environment {
class TickInfo {
public:
- inline uint8_t* fields();
- inline int fields_count() const;
- inline uint8_t scheduled() const;
+ inline AliasedBuffer<uint8_t, v8::Uint8Array>& fields();
+ inline bool has_scheduled() const;
private:
friend class Environment; // So we can call the constructor.
- inline TickInfo();
+ inline explicit TickInfo(v8::Isolate* isolate);
enum Fields {
- kScheduled,
+ kHasScheduled,
kFieldsCount
};
- uint8_t fields_[kFieldsCount];
+ AliasedBuffer<uint8_t, v8::Uint8Array> fields_;
DISALLOW_COPY_AND_ASSIGN(TickInfo);
};