OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |