| 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 432 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 443 | 443 |
| 444 #ifdef DEBUG | 444 #ifdef DEBUG |
| 445 ASSERT(!AllowHeapAllocation::IsAllowed() && gc_state_ == NOT_IN_GC); | 445 ASSERT(!AllowHeapAllocation::IsAllowed() && gc_state_ == NOT_IN_GC); |
| 446 | 446 |
| 447 if (FLAG_gc_verbose) Print(); | 447 if (FLAG_gc_verbose) Print(); |
| 448 | 448 |
| 449 ReportStatisticsBeforeGC(); | 449 ReportStatisticsBeforeGC(); |
| 450 #endif // DEBUG | 450 #endif // DEBUG |
| 451 | 451 |
| 452 store_buffer()->GCPrologue(); | 452 store_buffer()->GCPrologue(); |
| 453 |
| 454 if (FLAG_concurrent_osr) { |
| 455 isolate()->optimizing_compiler_thread()->AgeBufferedOsrJobs(); |
| 456 } |
| 453 } | 457 } |
| 454 | 458 |
| 455 | 459 |
| 456 intptr_t Heap::SizeOfObjects() { | 460 intptr_t Heap::SizeOfObjects() { |
| 457 intptr_t total = 0; | 461 intptr_t total = 0; |
| 458 AllSpaces spaces(this); | 462 AllSpaces spaces(this); |
| 459 for (Space* space = spaces.next(); space != NULL; space = spaces.next()) { | 463 for (Space* space = spaces.next(); space != NULL; space = spaces.next()) { |
| 460 total += space->SizeOfObjects(); | 464 total += space->SizeOfObjects(); |
| 461 } | 465 } |
| 462 return total; | 466 return total; |
| (...skipping 7537 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8000 if (FLAG_concurrent_recompilation) { | 8004 if (FLAG_concurrent_recompilation) { |
| 8001 heap_->relocation_mutex_->Lock(); | 8005 heap_->relocation_mutex_->Lock(); |
| 8002 #ifdef DEBUG | 8006 #ifdef DEBUG |
| 8003 heap_->relocation_mutex_locked_by_optimizer_thread_ = | 8007 heap_->relocation_mutex_locked_by_optimizer_thread_ = |
| 8004 heap_->isolate()->optimizing_compiler_thread()->IsOptimizerThread(); | 8008 heap_->isolate()->optimizing_compiler_thread()->IsOptimizerThread(); |
| 8005 #endif // DEBUG | 8009 #endif // DEBUG |
| 8006 } | 8010 } |
| 8007 } | 8011 } |
| 8008 | 8012 |
| 8009 } } // namespace v8::internal | 8013 } } // namespace v8::internal |
| OLD | NEW |