Chromium Code Reviews

Unified Diff: src/compiler/liveness-analyzer.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: Remove the hack signpost Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Index: src/compiler/liveness-analyzer.h
diff --git a/src/compiler/liveness-analyzer.h b/src/compiler/liveness-analyzer.h
index 1e2f85b45e5f2fc7e646893baa52e7d7b166c28a..9b09724eefab02086bec129724008ca72968b531 100644
--- a/src/compiler/liveness-analyzer.h
+++ b/src/compiler/liveness-analyzer.h
@@ -85,6 +85,10 @@ class LivenessAnalyzerBlock {
void Bind(int var) { entries_.push_back(Entry(Entry::kBind, var)); }
void Checkpoint(Node* node) { entries_.push_back(Entry(node)); }
void AddPredecessor(LivenessAnalyzerBlock* b) { predecessors_.push_back(b); }
+ LivenessAnalyzerBlock* GetPredecessor() {
+ DCHECK(predecessors_.size() == 1);
+ return predecessors_[0];
+ }
private:
class Entry {

Powered by Google App Engine