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 | 6 |
7 #include "src/compiler/type-cache.h" | 7 #include "src/compiler/type-cache.h" |
8 #include "src/contexts.h" | 8 #include "src/contexts.h" |
9 #include "src/frames.h" | 9 #include "src/frames.h" |
10 #include "src/handles-inl.h" | 10 #include "src/handles-inl.h" |
(...skipping 251 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
262 FieldAccess access = {kTaggedBase, | 262 FieldAccess access = {kTaggedBase, |
263 JSTypedArray::kLengthOffset, | 263 JSTypedArray::kLengthOffset, |
264 MaybeHandle<Name>(), | 264 MaybeHandle<Name>(), |
265 TypeCache::Get().kJSTypedArrayLengthType, | 265 TypeCache::Get().kJSTypedArrayLengthType, |
266 MachineType::AnyTagged(), | 266 MachineType::AnyTagged(), |
267 kNoWriteBarrier}; | 267 kNoWriteBarrier}; |
268 return access; | 268 return access; |
269 } | 269 } |
270 | 270 |
271 // static | 271 // static |
| 272 FieldAccess AccessBuilder::ForJSDateValue() { |
| 273 FieldAccess access = {kTaggedBase, |
| 274 JSDate::kValueOffset, |
| 275 MaybeHandle<Name>(), |
| 276 TypeCache::Get().kJSDateValueType, |
| 277 MachineType::AnyTagged(), |
| 278 kFullWriteBarrier}; |
| 279 return access; |
| 280 } |
| 281 |
| 282 // static |
272 FieldAccess AccessBuilder::ForJSDateField(JSDate::FieldIndex index) { | 283 FieldAccess AccessBuilder::ForJSDateField(JSDate::FieldIndex index) { |
273 FieldAccess access = {kTaggedBase, | 284 FieldAccess access = {kTaggedBase, |
274 JSDate::kValueOffset + index * kPointerSize, | 285 JSDate::kValueOffset + index * kPointerSize, |
275 MaybeHandle<Name>(), | 286 MaybeHandle<Name>(), |
276 Type::Number(), | 287 Type::Number(), |
277 MachineType::AnyTagged(), | 288 MachineType::AnyTagged(), |
278 kFullWriteBarrier}; | 289 kFullWriteBarrier}; |
279 return access; | 290 return access; |
280 } | 291 } |
281 | 292 |
(...skipping 423 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
705 } | 716 } |
706 UNREACHABLE(); | 717 UNREACHABLE(); |
707 ElementAccess access = {kUntaggedBase, 0, Type::None(), MachineType::None(), | 718 ElementAccess access = {kUntaggedBase, 0, Type::None(), MachineType::None(), |
708 kNoWriteBarrier}; | 719 kNoWriteBarrier}; |
709 return access; | 720 return access; |
710 } | 721 } |
711 | 722 |
712 } // namespace compiler | 723 } // namespace compiler |
713 } // namespace internal | 724 } // namespace internal |
714 } // namespace v8 | 725 } // namespace v8 |
OLD | NEW |