| 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.h" | |
| 9 #include "src/compiler/bytecode-branch-analysis.h" | 8 #include "src/compiler/bytecode-branch-analysis.h" |
| 10 #include "src/compiler/bytecode-loop-analysis.h" | 9 #include "src/compiler/bytecode-loop-analysis.h" |
| 11 #include "src/compiler/js-graph.h" | 10 #include "src/compiler/js-graph.h" |
| 12 #include "src/compiler/type-hint-analyzer.h" | 11 #include "src/compiler/type-hint-analyzer.h" |
| 13 #include "src/interpreter/bytecode-array-iterator.h" | 12 #include "src/interpreter/bytecode-array-iterator.h" |
| 14 #include "src/interpreter/bytecode-flags.h" | 13 #include "src/interpreter/bytecode-flags.h" |
| 15 #include "src/interpreter/bytecodes.h" | 14 #include "src/interpreter/bytecodes.h" |
| 16 | 15 |
| 17 namespace v8 { | 16 namespace v8 { |
| 18 namespace internal { | 17 namespace internal { |
| 18 |
| 19 class CompilationInfo; |
| 20 |
| 19 namespace compiler { | 21 namespace compiler { |
| 20 | 22 |
| 21 // The BytecodeGraphBuilder produces a high-level IR graph based on | 23 // The BytecodeGraphBuilder produces a high-level IR graph based on |
| 22 // interpreter bytecodes. | 24 // interpreter bytecodes. |
| 23 class BytecodeGraphBuilder { | 25 class BytecodeGraphBuilder { |
| 24 public: | 26 public: |
| 25 BytecodeGraphBuilder(Zone* local_zone, CompilationInfo* info, | 27 BytecodeGraphBuilder(Zone* local_zone, CompilationInfo* info, |
| 26 JSGraph* jsgraph); | 28 JSGraph* jsgraph); |
| 27 | 29 |
| 28 // Creates a graph by visiting bytecodes. | 30 // Creates a graph by visiting bytecodes. |
| (...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 263 static int const kBinaryOperationSmiHintIndex = 2; | 265 static int const kBinaryOperationSmiHintIndex = 2; |
| 264 | 266 |
| 265 DISALLOW_COPY_AND_ASSIGN(BytecodeGraphBuilder); | 267 DISALLOW_COPY_AND_ASSIGN(BytecodeGraphBuilder); |
| 266 }; | 268 }; |
| 267 | 269 |
| 268 } // namespace compiler | 270 } // namespace compiler |
| 269 } // namespace internal | 271 } // namespace internal |
| 270 } // namespace v8 | 272 } // namespace v8 |
| 271 | 273 |
| 272 #endif // V8_COMPILER_BYTECODE_GRAPH_BUILDER_H_ | 274 #endif // V8_COMPILER_BYTECODE_GRAPH_BUILDER_H_ |
| OLD | NEW |