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

Unified Diff: src/ast.h

Issue 638523003: Updates to maintain flag --vector-ics (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: REBASE. Created 6 years, 2 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/arm64/full-codegen-arm64.cc ('k') | src/ast.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/ast.h
diff --git a/src/ast.h b/src/ast.h
index 11dda68879962254d1a998c001b178ed6f3c76ec..c75938e22d8689010a630ddbfd804a6093d59384 100644
--- a/src/ast.h
+++ b/src/ast.h
@@ -2591,13 +2591,28 @@ class SuperReference FINAL : public Expression {
TypeFeedbackId HomeObjectFeedbackId() { return reuse(id()); }
+ // Type feedback information.
+ virtual int ComputeFeedbackSlotCount() { return FLAG_vector_ics ? 1 : 0; }
+ virtual void SetFirstFeedbackSlot(int slot) {
+ homeobject_feedback_slot_ = slot;
+ }
+
+ int HomeObjectFeedbackSlot() {
+ DCHECK(!FLAG_vector_ics ||
+ homeobject_feedback_slot_ != kInvalidFeedbackSlot);
+ return homeobject_feedback_slot_;
+ }
+
protected:
SuperReference(Zone* zone, VariableProxy* this_var, int pos, IdGen* id_gen)
- : Expression(zone, pos, id_gen), this_var_(this_var) {
+ : Expression(zone, pos, id_gen),
+ this_var_(this_var),
+ homeobject_feedback_slot_(kInvalidFeedbackSlot) {
DCHECK(this_var->is_this());
}
VariableProxy* this_var_;
+ int homeobject_feedback_slot_;
};
« no previous file with comments | « src/arm64/full-codegen-arm64.cc ('k') | src/ast.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698