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

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

Issue 1014793003: Feedback vector: ASAN found memory leaks during AST Numbering pass. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Minor fixes. Created 5 years, 9 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/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 3109 matching lines...) Expand 10 before | Expand all | Expand 10 after
3120 3120
3121 // Allocate object to hold object observation state. 3121 // Allocate object to hold object observation state.
3122 set_observation_state(*factory->NewJSObjectFromMap( 3122 set_observation_state(*factory->NewJSObjectFromMap(
3123 factory->NewMap(JS_OBJECT_TYPE, JSObject::kHeaderSize))); 3123 factory->NewMap(JS_OBJECT_TYPE, JSObject::kHeaderSize)));
3124 3124
3125 // Microtask queue uses the empty fixed array as a sentinel for "empty". 3125 // Microtask queue uses the empty fixed array as a sentinel for "empty".
3126 // Number of queued microtasks stored in Isolate::pending_microtask_count(). 3126 // Number of queued microtasks stored in Isolate::pending_microtask_count().
3127 set_microtask_queue(empty_fixed_array()); 3127 set_microtask_queue(empty_fixed_array());
3128 3128
3129 if (FLAG_vector_ics) { 3129 if (FLAG_vector_ics) {
3130 FeedbackVectorSpec spec(0, 1); 3130 FeedbackVectorSpec spec(0, Code::KEYED_LOAD_IC);
3131 spec.SetKind(0, Code::KEYED_LOAD_IC);
3132 Handle<TypeFeedbackVector> dummy_vector = 3131 Handle<TypeFeedbackVector> dummy_vector =
3133 factory->NewTypeFeedbackVector(spec); 3132 factory->NewTypeFeedbackVector(&spec);
3134 dummy_vector->Set(FeedbackVectorICSlot(0), 3133 dummy_vector->Set(FeedbackVectorICSlot(0),
3135 *TypeFeedbackVector::MegamorphicSentinel(isolate()), 3134 *TypeFeedbackVector::MegamorphicSentinel(isolate()),
3136 SKIP_WRITE_BARRIER); 3135 SKIP_WRITE_BARRIER);
3137 set_keyed_load_dummy_vector(*dummy_vector); 3136 set_keyed_load_dummy_vector(*dummy_vector);
3138 } else { 3137 } else {
3139 set_keyed_load_dummy_vector(empty_fixed_array()); 3138 set_keyed_load_dummy_vector(empty_fixed_array());
3140 } 3139 }
3141 3140
3142 set_detached_contexts(empty_fixed_array()); 3141 set_detached_contexts(empty_fixed_array());
3143 set_retained_maps(ArrayList::cast(empty_fixed_array())); 3142 set_retained_maps(ArrayList::cast(empty_fixed_array()));
(...skipping 3305 matching lines...) Expand 10 before | Expand all | Expand 10 after
6449 static_cast<int>(object_sizes_last_time_[index])); 6448 static_cast<int>(object_sizes_last_time_[index]));
6450 CODE_AGE_LIST_COMPLETE(ADJUST_LAST_TIME_OBJECT_COUNT) 6449 CODE_AGE_LIST_COMPLETE(ADJUST_LAST_TIME_OBJECT_COUNT)
6451 #undef ADJUST_LAST_TIME_OBJECT_COUNT 6450 #undef ADJUST_LAST_TIME_OBJECT_COUNT
6452 6451
6453 MemCopy(object_counts_last_time_, object_counts_, sizeof(object_counts_)); 6452 MemCopy(object_counts_last_time_, object_counts_, sizeof(object_counts_));
6454 MemCopy(object_sizes_last_time_, object_sizes_, sizeof(object_sizes_)); 6453 MemCopy(object_sizes_last_time_, object_sizes_, sizeof(object_sizes_));
6455 ClearObjectStats(); 6454 ClearObjectStats();
6456 } 6455 }
6457 } 6456 }
6458 } // namespace v8::internal 6457 } // namespace v8::internal
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