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 473 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
484 HObjectAccess::ForAllocationSiteOffset( | 484 HObjectAccess::ForAllocationSiteOffset( |
485 AllocationSite::kTransitionInfoOffset), | 485 AllocationSite::kTransitionInfoOffset), |
486 initial_elements_kind); | 486 initial_elements_kind); |
487 | 487 |
488 // Unlike literals, constructed arrays don't have nested sites | 488 // Unlike literals, constructed arrays don't have nested sites |
489 Add<HStoreNamedField>(object, | 489 Add<HStoreNamedField>(object, |
490 HObjectAccess::ForAllocationSiteOffset( | 490 HObjectAccess::ForAllocationSiteOffset( |
491 AllocationSite::kNestedSiteOffset), | 491 AllocationSite::kNestedSiteOffset), |
492 graph()->GetConstant0()); | 492 graph()->GetConstant0()); |
493 | 493 |
494 // Pretenuring calculation fields. | 494 // Pretenuring calculation field. |
495 Add<HStoreNamedField>(object, | 495 Add<HStoreNamedField>(object, |
496 HObjectAccess::ForAllocationSiteOffset( | 496 HObjectAccess::ForAllocationSiteOffset( |
497 AllocationSite::kMementoFoundCountOffset), | 497 AllocationSite::kPretenureDataOffset), |
498 graph()->GetConstant0()); | 498 graph()->GetConstant0()); |
499 | 499 |
| 500 // Pretenuring memento creation count field. |
500 Add<HStoreNamedField>(object, | 501 Add<HStoreNamedField>(object, |
501 HObjectAccess::ForAllocationSiteOffset( | 502 HObjectAccess::ForAllocationSiteOffset( |
502 AllocationSite::kMementoCreateCountOffset), | 503 AllocationSite::kPretenureCreateCountOffset), |
503 graph()->GetConstant0()); | |
504 | |
505 Add<HStoreNamedField>(object, | |
506 HObjectAccess::ForAllocationSiteOffset( | |
507 AllocationSite::kPretenureDecisionOffset), | |
508 graph()->GetConstant0()); | 504 graph()->GetConstant0()); |
509 | 505 |
510 // Store an empty fixed array for the code dependency. | 506 // Store an empty fixed array for the code dependency. |
511 HConstant* empty_fixed_array = | 507 HConstant* empty_fixed_array = |
512 Add<HConstant>(isolate()->factory()->empty_fixed_array()); | 508 Add<HConstant>(isolate()->factory()->empty_fixed_array()); |
513 HStoreNamedField* store = Add<HStoreNamedField>( | 509 HStoreNamedField* store = Add<HStoreNamedField>( |
514 object, | 510 object, |
515 HObjectAccess::ForAllocationSiteOffset( | 511 HObjectAccess::ForAllocationSiteOffset( |
516 AllocationSite::kDependentCodeOffset), | 512 AllocationSite::kDependentCodeOffset), |
517 empty_fixed_array); | 513 empty_fixed_array); |
(...skipping 828 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1346 return BuildUncheckedDictionaryElementLoad(receiver, key); | 1342 return BuildUncheckedDictionaryElementLoad(receiver, key); |
1347 } | 1343 } |
1348 | 1344 |
1349 | 1345 |
1350 Handle<Code> KeyedLoadDictionaryElementStub::GenerateCode(Isolate* isolate) { | 1346 Handle<Code> KeyedLoadDictionaryElementStub::GenerateCode(Isolate* isolate) { |
1351 return DoGenerateCode(isolate, this); | 1347 return DoGenerateCode(isolate, this); |
1352 } | 1348 } |
1353 | 1349 |
1354 | 1350 |
1355 } } // namespace v8::internal | 1351 } } // namespace v8::internal |
OLD | NEW |