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/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 Loading... |
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 Loading... |
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 |
OLD | NEW |