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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
52 | 52 |
53 | 53 |
54 // static | 54 // static |
55 FieldAccess AccessBuilder::ForExternalArrayPointer() { | 55 FieldAccess AccessBuilder::ForExternalArrayPointer() { |
56 return {kTaggedBase, ExternalArray::kExternalPointerOffset, | 56 return {kTaggedBase, ExternalArray::kExternalPointerOffset, |
57 MaybeHandle<Name>(), Type::UntaggedPointer(), kMachPtr}; | 57 MaybeHandle<Name>(), Type::UntaggedPointer(), kMachPtr}; |
58 } | 58 } |
59 | 59 |
60 | 60 |
61 // static | 61 // static |
| 62 FieldAccess AccessBuilder::ForDescriptorArrayEnumCache() { |
| 63 return {kTaggedBase, DescriptorArray::kEnumCacheOffset, Handle<Name>(), |
| 64 Type::TaggedPointer(), kMachAnyTagged}; |
| 65 } |
| 66 |
| 67 |
| 68 // static |
| 69 FieldAccess AccessBuilder::ForDescriptorArrayEnumCacheBridgeCache() { |
| 70 return {kTaggedBase, DescriptorArray::kEnumCacheBridgeCacheOffset, |
| 71 Handle<Name>(), Type::TaggedPointer(), kMachAnyTagged}; |
| 72 } |
| 73 |
| 74 |
| 75 // static |
| 76 FieldAccess AccessBuilder::ForMapBitField3() { |
| 77 return {kTaggedBase, Map::kBitField3Offset, Handle<Name>(), |
| 78 Type::UntaggedUnsigned32(), kMachUint32}; |
| 79 } |
| 80 |
| 81 |
| 82 // static |
| 83 FieldAccess AccessBuilder::ForMapDescriptors() { |
| 84 return {kTaggedBase, Map::kDescriptorsOffset, Handle<Name>(), |
| 85 Type::TaggedPointer(), kMachAnyTagged}; |
| 86 } |
| 87 |
| 88 |
| 89 // static |
62 FieldAccess AccessBuilder::ForMapInstanceType() { | 90 FieldAccess AccessBuilder::ForMapInstanceType() { |
63 return {kTaggedBase, Map::kInstanceTypeOffset, Handle<Name>(), | 91 return {kTaggedBase, Map::kInstanceTypeOffset, Handle<Name>(), |
64 Type::UntaggedUnsigned8(), kMachUint8}; | 92 Type::UntaggedUnsigned8(), kMachUint8}; |
65 } | 93 } |
66 | 94 |
67 | 95 |
68 // static | 96 // static |
69 FieldAccess AccessBuilder::ForStringLength(Zone* zone) { | 97 FieldAccess AccessBuilder::ForStringLength(Zone* zone) { |
70 return {kTaggedBase, String::kLengthOffset, Handle<Name>(), | 98 return {kTaggedBase, String::kLengthOffset, Handle<Name>(), |
71 Type::Range(0, String::kMaxLength, zone), kMachAnyTagged}; | 99 Type::Range(0, String::kMaxLength, zone), kMachAnyTagged}; |
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
160 | 188 |
161 // static | 189 // static |
162 FieldAccess AccessBuilder::ForSharedFunctionInfoTypeFeedbackVector() { | 190 FieldAccess AccessBuilder::ForSharedFunctionInfoTypeFeedbackVector() { |
163 return {kTaggedBase, SharedFunctionInfo::kFeedbackVectorOffset, | 191 return {kTaggedBase, SharedFunctionInfo::kFeedbackVectorOffset, |
164 Handle<Name>(), Type::Any(), kMachAnyTagged}; | 192 Handle<Name>(), Type::Any(), kMachAnyTagged}; |
165 } | 193 } |
166 | 194 |
167 } // namespace compiler | 195 } // namespace compiler |
168 } // namespace internal | 196 } // namespace internal |
169 } // namespace v8 | 197 } // namespace v8 |
OLD | NEW |