| 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 #ifndef V8_COMPILER_BYTECODE_GRAPH_BUILDER_H_ | 5 #ifndef V8_COMPILER_BYTECODE_GRAPH_BUILDER_H_ |
| 6 #define V8_COMPILER_BYTECODE_GRAPH_BUILDER_H_ | 6 #define V8_COMPILER_BYTECODE_GRAPH_BUILDER_H_ |
| 7 | 7 |
| 8 #include "src/compiler/bytecode-branch-analysis.h" | 8 #include "src/compiler/bytecode-branch-analysis.h" |
| 9 #include "src/compiler/bytecode-loop-analysis.h" | 9 #include "src/compiler/bytecode-loop-analysis.h" |
| 10 #include "src/compiler/js-graph.h" | 10 #include "src/compiler/js-graph.h" |
| 11 #include "src/compiler/liveness-analyzer.h" | 11 #include "src/compiler/liveness-analyzer.h" |
| 12 #include "src/compiler/source-position.h" | |
| 13 #include "src/compiler/state-values-utils.h" | 12 #include "src/compiler/state-values-utils.h" |
| 14 #include "src/compiler/type-hint-analyzer.h" | 13 #include "src/compiler/type-hint-analyzer.h" |
| 15 #include "src/interpreter/bytecode-array-iterator.h" | 14 #include "src/interpreter/bytecode-array-iterator.h" |
| 16 #include "src/interpreter/bytecode-flags.h" | 15 #include "src/interpreter/bytecode-flags.h" |
| 17 #include "src/interpreter/bytecodes.h" | 16 #include "src/interpreter/bytecodes.h" |
| 18 #include "src/source-position-table.h" | 17 #include "src/source-position-table.h" |
| 19 | 18 |
| 20 namespace v8 { | 19 namespace v8 { |
| 21 namespace internal { | 20 namespace internal { |
| 22 | 21 |
| 22 // Forward declarations. |
| 23 class CompilationInfo; | 23 class CompilationInfo; |
| 24 | 24 |
| 25 namespace compiler { | 25 namespace compiler { |
| 26 | 26 |
| 27 // Forward declarations. |
| 28 class SourcePositionTable; |
| 29 |
| 27 // The BytecodeGraphBuilder produces a high-level IR graph based on | 30 // The BytecodeGraphBuilder produces a high-level IR graph based on |
| 28 // interpreter bytecodes. | 31 // interpreter bytecodes. |
| 29 class BytecodeGraphBuilder { | 32 class BytecodeGraphBuilder { |
| 30 public: | 33 public: |
| 31 BytecodeGraphBuilder(Zone* local_zone, CompilationInfo* info, | 34 BytecodeGraphBuilder(Zone* local_zone, CompilationInfo* info, |
| 32 JSGraph* jsgraph, float invocation_frequency, | 35 JSGraph* jsgraph, float invocation_frequency, |
| 33 SourcePositionTable* source_positions); | 36 SourcePositionTable* source_positions); |
| 34 | 37 |
| 35 // Creates a graph by visiting bytecodes. | 38 // Creates a graph by visiting bytecodes. |
| 36 bool CreateGraph(); | 39 bool CreateGraph(); |
| (...skipping 287 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 324 static int const kBinaryOperationSmiHintIndex = 2; | 327 static int const kBinaryOperationSmiHintIndex = 2; |
| 325 | 328 |
| 326 DISALLOW_COPY_AND_ASSIGN(BytecodeGraphBuilder); | 329 DISALLOW_COPY_AND_ASSIGN(BytecodeGraphBuilder); |
| 327 }; | 330 }; |
| 328 | 331 |
| 329 } // namespace compiler | 332 } // namespace compiler |
| 330 } // namespace internal | 333 } // namespace internal |
| 331 } // namespace v8 | 334 } // namespace v8 |
| 332 | 335 |
| 333 #endif // V8_COMPILER_BYTECODE_GRAPH_BUILDER_H_ | 336 #endif // V8_COMPILER_BYTECODE_GRAPH_BUILDER_H_ |
| OLD | NEW |