OLD | NEW |
---|---|
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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/heap/heap.h" | 5 #include "src/heap/heap.h" |
6 | 6 |
7 #include "src/accessors.h" | 7 #include "src/accessors.h" |
8 #include "src/api.h" | 8 #include "src/api.h" |
9 #include "src/ast/scopeinfo.h" | 9 #include "src/ast/scopeinfo.h" |
10 #include "src/base/bits.h" | 10 #include "src/base/bits.h" |
(...skipping 2773 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
2784 Object* megamorphic = *TypeFeedbackVector::MegamorphicSentinel(isolate()); | 2784 Object* megamorphic = *TypeFeedbackVector::MegamorphicSentinel(isolate()); |
2785 dummy_vector->Set(load_ic_slot, megamorphic, SKIP_WRITE_BARRIER); | 2785 dummy_vector->Set(load_ic_slot, megamorphic, SKIP_WRITE_BARRIER); |
2786 dummy_vector->Set(keyed_load_ic_slot, megamorphic, SKIP_WRITE_BARRIER); | 2786 dummy_vector->Set(keyed_load_ic_slot, megamorphic, SKIP_WRITE_BARRIER); |
2787 dummy_vector->Set(store_ic_slot, megamorphic, SKIP_WRITE_BARRIER); | 2787 dummy_vector->Set(store_ic_slot, megamorphic, SKIP_WRITE_BARRIER); |
2788 dummy_vector->Set(keyed_store_ic_slot, megamorphic, SKIP_WRITE_BARRIER); | 2788 dummy_vector->Set(keyed_store_ic_slot, megamorphic, SKIP_WRITE_BARRIER); |
2789 | 2789 |
2790 set_dummy_vector(*dummy_vector); | 2790 set_dummy_vector(*dummy_vector); |
2791 } | 2791 } |
2792 | 2792 |
2793 { | 2793 { |
2794 Handle<FixedArray> empty_literals_array = | |
2795 factory->NewFixedArray(1, TENURED); | |
2796 empty_literals_array->set(0, *factory->empty_fixed_array(), | |
2797 SKIP_WRITE_BARRIER); | |
Michael Starzinger
2016/05/10 13:47:20
nit: I have a hard time reasoning about whether sk
mvstanton
2016/05/24 16:31:49
Done.
mvstanton
2016/05/24 16:31:50
Done.
| |
2798 set_empty_literals_array(*empty_literals_array); | |
2799 } | |
2800 | |
2801 { | |
2794 Handle<WeakCell> cell = factory->NewWeakCell(factory->undefined_value()); | 2802 Handle<WeakCell> cell = factory->NewWeakCell(factory->undefined_value()); |
2795 set_empty_weak_cell(*cell); | 2803 set_empty_weak_cell(*cell); |
2796 cell->clear(); | 2804 cell->clear(); |
2797 | 2805 |
2798 Handle<FixedArray> cleared_optimized_code_map = | 2806 Handle<FixedArray> cleared_optimized_code_map = |
2799 factory->NewFixedArray(SharedFunctionInfo::kEntriesStart, TENURED); | 2807 factory->NewFixedArray(SharedFunctionInfo::kEntriesStart, TENURED); |
2800 cleared_optimized_code_map->set(SharedFunctionInfo::kSharedCodeIndex, | 2808 cleared_optimized_code_map->set(SharedFunctionInfo::kSharedCodeIndex, |
2801 *cell); | 2809 *cell); |
2802 STATIC_ASSERT(SharedFunctionInfo::kEntriesStart == 1 && | 2810 STATIC_ASSERT(SharedFunctionInfo::kEntriesStart == 1 && |
2803 SharedFunctionInfo::kSharedCodeIndex == 0); | 2811 SharedFunctionInfo::kSharedCodeIndex == 0); |
(...skipping 3543 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
6347 } | 6355 } |
6348 | 6356 |
6349 | 6357 |
6350 // static | 6358 // static |
6351 int Heap::GetStaticVisitorIdForMap(Map* map) { | 6359 int Heap::GetStaticVisitorIdForMap(Map* map) { |
6352 return StaticVisitorBase::GetVisitorId(map); | 6360 return StaticVisitorBase::GetVisitorId(map); |
6353 } | 6361 } |
6354 | 6362 |
6355 } // namespace internal | 6363 } // namespace internal |
6356 } // namespace v8 | 6364 } // namespace v8 |
OLD | NEW |