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

Side by Side Diff: src/crankshaft/hydrogen-instructions.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 | « src/crankshaft/hydrogen.cc ('k') | src/objects.h » ('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/crankshaft/hydrogen-instructions.h" 5 #include "src/crankshaft/hydrogen-instructions.h"
6 6
7 #include "src/base/bits.h" 7 #include "src/base/bits.h"
8 #include "src/base/safe_math.h" 8 #include "src/base/safe_math.h"
9 #include "src/crankshaft/hydrogen-infer-representation.h" 9 #include "src/crankshaft/hydrogen-infer-representation.h"
10 #include "src/double.h" 10 #include "src/double.h"
(...skipping 4503 matching lines...) Expand 10 before | Expand all | Expand 10 after
4514 4514
4515 4515
4516 HObjectAccess HObjectAccess::ForAllocationSiteOffset(int offset) { 4516 HObjectAccess HObjectAccess::ForAllocationSiteOffset(int offset) {
4517 switch (offset) { 4517 switch (offset) {
4518 case AllocationSite::kTransitionInfoOffset: 4518 case AllocationSite::kTransitionInfoOffset:
4519 return HObjectAccess(kInobject, offset, Representation::Tagged()); 4519 return HObjectAccess(kInobject, offset, Representation::Tagged());
4520 case AllocationSite::kNestedSiteOffset: 4520 case AllocationSite::kNestedSiteOffset:
4521 return HObjectAccess(kInobject, offset, Representation::Tagged()); 4521 return HObjectAccess(kInobject, offset, Representation::Tagged());
4522 case AllocationSite::kPretenureDataOffset: 4522 case AllocationSite::kPretenureDataOffset:
4523 return HObjectAccess(kInobject, offset, Representation::Smi()); 4523 return HObjectAccess(kInobject, offset, Representation::Smi());
4524 case AllocationSite::kPretenureCreateCountOffset:
4525 return HObjectAccess(kInobject, offset, Representation::Smi());
4526 case AllocationSite::kDependentCodeOffset: 4524 case AllocationSite::kDependentCodeOffset:
4527 return HObjectAccess(kInobject, offset, Representation::Tagged()); 4525 return HObjectAccess(kInobject, offset, Representation::Tagged());
4528 case AllocationSite::kWeakNextOffset: 4526 case AllocationSite::kWeakNextOffset:
4529 return HObjectAccess(kInobject, offset, Representation::Tagged()); 4527 return HObjectAccess(kInobject, offset, Representation::Tagged());
4530 default: 4528 default:
4531 UNREACHABLE(); 4529 UNREACHABLE();
4532 } 4530 }
4533 return HObjectAccess(kInobject, offset); 4531 return HObjectAccess(kInobject, offset);
4534 } 4532 }
4535 4533
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
4694 case HObjectAccess::kExternalMemory: 4692 case HObjectAccess::kExternalMemory:
4695 os << "[external-memory]"; 4693 os << "[external-memory]";
4696 break; 4694 break;
4697 } 4695 }
4698 4696
4699 return os << "@" << access.offset(); 4697 return os << "@" << access.offset();
4700 } 4698 }
4701 4699
4702 } // namespace internal 4700 } // namespace internal
4703 } // namespace v8 4701 } // namespace v8
OLDNEW
« no previous file with comments | « src/crankshaft/hydrogen.cc ('k') | src/objects.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698