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

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

Issue 1129853002: Removing FLAG_vector_ics. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Comment response. Created 5 years, 7 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/full-codegen.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/v8.h" 5 #include "src/v8.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 3117 matching lines...) Expand 10 before | Expand all | Expand 10 after
3128 set_symbol_registry(Smi::FromInt(0)); 3128 set_symbol_registry(Smi::FromInt(0));
3129 3129
3130 // Allocate object to hold object observation state. 3130 // Allocate object to hold object observation state.
3131 set_observation_state(*factory->NewJSObjectFromMap( 3131 set_observation_state(*factory->NewJSObjectFromMap(
3132 factory->NewMap(JS_OBJECT_TYPE, JSObject::kHeaderSize))); 3132 factory->NewMap(JS_OBJECT_TYPE, JSObject::kHeaderSize)));
3133 3133
3134 // Microtask queue uses the empty fixed array as a sentinel for "empty". 3134 // Microtask queue uses the empty fixed array as a sentinel for "empty".
3135 // Number of queued microtasks stored in Isolate::pending_microtask_count(). 3135 // Number of queued microtasks stored in Isolate::pending_microtask_count().
3136 set_microtask_queue(empty_fixed_array()); 3136 set_microtask_queue(empty_fixed_array());
3137 3137
3138 if (FLAG_vector_ics) { 3138 FeedbackVectorSpec spec(0, Code::KEYED_LOAD_IC);
3139 FeedbackVectorSpec spec(0, Code::KEYED_LOAD_IC); 3139 Handle<TypeFeedbackVector> dummy_vector =
3140 Handle<TypeFeedbackVector> dummy_vector = 3140 factory->NewTypeFeedbackVector(&spec);
3141 factory->NewTypeFeedbackVector(&spec); 3141 dummy_vector->Set(FeedbackVectorICSlot(0),
3142 dummy_vector->Set(FeedbackVectorICSlot(0), 3142 *TypeFeedbackVector::MegamorphicSentinel(isolate()),
3143 *TypeFeedbackVector::MegamorphicSentinel(isolate()), 3143 SKIP_WRITE_BARRIER);
3144 SKIP_WRITE_BARRIER); 3144 set_keyed_load_dummy_vector(*dummy_vector);
3145 set_keyed_load_dummy_vector(*dummy_vector);
3146 } else {
3147 set_keyed_load_dummy_vector(empty_fixed_array());
3148 }
3149 3145
3150 set_detached_contexts(empty_fixed_array()); 3146 set_detached_contexts(empty_fixed_array());
3151 set_retained_maps(ArrayList::cast(empty_fixed_array())); 3147 set_retained_maps(ArrayList::cast(empty_fixed_array()));
3152 3148
3153 set_weak_object_to_code_table( 3149 set_weak_object_to_code_table(
3154 *WeakHashTable::New(isolate(), 16, USE_DEFAULT_MINIMUM_CAPACITY, 3150 *WeakHashTable::New(isolate(), 16, USE_DEFAULT_MINIMUM_CAPACITY,
3155 TENURED)); 3151 TENURED));
3156 3152
3157 Handle<SeededNumberDictionary> slow_element_dictionary = 3153 Handle<SeededNumberDictionary> slow_element_dictionary =
3158 SeededNumberDictionary::New(isolate(), 0, TENURED); 3154 SeededNumberDictionary::New(isolate(), 0, TENURED);
(...skipping 3371 matching lines...) Expand 10 before | Expand all | Expand 10 after
6530 } 6526 }
6531 delete list; 6527 delete list;
6532 } else { 6528 } else {
6533 prev = list; 6529 prev = list;
6534 } 6530 }
6535 list = next; 6531 list = next;
6536 } 6532 }
6537 } 6533 }
6538 } 6534 }
6539 } // namespace v8::internal 6535 } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/full-codegen.cc ('k') | src/hydrogen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698