Index: src/crankshaft/hydrogen.h |
diff --git a/src/crankshaft/hydrogen.h b/src/crankshaft/hydrogen.h |
index 58904c4e617612df029f1adcffb6805405f38cfe..d15222203338ff48729598eeeb9d079684d66c6b 100644 |
--- a/src/crankshaft/hydrogen.h |
+++ b/src/crankshaft/hydrogen.h |
@@ -2183,8 +2183,11 @@ class HOptimizedGraphBuilder : public HGraphBuilder, public AstVisitor { |
Handle<SharedFunctionInfo> current_shared_info() const { |
return current_info()->shared_info(); |
} |
+ Handle<JSFunction> current_closure() const { |
+ return current_info()->closure(); |
+ } |
TypeFeedbackVector* current_feedback_vector() const { |
- return current_shared_info()->feedback_vector(); |
+ return current_closure()->feedback_vector(); |
} |
void ClearInlinedTestContext() { |
function_state()->ClearInlinedTestContext(); |