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

Unified Diff: src/objects.h

Issue 2681773004: [FeedbackVector] Clarify the way the feedback vector is installed. (Closed)
Patch Set: Code comments+REBASE. Created 3 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/flag-definitions.h ('k') | src/objects.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/objects.h
diff --git a/src/objects.h b/src/objects.h
index 97d281318a66ce2cfabc8e7ffc4d4072e2b075cc..d76ffde41fba5bb2f2e27cab24f967696c67cfe2 100644
--- a/src/objects.h
+++ b/src/objects.h
@@ -8067,6 +8067,14 @@ class JSFunction: public JSObject {
// [feedback_vector_cell]: Fixed array holding the feedback vector.
DECL_ACCESSORS(feedback_vector_cell, Cell)
+ enum FeedbackVectorState {
+ TOP_LEVEL_SCRIPT_NEEDS_VECTOR,
+ NEEDS_VECTOR,
+ HAS_VECTOR
+ };
+
+ inline FeedbackVectorState GetFeedbackVectorState(Isolate* isolate) const;
+
// feedback_vector() can be used once the function is compiled.
inline FeedbackVector* feedback_vector() const;
inline bool has_feedback_vector() const;
« no previous file with comments | « src/flag-definitions.h ('k') | src/objects.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698