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

Side by Side Diff: src/lithium.cc

Issue 1099473004: Reland "Refactor compilation dependency handling." (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/hydrogen.cc ('k') | src/objects.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 // 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/lithium.h" 5 #include "src/lithium.h"
6 6
7 #include "src/v8.h" 7 #include "src/v8.h"
8 8
9 #include "src/scopes.h" 9 #include "src/scopes.h"
10 10
(...skipping 466 matching lines...) Expand 10 before | Expand all | Expand 10 after
477 } 477 }
478 478
479 for (MapSet::const_iterator it = stability_dependencies_.begin(), 479 for (MapSet::const_iterator it = stability_dependencies_.begin(),
480 iend = stability_dependencies_.end(); it != iend; ++it) { 480 iend = stability_dependencies_.end(); it != iend; ++it) {
481 Handle<Map> map = *it; 481 Handle<Map> map = *it;
482 DCHECK(map->is_stable()); 482 DCHECK(map->is_stable());
483 DCHECK(map->CanTransition()); 483 DCHECK(map->CanTransition());
484 Map::AddDependentCode(map, DependentCode::kPrototypeCheckGroup, code); 484 Map::AddDependentCode(map, DependentCode::kPrototypeCheckGroup, code);
485 } 485 }
486 486
487 info_->CommitDependencies(code); 487 info_->dependencies()->Commit(code);
488 RegisterWeakObjectsInOptimizedCode(code); 488 RegisterWeakObjectsInOptimizedCode(code);
489 } 489 }
490 490
491 491
492 LChunk* LChunk::NewChunk(HGraph* graph) { 492 LChunk* LChunk::NewChunk(HGraph* graph) {
493 DisallowHandleAllocation no_handles; 493 DisallowHandleAllocation no_handles;
494 DisallowHeapAllocation no_gc; 494 DisallowHeapAllocation no_gc;
495 graph->DisallowAddingNewValues(); 495 graph->DisallowAddingNewValues();
496 int values = graph->GetMaximumValueID(); 496 int values = graph->GetMaximumValueID();
497 CompilationInfo* info = graph->info(); 497 CompilationInfo* info = graph->info();
(...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after
720 720
721 721
722 LPhase::~LPhase() { 722 LPhase::~LPhase() {
723 if (ShouldProduceTraceOutput()) { 723 if (ShouldProduceTraceOutput()) {
724 isolate()->GetHTracer()->TraceLithium(name(), chunk_); 724 isolate()->GetHTracer()->TraceLithium(name(), chunk_);
725 } 725 }
726 } 726 }
727 727
728 728
729 } } // namespace v8::internal 729 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/hydrogen.cc ('k') | src/objects.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698