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

Unified Diff: src/feedback-vector.h

Issue 2672363002: Link type feedback vectors to the shared function info. (Closed)
Patch Set: 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/debug/liveedit.cc ('k') | src/feedback-vector.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/feedback-vector.h
diff --git a/src/feedback-vector.h b/src/feedback-vector.h
index 23f44fce9c325c25116cf32348b96a2b5564042d..b78578e50f062a6a7152818df753e7e689625f48 100644
--- a/src/feedback-vector.h
+++ b/src/feedback-vector.h
@@ -263,7 +263,7 @@ class FeedbackVector : public FixedArray {
// Casting.
static inline FeedbackVector* cast(Object* obj);
- static const int kMetadataIndex = 0;
+ static const int kSharedFunctionInfoIndex = 0;
static const int kInvocationCountIndex = 1;
static const int kReservedIndexCount = 2;
@@ -276,6 +276,7 @@ class FeedbackVector : public FixedArray {
inline int slot_count() const;
inline FeedbackMetadata* metadata() const;
+ inline SharedFunctionInfo* shared_function_info() const;
inline int invocation_count() const;
// Conversion from a slot to an integer index to the underlying array.
@@ -293,7 +294,7 @@ class FeedbackVector : public FixedArray {
FeedbackSlotKind GetKind(FeedbackSlot slot) const;
static Handle<FeedbackVector> New(Isolate* isolate,
- Handle<FeedbackMetadata> metadata);
+ Handle<SharedFunctionInfo> shared);
static Handle<FeedbackVector> Copy(Isolate* isolate,
Handle<FeedbackVector> vector);
« no previous file with comments | « src/debug/liveedit.cc ('k') | src/feedback-vector.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698