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" |
11 #include "src/types-inl.h" | 11 #include "src/types-inl.h" |
12 | 12 |
13 namespace v8 { | 13 namespace v8 { |
14 namespace internal { | 14 namespace internal { |
15 namespace compiler { | 15 namespace compiler { |
16 | 16 |
17 // static | 17 // static |
18 FieldAccess AccessBuilder::ForMap() { | 18 FieldAccess AccessBuilder::ForMap() { |
19 FieldAccess access = {kTaggedBase, HeapObject::kMapOffset, | 19 FieldAccess access = {kTaggedBase, HeapObject::kMapOffset, |
20 MaybeHandle<Name>(), Type::Any(), kMachAnyTagged}; | 20 MaybeHandle<Name>(), Type::Any(), kMachAnyTagged}; |
21 return access; | 21 return access; |
22 } | 22 } |
23 | 23 |
24 | 24 |
25 // static | 25 // static |
| 26 FieldAccess AccessBuilder::ForHeapNumberValue() { |
| 27 FieldAccess access = {kTaggedBase, HeapNumber::kValueOffset, |
| 28 MaybeHandle<Name>(), TypeCache().Get().kFloat64, |
| 29 kMachFloat64}; |
| 30 return access; |
| 31 } |
| 32 |
| 33 |
| 34 // static |
26 FieldAccess AccessBuilder::ForJSObjectProperties() { | 35 FieldAccess AccessBuilder::ForJSObjectProperties() { |
27 FieldAccess access = {kTaggedBase, JSObject::kPropertiesOffset, | 36 FieldAccess access = {kTaggedBase, JSObject::kPropertiesOffset, |
28 MaybeHandle<Name>(), Type::Internal(), kMachAnyTagged}; | 37 MaybeHandle<Name>(), Type::Internal(), kMachAnyTagged}; |
29 return access; | 38 return access; |
30 } | 39 } |
31 | 40 |
32 | 41 |
33 // static | 42 // static |
34 FieldAccess AccessBuilder::ForJSObjectElements() { | 43 FieldAccess AccessBuilder::ForJSObjectElements() { |
35 FieldAccess access = {kTaggedBase, JSObject::kElementsOffset, | 44 FieldAccess access = {kTaggedBase, JSObject::kElementsOffset, |
(...skipping 280 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
316 // static | 325 // static |
317 FieldAccess AccessBuilder::ForFrameMarker() { | 326 FieldAccess AccessBuilder::ForFrameMarker() { |
318 FieldAccess access = {kUntaggedBase, StandardFrameConstants::kMarkerOffset, | 327 FieldAccess access = {kUntaggedBase, StandardFrameConstants::kMarkerOffset, |
319 MaybeHandle<Name>(), Type::Tagged(), kMachAnyTagged}; | 328 MaybeHandle<Name>(), Type::Tagged(), kMachAnyTagged}; |
320 return access; | 329 return access; |
321 } | 330 } |
322 | 331 |
323 } // namespace compiler | 332 } // namespace compiler |
324 } // namespace internal | 333 } // namespace internal |
325 } // namespace v8 | 334 } // namespace v8 |
OLD | NEW |