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 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
125 FieldAccess access = { | 125 FieldAccess access = { |
126 kTaggedBase, String::kLengthOffset, Handle<Name>(), | 126 kTaggedBase, String::kLengthOffset, Handle<Name>(), |
127 Type::Intersect(Type::Range(0, String::kMaxLength, zone), | 127 Type::Intersect(Type::Range(0, String::kMaxLength, zone), |
128 Type::TaggedSigned(), zone), | 128 Type::TaggedSigned(), zone), |
129 kMachAnyTagged}; | 129 kMachAnyTagged}; |
130 return access; | 130 return access; |
131 } | 131 } |
132 | 132 |
133 | 133 |
134 // static | 134 // static |
| 135 FieldAccess AccessBuilder::ForGlobalObjectGlobalProxy() { |
| 136 FieldAccess access = {kTaggedBase, GlobalObject::kGlobalProxyOffset, |
| 137 Handle<Name>(), Type::Receiver(), kMachAnyTagged}; |
| 138 return access; |
| 139 } |
| 140 |
| 141 |
| 142 // static |
135 FieldAccess AccessBuilder::ForGlobalObjectNativeContext() { | 143 FieldAccess AccessBuilder::ForGlobalObjectNativeContext() { |
136 FieldAccess access = {kTaggedBase, GlobalObject::kNativeContextOffset, | 144 FieldAccess access = {kTaggedBase, GlobalObject::kNativeContextOffset, |
137 Handle<Name>(), Type::Any(), kMachAnyTagged}; | 145 Handle<Name>(), Type::Internal(), kMachAnyTagged}; |
138 return access; | 146 return access; |
139 } | 147 } |
140 | 148 |
141 | 149 |
142 // static | 150 // static |
143 FieldAccess AccessBuilder::ForValue() { | 151 FieldAccess AccessBuilder::ForValue() { |
144 FieldAccess access = {kTaggedBase, JSValue::kValueOffset, Handle<Name>(), | 152 FieldAccess access = {kTaggedBase, JSValue::kValueOffset, Handle<Name>(), |
145 Type::Any(), kMachAnyTagged}; | 153 Type::Any(), kMachAnyTagged}; |
146 return access; | 154 return access; |
147 } | 155 } |
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
300 // static | 308 // static |
301 FieldAccess AccessBuilder::ForFrameMarker() { | 309 FieldAccess AccessBuilder::ForFrameMarker() { |
302 FieldAccess access = {kUntaggedBase, StandardFrameConstants::kMarkerOffset, | 310 FieldAccess access = {kUntaggedBase, StandardFrameConstants::kMarkerOffset, |
303 MaybeHandle<Name>(), Type::Tagged(), kMachAnyTagged}; | 311 MaybeHandle<Name>(), Type::Tagged(), kMachAnyTagged}; |
304 return access; | 312 return access; |
305 } | 313 } |
306 | 314 |
307 } // namespace compiler | 315 } // namespace compiler |
308 } // namespace internal | 316 } // namespace internal |
309 } // namespace v8 | 317 } // namespace v8 |
OLD | NEW |