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()) || |