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

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

Issue 1049203002: [turbofan] Make throwing expressions kill the environment. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebased. Created 5 years, 8 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
« no previous file with comments | « no previous file | src/compiler/ast-graph-builder.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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_AST_GRAPH_BUILDER_H_ 5 #ifndef V8_COMPILER_AST_GRAPH_BUILDER_H_
6 #define V8_COMPILER_AST_GRAPH_BUILDER_H_ 6 #define V8_COMPILER_AST_GRAPH_BUILDER_H_
7 7
8 #include "src/ast.h" 8 #include "src/ast.h"
9 #include "src/compiler/js-graph.h" 9 #include "src/compiler/js-graph.h"
10 #include "src/compiler/liveness-analyzer.h" 10 #include "src/compiler/liveness-analyzer.h"
(...skipping 282 matching lines...) Expand 10 before | Expand all | Expand 10 after
293 Node* BuildToName(Node* value, BailoutId bailout_id); 293 Node* BuildToName(Node* value, BailoutId bailout_id);
294 294
295 // Builder for adding the [[HomeObject]] to a value if the value came from a 295 // Builder for adding the [[HomeObject]] to a value if the value came from a
296 // function literal and needs a home object. Do nothing otherwise. 296 // function literal and needs a home object. Do nothing otherwise.
297 Node* BuildSetHomeObject(Node* value, Node* home_object, Expression* expr); 297 Node* BuildSetHomeObject(Node* value, Node* home_object, Expression* expr);
298 298
299 // Builders for error reporting at runtime. 299 // Builders for error reporting at runtime.
300 Node* BuildThrowError(Node* exception, BailoutId bailout_id); 300 Node* BuildThrowError(Node* exception, BailoutId bailout_id);
301 Node* BuildThrowReferenceError(Variable* var, BailoutId bailout_id); 301 Node* BuildThrowReferenceError(Variable* var, BailoutId bailout_id);
302 Node* BuildThrowConstAssignError(BailoutId bailout_id); 302 Node* BuildThrowConstAssignError(BailoutId bailout_id);
303 Node* BuildThrowStaticPrototypeError(BailoutId bailout_id);
303 304
304 // Builders for dynamic hole-checks at runtime. 305 // Builders for dynamic hole-checks at runtime.
305 Node* BuildHoleCheckSilent(Node* value, Node* for_hole, Node* not_hole); 306 Node* BuildHoleCheckSilent(Node* value, Node* for_hole, Node* not_hole);
306 Node* BuildHoleCheckThrow(Node* value, Variable* var, Node* not_hole, 307 Node* BuildHoleCheckThrow(Node* value, Variable* var, Node* not_hole,
307 BailoutId bailout_id); 308 BailoutId bailout_id);
308 309
309 // Builders for conditional errors. 310 // Builders for conditional errors.
310 Node* BuildThrowIfStaticPrototype(Node* name, BailoutId bailout_id); 311 Node* BuildThrowIfStaticPrototype(Node* name, BailoutId bailout_id);
311 312
312 // Builders for non-local control flow. 313 // Builders for non-local control flow.
(...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after
507 508
508 // Prepare environment to be used as loop header. 509 // Prepare environment to be used as loop header.
509 void PrepareForLoop(BitVector* assigned, bool is_osr = false); 510 void PrepareForLoop(BitVector* assigned, bool is_osr = false);
510 }; 511 };
511 512
512 } // namespace compiler 513 } // namespace compiler
513 } // namespace internal 514 } // namespace internal
514 } // namespace v8 515 } // namespace v8
515 516
516 #endif // V8_COMPILER_AST_GRAPH_BUILDER_H_ 517 #endif // V8_COMPILER_AST_GRAPH_BUILDER_H_
OLDNEW
« no previous file with comments | « no previous file | src/compiler/ast-graph-builder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698