Index: src/ic/ic.cc |
diff --git a/src/ic/ic.cc b/src/ic/ic.cc |
index 2d1c3464453712889959ff4d3ccba640396e482b..3015e01686d2ae9c1b4e03b4bf5c6509bcdf55bc 100644 |
--- a/src/ic/ic.cc |
+++ b/src/ic/ic.cc |
@@ -242,8 +242,9 @@ |
// corresponding to the frame. |
StackFrameIterator it(isolate()); |
while (it.frame()->fp() != this->fp()) it.Advance(); |
- if (it.frame()->type() == StackFrame::STUB) { |
- // We might need to advance over bytecode handler frame for Ignition. |
+ if (FLAG_ignition && it.frame()->type() == StackFrame::STUB) { |
+ // Advance over bytecode handler frame. |
+ // TODO(rmcilroy): Remove this once bytecode handlers don't need a frame. |
it.Advance(); |
} |
JavaScriptFrame* frame = JavaScriptFrame::cast(it.frame()); |