Index: src/factory.cc |
diff --git a/src/factory.cc b/src/factory.cc |
index 865996ff4eaff9345007a482f41ca6584d68ee4d..7b0196a99c533286ba9ba9240c6bff57d35087ab 100644 |
--- a/src/factory.cc |
+++ b/src/factory.cc |
@@ -2592,6 +2592,19 @@ Handle<BreakPointInfo> Factory::NewBreakPointInfo(int source_position) { |
return new_break_point_info; |
} |
+Handle<StackFrameInfo> Factory::NewStackFrameInfo() { |
+ Handle<StackFrameInfo> stack_frame_info = |
+ Handle<StackFrameInfo>::cast(NewStruct(STACK_FRAME_INFO_TYPE)); |
+ stack_frame_info->set_line_number(0); |
+ stack_frame_info->set_column_number(0); |
+ stack_frame_info->set_script_id(0); |
+ stack_frame_info->set_script_name(Smi::kZero); |
+ stack_frame_info->set_script_name_or_source_url(Smi::kZero); |
+ stack_frame_info->set_function_name(Smi::kZero); |
+ stack_frame_info->set_flag(0); |
+ return stack_frame_info; |
+} |
+ |
Handle<JSObject> Factory::NewArgumentsObject(Handle<JSFunction> callee, |
int length) { |
bool strict_mode_callee = is_strict(callee->shared()->language_mode()) || |