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

Unified Diff: src/hydrogen.h

Issue 6928061: Revert "First step in letting Crankshaft inline functions with a different context." (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 9 years, 7 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/arm/lithium-arm.cc ('k') | src/hydrogen.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/hydrogen.h
diff --git a/src/hydrogen.h b/src/hydrogen.h
index cc1a2f3d0eb8a3ab9aea4cecae0f8be10fa24f22..bd51dd15651cc10fb53e2454fca2cfe1c6ea1451 100644
--- a/src/hydrogen.h
+++ b/src/hydrogen.h
@@ -322,7 +322,6 @@ class HEnvironment: public ZoneObject {
return &assigned_variables_;
}
int parameter_count() const { return parameter_count_; }
- int specials_count() const { return specials_count_; }
int local_count() const { return local_count_; }
HEnvironment* outer() const { return outer_; }
int pop_count() const { return pop_count_; }
@@ -332,9 +331,6 @@ class HEnvironment: public ZoneObject {
void set_ast_id(int id) { ast_id_ = id; }
int length() const { return values_.length(); }
- bool is_special_index(int i) const {
- return i >= parameter_count() && i < parameter_count() + specials_count();
- }
void Bind(Variable* variable, HValue* value) {
Bind(IndexFor(variable), value);
@@ -342,10 +338,6 @@ class HEnvironment: public ZoneObject {
void Bind(int index, HValue* value);
- void BindContext(HValue* value) {
- Bind(parameter_count(), value);
- }
-
HValue* Lookup(Variable* variable) const {
return Lookup(IndexFor(variable));
}
@@ -356,11 +348,6 @@ class HEnvironment: public ZoneObject {
return result;
}
- HValue* LookupContext() const {
- // Return first special.
- return Lookup(parameter_count());
- }
-
void Push(HValue* value) {
ASSERT(value != NULL);
++push_count_;
@@ -381,8 +368,6 @@ class HEnvironment: public ZoneObject {
HValue* Top() const { return ExpressionStackAt(0); }
- bool ExpressionStackIsEmpty() const;
-
HValue* ExpressionStackAt(int index_from_top) const {
int index = length() - index_from_top - 1;
ASSERT(HasExpressionAt(index));
@@ -427,6 +412,8 @@ class HEnvironment: public ZoneObject {
// True if index is included in the expression stack part of the environment.
bool HasExpressionAt(int index) const;
+ bool ExpressionStackIsEmpty() const;
+
void Initialize(int parameter_count, int local_count, int stack_height);
void Initialize(const HEnvironment* other);
@@ -436,18 +423,15 @@ class HEnvironment: public ZoneObject {
int IndexFor(Variable* variable) const {
Slot* slot = variable->AsSlot();
ASSERT(slot != NULL && slot->IsStackAllocated());
- int shift = (slot->type() == Slot::PARAMETER)
- ? 1
- : parameter_count_ + specials_count_;
+ int shift = (slot->type() == Slot::PARAMETER) ? 1 : parameter_count_;
return slot->index() + shift;
}
Handle<JSFunction> closure_;
- // Value array [parameters] [specials] [locals] [temporaries].
+ // Value array [parameters] [locals] [temporaries].
ZoneList<HValue*> values_;
ZoneList<int> assigned_variables_;
int parameter_count_;
- int specials_count_;
int local_count_;
HEnvironment* outer_;
int pop_count_;
« no previous file with comments | « src/arm/lithium-arm.cc ('k') | src/hydrogen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698