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

Unified Diff: src/factory.cc

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/factory.h ('k') | src/inspector/debugger-script.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/factory.cc
diff --git a/src/factory.cc b/src/factory.cc
index 20bc5ac3ef311088cd12a0e834a9c81cf0d92af1..91f13e2e7afe3d16754760e77ae1044bffb10ab2 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<String> 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));
« no previous file with comments | « src/factory.h ('k') | src/inspector/debugger-script.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698