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

Unified Diff: src/factory.cc

Issue 2788413004: [inspector] cache stack frame for call sites (Closed)
Patch Set: rebased Created 3 years, 8 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
« src/api.cc ('K') | « src/factory.h ('k') | src/inspector/v8-debugger.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 5e3b3f3283adfb01e511c43210701fcf1d31a980..deb808c4071aa0bf9b75e038d04f0bb39379f31b 100644
--- a/src/factory.cc
+++ b/src/factory.cc
@@ -2614,6 +2614,21 @@ Handle<StackTraceInfo> Factory::NewStackTraceInfo(
return stack_trace_info;
}
+Handle<SourcePositionTableWithFrameCache>
+Factory::NewSourcePositionTableWithFrameCache(
+ Handle<ByteArray> source_position_table,
+ Handle<UnseededNumberDictionary> stack_frame_cache) {
+ Handle<SourcePositionTableWithFrameCache>
+ source_position_table_with_frame_cache =
+ Handle<SourcePositionTableWithFrameCache>::cast(
+ NewStruct(SOURCE_POSITION_TABLE_WITH_FRAME_CACHE_TYPE));
+ source_position_table_with_frame_cache->set_source_position_table(
+ *source_position_table);
+ source_position_table_with_frame_cache->set_stack_frame_cache(
+ *stack_frame_cache);
+ return source_position_table_with_frame_cache;
+}
+
Handle<JSObject> Factory::NewArgumentsObject(Handle<JSFunction> callee,
int length) {
bool strict_mode_callee = is_strict(callee->shared()->language_mode()) ||
« src/api.cc ('K') | « src/factory.h ('k') | src/inspector/v8-debugger.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698