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 2804 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2815 Object* megamorphic = *TypeFeedbackVector::MegamorphicSentinel(isolate()); | 2815 Object* megamorphic = *TypeFeedbackVector::MegamorphicSentinel(isolate()); |
2816 dummy_vector->Set(load_ic_slot, megamorphic, SKIP_WRITE_BARRIER); | 2816 dummy_vector->Set(load_ic_slot, megamorphic, SKIP_WRITE_BARRIER); |
2817 dummy_vector->Set(keyed_load_ic_slot, megamorphic, SKIP_WRITE_BARRIER); | 2817 dummy_vector->Set(keyed_load_ic_slot, megamorphic, SKIP_WRITE_BARRIER); |
2818 dummy_vector->Set(store_ic_slot, megamorphic, SKIP_WRITE_BARRIER); | 2818 dummy_vector->Set(store_ic_slot, megamorphic, SKIP_WRITE_BARRIER); |
2819 dummy_vector->Set(keyed_store_ic_slot, megamorphic, SKIP_WRITE_BARRIER); | 2819 dummy_vector->Set(keyed_store_ic_slot, megamorphic, SKIP_WRITE_BARRIER); |
2820 | 2820 |
2821 set_dummy_vector(*dummy_vector); | 2821 set_dummy_vector(*dummy_vector); |
2822 } | 2822 } |
2823 | 2823 |
2824 { | 2824 { |
| 2825 Handle<FixedArray> empty_literals_array = |
| 2826 factory->NewFixedArray(1, TENURED); |
| 2827 empty_literals_array->set(0, *factory->empty_fixed_array(), |
| 2828 SKIP_WRITE_BARRIER); |
| 2829 set_empty_literals_array(*empty_literals_array); |
| 2830 } |
| 2831 |
| 2832 { |
2825 Handle<WeakCell> cell = factory->NewWeakCell(factory->undefined_value()); | 2833 Handle<WeakCell> cell = factory->NewWeakCell(factory->undefined_value()); |
2826 set_empty_weak_cell(*cell); | 2834 set_empty_weak_cell(*cell); |
2827 cell->clear(); | 2835 cell->clear(); |
2828 | 2836 |
2829 Handle<FixedArray> cleared_optimized_code_map = | 2837 Handle<FixedArray> cleared_optimized_code_map = |
2830 factory->NewFixedArray(SharedFunctionInfo::kEntriesStart, TENURED); | 2838 factory->NewFixedArray(SharedFunctionInfo::kEntriesStart, TENURED); |
2831 cleared_optimized_code_map->set(SharedFunctionInfo::kSharedCodeIndex, | 2839 cleared_optimized_code_map->set(SharedFunctionInfo::kSharedCodeIndex, |
2832 *cell); | 2840 *cell); |
2833 STATIC_ASSERT(SharedFunctionInfo::kEntriesStart == 1 && | 2841 STATIC_ASSERT(SharedFunctionInfo::kEntriesStart == 1 && |
2834 SharedFunctionInfo::kSharedCodeIndex == 0); | 2842 SharedFunctionInfo::kSharedCodeIndex == 0); |
(...skipping 3395 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6230 } | 6238 } |
6231 | 6239 |
6232 | 6240 |
6233 // static | 6241 // static |
6234 int Heap::GetStaticVisitorIdForMap(Map* map) { | 6242 int Heap::GetStaticVisitorIdForMap(Map* map) { |
6235 return StaticVisitorBase::GetVisitorId(map); | 6243 return StaticVisitorBase::GetVisitorId(map); |
6236 } | 6244 } |
6237 | 6245 |
6238 } // namespace internal | 6246 } // namespace internal |
6239 } // namespace v8 | 6247 } // namespace v8 |
OLD | NEW |