OLD | NEW |
1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 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/compiler/access-builder.h" | 5 #include "src/compiler/access-builder.h" |
6 #include "src/types-inl.h" | 6 #include "src/types-inl.h" |
7 | 7 |
8 namespace v8 { | 8 namespace v8 { |
9 namespace internal { | 9 namespace internal { |
10 namespace compiler { | 10 namespace compiler { |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
81 } | 81 } |
82 | 82 |
83 | 83 |
84 // static | 84 // static |
85 FieldAccess AccessBuilder::ForStatsCounter() { | 85 FieldAccess AccessBuilder::ForStatsCounter() { |
86 return {kUntaggedBase, 0, MaybeHandle<Name>(), Type::Signed32(), kMachInt32}; | 86 return {kUntaggedBase, 0, MaybeHandle<Name>(), Type::Signed32(), kMachInt32}; |
87 } | 87 } |
88 | 88 |
89 | 89 |
90 // static | 90 // static |
| 91 FieldAccess AccessBuilder::ForPropertyCellValue() { |
| 92 return {kTaggedBase, PropertyCell::kValueOffset, Handle<Name>(), Type::Any(), |
| 93 kMachAnyTagged}; |
| 94 } |
| 95 |
| 96 |
| 97 // static |
91 ElementAccess AccessBuilder::ForFixedArrayElement() { | 98 ElementAccess AccessBuilder::ForFixedArrayElement() { |
92 return {kTaggedBase, FixedArray::kHeaderSize, Type::Any(), kMachAnyTagged}; | 99 return {kTaggedBase, FixedArray::kHeaderSize, Type::Any(), kMachAnyTagged}; |
93 } | 100 } |
94 | 101 |
95 | 102 |
96 // static | 103 // static |
97 ElementAccess AccessBuilder::ForTypedArrayElement(ExternalArrayType type, | 104 ElementAccess AccessBuilder::ForTypedArrayElement(ExternalArrayType type, |
98 bool is_external) { | 105 bool is_external) { |
99 BaseTaggedness taggedness = is_external ? kUntaggedBase : kTaggedBase; | 106 BaseTaggedness taggedness = is_external ? kUntaggedBase : kTaggedBase; |
100 int header_size = is_external ? 0 : FixedTypedArrayBase::kDataOffset; | 107 int header_size = is_external ? 0 : FixedTypedArrayBase::kDataOffset; |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
132 return {kTaggedBase, SeqString::kHeaderSize, Type::Unsigned32(), | 139 return {kTaggedBase, SeqString::kHeaderSize, Type::Unsigned32(), |
133 kMachUint16}; | 140 kMachUint16}; |
134 } | 141 } |
135 UNREACHABLE(); | 142 UNREACHABLE(); |
136 return {kUntaggedBase, 0, Type::None(), kMachNone}; | 143 return {kUntaggedBase, 0, Type::None(), kMachNone}; |
137 } | 144 } |
138 | 145 |
139 } // namespace compiler | 146 } // namespace compiler |
140 } // namespace internal | 147 } // namespace internal |
141 } // namespace v8 | 148 } // namespace v8 |
OLD | NEW |