Index: src/profiler/heap-snapshot-generator.cc |
diff --git a/src/profiler/heap-snapshot-generator.cc b/src/profiler/heap-snapshot-generator.cc |
index e37f03df1b00394eaa99625c3a987b930ceb4c1b..7abb1f199261bee33a0ba1873777a71090af177a 100644 |
--- a/src/profiler/heap-snapshot-generator.cc |
+++ b/src/profiler/heap-snapshot-generator.cc |
@@ -1158,8 +1158,11 @@ void V8HeapExplorer::ExtractJSObjectReferences( |
SetWeakReference(js_fun, entry, |
"next_function_link", js_fun->next_function_link(), |
JSFunction::kNextFunctionLinkOffset); |
- STATIC_ASSERT(JSFunction::kNextFunctionLinkOffset |
- == JSFunction::kNonWeakFieldsEndOffset); |
+ // Ensure there are no new weak references appeared in JSFunction. |
Michael Starzinger
2015/11/10 10:40:32
nit: Drop the "there are" in this sentence.
Igor Sheludko
2015/11/10 10:58:11
Done.
|
+ STATIC_ASSERT(JSFunction::kCodeEntryOffset == |
+ JSFunction::kNonWeakFieldsEndOffset); |
+ STATIC_ASSERT(JSFunction::kCodeEntryOffset + kPointerSize == |
+ JSFunction::kNextFunctionLinkOffset); |
STATIC_ASSERT(JSFunction::kNextFunctionLinkOffset + kPointerSize |
== JSFunction::kSize); |
} else if (obj->IsJSGlobalObject()) { |