Index: src/ia32/virtual-frame-ia32.cc |
=================================================================== |
--- src/ia32/virtual-frame-ia32.cc (revision 4088) |
+++ src/ia32/virtual-frame-ia32.cc (working copy) |
@@ -1171,17 +1171,11 @@ |
} |
VariableProxy* proxy = expr->AsVariableProxy(); |
- if (proxy != NULL) { |
- Slot* slot = proxy->var()->slot(); |
- if (slot->type() == Slot::LOCAL) { |
- PushLocalAt(slot->index()); |
- return; |
- } |
- if (slot->type() == Slot::PARAMETER) { |
- PushParameterAt(slot->index()); |
- return; |
- } |
+ if (proxy != NULL && proxy->is_this()) { |
+ PushParameterAt(-1); |
+ return; |
} |
+ |
UNREACHABLE(); |
} |