Index: src/objects-inl.h |
diff --git a/src/objects-inl.h b/src/objects-inl.h |
index be2bb52d80b76ae86c6fbbe0b725249ad2847974..375b963c194036eb4314eb848e769f32a337a5cc 100644 |
--- a/src/objects-inl.h |
+++ b/src/objects-inl.h |
@@ -5640,8 +5640,19 @@ void Script::set_origin_options(ScriptOriginOptions origin_options) { |
(origin_options.Flags() << kOriginOptionsShift)); |
} |
+SharedFunctionInfo* DebugInfo::shared() const { |
+ DCHECK(has_shared()); |
+ return SharedFunctionInfo::cast(READ_FIELD(this, kSharedFunctionInfoIndex)); |
+} |
+void DebugInfo::set_shared(SharedFunctionInfo* shared, WriteBarrierMode mode) { |
+ WRITE_FIELD(this, kSharedFunctionInfoIndex, shared); |
+ CONDITIONAL_WRITE_BARRIER(GetHeap(), this, kSharedFunctionInfoIndex, shared, |
+ mode); |
+} |
+bool DebugInfo::has_shared() const { |
+ return !READ_FIELD(this, kSharedFunctionInfoIndex)->IsUndefined(GetIsolate()); |
+} |
-ACCESSORS(DebugInfo, shared, SharedFunctionInfo, kSharedFunctionInfoIndex) |
ACCESSORS(DebugInfo, abstract_code, AbstractCode, kAbstractCodeIndex) |
ACCESSORS(DebugInfo, break_points, FixedArray, kBreakPointsStateIndex) |