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

Side by Side Diff: src/compiler/ast-graph-builder.cc

Issue 1810483002: Introduce "optimized_out" oddball marker for compilers. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix debugger. Created 4 years, 9 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/compiler/js-graph.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 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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/compiler/ast-graph-builder.h" 5 #include "src/compiler/ast-graph-builder.h"
6 6
7 #include "src/ast/scopes.h" 7 #include "src/ast/scopes.h"
8 #include "src/compiler.h" 8 #include "src/compiler.h"
9 #include "src/compiler/ast-loop-assignment-analyzer.h" 9 #include "src/compiler/ast-loop-assignment-analyzer.h"
10 #include "src/compiler/control-builders.h" 10 #include "src/compiler/control-builders.h"
(...skipping 628 matching lines...) Expand 10 before | Expand all | Expand 10 after
639 } 639 }
640 640
641 641
642 void AstGraphBuilder::ClearNonLiveSlotsInFrameStates() { 642 void AstGraphBuilder::ClearNonLiveSlotsInFrameStates() {
643 if (!FLAG_analyze_environment_liveness || 643 if (!FLAG_analyze_environment_liveness ||
644 !info()->is_deoptimization_enabled()) { 644 !info()->is_deoptimization_enabled()) {
645 return; 645 return;
646 } 646 }
647 647
648 NonLiveFrameStateSlotReplacer replacer( 648 NonLiveFrameStateSlotReplacer replacer(
649 &state_values_cache_, jsgraph()->UndefinedConstant(), 649 &state_values_cache_, jsgraph()->OptimizedOutConstant(),
650 liveness_analyzer()->local_count(), local_zone()); 650 liveness_analyzer()->local_count(), local_zone());
651 Variable* arguments = info()->scope()->arguments(); 651 Variable* arguments = info()->scope()->arguments();
652 if (arguments != nullptr && arguments->IsStackAllocated()) { 652 if (arguments != nullptr && arguments->IsStackAllocated()) {
653 replacer.MarkPermanentlyLive(arguments->index()); 653 replacer.MarkPermanentlyLive(arguments->index());
654 } 654 }
655 liveness_analyzer()->Run(&replacer); 655 liveness_analyzer()->Run(&replacer);
656 if (FLAG_trace_environment_liveness) { 656 if (FLAG_trace_environment_liveness) {
657 OFStream os(stdout); 657 OFStream os(stdout);
658 liveness_analyzer()->Print(os); 658 liveness_analyzer()->Print(os);
659 } 659 }
(...skipping 3712 matching lines...) Expand 10 before | Expand all | Expand 10 after
4372 // Phi does not exist yet, introduce one. 4372 // Phi does not exist yet, introduce one.
4373 value = NewPhi(inputs, value, control); 4373 value = NewPhi(inputs, value, control);
4374 value->ReplaceInput(inputs - 1, other); 4374 value->ReplaceInput(inputs - 1, other);
4375 } 4375 }
4376 return value; 4376 return value;
4377 } 4377 }
4378 4378
4379 } // namespace compiler 4379 } // namespace compiler
4380 } // namespace internal 4380 } // namespace internal
4381 } // namespace v8 4381 } // namespace v8
OLDNEW
« no previous file with comments | « no previous file | src/compiler/js-graph.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698