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

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: Refinements. 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..78d52cf319c4b62d6940ff50a06a0a8de0b25d94 100644
--- a/src/compiler.h
+++ b/src/compiler.h
@@ -103,6 +103,9 @@ class CompilationInfo {
parameter_count_ = parameter_count;
}
+ void ProcessFeedbackSlots();
+ int slot_count() { return function()->slot_count(); }
+
void set_this_has_uses(bool has_no_uses) {
this_has_uses_ = has_no_uses;
}
@@ -178,6 +181,7 @@ class CompilationInfo {
void SetScope(Scope* scope) {
ASSERT(scope_ == NULL);
scope_ = scope;
+ ProcessFeedbackSlots();
mvstanton 2014/01/30 15:13:41 pull this out.
mvstanton 2014/01/30 17:37:41 Done.
}
void SetGlobalScope(Scope* global_scope) {
ASSERT(global_scope_ == NULL);

Powered by Google App Engine
This is Rietveld 408576698