| Index: src/hydrogen.h
|
| diff --git a/src/hydrogen.h b/src/hydrogen.h
|
| index c18ba5815345821dddc7507ba7d080314c6c00ef..614991f7c2a4c2eff8ade76303f8e48b591d995d 100644
|
| --- a/src/hydrogen.h
|
| +++ b/src/hydrogen.h
|
| @@ -455,12 +455,11 @@ class HEnvironment: public ZoneObject {
|
| // by 1 (receiver is parameter index -1 but environment index 0).
|
| // Stack-allocated local indices are shifted by the number of parameters.
|
| int IndexFor(Variable* variable) const {
|
| - Slot* slot = variable->AsSlot();
|
| - ASSERT(slot != NULL && slot->IsStackAllocated());
|
| - int shift = (slot->type() == Slot::PARAMETER)
|
| + ASSERT(variable->IsStackAllocated());
|
| + int shift = variable->IsParameter()
|
| ? 1
|
| : parameter_count_ + specials_count_;
|
| - return slot->index() + shift;
|
| + return variable->index() + shift;
|
| }
|
|
|
| Handle<JSFunction> closure_;
|
| @@ -779,6 +778,10 @@ class HGraphBuilder: public AstVisitor {
|
| INLINE_RUNTIME_FUNCTION_LIST(INLINE_FUNCTION_GENERATOR_DECLARATION)
|
| #undef INLINE_FUNCTION_GENERATOR_DECLARATION
|
|
|
| + void HandleDeclaration(VariableProxy* proxy,
|
| + Variable::Mode mode,
|
| + FunctionLiteral* function);
|
| +
|
| void VisitDelete(UnaryOperation* expr);
|
| void VisitVoid(UnaryOperation* expr);
|
| void VisitTypeof(UnaryOperation* expr);
|
| @@ -851,7 +854,6 @@ class HGraphBuilder: public AstVisitor {
|
| TypeInfo info,
|
| HValue* value,
|
| Representation rep);
|
| - void AssumeRepresentation(HValue* value, Representation rep);
|
| static Representation ToRepresentation(TypeInfo info);
|
|
|
| void SetupScope(Scope* scope);
|
|
|