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