Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1)

Side by Side Diff: src/compiler/bytecode-graph-builder.h

Issue 1665833002: [interpreter] Switch context during stack unwinding. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Disable tests. Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 155 matching lines...) Expand 10 before | Expand all | Expand 10 after
166 166
167 // Growth increment for the temporary buffer used to construct input lists to 167 // Growth increment for the temporary buffer used to construct input lists to
168 // new nodes. 168 // new nodes.
169 static const int kInputBufferSizeIncrement = 64; 169 static const int kInputBufferSizeIncrement = 64;
170 170
171 // An abstract representation for an exception handler that is being 171 // An abstract representation for an exception handler that is being
172 // entered and exited while the graph builder is iterating over the 172 // entered and exited while the graph builder is iterating over the
173 // underlying bytecode. The exception handlers within the bytecode are 173 // underlying bytecode. The exception handlers within the bytecode are
174 // well scoped, hence will form a stack during iteration. 174 // well scoped, hence will form a stack during iteration.
175 struct ExceptionHandler { 175 struct ExceptionHandler {
176 int start_offset_; // Start offset of the handled area in the bytecode. 176 int start_offset_; // Start offset of the handled area in the bytecode.
177 int end_offset_; // End offset of the handled area in the bytecode. 177 int end_offset_; // End offset of the handled area in the bytecode.
178 int handler_offset_; // Handler entry offset within the bytecode. 178 int handler_offset_; // Handler entry offset within the bytecode.
179 int context_register_; // Index of register holding handler context.
179 }; 180 };
180 181
181 // Field accessors 182 // Field accessors
182 Graph* graph() const { return jsgraph_->graph(); } 183 Graph* graph() const { return jsgraph_->graph(); }
183 CommonOperatorBuilder* common() const { return jsgraph_->common(); } 184 CommonOperatorBuilder* common() const { return jsgraph_->common(); }
184 Zone* graph_zone() const { return graph()->zone(); } 185 Zone* graph_zone() const { return graph()->zone(); }
185 CompilationInfo* info() const { return info_; } 186 CompilationInfo* info() const { return info_; }
186 JSGraph* jsgraph() const { return jsgraph_; } 187 JSGraph* jsgraph() const { return jsgraph_; }
187 JSOperatorBuilder* javascript() const { return jsgraph_->javascript(); } 188 JSOperatorBuilder* javascript() const { return jsgraph_->javascript(); }
188 Zone* local_zone() const { return local_zone_; } 189 Zone* local_zone() const { return local_zone_; }
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
257 ZoneVector<Node*> exit_controls_; 258 ZoneVector<Node*> exit_controls_;
258 259
259 DISALLOW_COPY_AND_ASSIGN(BytecodeGraphBuilder); 260 DISALLOW_COPY_AND_ASSIGN(BytecodeGraphBuilder);
260 }; 261 };
261 262
262 } // namespace compiler 263 } // namespace compiler
263 } // namespace internal 264 } // namespace internal
264 } // namespace v8 265 } // namespace v8
265 266
266 #endif // V8_COMPILER_BYTECODE_GRAPH_BUILDER_H_ 267 #endif // V8_COMPILER_BYTECODE_GRAPH_BUILDER_H_
OLDNEW
« no previous file with comments | « no previous file | src/compiler/bytecode-graph-builder.cc » ('j') | src/compiler/bytecode-graph-builder.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698