| 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 1311 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1322 } | 1322 } |
| 1323 if (slot->type() == Slot::PARAMETER) { | 1323 if (slot->type() == Slot::PARAMETER) { |
| 1324 PushParameterAt(slot->index()); | 1324 PushParameterAt(slot->index()); |
| 1325 return; | 1325 return; |
| 1326 } | 1326 } |
| 1327 } | 1327 } |
| 1328 UNREACHABLE(); | 1328 UNREACHABLE(); |
| 1329 } | 1329 } |
| 1330 | 1330 |
| 1331 | 1331 |
| 1332 void VirtualFrame::Push(Handle<Object> value) { |
| 1333 if (ConstantPoolOverflowed()) { |
| 1334 Result temp = cgen()->allocator()->Allocate(); |
| 1335 ASSERT(temp.is_valid()); |
| 1336 __ Set(temp.reg(), Immediate(value)); |
| 1337 Push(&temp); |
| 1338 } else { |
| 1339 FrameElement element = |
| 1340 FrameElement::ConstantElement(value, FrameElement::NOT_SYNCED); |
| 1341 elements_.Add(element); |
| 1342 } |
| 1343 } |
| 1344 |
| 1345 |
| 1332 #undef __ | 1346 #undef __ |
| 1333 | 1347 |
| 1334 } } // namespace v8::internal | 1348 } } // namespace v8::internal |
| 1335 | 1349 |
| 1336 #endif // V8_TARGET_ARCH_IA32 | 1350 #endif // V8_TARGET_ARCH_IA32 |
| OLD | NEW |