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

Unified Diff: src/crankshaft/hydrogen.h

Issue 1668103002: Type Feedback Vector lives in the closure (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: REBASE. Created 4 years, 10 months 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 | « src/compiler/js-inlining.cc ('k') | src/crankshaft/hydrogen.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/crankshaft/hydrogen.h
diff --git a/src/crankshaft/hydrogen.h b/src/crankshaft/hydrogen.h
index 2eba6c95133cff07bf2406ada814379dff42c9a7..c75dd58b9fea1cc0af19a7e742ad83a0a66a96c6 100644
--- a/src/crankshaft/hydrogen.h
+++ b/src/crankshaft/hydrogen.h
@@ -2190,8 +2190,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();
« no previous file with comments | « src/compiler/js-inlining.cc ('k') | src/crankshaft/hydrogen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698