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

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

Issue 3432022: Clean up some messiness in Scopes. (Closed)
Patch Set: Created 10 years, 3 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
« no previous file with comments | « src/ia32/full-codegen-ia32.cc ('k') | src/liveedit.cc » ('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 1295 matching lines...) Expand 10 before | Expand all | Expand 10 after
1306 ASSERT(expr->IsTrivial()); 1306 ASSERT(expr->IsTrivial());
1307 1307
1308 Literal* lit = expr->AsLiteral(); 1308 Literal* lit = expr->AsLiteral();
1309 if (lit != NULL) { 1309 if (lit != NULL) {
1310 Push(lit->handle()); 1310 Push(lit->handle());
1311 return; 1311 return;
1312 } 1312 }
1313 1313
1314 VariableProxy* proxy = expr->AsVariableProxy(); 1314 VariableProxy* proxy = expr->AsVariableProxy();
1315 if (proxy != NULL) { 1315 if (proxy != NULL) {
1316 Slot* slot = proxy->var()->slot(); 1316 Slot* slot = proxy->var()->AsSlot();
1317 if (slot->type() == Slot::LOCAL) { 1317 if (slot->type() == Slot::LOCAL) {
1318 PushLocalAt(slot->index()); 1318 PushLocalAt(slot->index());
1319 return; 1319 return;
1320 } 1320 }
1321 if (slot->type() == Slot::PARAMETER) { 1321 if (slot->type() == Slot::PARAMETER) {
1322 PushParameterAt(slot->index()); 1322 PushParameterAt(slot->index());
1323 return; 1323 return;
1324 } 1324 }
1325 } 1325 }
1326 UNREACHABLE(); 1326 UNREACHABLE();
1327 } 1327 }
1328 1328
1329 1329
1330 #undef __ 1330 #undef __
1331 1331
1332 } } // namespace v8::internal 1332 } } // namespace v8::internal
1333 1333
1334 #endif // V8_TARGET_ARCH_IA32 1334 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/ia32/full-codegen-ia32.cc ('k') | src/liveedit.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698