| OLD | NEW |
| 1 // Copyright 2016 the V8 project authors. All rights reserved. | 1 // Copyright 2016 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_ANALYSIS_H_ | 5 #ifndef V8_COMPILER_BYTECODE_ANALYSIS_H_ |
| 6 #define V8_COMPILER_BYTECODE_ANALYSIS_H_ | 6 #define V8_COMPILER_BYTECODE_ANALYSIS_H_ |
| 7 | 7 |
| 8 #include "src/base/hashmap.h" | 8 #include "src/base/hashmap.h" |
| 9 #include "src/bit-vector.h" | 9 #include "src/bit-vector.h" |
| 10 #include "src/compiler/bytecode-liveness-map.h" | 10 #include "src/compiler/bytecode-liveness-map.h" |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 59 | 59 |
| 60 Zone* zone() const { return zone_; } | 60 Zone* zone() const { return zone_; } |
| 61 Handle<BytecodeArray> bytecode_array() const { return bytecode_array_; } | 61 Handle<BytecodeArray> bytecode_array() const { return bytecode_array_; } |
| 62 | 62 |
| 63 private: | 63 private: |
| 64 Handle<BytecodeArray> bytecode_array_; | 64 Handle<BytecodeArray> bytecode_array_; |
| 65 bool do_liveness_analysis_; | 65 bool do_liveness_analysis_; |
| 66 Zone* zone_; | 66 Zone* zone_; |
| 67 | 67 |
| 68 ZoneStack<int> loop_stack_; | 68 ZoneStack<int> loop_stack_; |
| 69 ZoneVector<int> loop_end_index_queue_; |
| 69 | 70 |
| 70 ZoneMap<int, int> end_to_header_; | 71 ZoneMap<int, int> end_to_header_; |
| 71 ZoneMap<int, int> header_to_parent_; | 72 ZoneMap<int, int> header_to_parent_; |
| 72 | 73 |
| 73 BytecodeLivenessMap liveness_map_; | 74 BytecodeLivenessMap liveness_map_; |
| 74 | 75 |
| 75 DISALLOW_COPY_AND_ASSIGN(BytecodeAnalysis); | 76 DISALLOW_COPY_AND_ASSIGN(BytecodeAnalysis); |
| 76 }; | 77 }; |
| 77 | 78 |
| 78 } // namespace compiler | 79 } // namespace compiler |
| 79 } // namespace internal | 80 } // namespace internal |
| 80 } // namespace v8 | 81 } // namespace v8 |
| 81 | 82 |
| 82 #endif // V8_COMPILER_BYTECODE_ANALYSIS_H_ | 83 #endif // V8_COMPILER_BYTECODE_ANALYSIS_H_ |
| OLD | NEW |