| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "src/code-stubs.h" | 5 #include "src/code-stubs.h" |
| 6 | 6 |
| 7 #include "src/bailout-reason.h" | 7 #include "src/bailout-reason.h" |
| 8 #include "src/crankshaft/hydrogen.h" | 8 #include "src/crankshaft/hydrogen.h" |
| 9 #include "src/crankshaft/lithium.h" | 9 #include "src/crankshaft/lithium.h" |
| 10 #include "src/field-index.h" | 10 #include "src/field-index.h" |
| (...skipping 649 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 660 HObjectAccess::ForAllocationSiteOffset( | 660 HObjectAccess::ForAllocationSiteOffset( |
| 661 AllocationSite::kNestedSiteOffset), | 661 AllocationSite::kNestedSiteOffset), |
| 662 graph()->GetConstant0()); | 662 graph()->GetConstant0()); |
| 663 | 663 |
| 664 // Pretenuring calculation field. | 664 // Pretenuring calculation field. |
| 665 Add<HStoreNamedField>(object, | 665 Add<HStoreNamedField>(object, |
| 666 HObjectAccess::ForAllocationSiteOffset( | 666 HObjectAccess::ForAllocationSiteOffset( |
| 667 AllocationSite::kPretenureDataOffset), | 667 AllocationSite::kPretenureDataOffset), |
| 668 graph()->GetConstant0()); | 668 graph()->GetConstant0()); |
| 669 | 669 |
| 670 // Pretenuring memento creation count field. | |
| 671 Add<HStoreNamedField>(object, | |
| 672 HObjectAccess::ForAllocationSiteOffset( | |
| 673 AllocationSite::kPretenureCreateCountOffset), | |
| 674 graph()->GetConstant0()); | |
| 675 | |
| 676 // Store an empty fixed array for the code dependency. | 670 // Store an empty fixed array for the code dependency. |
| 677 HConstant* empty_fixed_array = | 671 HConstant* empty_fixed_array = |
| 678 Add<HConstant>(isolate()->factory()->empty_fixed_array()); | 672 Add<HConstant>(isolate()->factory()->empty_fixed_array()); |
| 679 Add<HStoreNamedField>( | 673 Add<HStoreNamedField>( |
| 680 object, | 674 object, |
| 681 HObjectAccess::ForAllocationSiteOffset( | 675 HObjectAccess::ForAllocationSiteOffset( |
| 682 AllocationSite::kDependentCodeOffset), | 676 AllocationSite::kDependentCodeOffset), |
| 683 empty_fixed_array); | 677 empty_fixed_array); |
| 684 | 678 |
| 685 // Link the object to the allocation site list | 679 // Link the object to the allocation site list |
| (...skipping 1740 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2426 return Pop(); | 2420 return Pop(); |
| 2427 } | 2421 } |
| 2428 | 2422 |
| 2429 | 2423 |
| 2430 Handle<Code> KeyedLoadGenericStub::GenerateCode() { | 2424 Handle<Code> KeyedLoadGenericStub::GenerateCode() { |
| 2431 return DoGenerateCode(this); | 2425 return DoGenerateCode(this); |
| 2432 } | 2426 } |
| 2433 | 2427 |
| 2434 } // namespace internal | 2428 } // namespace internal |
| 2435 } // namespace v8 | 2429 } // namespace v8 |
| OLD | NEW |