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 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
144 DCHECK_EQ(offset, | 144 DCHECK_EQ(offset, |
145 Context::SlotOffset(static_cast<int>(index)) + kHeapObjectTag); | 145 Context::SlotOffset(static_cast<int>(index)) + kHeapObjectTag); |
146 FieldAccess access = {kTaggedBase, offset, Handle<Name>(), Type::Any(), | 146 FieldAccess access = {kTaggedBase, offset, Handle<Name>(), Type::Any(), |
147 kMachAnyTagged}; | 147 kMachAnyTagged}; |
148 return access; | 148 return access; |
149 } | 149 } |
150 | 150 |
151 | 151 |
152 // static | 152 // static |
153 FieldAccess AccessBuilder::ForPropertyCellValue() { | 153 FieldAccess AccessBuilder::ForPropertyCellValue() { |
154 return ForPropertyCellValue(Type::Tagged()); | |
155 } | |
156 | |
157 | |
158 // static | |
159 FieldAccess AccessBuilder::ForPropertyCellValue(Type* type) { | |
160 FieldAccess access = {kTaggedBase, PropertyCell::kValueOffset, Handle<Name>(), | 154 FieldAccess access = {kTaggedBase, PropertyCell::kValueOffset, Handle<Name>(), |
161 type, kMachAnyTagged}; | 155 Type::Any(), kMachAnyTagged}; |
162 return access; | 156 return access; |
163 } | 157 } |
164 | 158 |
165 | 159 |
166 // static | 160 // static |
167 FieldAccess AccessBuilder::ForSharedFunctionInfoTypeFeedbackVector() { | 161 FieldAccess AccessBuilder::ForSharedFunctionInfoTypeFeedbackVector() { |
168 FieldAccess access = {kTaggedBase, SharedFunctionInfo::kFeedbackVectorOffset, | 162 FieldAccess access = {kTaggedBase, SharedFunctionInfo::kFeedbackVectorOffset, |
169 Handle<Name>(), Type::Any(), kMachAnyTagged}; | 163 Handle<Name>(), Type::Any(), kMachAnyTagged}; |
170 return access; | 164 return access; |
171 } | 165 } |
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
272 // static | 266 // static |
273 FieldAccess AccessBuilder::ForFrameMarker() { | 267 FieldAccess AccessBuilder::ForFrameMarker() { |
274 FieldAccess access = {kUntaggedBase, StandardFrameConstants::kMarkerOffset, | 268 FieldAccess access = {kUntaggedBase, StandardFrameConstants::kMarkerOffset, |
275 MaybeHandle<Name>(), Type::Tagged(), kMachAnyTagged}; | 269 MaybeHandle<Name>(), Type::Tagged(), kMachAnyTagged}; |
276 return access; | 270 return access; |
277 } | 271 } |
278 | 272 |
279 } // namespace compiler | 273 } // namespace compiler |
280 } // namespace internal | 274 } // namespace internal |
281 } // namespace v8 | 275 } // namespace v8 |
OLD | NEW |