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/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/ast/scopeinfo.h" | 9 #include "src/ast/scopeinfo.h" |
10 #include "src/base/bits.h" | 10 #include "src/base/bits.h" |
(...skipping 435 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
446 UpdateMaximumCommitted(); | 446 UpdateMaximumCommitted(); |
447 | 447 |
448 #ifdef DEBUG | 448 #ifdef DEBUG |
449 DCHECK(!AllowHeapAllocation::IsAllowed() && gc_state_ == NOT_IN_GC); | 449 DCHECK(!AllowHeapAllocation::IsAllowed() && gc_state_ == NOT_IN_GC); |
450 | 450 |
451 if (FLAG_gc_verbose) Print(); | 451 if (FLAG_gc_verbose) Print(); |
452 | 452 |
453 ReportStatisticsBeforeGC(); | 453 ReportStatisticsBeforeGC(); |
454 #endif // DEBUG | 454 #endif // DEBUG |
455 | 455 |
456 if (isolate()->concurrent_osr_enabled()) { | |
457 isolate()->optimizing_compile_dispatcher()->AgeBufferedOsrJobs(); | |
458 } | |
459 | |
460 if (new_space_.IsAtMaximumCapacity()) { | 456 if (new_space_.IsAtMaximumCapacity()) { |
461 maximum_size_scavenges_++; | 457 maximum_size_scavenges_++; |
462 } else { | 458 } else { |
463 maximum_size_scavenges_ = 0; | 459 maximum_size_scavenges_ = 0; |
464 } | 460 } |
465 CheckNewSpaceExpansionCriteria(); | 461 CheckNewSpaceExpansionCriteria(); |
466 UpdateNewSpaceAllocationCounter(); | 462 UpdateNewSpaceAllocationCounter(); |
467 store_buffer()->MoveEntriesToRememberedSet(); | 463 store_buffer()->MoveEntriesToRememberedSet(); |
468 } | 464 } |
469 | 465 |
(...skipping 5874 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6344 } | 6340 } |
6345 | 6341 |
6346 | 6342 |
6347 // static | 6343 // static |
6348 int Heap::GetStaticVisitorIdForMap(Map* map) { | 6344 int Heap::GetStaticVisitorIdForMap(Map* map) { |
6349 return StaticVisitorBase::GetVisitorId(map); | 6345 return StaticVisitorBase::GetVisitorId(map); |
6350 } | 6346 } |
6351 | 6347 |
6352 } // namespace internal | 6348 } // namespace internal |
6353 } // namespace v8 | 6349 } // namespace v8 |
OLD | NEW |