| OLD | NEW |
| 1 // Copyright 2015 the V8 project authors. All rights reserved. | 1 // Copyright 2015 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/object-stats.h" | 5 #include "src/heap/object-stats.h" |
| 6 | 6 |
| 7 #include "src/compilation-cache.h" | 7 #include "src/compilation-cache.h" |
| 8 #include "src/counters.h" | 8 #include "src/counters.h" |
| 9 #include "src/heap/heap-inl.h" | 9 #include "src/heap/heap-inl.h" |
| 10 #include "src/isolate.h" | 10 #include "src/isolate.h" |
| (...skipping 312 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 323 CompilationCache* compilation_cache = heap_->isolate()->compilation_cache(); | 323 CompilationCache* compilation_cache = heap_->isolate()->compilation_cache(); |
| 324 CompilationCacheTableVisitor v(this); | 324 CompilationCacheTableVisitor v(this); |
| 325 compilation_cache->Iterate(&v); | 325 compilation_cache->Iterate(&v); |
| 326 } | 326 } |
| 327 | 327 |
| 328 static bool CanRecordFixedArray(Heap* heap, FixedArrayBase* array) { | 328 static bool CanRecordFixedArray(Heap* heap, FixedArrayBase* array) { |
| 329 return array->map()->instance_type() == FIXED_ARRAY_TYPE && | 329 return array->map()->instance_type() == FIXED_ARRAY_TYPE && |
| 330 array->map() != heap->fixed_double_array_map() && | 330 array->map() != heap->fixed_double_array_map() && |
| 331 array != heap->empty_fixed_array() && | 331 array != heap->empty_fixed_array() && |
| 332 array != heap->empty_byte_array() && | 332 array != heap->empty_byte_array() && |
| 333 array != heap->empty_feedback_vector() && | |
| 334 array != heap->empty_sloppy_arguments_elements() && | 333 array != heap->empty_sloppy_arguments_elements() && |
| 335 array != heap->empty_slow_element_dictionary() && | 334 array != heap->empty_slow_element_dictionary() && |
| 336 array != heap->empty_descriptor_array() && | 335 array != heap->empty_descriptor_array() && |
| 337 array != heap->empty_properties_dictionary(); | 336 array != heap->empty_properties_dictionary(); |
| 338 } | 337 } |
| 339 | 338 |
| 340 static bool IsCowArray(Heap* heap, FixedArrayBase* array) { | 339 static bool IsCowArray(Heap* heap, FixedArrayBase* array) { |
| 341 return array->map() == heap->fixed_cow_array_map(); | 340 return array->map() == heap->fixed_cow_array_map(); |
| 342 } | 341 } |
| 343 | 342 |
| (...skipping 233 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 577 SLOW_TEMPLATE_INSTANTIATIONS_CACHE_SUB_TYPE); | 576 SLOW_TEMPLATE_INSTANTIATIONS_CACHE_SUB_TYPE); |
| 578 FixedArray* fast_cache = native_ctx->fast_template_instantiations_cache(); | 577 FixedArray* fast_cache = native_ctx->fast_template_instantiations_cache(); |
| 579 stats_->RecordFixedArraySubTypeStats( | 578 stats_->RecordFixedArraySubTypeStats( |
| 580 fast_cache, FAST_TEMPLATE_INSTANTIATIONS_CACHE_SUB_TYPE, | 579 fast_cache, FAST_TEMPLATE_INSTANTIATIONS_CACHE_SUB_TYPE, |
| 581 fast_cache->Size(), 0); | 580 fast_cache->Size(), 0); |
| 582 } | 581 } |
| 583 } | 582 } |
| 584 | 583 |
| 585 } // namespace internal | 584 } // namespace internal |
| 586 } // namespace v8 | 585 } // namespace v8 |
| OLD | NEW |