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

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: 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') | src/optimizing-compiler-thread.h » ('J')
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 430 matching lines...) Expand 10 before | Expand all | Expand 10 after
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()->DrainOsrBuffer();
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 7413 matching lines...) Expand 10 before | Expand all | Expand 10 after
7874 if (FLAG_concurrent_recompilation) { 7878 if (FLAG_concurrent_recompilation) {
7875 heap_->relocation_mutex_->Lock(); 7879 heap_->relocation_mutex_->Lock();
7876 #ifdef DEBUG 7880 #ifdef DEBUG
7877 heap_->relocation_mutex_locked_by_optimizer_thread_ = 7881 heap_->relocation_mutex_locked_by_optimizer_thread_ =
7878 heap_->isolate()->optimizing_compiler_thread()->IsOptimizerThread(); 7882 heap_->isolate()->optimizing_compiler_thread()->IsOptimizerThread();
7879 #endif // DEBUG 7883 #endif // DEBUG
7880 } 7884 }
7881 } 7885 }
7882 7886
7883 } } // namespace v8::internal 7887 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | src/optimizing-compiler-thread.h » ('j') | src/optimizing-compiler-thread.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698