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