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

Side by Side Diff: src/crankshaft/hydrogen.cc

Issue 2872263002: [heap] Synchronize young generation GC with concurrent marking. (Closed)
Patch Set: add guard in Heap::EvacuateYoungGeneration Created 3 years, 7 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
« no previous file with comments | « no previous file | src/crankshaft/hydrogen-environment-liveness.cc » ('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 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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/crankshaft/hydrogen.h" 5 #include "src/crankshaft/hydrogen.h"
6 6
7 #include <memory> 7 #include <memory>
8 #include <sstream> 8 #include <sstream>
9 9
10 #include "src/allocation-site-scopes.h" 10 #include "src/allocation-site-scopes.h"
(...skipping 720 matching lines...) Expand 10 before | Expand all | Expand 10 after
731 } 731 }
732 732
733 int visited_count_; 733 int visited_count_;
734 ZoneList<HBasicBlock*> stack_; 734 ZoneList<HBasicBlock*> stack_;
735 BitVector reachable_; 735 BitVector reachable_;
736 HBasicBlock* dont_visit_; 736 HBasicBlock* dont_visit_;
737 }; 737 };
738 738
739 739
740 void HGraph::Verify(bool do_full_verify) const { 740 void HGraph::Verify(bool do_full_verify) const {
741 Heap::RelocationLock relocation_lock(isolate()->heap()); 741 base::LockGuard<base::Mutex> guard(isolate()->heap()->relocation_mutex());
742 AllowHandleDereference allow_deref; 742 AllowHandleDereference allow_deref;
743 AllowDeferredHandleDereference allow_deferred_deref; 743 AllowDeferredHandleDereference allow_deferred_deref;
744 for (int i = 0; i < blocks_.length(); i++) { 744 for (int i = 0; i < blocks_.length(); i++) {
745 HBasicBlock* block = blocks_.at(i); 745 HBasicBlock* block = blocks_.at(i);
746 746
747 block->Verify(); 747 block->Verify();
748 748
749 // Check that every block contains at least one node and that only the last 749 // Check that every block contains at least one node and that only the last
750 // node is a control instruction. 750 // node is a control instruction.
751 HInstruction* current = block->first(); 751 HInstruction* current = block->first();
(...skipping 11771 matching lines...) Expand 10 before | Expand all | Expand 10 after
12523 isolate()->GetHTracer()->TraceHydrogen(name(), graph_); 12523 isolate()->GetHTracer()->TraceHydrogen(name(), graph_);
12524 } 12524 }
12525 12525
12526 #ifdef DEBUG 12526 #ifdef DEBUG
12527 graph_->Verify(false); // No full verify. 12527 graph_->Verify(false); // No full verify.
12528 #endif 12528 #endif
12529 } 12529 }
12530 12530
12531 } // namespace internal 12531 } // namespace internal
12532 } // namespace v8 12532 } // namespace v8
OLDNEW
« no previous file with comments | « no previous file | src/crankshaft/hydrogen-environment-liveness.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698