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

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

Issue 1376443002: Refactored interface of FeedbackVectorSpec and friends. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix 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/type-feedback-vector.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 2682 matching lines...) Expand 10 before | Expand all | Expand 10 after
2693 2693
2694 // Microtask queue uses the empty fixed array as a sentinel for "empty". 2694 // Microtask queue uses the empty fixed array as a sentinel for "empty".
2695 // Number of queued microtasks stored in Isolate::pending_microtask_count(). 2695 // Number of queued microtasks stored in Isolate::pending_microtask_count().
2696 set_microtask_queue(empty_fixed_array()); 2696 set_microtask_queue(empty_fixed_array());
2697 2697
2698 { 2698 {
2699 FeedbackVectorSlotKind kinds[] = {FeedbackVectorSlotKind::LOAD_IC, 2699 FeedbackVectorSlotKind kinds[] = {FeedbackVectorSlotKind::LOAD_IC,
2700 FeedbackVectorSlotKind::KEYED_LOAD_IC, 2700 FeedbackVectorSlotKind::KEYED_LOAD_IC,
2701 FeedbackVectorSlotKind::STORE_IC, 2701 FeedbackVectorSlotKind::STORE_IC,
2702 FeedbackVectorSlotKind::KEYED_STORE_IC}; 2702 FeedbackVectorSlotKind::KEYED_STORE_IC};
2703 FeedbackVectorSpec spec(0, 4, kinds); 2703 StaticFeedbackVectorSpec spec(0, 4, kinds);
2704 Handle<TypeFeedbackVector> dummy_vector = 2704 Handle<TypeFeedbackVector> dummy_vector =
2705 factory->NewTypeFeedbackVector(&spec); 2705 factory->NewTypeFeedbackVector(&spec);
2706 for (int i = 0; i < 4; i++) { 2706 for (int i = 0; i < 4; i++) {
2707 dummy_vector->Set(FeedbackVectorICSlot(0), 2707 dummy_vector->Set(FeedbackVectorICSlot(0),
2708 *TypeFeedbackVector::MegamorphicSentinel(isolate()), 2708 *TypeFeedbackVector::MegamorphicSentinel(isolate()),
2709 SKIP_WRITE_BARRIER); 2709 SKIP_WRITE_BARRIER);
2710 } 2710 }
2711 set_dummy_vector(*dummy_vector); 2711 set_dummy_vector(*dummy_vector);
2712 } 2712 }
2713 2713
(...skipping 3422 matching lines...) Expand 10 before | Expand all | Expand 10 after
6136 } 6136 }
6137 6137
6138 6138
6139 // static 6139 // static
6140 int Heap::GetStaticVisitorIdForMap(Map* map) { 6140 int Heap::GetStaticVisitorIdForMap(Map* map) {
6141 return StaticVisitorBase::GetVisitorId(map); 6141 return StaticVisitorBase::GetVisitorId(map);
6142 } 6142 }
6143 6143
6144 } // namespace internal 6144 } // namespace internal
6145 } // namespace v8 6145 } // namespace v8
OLDNEW
« no previous file with comments | « src/factory.cc ('k') | src/type-feedback-vector.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698