Index: src/objects-inl.h |
diff --git a/src/objects-inl.h b/src/objects-inl.h |
index 0cb42f9b27778b40fa64a149198fedad2c7bee0c..6ecc622af6c6966881ecc1ecbb3e9b997f750ec9 100644 |
--- a/src/objects-inl.h |
+++ b/src/objects-inl.h |
@@ -6433,6 +6433,7 @@ INT_ACCESSORS(Code, constant_pool_offset, kConstantPoolOffset) |
ACCESSORS(Code, relocation_info, ByteArray, kRelocationInfoOffset) |
ACCESSORS(Code, handler_table, FixedArray, kHandlerTableOffset) |
ACCESSORS(Code, deoptimization_data, FixedArray, kDeoptimizationDataOffset) |
+ACCESSORS(Code, source_position_table, ByteArray, kSourcePositionTableOffset) |
ACCESSORS(Code, raw_type_feedback_info, Object, kTypeFeedbackInfoOffset) |
ACCESSORS(Code, next_code_link, Object, kNextCodeLinkOffset) |
@@ -6441,6 +6442,7 @@ void Code::WipeOutHeader() { |
WRITE_FIELD(this, kRelocationInfoOffset, NULL); |
WRITE_FIELD(this, kHandlerTableOffset, NULL); |
WRITE_FIELD(this, kDeoptimizationDataOffset, NULL); |
+ WRITE_FIELD(this, kSourcePositionTableOffset, NULL); |
// Do not wipe out major/minor keys on a code stub or IC |
if (!READ_FIELD(this, kTypeFeedbackInfoOffset)->IsSmi()) { |
WRITE_FIELD(this, kTypeFeedbackInfoOffset, NULL); |
@@ -6500,6 +6502,7 @@ int Code::SizeIncludingMetadata() { |
size += relocation_info()->Size(); |
size += deoptimization_data()->Size(); |
size += handler_table()->Size(); |
+ if (kind() == FUNCTION) size += source_position_table()->Size(); |
return size; |
} |