diff options
Diffstat (limited to 'src/node_snapshot_builder.h')
-rw-r--r-- | src/node_snapshot_builder.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/node_snapshot_builder.h b/src/node_snapshot_builder.h index 183c39bdd76..61450a51dfa 100644 --- a/src/node_snapshot_builder.h +++ b/src/node_snapshot_builder.h @@ -29,6 +29,9 @@ class SnapshotBuilder { static void InitializeIsolateParams(const SnapshotData* data, v8::Isolate::CreateParams* params); + static const size_t kNodeBaseContextIndex = 0; + static const size_t kNodeMainContextIndex = kNodeBaseContextIndex + 1; + private: // Used to synchronize access to the snapshot data static Mutex snapshot_data_mutex_; |