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

Side by Side Diff: src/hydrogen.cc

Issue 1082183003: Revert of Reland "Remove support for thread-based recompilation" (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 8 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 | « src/heap/heap.cc ('k') | src/isolate.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 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/hydrogen.h" 5 #include "src/hydrogen.h"
6 6
7 #include <sstream> 7 #include <sstream>
8 8
9 #include "src/v8.h" 9 #include "src/v8.h"
10 10
(...skipping 3455 matching lines...) Expand 10 before | Expand all | Expand 10 after
3466 3466
3467 HBasicBlock* HGraph::CreateBasicBlock() { 3467 HBasicBlock* HGraph::CreateBasicBlock() {
3468 HBasicBlock* result = new(zone()) HBasicBlock(this); 3468 HBasicBlock* result = new(zone()) HBasicBlock(this);
3469 blocks_.Add(result, zone()); 3469 blocks_.Add(result, zone());
3470 return result; 3470 return result;
3471 } 3471 }
3472 3472
3473 3473
3474 void HGraph::FinalizeUniqueness() { 3474 void HGraph::FinalizeUniqueness() {
3475 DisallowHeapAllocation no_gc; 3475 DisallowHeapAllocation no_gc;
3476 DCHECK(!OptimizingCompilerThread::IsOptimizerThread(isolate()));
3476 for (int i = 0; i < blocks()->length(); ++i) { 3477 for (int i = 0; i < blocks()->length(); ++i) {
3477 for (HInstructionIterator it(blocks()->at(i)); !it.Done(); it.Advance()) { 3478 for (HInstructionIterator it(blocks()->at(i)); !it.Done(); it.Advance()) {
3478 it.Current()->FinalizeUniqueness(); 3479 it.Current()->FinalizeUniqueness();
3479 } 3480 }
3480 } 3481 }
3481 } 3482 }
3482 3483
3483 3484
3484 int HGraph::SourcePositionToScriptPosition(SourcePosition pos) { 3485 int HGraph::SourcePositionToScriptPosition(SourcePosition pos) {
3485 return (FLAG_hydrogen_track_positions && !pos.IsUnknown()) 3486 return (FLAG_hydrogen_track_positions && !pos.IsUnknown())
(...skipping 9466 matching lines...) Expand 10 before | Expand all | Expand 10 after
12952 if (ShouldProduceTraceOutput()) { 12953 if (ShouldProduceTraceOutput()) {
12953 isolate()->GetHTracer()->TraceHydrogen(name(), graph_); 12954 isolate()->GetHTracer()->TraceHydrogen(name(), graph_);
12954 } 12955 }
12955 12956
12956 #ifdef DEBUG 12957 #ifdef DEBUG
12957 graph_->Verify(false); // No full verify. 12958 graph_->Verify(false); // No full verify.
12958 #endif 12959 #endif
12959 } 12960 }
12960 12961
12961 } } // namespace v8::internal 12962 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/heap/heap.cc ('k') | src/isolate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698