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

Unified Diff: src/factory.cc

Issue 2685163006: [inspector] migrate set/remove BreakPoint to debug-interface.h (Closed)
Patch Set: added a test, ready for review 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
Index: src/factory.cc
diff --git a/src/factory.cc b/src/factory.cc
index 20bc5ac3ef311088cd12a0e834a9c81cf0d92af1..3bc9e0d954e551d70792bc375cb6aef0a268a611 100644
--- a/src/factory.cc
+++ b/src/factory.cc
@@ -2558,6 +2558,15 @@ Handle<DebugInfo> Factory::NewDebugInfo(Handle<SharedFunctionInfo> shared) {
return debug_info;
}
+Handle<BreakPoint> Factory::NewBreakPoint(Handle<Object> condition,
+ Handle<Object> data) {
+ Handle<BreakPoint> new_break_point =
+ Handle<BreakPoint>::cast(NewStruct(BREAK_POINT_TYPE));
+ new_break_point->set_condition(*condition);
+ new_break_point->set_data(*data);
+ return new_break_point;
+}
+
Handle<BreakPointInfo> Factory::NewBreakPointInfo(int source_position) {
Handle<BreakPointInfo> new_break_point_info =
Handle<BreakPointInfo>::cast(NewStruct(BREAK_POINT_INFO_TYPE));

Powered by Google App Engine
This is Rietveld 408576698