Index: src/profile-generator.cc |
diff --git a/src/profile-generator.cc b/src/profile-generator.cc |
index 9839edf7e24fb56b713e02d8c85f3889a7a920b2..23018f035f8bf4a4c3f5a11d11c378b6ea9c5fc8 100644 |
--- a/src/profile-generator.cc |
+++ b/src/profile-generator.cc |
@@ -2130,9 +2130,11 @@ void V8HeapExplorer::ExtractCodeReferences(int entry, Code* code) { |
SetInternalReference(code, entry, |
"deoptimization_data", code->deoptimization_data(), |
Code::kDeoptimizationDataOffset); |
- SetInternalReference(code, entry, |
- "type_feedback_info", code->type_feedback_info(), |
- Code::kTypeFeedbackInfoOffset); |
+ if (code->kind() == Code::FUNCTION) { |
+ SetInternalReference(code, entry, |
+ "type_feedback_info", code->type_feedback_info(), |
+ Code::kTypeFeedbackInfoOffset); |
+ } |
SetInternalReference(code, entry, |
"gc_metadata", code->gc_metadata(), |
Code::kGCMetadataOffset); |