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)); |