| OLD | NEW |
| 1 // Copyright 2015 the V8 project authors. All rights reserved. | 1 // Copyright 2015 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 #ifndef V8_DEPENDENCIES_H_ | 5 #ifndef V8_DEPENDENCIES_H_ |
| 6 #define V8_DEPENDENCIES_H_ | 6 #define V8_DEPENDENCIES_H_ |
| 7 | 7 |
| 8 #include "src/handles.h" | 8 #include "src/handles.h" |
| 9 #include "src/objects.h" | 9 #include "src/objects.h" |
| 10 | 10 |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 object_wrapper_(Handle<Foreign>::null()), | 21 object_wrapper_(Handle<Foreign>::null()), |
| 22 aborted_(false) { | 22 aborted_(false) { |
| 23 std::fill_n(groups_, DependentCode::kGroupCount, nullptr); | 23 std::fill_n(groups_, DependentCode::kGroupCount, nullptr); |
| 24 } | 24 } |
| 25 | 25 |
| 26 void Insert(DependentCode::DependencyGroup group, Handle<HeapObject> handle); | 26 void Insert(DependentCode::DependencyGroup group, Handle<HeapObject> handle); |
| 27 | 27 |
| 28 void AssumeInitialMapCantChange(Handle<Map> map) { | 28 void AssumeInitialMapCantChange(Handle<Map> map) { |
| 29 Insert(DependentCode::kInitialMapChangedGroup, map); | 29 Insert(DependentCode::kInitialMapChangedGroup, map); |
| 30 } | 30 } |
| 31 void AssumeFieldType(Handle<Map> map) { | 31 void AssumeFieldOwner(Handle<Map> map) { |
| 32 Insert(DependentCode::kFieldTypeGroup, map); | 32 Insert(DependentCode::kFieldOwnerGroup, map); |
| 33 } | 33 } |
| 34 void AssumeMapStable(Handle<Map> map); | 34 void AssumeMapStable(Handle<Map> map); |
| 35 void AssumePrototypeMapsStable( | 35 void AssumePrototypeMapsStable( |
| 36 Handle<Map> map, | 36 Handle<Map> map, |
| 37 MaybeHandle<JSReceiver> prototype = MaybeHandle<JSReceiver>()); | 37 MaybeHandle<JSReceiver> prototype = MaybeHandle<JSReceiver>()); |
| 38 void AssumeMapNotDeprecated(Handle<Map> map); | 38 void AssumeMapNotDeprecated(Handle<Map> map); |
| 39 void AssumePropertyCell(Handle<PropertyCell> cell) { | 39 void AssumePropertyCell(Handle<PropertyCell> cell) { |
| 40 Insert(DependentCode::kPropertyCellChangedGroup, cell); | 40 Insert(DependentCode::kPropertyCellChangedGroup, cell); |
| 41 } | 41 } |
| 42 void AssumeTenuringDecision(Handle<AllocationSite> site) { | 42 void AssumeTenuringDecision(Handle<AllocationSite> site) { |
| (...skipping 20 matching lines...) Expand all Loading... |
| 63 bool aborted_; | 63 bool aborted_; |
| 64 ZoneList<Handle<HeapObject> >* groups_[DependentCode::kGroupCount]; | 64 ZoneList<Handle<HeapObject> >* groups_[DependentCode::kGroupCount]; |
| 65 | 65 |
| 66 DependentCode* Get(Handle<Object> object); | 66 DependentCode* Get(Handle<Object> object); |
| 67 void Set(Handle<Object> object, Handle<DependentCode> dep); | 67 void Set(Handle<Object> object, Handle<DependentCode> dep); |
| 68 }; | 68 }; |
| 69 } // namespace internal | 69 } // namespace internal |
| 70 } // namespace v8 | 70 } // namespace v8 |
| 71 | 71 |
| 72 #endif // V8_DEPENDENCIES_H_ | 72 #endif // V8_DEPENDENCIES_H_ |
| OLD | NEW |