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

Unified Diff: runtime/vm/scopes.cc

Issue 63983005: Simplify the desugaring of catch clauses. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Incorporated final review comments. Created 7 years, 1 month 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/vm/scopes.h ('k') | runtime/vm/symbols.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/scopes.cc
diff --git a/runtime/vm/scopes.cc b/runtime/vm/scopes.cc
index 77d17ddc5213d1c87da85923807fcd90ce5696a3..ba9d031c9fefbc42e03ade22daa2b154850313e2 100644
--- a/runtime/vm/scopes.cc
+++ b/runtime/vm/scopes.cc
@@ -439,21 +439,6 @@ SourceLabel* LocalScope::LookupInnermostLabel(Token::Kind jump_kind) {
}
-SourceLabel* LocalScope::LookupInnermostCatchLabel() {
- LocalScope* current_scope = this;
- while (current_scope != NULL) {
- for (intptr_t i = 0; i < current_scope->labels_.length(); i++) {
- SourceLabel* label = current_scope->labels_[i];
- if (label->kind() == SourceLabel::kCatch) {
- return label;
- }
- }
- current_scope = current_scope->parent();
- }
- return NULL;
-}
-
-
LocalScope* LocalScope::LookupSwitchScope() {
LocalScope* current_scope = this->parent();
int this_level = this->function_level();
« no previous file with comments | « runtime/vm/scopes.h ('k') | runtime/vm/symbols.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698