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

Side by Side Diff: src/ia32/virtual-frame-ia32.cc

Issue 805005: Revert changes 4088 and 4087 to fix build. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 10 years, 9 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/ia32/virtual-frame-ia32.h ('k') | src/scopes.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2009 the V8 project authors. All rights reserved. 1 // Copyright 2009 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 1153 matching lines...) Expand 10 before | Expand all | Expand 10 after
1164 void VirtualFrame::Push(Expression* expr) { 1164 void VirtualFrame::Push(Expression* expr) {
1165 ASSERT(expr->IsTrivial()); 1165 ASSERT(expr->IsTrivial());
1166 1166
1167 Literal* lit = expr->AsLiteral(); 1167 Literal* lit = expr->AsLiteral();
1168 if (lit != NULL) { 1168 if (lit != NULL) {
1169 Push(lit->handle()); 1169 Push(lit->handle());
1170 return; 1170 return;
1171 } 1171 }
1172 1172
1173 VariableProxy* proxy = expr->AsVariableProxy(); 1173 VariableProxy* proxy = expr->AsVariableProxy();
1174 if (proxy != NULL) { 1174 if (proxy != NULL && proxy->is_this()) {
1175 Slot* slot = proxy->var()->slot(); 1175 PushParameterAt(-1);
1176 if (slot->type() == Slot::LOCAL) { 1176 return;
1177 PushLocalAt(slot->index());
1178 return;
1179 }
1180 if (slot->type() == Slot::PARAMETER) {
1181 PushParameterAt(slot->index());
1182 return;
1183 }
1184 } 1177 }
1178
1185 UNREACHABLE(); 1179 UNREACHABLE();
1186 } 1180 }
1187 1181
1188 1182
1189 #undef __ 1183 #undef __
1190 1184
1191 } } // namespace v8::internal 1185 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/ia32/virtual-frame-ia32.h ('k') | src/scopes.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698