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 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
108 // static | 108 // static |
109 FieldAccess AccessBuilder::ForMapInstanceType() { | 109 FieldAccess AccessBuilder::ForMapInstanceType() { |
110 return {kTaggedBase, Map::kInstanceTypeOffset, Handle<Name>(), | 110 return {kTaggedBase, Map::kInstanceTypeOffset, Handle<Name>(), |
111 Type::UntaggedUnsigned8(), kMachUint8}; | 111 Type::UntaggedUnsigned8(), kMachUint8}; |
112 } | 112 } |
113 | 113 |
114 | 114 |
115 // static | 115 // static |
116 FieldAccess AccessBuilder::ForStringLength(Zone* zone) { | 116 FieldAccess AccessBuilder::ForStringLength(Zone* zone) { |
117 return {kTaggedBase, String::kLengthOffset, Handle<Name>(), | 117 return {kTaggedBase, String::kLengthOffset, Handle<Name>(), |
118 Type::Intersect(Type::Range(0, String::kMaxLength, zone), | 118 Type::Range(0, String::kMaxLength, zone), kMachAnyTagged}; |
119 Type::TaggedSigned(), zone), | |
120 kMachAnyTagged}; | |
121 } | 119 } |
122 | 120 |
123 | 121 |
124 // static | 122 // static |
125 FieldAccess AccessBuilder::ForValue() { | 123 FieldAccess AccessBuilder::ForValue() { |
126 return {kTaggedBase, JSValue::kValueOffset, Handle<Name>(), Type::Any(), | 124 return {kTaggedBase, JSValue::kValueOffset, Handle<Name>(), Type::Any(), |
127 kMachAnyTagged}; | 125 kMachAnyTagged}; |
128 } | 126 } |
129 | 127 |
130 | 128 |
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
216 | 214 |
217 // static | 215 // static |
218 FieldAccess AccessBuilder::ForFrameMarker() { | 216 FieldAccess AccessBuilder::ForFrameMarker() { |
219 return {kUntaggedBase, StandardFrameConstants::kMarkerOffset, | 217 return {kUntaggedBase, StandardFrameConstants::kMarkerOffset, |
220 MaybeHandle<Name>(), Type::Tagged(), kMachAnyTagged}; | 218 MaybeHandle<Name>(), Type::Tagged(), kMachAnyTagged}; |
221 } | 219 } |
222 | 220 |
223 } // namespace compiler | 221 } // namespace compiler |
224 } // namespace internal | 222 } // namespace internal |
225 } // namespace v8 | 223 } // namespace v8 |
OLD | NEW |