| 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 404 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 415 // static | 415 // static |
| 416 FieldAccess AccessBuilder::ForDescriptorArrayEnumCacheBridgeCache() { | 416 FieldAccess AccessBuilder::ForDescriptorArrayEnumCacheBridgeCache() { |
| 417 FieldAccess access = { | 417 FieldAccess access = { |
| 418 kTaggedBase, DescriptorArray::kEnumCacheBridgeCacheOffset, | 418 kTaggedBase, DescriptorArray::kEnumCacheBridgeCacheOffset, |
| 419 Handle<Name>(), MaybeHandle<Map>(), | 419 Handle<Name>(), MaybeHandle<Map>(), |
| 420 Type::OtherInternal(), MachineType::TaggedPointer(), | 420 Type::OtherInternal(), MachineType::TaggedPointer(), |
| 421 kPointerWriteBarrier}; | 421 kPointerWriteBarrier}; |
| 422 return access; | 422 return access; |
| 423 } | 423 } |
| 424 | 424 |
| 425 // static |
| 426 FieldAccess AccessBuilder::ForDescriptorArrayEnumCacheBridgeIndicesCache() { |
| 427 // TODO(bmeurer): Weird hack! |
| 428 FieldAccess access = { |
| 429 kTaggedBase, DescriptorArray::kEnumCacheBridgeIndicesCacheOffset, |
| 430 Handle<Name>(), MaybeHandle<Map>(), |
| 431 Type::Any(), MachineType::AnyTagged(), |
| 432 kFullWriteBarrier}; |
| 433 return access; |
| 434 } |
| 425 | 435 |
| 426 // static | 436 // static |
| 427 FieldAccess AccessBuilder::ForMapBitField() { | 437 FieldAccess AccessBuilder::ForMapBitField() { |
| 428 FieldAccess access = { | 438 FieldAccess access = { |
| 429 kTaggedBase, Map::kBitFieldOffset, Handle<Name>(), | 439 kTaggedBase, Map::kBitFieldOffset, Handle<Name>(), |
| 430 MaybeHandle<Map>(), TypeCache::Get().kUint8, MachineType::Uint8(), | 440 MaybeHandle<Map>(), TypeCache::Get().kUint8, MachineType::Uint8(), |
| 431 kNoWriteBarrier}; | 441 kNoWriteBarrier}; |
| 432 return access; | 442 return access; |
| 433 } | 443 } |
| 434 | 444 |
| (...skipping 503 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 938 MaybeHandle<Map>(), | 948 MaybeHandle<Map>(), |
| 939 Type::SignedSmall(), | 949 Type::SignedSmall(), |
| 940 MachineType::TaggedSigned(), | 950 MachineType::TaggedSigned(), |
| 941 kNoWriteBarrier}; | 951 kNoWriteBarrier}; |
| 942 return access; | 952 return access; |
| 943 } | 953 } |
| 944 | 954 |
| 945 } // namespace compiler | 955 } // namespace compiler |
| 946 } // namespace internal | 956 } // namespace internal |
| 947 } // namespace v8 | 957 } // namespace v8 |
| OLD | NEW |