| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |