| 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" | 8 #include "src/compiler.h" | 
| 9 #include "src/compiler/bytecode-branch-analysis.h" | 9 #include "src/compiler/bytecode-branch-analysis.h" | 
| 10 #include "src/compiler/js-graph.h" | 10 #include "src/compiler/js-graph.h" | 
| (...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 162 | 162 | 
| 163   // Growth increment for the temporary buffer used to construct input lists to | 163   // Growth increment for the temporary buffer used to construct input lists to | 
| 164   // new nodes. | 164   // new nodes. | 
| 165   static const int kInputBufferSizeIncrement = 64; | 165   static const int kInputBufferSizeIncrement = 64; | 
| 166 | 166 | 
| 167   // An abstract representation for an exception handler that is being | 167   // An abstract representation for an exception handler that is being | 
| 168   // entered and exited while the graph builder is iterating over the | 168   // entered and exited while the graph builder is iterating over the | 
| 169   // underlying bytecode. The exception handlers within the bytecode are | 169   // underlying bytecode. The exception handlers within the bytecode are | 
| 170   // well scoped, hence will form a stack during iteration. | 170   // well scoped, hence will form a stack during iteration. | 
| 171   struct ExceptionHandler { | 171   struct ExceptionHandler { | 
| 172     int start_offset_;    // Start offset of the handled area in the bytecode. | 172     int start_offset_;      // Start offset of the handled area in the bytecode. | 
| 173     int end_offset_;      // End offset of the handled area in the bytecode. | 173     int end_offset_;        // End offset of the handled area in the bytecode. | 
| 174     int handler_offset_;  // Handler entry offset within the bytecode. | 174     int handler_offset_;    // Handler entry offset within the bytecode. | 
|  | 175     int context_register_;  // Index of register holding handler context. | 
| 175   }; | 176   }; | 
| 176 | 177 | 
| 177   // Field accessors | 178   // Field accessors | 
| 178   Graph* graph() const { return jsgraph_->graph(); } | 179   Graph* graph() const { return jsgraph_->graph(); } | 
| 179   CommonOperatorBuilder* common() const { return jsgraph_->common(); } | 180   CommonOperatorBuilder* common() const { return jsgraph_->common(); } | 
| 180   Zone* graph_zone() const { return graph()->zone(); } | 181   Zone* graph_zone() const { return graph()->zone(); } | 
| 181   CompilationInfo* info() const { return info_; } | 182   CompilationInfo* info() const { return info_; } | 
| 182   JSGraph* jsgraph() const { return jsgraph_; } | 183   JSGraph* jsgraph() const { return jsgraph_; } | 
| 183   JSOperatorBuilder* javascript() const { return jsgraph_->javascript(); } | 184   JSOperatorBuilder* javascript() const { return jsgraph_->javascript(); } | 
| 184   Zone* local_zone() const { return local_zone_; } | 185   Zone* local_zone() const { return local_zone_; } | 
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 253   ZoneVector<Node*> exit_controls_; | 254   ZoneVector<Node*> exit_controls_; | 
| 254 | 255 | 
| 255   DISALLOW_COPY_AND_ASSIGN(BytecodeGraphBuilder); | 256   DISALLOW_COPY_AND_ASSIGN(BytecodeGraphBuilder); | 
| 256 }; | 257 }; | 
| 257 | 258 | 
| 258 }  // namespace compiler | 259 }  // namespace compiler | 
| 259 }  // namespace internal | 260 }  // namespace internal | 
| 260 }  // namespace v8 | 261 }  // namespace v8 | 
| 261 | 262 | 
| 262 #endif  // V8_COMPILER_BYTECODE_GRAPH_BUILDER_H_ | 263 #endif  // V8_COMPILER_BYTECODE_GRAPH_BUILDER_H_ | 
| OLD | NEW | 
|---|