Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1)

Side by Side Diff: src/heap/heap.cc

Issue 1384673002: The metadata part of TypeFeedbackVector is extracted to TypeFeedbackMetadata array. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Cleanup Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/factory.cc ('k') | src/objects.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « src/factory.cc ('k') | src/objects.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698