Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(149)

Side by Side Diff: src/heap.cc

Issue 25505002: Improve queuing for concurrent OSR. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: added inline attribute as suggested Created 7 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | src/optimizing-compiler-thread.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « no previous file | src/optimizing-compiler-thread.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698