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

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
Index: src/factory.cc
diff --git a/src/factory.cc b/src/factory.cc
index 7b0196a99c533286ba9ba9240c6bff57d35087ab..d78def8d04a0cb43c6d3516aa8438a5610bccd67 100644
--- a/src/factory.cc
+++ b/src/factory.cc
@@ -2605,6 +2605,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(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()) ||
« include/v8.h ('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