OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 430 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
441 | 441 |
442 #ifdef DEBUG | 442 #ifdef DEBUG |
443 ASSERT(!AllowHeapAllocation::IsAllowed() && gc_state_ == NOT_IN_GC); | 443 ASSERT(!AllowHeapAllocation::IsAllowed() && gc_state_ == NOT_IN_GC); |
444 | 444 |
445 if (FLAG_gc_verbose) Print(); | 445 if (FLAG_gc_verbose) Print(); |
446 | 446 |
447 ReportStatisticsBeforeGC(); | 447 ReportStatisticsBeforeGC(); |
448 #endif // DEBUG | 448 #endif // DEBUG |
449 | 449 |
450 store_buffer()->GCPrologue(); | 450 store_buffer()->GCPrologue(); |
| 451 |
| 452 if (FLAG_concurrent_osr) { |
| 453 isolate()->optimizing_compiler_thread()->AgeBufferedOsrJobs(); |
| 454 } |
451 } | 455 } |
452 | 456 |
453 | 457 |
454 intptr_t Heap::SizeOfObjects() { | 458 intptr_t Heap::SizeOfObjects() { |
455 intptr_t total = 0; | 459 intptr_t total = 0; |
456 AllSpaces spaces(this); | 460 AllSpaces spaces(this); |
457 for (Space* space = spaces.next(); space != NULL; space = spaces.next()) { | 461 for (Space* space = spaces.next(); space != NULL; space = spaces.next()) { |
458 total += space->SizeOfObjects(); | 462 total += space->SizeOfObjects(); |
459 } | 463 } |
460 return total; | 464 return total; |
(...skipping 7438 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7899 if (FLAG_concurrent_recompilation) { | 7903 if (FLAG_concurrent_recompilation) { |
7900 heap_->relocation_mutex_->Lock(); | 7904 heap_->relocation_mutex_->Lock(); |
7901 #ifdef DEBUG | 7905 #ifdef DEBUG |
7902 heap_->relocation_mutex_locked_by_optimizer_thread_ = | 7906 heap_->relocation_mutex_locked_by_optimizer_thread_ = |
7903 heap_->isolate()->optimizing_compiler_thread()->IsOptimizerThread(); | 7907 heap_->isolate()->optimizing_compiler_thread()->IsOptimizerThread(); |
7904 #endif // DEBUG | 7908 #endif // DEBUG |
7905 } | 7909 } |
7906 } | 7910 } |
7907 | 7911 |
7908 } } // namespace v8::internal | 7912 } } // namespace v8::internal |
OLD | NEW |