Index: src/runtime.cc |
diff --git a/src/runtime.cc b/src/runtime.cc |
index 2e0df5001bcfd9435bf5d1e8e62b5cc79ae473ac..117e5ab36f6f7b7743ea43ef2e666220ee090e23 100644 |
--- a/src/runtime.cc |
+++ b/src/runtime.cc |
@@ -10059,8 +10059,10 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_GetFrameDetails) { |
int position = |
it.frame()->LookupCode()->SourcePosition(it.frame()->pc()); |
- // Check for constructor frame. |
- bool constructor = it.frame()->IsConstructor(); |
+ // Check for constructor frame. Inlined frames cannot be construct calls. |
+ bool inlined_frame = |
+ it.frame()->is_optimized() && deoptimized_frame_index != 0; |
+ bool constructor = !inlined_frame && it.frame()->IsConstructor(); |
// Get scope info and read from it for local variable information. |
Handle<JSFunction> function(JSFunction::cast(it.frame()->function())); |