| Index: src/heap-snapshot-generator.cc
|
| diff --git a/src/heap-snapshot-generator.cc b/src/heap-snapshot-generator.cc
|
| index 929064489bc2115bc0bdaf009cb0cde42b290a46..38703784a3428c3b40b89b31b85ac07553ceaffa 100644
|
| --- a/src/heap-snapshot-generator.cc
|
| +++ b/src/heap-snapshot-generator.cc
|
| @@ -1489,9 +1489,11 @@ void V8HeapExplorer::ExtractCodeReferences(int entry, Code* code) {
|
| SetInternalReference(code, entry,
|
| "gc_metadata", code->gc_metadata(),
|
| Code::kGCMetadataOffset);
|
| - SetInternalReference(code, entry,
|
| - "constant_pool", code->constant_pool(),
|
| - Code::kConstantPoolOffset);
|
| + if (FLAG_enable_ool_constant_pool) {
|
| + SetInternalReference(code, entry, "constant_pool",
|
| + reinterpret_cast<Object*>(code->constant_pool()),
|
| + Code::kConstantPoolOffset);
|
| + }
|
| if (code->kind() == Code::OPTIMIZED_FUNCTION) {
|
| SetWeakReference(code, entry,
|
| "next_code_link", code->next_code_link(),
|
|
|