Commit 1ec9526c authored by mythria's avatar mythria Committed by Commit bot

[IC] IC::GetSharedFunctionInfo does not need to skip bytecode handler frames.

Some cleanup after the cl to fix --trace-ic to work with ignition
(https://codereview.chromium.org/2405173007/). In GetSharedFunctionInfo,
we used to skip the bytecode handler frame, which is no longer required.

BUG=v8:4280

Review-Url: https://codereview.chromium.org/2437593003
Cr-Commit-Position: refs/heads/master@{#40762}
parent 1dba8633
...@@ -250,10 +250,6 @@ SharedFunctionInfo* IC::GetSharedFunctionInfo() const { ...@@ -250,10 +250,6 @@ SharedFunctionInfo* IC::GetSharedFunctionInfo() const {
// corresponding to the frame. // corresponding to the frame.
StackFrameIterator it(isolate()); StackFrameIterator it(isolate());
while (it.frame()->fp() != this->fp()) it.Advance(); 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.
it.Advance();
}
JavaScriptFrame* frame = JavaScriptFrame::cast(it.frame()); JavaScriptFrame* frame = JavaScriptFrame::cast(it.frame());
// Find the function on the stack and both the active code for the // Find the function on the stack and both the active code for the
// function and the original code. // function and the original code.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment