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

Unified Diff: src/compiler.h

Issue 137403009: Adding a type vector to replace type cells. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Seperate file for feedback slot allocation. Created 6 years, 11 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
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_;

Powered by Google App Engine
This is Rietveld 408576698