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

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

Issue 1416543006: [turbofan] Unwind and jump to the catch handler in the deoptimizer. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebase, review comments 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
« 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/ast.h" 8 #include "src/ast/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 500 matching lines...) Expand 10 before | Expand all | Expand 10 after
511 } 511 }
512 void TrimStack(int trim_to_height) { 512 void TrimStack(int trim_to_height) {
513 int depth = stack_height() - trim_to_height; 513 int depth = stack_height() - trim_to_height;
514 DCHECK(depth >= 0 && depth <= stack_height()); 514 DCHECK(depth >= 0 && depth <= stack_height());
515 values()->erase(values()->end() - depth, values()->end()); 515 values()->erase(values()->end() - depth, values()->end());
516 } 516 }
517 517
518 // Preserve a checkpoint of the environment for the IR graph. Any 518 // Preserve a checkpoint of the environment for the IR graph. Any
519 // further mutation of the environment will not affect checkpoints. 519 // further mutation of the environment will not affect checkpoints.
520 Node* Checkpoint(BailoutId ast_id, OutputFrameStateCombine combine = 520 Node* Checkpoint(BailoutId ast_id, OutputFrameStateCombine combine =
521 OutputFrameStateCombine::Ignore()); 521 OutputFrameStateCombine::Ignore(),
522 bool node_has_exception = false);
522 523
523 // Control dependency tracked by this environment. 524 // Control dependency tracked by this environment.
524 Node* GetControlDependency() { return control_dependency_; } 525 Node* GetControlDependency() { return control_dependency_; }
525 void UpdateControlDependency(Node* dependency) { 526 void UpdateControlDependency(Node* dependency) {
526 control_dependency_ = dependency; 527 control_dependency_ = dependency;
527 } 528 }
528 529
529 // Effect dependency tracked by this environment. 530 // Effect dependency tracked by this environment.
530 Node* GetEffectDependency() { return effect_dependency_; } 531 Node* GetEffectDependency() { return effect_dependency_; }
531 void UpdateEffectDependency(Node* dependency) { 532 void UpdateEffectDependency(Node* dependency) {
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
583 584
584 // Prepare environment to be used as loop header. 585 // Prepare environment to be used as loop header.
585 void PrepareForLoop(BitVector* assigned, bool is_osr = false); 586 void PrepareForLoop(BitVector* assigned, bool is_osr = false);
586 }; 587 };
587 588
588 } // namespace compiler 589 } // namespace compiler
589 } // namespace internal 590 } // namespace internal
590 } // namespace v8 591 } // namespace v8
591 592
592 #endif // V8_COMPILER_AST_GRAPH_BUILDER_H_ 593 #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