Index: src/crankshaft/hydrogen.h |
diff --git a/src/crankshaft/hydrogen.h b/src/crankshaft/hydrogen.h |
index 282b43866edc9d60ac142bf103b169a4cdf0884f..51064ff4fa3facf425919519dc30d5712235b79e 100644 |
--- a/src/crankshaft/hydrogen.h |
+++ b/src/crankshaft/hydrogen.h |
@@ -2241,11 +2241,14 @@ class HOptimizedGraphBuilder : public HGraphBuilder, public AstVisitor { |
TestContext* inlined_test_context() const { |
return function_state()->test_context(); |
} |
+ Handle<JSFunction> current_closure() const { |
+ return current_info()->closure(); |
+ } |
Handle<SharedFunctionInfo> current_shared_info() const { |
return current_info()->shared_info(); |
} |
TypeFeedbackVector* current_feedback_vector() const { |
- return current_shared_info()->feedback_vector(); |
+ return current_closure()->feedback_vector(); |
} |
void ClearInlinedTestContext() { |
function_state()->ClearInlinedTestContext(); |