Index: src/frames-inl.h |
diff --git a/src/frames-inl.h b/src/frames-inl.h |
index 8d10645d1d06f9e5a3441eba8b65fbe3043cef86..d097ed1dbb5e7a531bc9f1105168b95769b92ddd 100644 |
--- a/src/frames-inl.h |
+++ b/src/frames-inl.h |
@@ -274,10 +274,8 @@ inline bool JavaScriptFrame::has_adapted_arguments() const { |
} |
-inline Object* JavaScriptFrame::function() const { |
- Object* result = function_slot_object(); |
- ASSERT(result->IsJSFunction()); |
- return result; |
+inline JSFunction* JavaScriptFrame::function() const { |
+ return JSFunction::cast(function_slot_object()); |
} |