Index: src/factory.cc |
diff --git a/src/factory.cc b/src/factory.cc |
index 571cd3ff9b66395a82411de91de0304353b6e16a..3d45c2116c1496663a30943a25e12ebe0fab7ee3 100644 |
--- a/src/factory.cc |
+++ b/src/factory.cc |
@@ -917,6 +917,13 @@ Handle<Script> Factory::NewScript(Handle<String> source) { |
return script; |
} |
+Handle<StackTraceFrame> Factory::NewStackTraceFrame() { |
+ Handle<StackTraceFrame> frame = |
+ Handle<StackTraceFrame>::cast(NewStruct(STACK_TRACE_FRAME_TYPE)); |
+ frame->set_flags(0); |
+ frame->set_offset(0); |
+ return frame; |
+} |
Handle<Foreign> Factory::NewForeign(Address addr, PretenureFlag pretenure) { |
CALL_HEAP_FUNCTION(isolate(), |