Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(902)

Unified Diff: src/ic/ic.cc

Issue 1420283020: [Interpreter]: Fix IC::GetSharedFunctionInfo for the interpreter. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/ic/ic.cc
diff --git a/src/ic/ic.cc b/src/ic/ic.cc
index 39ee7db9552f808e96931467544512a5f9cb4ee5..f6b08c0dcfb967f92d872f18bf4f79b4eb485d82 100644
--- a/src/ic/ic.cc
+++ b/src/ic/ic.cc
@@ -197,6 +197,11 @@ SharedFunctionInfo* IC::GetSharedFunctionInfo() const {
// corresponding to the frame.
StackFrameIterator it(isolate());
while (it.frame()->fp() != this->fp()) it.Advance();
+ 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());
// Find the function on the stack and both the active code for the
// function and the original code.
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698