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

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

Issue 2509623002: [turbofan] Sparse representation for state values (Closed)
Patch Set: Remove the optimized_out input entirely, return nullptr when iterating Created 4 years, 1 month 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/bytecode-graph-builder.cc » ('j') | src/compiler/common-operator.cc » ('J')
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/compile-time-value.h" 7 #include "src/ast/compile-time-value.h"
8 #include "src/ast/scopes.h" 8 #include "src/ast/scopes.h"
9 #include "src/compilation-info.h" 9 #include "src/compilation-info.h"
10 #include "src/compiler.h" 10 #include "src/compiler.h"
(...skipping 817 matching lines...) Expand 10 before | Expand all | Expand 10 after
828 } else { 828 } else {
829 DCHECK(static_cast<size_t>(offset + count) <= values()->size()); 829 DCHECK(static_cast<size_t>(offset + count) <= values()->size());
830 for (int i = 0; i < count; i++) { 830 for (int i = 0; i < count; i++) {
831 if ((*state_values)->InputAt(i) != env_values[i]) { 831 if ((*state_values)->InputAt(i) != env_values[i]) {
832 should_update = true; 832 should_update = true;
833 break; 833 break;
834 } 834 }
835 } 835 }
836 } 836 }
837 if (should_update) { 837 if (should_update) {
838 const Operator* op = common()->StateValues(count); 838 const Operator* op = common()->StateValues(count, 0u);
839 (*state_values) = graph()->NewNode(op, count, env_values); 839 (*state_values) = graph()->NewNode(op, count, env_values);
840 } 840 }
841 } 841 }
842 842
843 843
844 Node* AstGraphBuilder::Environment::Checkpoint(BailoutId ast_id, 844 Node* AstGraphBuilder::Environment::Checkpoint(BailoutId ast_id,
845 OutputFrameStateCombine combine, 845 OutputFrameStateCombine combine,
846 bool owner_has_exception) { 846 bool owner_has_exception) {
847 if (!builder()->info()->is_deoptimization_enabled()) { 847 if (!builder()->info()->is_deoptimization_enabled()) {
848 return builder()->GetEmptyFrameState(); 848 return builder()->GetEmptyFrameState();
(...skipping 3517 matching lines...) Expand 10 before | Expand all | Expand 10 after
4366 TypeHintAnalysis* type_hint_analysis, SourcePositionTable* source_positions, 4366 TypeHintAnalysis* type_hint_analysis, SourcePositionTable* source_positions,
4367 int inlining_id) 4367 int inlining_id)
4368 : AstGraphBuilder(local_zone, info, jsgraph, invocation_frequency, 4368 : AstGraphBuilder(local_zone, info, jsgraph, invocation_frequency,
4369 loop_assignment, type_hint_analysis), 4369 loop_assignment, type_hint_analysis),
4370 source_positions_(source_positions), 4370 source_positions_(source_positions),
4371 start_position_(info->shared_info()->start_position(), inlining_id) {} 4371 start_position_(info->shared_info()->start_position(), inlining_id) {}
4372 4372
4373 } // namespace compiler 4373 } // namespace compiler
4374 } // namespace internal 4374 } // namespace internal
4375 } // namespace v8 4375 } // namespace v8
OLDNEW
« no previous file with comments | « no previous file | src/compiler/bytecode-graph-builder.cc » ('j') | src/compiler/common-operator.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698