OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 451 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
462 isolate()->heap()->GetPretenureMode(), JS_OBJECT_TYPE); | 462 isolate()->heap()->GetPretenureMode(), JS_OBJECT_TYPE); |
463 | 463 |
464 for (int i = 0; i < object_size; i += kPointerSize) { | 464 for (int i = 0; i < object_size; i += kPointerSize) { |
465 HObjectAccess access = HObjectAccess::ForJSObjectOffset(i); | 465 HObjectAccess access = HObjectAccess::ForJSObjectOffset(i); |
466 Add<HStoreNamedField>(object, access, | 466 Add<HStoreNamedField>(object, access, |
467 Add<HLoadNamedField>(boilerplate, access)); | 467 Add<HLoadNamedField>(boilerplate, access)); |
468 } | 468 } |
469 | 469 |
470 ASSERT(FLAG_allocation_site_pretenuring || (size == object_size)); | 470 ASSERT(FLAG_allocation_site_pretenuring || (size == object_size)); |
471 if (FLAG_allocation_site_pretenuring) { | 471 if (FLAG_allocation_site_pretenuring) { |
472 BuildCreateAllocationMemento(object, object_size, allocation_site); | 472 BuildCreateAllocationMemento( |
| 473 object, Add<HConstant>(object_size), allocation_site); |
473 } | 474 } |
474 | 475 |
475 environment()->Push(object); | 476 environment()->Push(object); |
476 checker.ElseDeopt("Uninitialized boilerplate in fast clone"); | 477 checker.ElseDeopt("Uninitialized boilerplate in fast clone"); |
477 checker.End(); | 478 checker.End(); |
478 | 479 |
479 return environment()->Pop(); | 480 return environment()->Pop(); |
480 } | 481 } |
481 | 482 |
482 | 483 |
(...skipping 845 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1328 return BuildUncheckedDictionaryElementLoad(receiver, key); | 1329 return BuildUncheckedDictionaryElementLoad(receiver, key); |
1329 } | 1330 } |
1330 | 1331 |
1331 | 1332 |
1332 Handle<Code> KeyedLoadDictionaryElementStub::GenerateCode(Isolate* isolate) { | 1333 Handle<Code> KeyedLoadDictionaryElementStub::GenerateCode(Isolate* isolate) { |
1333 return DoGenerateCode(isolate, this); | 1334 return DoGenerateCode(isolate, this); |
1334 } | 1335 } |
1335 | 1336 |
1336 | 1337 |
1337 } } // namespace v8::internal | 1338 } } // namespace v8::internal |
OLD | NEW |