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 2803 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2814 Object* megamorphic = *TypeFeedbackVector::MegamorphicSentinel(isolate()); | 2814 Object* megamorphic = *TypeFeedbackVector::MegamorphicSentinel(isolate()); |
2815 dummy_vector->Set(load_ic_slot, megamorphic, SKIP_WRITE_BARRIER); | 2815 dummy_vector->Set(load_ic_slot, megamorphic, SKIP_WRITE_BARRIER); |
2816 dummy_vector->Set(keyed_load_ic_slot, megamorphic, SKIP_WRITE_BARRIER); | 2816 dummy_vector->Set(keyed_load_ic_slot, megamorphic, SKIP_WRITE_BARRIER); |
2817 dummy_vector->Set(store_ic_slot, megamorphic, SKIP_WRITE_BARRIER); | 2817 dummy_vector->Set(store_ic_slot, megamorphic, SKIP_WRITE_BARRIER); |
2818 dummy_vector->Set(keyed_store_ic_slot, megamorphic, SKIP_WRITE_BARRIER); | 2818 dummy_vector->Set(keyed_store_ic_slot, megamorphic, SKIP_WRITE_BARRIER); |
2819 | 2819 |
2820 set_dummy_vector(*dummy_vector); | 2820 set_dummy_vector(*dummy_vector); |
2821 } | 2821 } |
2822 | 2822 |
2823 { | 2823 { |
| 2824 Handle<FixedArray> empty_literals_array = |
| 2825 factory->NewFixedArray(1, TENURED); |
| 2826 empty_literals_array->set(0, *factory->empty_fixed_array(), |
| 2827 SKIP_WRITE_BARRIER); |
| 2828 set_empty_literals_array(*empty_literals_array); |
| 2829 } |
| 2830 |
| 2831 { |
2824 Handle<WeakCell> cell = factory->NewWeakCell(factory->undefined_value()); | 2832 Handle<WeakCell> cell = factory->NewWeakCell(factory->undefined_value()); |
2825 set_empty_weak_cell(*cell); | 2833 set_empty_weak_cell(*cell); |
2826 cell->clear(); | 2834 cell->clear(); |
2827 | 2835 |
2828 Handle<FixedArray> cleared_optimized_code_map = | 2836 Handle<FixedArray> cleared_optimized_code_map = |
2829 factory->NewFixedArray(SharedFunctionInfo::kEntriesStart, TENURED); | 2837 factory->NewFixedArray(SharedFunctionInfo::kEntriesStart, TENURED); |
2830 cleared_optimized_code_map->set(SharedFunctionInfo::kSharedCodeIndex, | 2838 cleared_optimized_code_map->set(SharedFunctionInfo::kSharedCodeIndex, |
2831 *cell); | 2839 *cell); |
2832 STATIC_ASSERT(SharedFunctionInfo::kEntriesStart == 1 && | 2840 STATIC_ASSERT(SharedFunctionInfo::kEntriesStart == 1 && |
2833 SharedFunctionInfo::kSharedCodeIndex == 0); | 2841 SharedFunctionInfo::kSharedCodeIndex == 0); |
(...skipping 3380 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6214 } | 6222 } |
6215 | 6223 |
6216 | 6224 |
6217 // static | 6225 // static |
6218 int Heap::GetStaticVisitorIdForMap(Map* map) { | 6226 int Heap::GetStaticVisitorIdForMap(Map* map) { |
6219 return StaticVisitorBase::GetVisitorId(map); | 6227 return StaticVisitorBase::GetVisitorId(map); |
6220 } | 6228 } |
6221 | 6229 |
6222 } // namespace internal | 6230 } // namespace internal |
6223 } // namespace v8 | 6231 } // namespace v8 |
OLD | NEW |