Index: src/compiler.h |
diff --git a/src/compiler.h b/src/compiler.h |
index 3bf4db5780a31d041782b3f0aaf30d046ee5151b..2949c8445cb55372da9440157934f35f5fb8699d 100644 |
--- a/src/compiler.h |
+++ b/src/compiler.h |
@@ -103,6 +103,16 @@ class CompilationInfo { |
parameter_count_ = parameter_count; |
} |
+ void set_feedback_slots(int feedback_slots) { |
+ ASSERT(!IsStub()); |
+ ASSERT(feedback_slots_ == -1); // Slots shouldn't yet be initialized. |
+ feedback_slots_ = feedback_slots; |
+ } |
+ int feedback_slots() const { |
+ ASSERT(feedback_slots_ >= 0); |
+ return feedback_slots_; |
+ } |
+ |
void set_this_has_uses(bool has_no_uses) { |
this_has_uses_ = has_no_uses; |
} |
@@ -448,6 +458,9 @@ class CompilationInfo { |
// Number of parameters used for compilation of stubs that require arguments. |
int parameter_count_; |
+ // Number of feedback slots to allocate for a normal function. |
+ int feedback_slots_; |
+ |
bool this_has_uses_; |
Handle<Foreign> object_wrapper_; |