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