Index: src/ic.cc |
diff --git a/src/ic.cc b/src/ic.cc |
index f464c2043b2372a35e0fe90d93f5731574c9bf77..4d0cef8af719230ef76e89502b92c0d9877e3c78 100644 |
--- a/src/ic.cc |
+++ b/src/ic.cc |
@@ -159,7 +159,7 @@ Address IC::OriginalCodeAddress() const { |
JavaScriptFrame* frame = JavaScriptFrame::cast(it.frame()); |
// Find the function on the stack and both the active code for the |
// function and the original code. |
- JSFunction* function = JSFunction::cast(frame->function()); |
+ JSFunction* function = frame->function(); |
Handle<SharedFunctionInfo> shared(function->shared(), isolate()); |
Code* code = shared->code(); |
ASSERT(Debug::HasDebugInfo(shared)); |