| 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 719 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 730       Type::NonInternal(), MachineType::AnyTagged(), | 730       Type::NonInternal(), MachineType::AnyTagged(), | 
| 731       kPointerWriteBarrier}; | 731       kPointerWriteBarrier}; | 
| 732   return access; | 732   return access; | 
| 733 } | 733 } | 
| 734 | 734 | 
| 735 | 735 | 
| 736 // static | 736 // static | 
| 737 FieldAccess AccessBuilder::ForFixedArraySlot( | 737 FieldAccess AccessBuilder::ForFixedArraySlot( | 
| 738     size_t index, WriteBarrierKind write_barrier_kind) { | 738     size_t index, WriteBarrierKind write_barrier_kind) { | 
| 739   int offset = FixedArray::OffsetOfElementAt(static_cast<int>(index)); | 739   int offset = FixedArray::OffsetOfElementAt(static_cast<int>(index)); | 
| 740   FieldAccess access = {kTaggedBase,         offset, | 740   FieldAccess access = {kTaggedBase,       offset, | 
| 741                         Handle<Name>(),      MaybeHandle<Map>(), | 741                         Handle<Name>(),    MaybeHandle<Map>(), | 
| 742                         Type::NonInternal(), MachineType::AnyTagged(), | 742                         Type::Any(),       MachineType::AnyTagged(), | 
| 743                         write_barrier_kind}; | 743                         write_barrier_kind}; | 
| 744   return access; | 744   return access; | 
| 745 } | 745 } | 
| 746 | 746 | 
| 747 | 747 | 
| 748 // static | 748 // static | 
| 749 FieldAccess AccessBuilder::ForCellValue() { | 749 FieldAccess AccessBuilder::ForCellValue() { | 
| 750   FieldAccess access = {kTaggedBase,      Cell::kValueOffset, | 750   FieldAccess access = {kTaggedBase,      Cell::kValueOffset, | 
| 751                         Handle<Name>(),   MaybeHandle<Map>(), | 751                         Handle<Name>(),   MaybeHandle<Map>(), | 
| 752                         Type::Any(),      MachineType::AnyTagged(), | 752                         Type::Any(),      MachineType::AnyTagged(), | 
| (...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 948       MaybeHandle<Map>(), | 948       MaybeHandle<Map>(), | 
| 949       Type::SignedSmall(), | 949       Type::SignedSmall(), | 
| 950       MachineType::TaggedSigned(), | 950       MachineType::TaggedSigned(), | 
| 951       kNoWriteBarrier}; | 951       kNoWriteBarrier}; | 
| 952   return access; | 952   return access; | 
| 953 } | 953 } | 
| 954 | 954 | 
| 955 }  // namespace compiler | 955 }  // namespace compiler | 
| 956 }  // namespace internal | 956 }  // namespace internal | 
| 957 }  // namespace v8 | 957 }  // namespace v8 | 
| OLD | NEW | 
|---|