| 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" |
| 11 #include "src/heap/heap.h" | 11 #include "src/heap/heap.h" |
| 12 #include "src/objects-inl.h" | 12 #include "src/objects-inl.h" |
| 13 | 13 |
| 14 namespace v8 { | 14 namespace v8 { |
| 15 namespace internal { | 15 namespace internal { |
| 16 namespace compiler { | 16 namespace compiler { |
| 17 | 17 |
| 18 // static | 18 // static |
| 19 FieldAccess AccessBuilder::ForExternalDoubleValue() { | 19 FieldAccess AccessBuilder::ForExternalDoubleValue() { |
| 20 FieldAccess access = {kUntaggedBase, 0, | 20 FieldAccess access = {kUntaggedBase, 0, |
| 21 MaybeHandle<Name>(), MaybeHandle<Map>(), | 21 MaybeHandle<Name>(), MaybeHandle<Map>(), |
| 22 Type::Number(), MachineType::Float64(), | 22 Type::Number(), MachineType::Float64(), |
| 23 kNoWriteBarrier}; | 23 kNoWriteBarrier}; |
| 24 return access; | 24 return access; |
| 25 } | 25 } |
| 26 | 26 |
| 27 // static | 27 // static |
| 28 FieldAccess AccessBuilder::ForExternalTaggedValue() { |
| 29 FieldAccess access = {kUntaggedBase, 0, |
| 30 MaybeHandle<Name>(), MaybeHandle<Map>(), |
| 31 Type::Any(), MachineType::AnyTagged(), |
| 32 kNoWriteBarrier}; |
| 33 return access; |
| 34 } |
| 35 |
| 36 // static |
| 28 FieldAccess AccessBuilder::ForExternalUint8Value() { | 37 FieldAccess AccessBuilder::ForExternalUint8Value() { |
| 29 FieldAccess access = {kUntaggedBase, 0, | 38 FieldAccess access = {kUntaggedBase, 0, |
| 30 MaybeHandle<Name>(), MaybeHandle<Map>(), | 39 MaybeHandle<Name>(), MaybeHandle<Map>(), |
| 31 TypeCache::Get().kUint8, MachineType::Uint8(), | 40 TypeCache::Get().kUint8, MachineType::Uint8(), |
| 32 kNoWriteBarrier}; | 41 kNoWriteBarrier}; |
| 33 return access; | 42 return access; |
| 34 } | 43 } |
| 35 | 44 |
| 36 // static | 45 // static |
| 37 FieldAccess AccessBuilder::ForMap() { | 46 FieldAccess AccessBuilder::ForMap() { |
| (...skipping 873 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 911 MaybeHandle<Map>(), | 920 MaybeHandle<Map>(), |
| 912 Type::SignedSmall(), | 921 Type::SignedSmall(), |
| 913 MachineType::TaggedSigned(), | 922 MachineType::TaggedSigned(), |
| 914 kNoWriteBarrier}; | 923 kNoWriteBarrier}; |
| 915 return access; | 924 return access; |
| 916 } | 925 } |
| 917 | 926 |
| 918 } // namespace compiler | 927 } // namespace compiler |
| 919 } // namespace internal | 928 } // namespace internal |
| 920 } // namespace v8 | 929 } // namespace v8 |
| OLD | NEW |