Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(112)

Side by Side Diff: src/code-stubs-hydrogen.cc

Issue 1571673002: [not for landing] Re-shuffle AllocationSite members (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@rebased-scratchpad
Patch Set: Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | src/crankshaft/hydrogen.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « no previous file | src/crankshaft/hydrogen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698