Index: src/heap-snapshot-generator.cc |
diff --git a/src/heap-snapshot-generator.cc b/src/heap-snapshot-generator.cc |
index 5d10e3b66dbdf520b67ec26248ca6e8ac7109a03..9f4d6da89ffec82258151eda30dd9c62532026b5 100644 |
--- a/src/heap-snapshot-generator.cc |
+++ b/src/heap-snapshot-generator.cc |
@@ -1132,8 +1132,13 @@ void V8HeapExplorer::ExtractJSObjectReferences( |
"native_context", global_obj->native_context(), |
GlobalObject::kNativeContextOffset); |
SetInternalReference(global_obj, entry, |
+ "global_context", global_obj->global_context(), |
+ GlobalObject::kGlobalContextOffset); |
+ SetInternalReference(global_obj, entry, |
"global_receiver", global_obj->global_receiver(), |
GlobalObject::kGlobalReceiverOffset); |
+ STATIC_CHECK(GlobalObject::kHeaderSize - JSObject::kHeaderSize == |
+ 4 * kPointerSize); |
} else if (obj->IsJSArrayBufferView()) { |
JSArrayBufferView* view = JSArrayBufferView::cast(obj); |
SetInternalReference(view, entry, "buffer", view->buffer(), |