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

Unified Diff: src/objects.h

Issue 2685163006: [inspector] migrate set/remove BreakPoint to debug-interface.h (Closed)
Patch Set: added comment about inlined jsframe index Created 3 years, 10 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/inspector/v8-debugger-script.cc ('k') | src/objects-debug.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/objects.h
diff --git a/src/objects.h b/src/objects.h
index dc1ba72f96cc8d4e53db78b043cfd2c8b8f88eb7..19d9a20f889c8a5f7f1c086ac84f4f3e7119b7b7 100644
--- a/src/objects.h
+++ b/src/objects.h
@@ -144,6 +144,7 @@
// - ObjectTemplateInfo
// - Script
// - DebugInfo
+// - BreakPoint
// - BreakPointInfo
// - CodeCache
// - PrototypeInfo
@@ -358,6 +359,7 @@ const int kStubMinorKeyBits = kSmiValueSize - kStubMajorKeyBits - 1;
V(PROMISE_RESOLVE_THENABLE_JOB_INFO_TYPE) \
V(PROMISE_REACTION_JOB_INFO_TYPE) \
V(DEBUG_INFO_TYPE) \
+ V(BREAK_POINT_TYPE) \
V(BREAK_POINT_INFO_TYPE) \
V(PROTOTYPE_INFO_TYPE) \
V(TUPLE2_TYPE) \
@@ -527,6 +529,7 @@ const int kStubMinorKeyBits = kSmiValueSize - kStubMajorKeyBits - 1;
V(PROMISE_REACTION_JOB_INFO, PromiseReactionJobInfo, \
promise_reaction_job_info) \
V(DEBUG_INFO, DebugInfo, debug_info) \
+ V(BREAK_POINT, BreakPoint, break_point) \
V(BREAK_POINT_INFO, BreakPointInfo, break_point_info) \
V(PROTOTYPE_INFO, PrototypeInfo, prototype_info) \
V(TUPLE2, Tuple2, tuple2) \
@@ -698,6 +701,7 @@ enum InstanceType {
PROMISE_RESOLVE_THENABLE_JOB_INFO_TYPE,
PROMISE_REACTION_JOB_INFO_TYPE,
DEBUG_INFO_TYPE,
+ BREAK_POINT_TYPE,
BREAK_POINT_INFO_TYPE,
PROTOTYPE_INFO_TYPE,
TUPLE2_TYPE,
@@ -11433,6 +11437,24 @@ class BreakPointInfo: public Struct {
DISALLOW_IMPLICIT_CONSTRUCTORS(BreakPointInfo);
};
+class BreakPoint : public Struct {
+ public:
+ DECL_ACCESSORS(condition, String);
+ DECL_ACCESSORS(data, Object);
+
+ DECLARE_CAST(BreakPoint)
+
+ // Dispatched behavior.
+ DECLARE_PRINTER(BreakPoint)
+ DECLARE_VERIFIER(BreakPoint)
+
+ static const int kConditionIndex = Struct::kHeaderSize;
+ static const int kDataIndex = kConditionIndex + kPointerSize;
+ static const int kSize = kDataIndex + kPointerSize;
+
+ private:
+ DISALLOW_IMPLICIT_CONSTRUCTORS(BreakPoint);
+};
#define VISITOR_SYNCHRONIZATION_TAGS_LIST(V) \
V(kStringTable, "string_table", "(Internalized strings)") \
« no previous file with comments | « src/inspector/v8-debugger-script.cc ('k') | src/objects-debug.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698