OLD | NEW |
1 // Copyright 2015 the V8 project authors. All rights reserved. | 1 // Copyright 2015 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/bytecode-graph-builder.h" | 5 #include "src/compiler/bytecode-graph-builder.h" |
6 | 6 |
7 #include "src/ast/ast.h" | 7 #include "src/ast/ast.h" |
8 #include "src/ast/scopes.h" | 8 #include "src/ast/scopes.h" |
9 #include "src/compiler/access-builder.h" | 9 #include "src/compiler/access-builder.h" |
10 #include "src/compiler/compiler-source-position-table.h" | 10 #include "src/compiler/compiler-source-position-table.h" |
(...skipping 620 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
631 | 631 |
632 void BytecodeGraphBuilder::VisitBytecodes(bool stack_check) { | 632 void BytecodeGraphBuilder::VisitBytecodes(bool stack_check) { |
633 BytecodeAnalysis bytecode_analysis(bytecode_array(), local_zone(), | 633 BytecodeAnalysis bytecode_analysis(bytecode_array(), local_zone(), |
634 FLAG_analyze_environment_liveness); | 634 FLAG_analyze_environment_liveness); |
635 bytecode_analysis.Analyze(osr_ast_id_); | 635 bytecode_analysis.Analyze(osr_ast_id_); |
636 set_bytecode_analysis(&bytecode_analysis); | 636 set_bytecode_analysis(&bytecode_analysis); |
637 | 637 |
638 interpreter::BytecodeArrayIterator iterator(bytecode_array()); | 638 interpreter::BytecodeArrayIterator iterator(bytecode_array()); |
639 set_bytecode_iterator(&iterator); | 639 set_bytecode_iterator(&iterator); |
640 SourcePositionTableIterator source_position_iterator( | 640 SourcePositionTableIterator source_position_iterator( |
641 bytecode_array()->source_position_table()); | 641 bytecode_array()->SourcePositionTable()); |
642 | 642 |
643 if (FLAG_trace_environment_liveness) { | 643 if (FLAG_trace_environment_liveness) { |
644 OFStream of(stdout); | 644 OFStream of(stdout); |
645 | 645 |
646 bytecode_analysis.PrintLivenessTo(of); | 646 bytecode_analysis.PrintLivenessTo(of); |
647 } | 647 } |
648 | 648 |
649 BuildOSRNormalEntryPoint(); | 649 BuildOSRNormalEntryPoint(); |
650 | 650 |
651 for (; !iterator.done(); iterator.Advance()) { | 651 for (; !iterator.done(); iterator.Advance()) { |
(...skipping 2180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2832 it->source_position().ScriptOffset(), start_position_.InliningId())); | 2832 it->source_position().ScriptOffset(), start_position_.InliningId())); |
2833 it->Advance(); | 2833 it->Advance(); |
2834 } else { | 2834 } else { |
2835 DCHECK_GT(it->code_offset(), offset); | 2835 DCHECK_GT(it->code_offset(), offset); |
2836 } | 2836 } |
2837 } | 2837 } |
2838 | 2838 |
2839 } // namespace compiler | 2839 } // namespace compiler |
2840 } // namespace internal | 2840 } // namespace internal |
2841 } // namespace v8 | 2841 } // namespace v8 |
OLD | NEW |