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 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
74 STATIC_ASSERT(FixedArray::kMaxLength <= 1 << 30); | 74 STATIC_ASSERT(FixedArray::kMaxLength <= 1 << 30); |
75 FieldAccess access = { | 75 FieldAccess access = { |
76 kTaggedBase, FixedArray::kLengthOffset, MaybeHandle<Name>(), | 76 kTaggedBase, FixedArray::kLengthOffset, MaybeHandle<Name>(), |
77 Type::Intersect(Type::Unsigned30(), Type::TaggedSigned()), | 77 Type::Intersect(Type::Unsigned30(), Type::TaggedSigned()), |
78 kMachAnyTagged}; | 78 kMachAnyTagged}; |
79 return access; | 79 return access; |
80 } | 80 } |
81 | 81 |
82 | 82 |
83 // static | 83 // static |
84 FieldAccess AccessBuilder::ForExternalArrayPointer() { | |
85 FieldAccess access = {kTaggedBase, ExternalArray::kExternalPointerOffset, | |
86 MaybeHandle<Name>(), Type::UntaggedPointer(), kMachPtr}; | |
87 return access; | |
88 } | |
89 | |
90 | |
91 // static | |
92 FieldAccess AccessBuilder::ForDescriptorArrayEnumCache() { | 84 FieldAccess AccessBuilder::ForDescriptorArrayEnumCache() { |
93 FieldAccess access = {kTaggedBase, DescriptorArray::kEnumCacheOffset, | 85 FieldAccess access = {kTaggedBase, DescriptorArray::kEnumCacheOffset, |
94 Handle<Name>(), Type::TaggedPointer(), kMachAnyTagged}; | 86 Handle<Name>(), Type::TaggedPointer(), kMachAnyTagged}; |
95 return access; | 87 return access; |
96 } | 88 } |
97 | 89 |
98 | 90 |
99 // static | 91 // static |
100 FieldAccess AccessBuilder::ForDescriptorArrayEnumCacheBridgeCache() { | 92 FieldAccess AccessBuilder::ForDescriptorArrayEnumCacheBridgeCache() { |
101 FieldAccess access = {kTaggedBase, | 93 FieldAccess access = {kTaggedBase, |
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
276 // static | 268 // static |
277 FieldAccess AccessBuilder::ForFrameMarker() { | 269 FieldAccess AccessBuilder::ForFrameMarker() { |
278 FieldAccess access = {kUntaggedBase, StandardFrameConstants::kMarkerOffset, | 270 FieldAccess access = {kUntaggedBase, StandardFrameConstants::kMarkerOffset, |
279 MaybeHandle<Name>(), Type::Tagged(), kMachAnyTagged}; | 271 MaybeHandle<Name>(), Type::Tagged(), kMachAnyTagged}; |
280 return access; | 272 return access; |
281 } | 273 } |
282 | 274 |
283 } // namespace compiler | 275 } // namespace compiler |
284 } // namespace internal | 276 } // namespace internal |
285 } // namespace v8 | 277 } // namespace v8 |
OLD | NEW |