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