| 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 2809 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2820 Object* megamorphic = *TypeFeedbackVector::MegamorphicSentinel(isolate()); | 2820 Object* megamorphic = *TypeFeedbackVector::MegamorphicSentinel(isolate()); |
| 2821 dummy_vector->Set(load_ic_slot, megamorphic, SKIP_WRITE_BARRIER); | 2821 dummy_vector->Set(load_ic_slot, megamorphic, SKIP_WRITE_BARRIER); |
| 2822 dummy_vector->Set(keyed_load_ic_slot, megamorphic, SKIP_WRITE_BARRIER); | 2822 dummy_vector->Set(keyed_load_ic_slot, megamorphic, SKIP_WRITE_BARRIER); |
| 2823 dummy_vector->Set(store_ic_slot, megamorphic, SKIP_WRITE_BARRIER); | 2823 dummy_vector->Set(store_ic_slot, megamorphic, SKIP_WRITE_BARRIER); |
| 2824 dummy_vector->Set(keyed_store_ic_slot, megamorphic, SKIP_WRITE_BARRIER); | 2824 dummy_vector->Set(keyed_store_ic_slot, megamorphic, SKIP_WRITE_BARRIER); |
| 2825 | 2825 |
| 2826 set_dummy_vector(*dummy_vector); | 2826 set_dummy_vector(*dummy_vector); |
| 2827 } | 2827 } |
| 2828 | 2828 |
| 2829 { | 2829 { |
| 2830 Handle<FixedArray> empty_literals_array = |
| 2831 factory->NewFixedArray(1, TENURED); |
| 2832 empty_literals_array->set(0, *factory->empty_fixed_array(), |
| 2833 SKIP_WRITE_BARRIER); |
| 2834 set_empty_literals_array(*empty_literals_array); |
| 2835 } |
| 2836 |
| 2837 { |
| 2830 Handle<WeakCell> cell = factory->NewWeakCell(factory->undefined_value()); | 2838 Handle<WeakCell> cell = factory->NewWeakCell(factory->undefined_value()); |
| 2831 set_empty_weak_cell(*cell); | 2839 set_empty_weak_cell(*cell); |
| 2832 cell->clear(); | 2840 cell->clear(); |
| 2833 | 2841 |
| 2834 Handle<FixedArray> cleared_optimized_code_map = | 2842 Handle<FixedArray> cleared_optimized_code_map = |
| 2835 factory->NewFixedArray(SharedFunctionInfo::kEntriesStart, TENURED); | 2843 factory->NewFixedArray(SharedFunctionInfo::kEntriesStart, TENURED); |
| 2836 cleared_optimized_code_map->set(SharedFunctionInfo::kSharedCodeIndex, | 2844 cleared_optimized_code_map->set(SharedFunctionInfo::kSharedCodeIndex, |
| 2837 *cell); | 2845 *cell); |
| 2838 STATIC_ASSERT(SharedFunctionInfo::kEntriesStart == 1 && | 2846 STATIC_ASSERT(SharedFunctionInfo::kEntriesStart == 1 && |
| 2839 SharedFunctionInfo::kSharedCodeIndex == 0); | 2847 SharedFunctionInfo::kSharedCodeIndex == 0); |
| (...skipping 3404 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6244 } | 6252 } |
| 6245 | 6253 |
| 6246 | 6254 |
| 6247 // static | 6255 // static |
| 6248 int Heap::GetStaticVisitorIdForMap(Map* map) { | 6256 int Heap::GetStaticVisitorIdForMap(Map* map) { |
| 6249 return StaticVisitorBase::GetVisitorId(map); | 6257 return StaticVisitorBase::GetVisitorId(map); |
| 6250 } | 6258 } |
| 6251 | 6259 |
| 6252 } // namespace internal | 6260 } // namespace internal |
| 6253 } // namespace v8 | 6261 } // namespace v8 |
| OLD | NEW |