OLD | NEW |
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 415 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
426 } | 426 } |
427 | 427 |
428 | 428 |
429 void Heap::GarbageCollectionPrologue() { | 429 void Heap::GarbageCollectionPrologue() { |
430 { | 430 { |
431 AllowHeapAllocation for_the_first_part_of_prologue; | 431 AllowHeapAllocation for_the_first_part_of_prologue; |
432 ClearJSFunctionResultCaches(); | 432 ClearJSFunctionResultCaches(); |
433 gc_count_++; | 433 gc_count_++; |
434 unflattened_strings_length_ = 0; | 434 unflattened_strings_length_ = 0; |
435 | 435 |
436 if (FLAG_flush_code && FLAG_flush_code_incrementally) { | 436 if (FLAG_flush_code) { |
437 mark_compact_collector()->EnableCodeFlushing(true); | 437 mark_compact_collector()->EnableCodeFlushing(true); |
438 } | 438 } |
439 | 439 |
440 #ifdef VERIFY_HEAP | 440 #ifdef VERIFY_HEAP |
441 if (FLAG_verify_heap) { | 441 if (FLAG_verify_heap) { |
442 Verify(); | 442 Verify(); |
443 } | 443 } |
444 #endif | 444 #endif |
445 } | 445 } |
446 | 446 |
(...skipping 6401 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6848 *object_type = "CODE_TYPE"; \ | 6848 *object_type = "CODE_TYPE"; \ |
6849 *object_sub_type = "CODE_AGE/" #name; \ | 6849 *object_sub_type = "CODE_AGE/" #name; \ |
6850 return true; | 6850 return true; |
6851 CODE_AGE_LIST_COMPLETE(COMPARE_AND_RETURN_NAME) | 6851 CODE_AGE_LIST_COMPLETE(COMPARE_AND_RETURN_NAME) |
6852 #undef COMPARE_AND_RETURN_NAME | 6852 #undef COMPARE_AND_RETURN_NAME |
6853 } | 6853 } |
6854 return false; | 6854 return false; |
6855 } | 6855 } |
6856 } // namespace internal | 6856 } // namespace internal |
6857 } // namespace v8 | 6857 } // namespace v8 |
OLD | NEW |