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

Unified Diff: src/factory.cc

Issue 2789073002: [inspector] store stack frame in struct instead of JSObject (Closed)
Patch Set: gcmole should be happy Created 3 years, 9 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/isolate.cc » ('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 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()) ||
« no previous file with comments | « src/factory.h ('k') | src/isolate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698