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

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

Issue 3432022: Clean up some messiness in Scopes. (Closed)
Patch Set: Created 10 years, 2 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/x64/full-codegen-x64.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2010 the V8 project authors. All rights reserved. 1 // Copyright 2010 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 241 matching lines...) Expand 10 before | Expand all | Expand 10 after
252 ASSERT(expr->IsTrivial()); 252 ASSERT(expr->IsTrivial());
253 253
254 Literal* lit = expr->AsLiteral(); 254 Literal* lit = expr->AsLiteral();
255 if (lit != NULL) { 255 if (lit != NULL) {
256 Push(lit->handle()); 256 Push(lit->handle());
257 return; 257 return;
258 } 258 }
259 259
260 VariableProxy* proxy = expr->AsVariableProxy(); 260 VariableProxy* proxy = expr->AsVariableProxy();
261 if (proxy != NULL) { 261 if (proxy != NULL) {
262 Slot* slot = proxy->var()->slot(); 262 Slot* slot = proxy->var()->AsSlot();
263 if (slot->type() == Slot::LOCAL) { 263 if (slot->type() == Slot::LOCAL) {
264 PushLocalAt(slot->index()); 264 PushLocalAt(slot->index());
265 return; 265 return;
266 } 266 }
267 if (slot->type() == Slot::PARAMETER) { 267 if (slot->type() == Slot::PARAMETER) {
268 PushParameterAt(slot->index()); 268 PushParameterAt(slot->index());
269 return; 269 return;
270 } 270 }
271 } 271 }
272 UNREACHABLE(); 272 UNREACHABLE();
(...skipping 982 matching lines...) Expand 10 before | Expand all | Expand 10 after
1255 Adjust(kHandlerSize - 1); 1255 Adjust(kHandlerSize - 1);
1256 __ PushTryHandler(IN_JAVASCRIPT, type); 1256 __ PushTryHandler(IN_JAVASCRIPT, type);
1257 } 1257 }
1258 1258
1259 1259
1260 #undef __ 1260 #undef __
1261 1261
1262 } } // namespace v8::internal 1262 } } // namespace v8::internal
1263 1263
1264 #endif // V8_TARGET_ARCH_X64 1264 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/x64/full-codegen-x64.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698