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

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

Issue 1369973002: Use FeedbackVectorSlotKind instead of Code::Kind for type feedback vector. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: 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/ast.cc ('k') | src/hydrogen.cc » ('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 2669 matching lines...) Expand 10 before | Expand all | Expand 10 after
2680 2680
2681 // Allocate object to hold object observation state. 2681 // Allocate object to hold object observation state.
2682 set_observation_state(*factory->NewJSObjectFromMap( 2682 set_observation_state(*factory->NewJSObjectFromMap(
2683 factory->NewMap(JS_OBJECT_TYPE, JSObject::kHeaderSize))); 2683 factory->NewMap(JS_OBJECT_TYPE, JSObject::kHeaderSize)));
2684 2684
2685 // Microtask queue uses the empty fixed array as a sentinel for "empty". 2685 // Microtask queue uses the empty fixed array as a sentinel for "empty".
2686 // Number of queued microtasks stored in Isolate::pending_microtask_count(). 2686 // Number of queued microtasks stored in Isolate::pending_microtask_count().
2687 set_microtask_queue(empty_fixed_array()); 2687 set_microtask_queue(empty_fixed_array());
2688 2688
2689 { 2689 {
2690 Code::Kind kinds[] = {Code::LOAD_IC, Code::KEYED_LOAD_IC, Code::STORE_IC, 2690 FeedbackVectorSlotKind kinds[] = {FeedbackVectorSlotKind::LOAD_IC,
2691 Code::KEYED_STORE_IC}; 2691 FeedbackVectorSlotKind::KEYED_LOAD_IC,
2692 FeedbackVectorSlotKind::STORE_IC,
2693 FeedbackVectorSlotKind::KEYED_STORE_IC};
2692 FeedbackVectorSpec spec(0, 4, kinds); 2694 FeedbackVectorSpec spec(0, 4, kinds);
2693 Handle<TypeFeedbackVector> dummy_vector = 2695 Handle<TypeFeedbackVector> dummy_vector =
2694 factory->NewTypeFeedbackVector(&spec); 2696 factory->NewTypeFeedbackVector(&spec);
2695 for (int i = 0; i < 4; i++) { 2697 for (int i = 0; i < 4; i++) {
2696 dummy_vector->Set(FeedbackVectorICSlot(0), 2698 dummy_vector->Set(FeedbackVectorICSlot(0),
2697 *TypeFeedbackVector::MegamorphicSentinel(isolate()), 2699 *TypeFeedbackVector::MegamorphicSentinel(isolate()),
2698 SKIP_WRITE_BARRIER); 2700 SKIP_WRITE_BARRIER);
2699 } 2701 }
2700 set_dummy_vector(*dummy_vector); 2702 set_dummy_vector(*dummy_vector);
2701 } 2703 }
(...skipping 3403 matching lines...) Expand 10 before | Expand all | Expand 10 after
6105 } 6107 }
6106 6108
6107 6109
6108 // static 6110 // static
6109 int Heap::GetStaticVisitorIdForMap(Map* map) { 6111 int Heap::GetStaticVisitorIdForMap(Map* map) {
6110 return StaticVisitorBase::GetVisitorId(map); 6112 return StaticVisitorBase::GetVisitorId(map);
6111 } 6113 }
6112 6114
6113 } // namespace internal 6115 } // namespace internal
6114 } // namespace v8 6116 } // namespace v8
OLDNEW
« no previous file with comments | « src/ast.cc ('k') | src/hydrogen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698