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

Unified Diff: src/factory.cc

Issue 2788413004: [inspector] cache stack frame for call sites (Closed)
Patch Set: reverted v8-debugger change 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
« 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 df119795418b345ec375ba15e71dad5d32d5d9c1..91110ed98fd3dc5b8bc419fde7ec04a0aeff8ed1 100644
--- a/src/factory.cc
+++ b/src/factory.cc
@@ -2620,6 +2620,21 @@ Handle<StackFrameInfo> Factory::NewStackFrameInfo() {
return stack_frame_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(TUPLE2_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()) ||
« 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