| Index: src/x64/fast-codegen-x64.cc
|
| ===================================================================
|
| --- src/x64/fast-codegen-x64.cc (revision 3077)
|
| +++ src/x64/fast-codegen-x64.cc (working copy)
|
| @@ -132,12 +132,19 @@
|
| }
|
|
|
|
|
| -void FastCodeGenerator::VisitSlot(Slot* expr) {
|
| - Comment cmnt(masm_, "[ Slot");
|
| - if (expr->location().is_temporary()) {
|
| - __ push(Operand(rbp, SlotOffset(expr)));
|
| - } else {
|
| - ASSERT(expr->location().is_nowhere());
|
| +void FastCodeGenerator::VisitVariableProxy(VariableProxy* expr) {
|
| + Comment cmnt(masm_, "[ VariableProxy");
|
| + Expression* rewrite = expr->var()->rewrite();
|
| + ASSERT(rewrite != NULL);
|
| +
|
| + Slot* slot = rewrite->AsSlot();
|
| + ASSERT(slot != NULL);
|
| + { Comment cmnt(masm_, "[ Slot");
|
| + if (expr->location().is_temporary()) {
|
| + __ push(Operand(rbp, SlotOffset(slot)));
|
| + } else {
|
| + ASSERT(expr->location().is_nowhere());
|
| + }
|
| }
|
| }
|
|
|
|
|