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/base/bits.h" | 9 #include "src/base/bits.h" |
10 #include "src/base/once.h" | 10 #include "src/base/once.h" |
(...skipping 2717 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2728 | 2728 |
2729 DCHECK_EQ(load_ic_slot, | 2729 DCHECK_EQ(load_ic_slot, |
2730 FeedbackVectorSlot(TypeFeedbackVector::kDummyLoadICSlot)); | 2730 FeedbackVectorSlot(TypeFeedbackVector::kDummyLoadICSlot)); |
2731 DCHECK_EQ(keyed_load_ic_slot, | 2731 DCHECK_EQ(keyed_load_ic_slot, |
2732 FeedbackVectorSlot(TypeFeedbackVector::kDummyKeyedLoadICSlot)); | 2732 FeedbackVectorSlot(TypeFeedbackVector::kDummyKeyedLoadICSlot)); |
2733 DCHECK_EQ(store_ic_slot, | 2733 DCHECK_EQ(store_ic_slot, |
2734 FeedbackVectorSlot(TypeFeedbackVector::kDummyStoreICSlot)); | 2734 FeedbackVectorSlot(TypeFeedbackVector::kDummyStoreICSlot)); |
2735 DCHECK_EQ(keyed_store_ic_slot, | 2735 DCHECK_EQ(keyed_store_ic_slot, |
2736 FeedbackVectorSlot(TypeFeedbackVector::kDummyKeyedStoreICSlot)); | 2736 FeedbackVectorSlot(TypeFeedbackVector::kDummyKeyedStoreICSlot)); |
2737 | 2737 |
| 2738 Handle<TypeFeedbackMetadata> dummy_metadata = |
| 2739 TypeFeedbackMetadata::New(isolate(), &spec); |
2738 Handle<TypeFeedbackVector> dummy_vector = | 2740 Handle<TypeFeedbackVector> dummy_vector = |
2739 TypeFeedbackVector::New(isolate(), &spec); | 2741 TypeFeedbackVector::New(isolate(), dummy_metadata); |
2740 | 2742 |
2741 Object* megamorphic = *TypeFeedbackVector::MegamorphicSentinel(isolate()); | 2743 Object* megamorphic = *TypeFeedbackVector::MegamorphicSentinel(isolate()); |
2742 dummy_vector->Set(load_ic_slot, megamorphic, SKIP_WRITE_BARRIER); | 2744 dummy_vector->Set(load_ic_slot, megamorphic, SKIP_WRITE_BARRIER); |
2743 dummy_vector->Set(keyed_load_ic_slot, megamorphic, SKIP_WRITE_BARRIER); | 2745 dummy_vector->Set(keyed_load_ic_slot, megamorphic, SKIP_WRITE_BARRIER); |
2744 dummy_vector->Set(store_ic_slot, megamorphic, SKIP_WRITE_BARRIER); | 2746 dummy_vector->Set(store_ic_slot, megamorphic, SKIP_WRITE_BARRIER); |
2745 dummy_vector->Set(keyed_store_ic_slot, megamorphic, SKIP_WRITE_BARRIER); | 2747 dummy_vector->Set(keyed_store_ic_slot, megamorphic, SKIP_WRITE_BARRIER); |
2746 | 2748 |
2747 set_dummy_vector(*dummy_vector); | 2749 set_dummy_vector(*dummy_vector); |
2748 } | 2750 } |
2749 | 2751 |
(...skipping 3347 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6097 } | 6099 } |
6098 | 6100 |
6099 | 6101 |
6100 // static | 6102 // static |
6101 int Heap::GetStaticVisitorIdForMap(Map* map) { | 6103 int Heap::GetStaticVisitorIdForMap(Map* map) { |
6102 return StaticVisitorBase::GetVisitorId(map); | 6104 return StaticVisitorBase::GetVisitorId(map); |
6103 } | 6105 } |
6104 | 6106 |
6105 } // namespace internal | 6107 } // namespace internal |
6106 } // namespace v8 | 6108 } // namespace v8 |
OLD | NEW |