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/contexts.h" | 7 #include "src/contexts.h" |
8 #include "src/frames.h" | 8 #include "src/frames.h" |
9 #include "src/heap/heap.h" | 9 #include "src/heap/heap.h" |
10 #include "src/type-cache.h" | 10 #include "src/type-cache.h" |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
75 | 75 |
76 // static | 76 // static |
77 FieldAccess AccessBuilder::ForJSArrayBufferBackingStore() { | 77 FieldAccess AccessBuilder::ForJSArrayBufferBackingStore() { |
78 FieldAccess access = {kTaggedBase, JSArrayBuffer::kBackingStoreOffset, | 78 FieldAccess access = {kTaggedBase, JSArrayBuffer::kBackingStoreOffset, |
79 MaybeHandle<Name>(), Type::UntaggedPointer(), kMachPtr}; | 79 MaybeHandle<Name>(), Type::UntaggedPointer(), kMachPtr}; |
80 return access; | 80 return access; |
81 } | 81 } |
82 | 82 |
83 | 83 |
84 // static | 84 // static |
| 85 FieldAccess AccessBuilder::ForJSArrayBufferBitField() { |
| 86 FieldAccess access = {kTaggedBase, JSArrayBuffer::kBitFieldOffset, |
| 87 MaybeHandle<Name>(), TypeCache::Get().kInt8, kMachInt8}; |
| 88 return access; |
| 89 } |
| 90 |
| 91 |
| 92 // static |
| 93 FieldAccess AccessBuilder::ForJSArrayBufferViewBuffer() { |
| 94 FieldAccess access = {kTaggedBase, JSArrayBufferView::kBufferOffset, |
| 95 MaybeHandle<Name>(), Type::TaggedPointer(), |
| 96 kMachAnyTagged}; |
| 97 return access; |
| 98 } |
| 99 |
| 100 |
| 101 // static |
85 FieldAccess AccessBuilder::ForJSDateField(JSDate::FieldIndex index) { | 102 FieldAccess AccessBuilder::ForJSDateField(JSDate::FieldIndex index) { |
86 FieldAccess access = {kTaggedBase, | 103 FieldAccess access = {kTaggedBase, |
87 JSDate::kValueOffset + index * kPointerSize, | 104 JSDate::kValueOffset + index * kPointerSize, |
88 MaybeHandle<Name>(), Type::Number(), kMachAnyTagged}; | 105 MaybeHandle<Name>(), Type::Number(), kMachAnyTagged}; |
89 return access; | 106 return access; |
90 } | 107 } |
91 | 108 |
92 | 109 |
93 // static | 110 // static |
94 FieldAccess AccessBuilder::ForFixedArrayLength() { | 111 FieldAccess AccessBuilder::ForFixedArrayLength() { |
(...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
323 // static | 340 // static |
324 FieldAccess AccessBuilder::ForFrameMarker() { | 341 FieldAccess AccessBuilder::ForFrameMarker() { |
325 FieldAccess access = {kUntaggedBase, StandardFrameConstants::kMarkerOffset, | 342 FieldAccess access = {kUntaggedBase, StandardFrameConstants::kMarkerOffset, |
326 MaybeHandle<Name>(), Type::Tagged(), kMachAnyTagged}; | 343 MaybeHandle<Name>(), Type::Tagged(), kMachAnyTagged}; |
327 return access; | 344 return access; |
328 } | 345 } |
329 | 346 |
330 } // namespace compiler | 347 } // namespace compiler |
331 } // namespace internal | 348 } // namespace internal |
332 } // namespace v8 | 349 } // namespace v8 |
OLD | NEW |