Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(229)

Unified Diff: src/objects-inl.h

Issue 2096863003: [wasm] prototype for breakpoint support. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@extend-script-functionality
Patch Set: Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/objects-debug.cc ('k') | src/runtime/runtime.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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)
« no previous file with comments | « src/objects-debug.cc ('k') | src/runtime/runtime.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698