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

Unified Diff: runtime/vm/parser.cc

Issue 180313003: Fix VM crash when parsing what looks like a closure call during metadata evaluation. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: improve test Created 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | tests/lib/mirrors/metadata_nested_constructor_call_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/parser.cc
diff --git a/runtime/vm/parser.cc b/runtime/vm/parser.cc
index 907e0ac05f6a1304a8d5e6ea3feb9cad127d871d..900f63d304ef55bdac04fd6d54f30dc2cbebfe8c 100644
--- a/runtime/vm/parser.cc
+++ b/runtime/vm/parser.cc
@@ -7663,6 +7663,9 @@ void Parser::EnsureExpressionTemp() {
void Parser::EnsureSavedCurrentContext() {
// Used later by the flow_graph_builder to save current context.
+ if (parsing_metadata_) {
+ return;
hausner 2014/02/27 18:53:22 Can you please explain in a comment why it is nece
rmacnak 2014/02/27 19:11:27 Hm, actually this is dubious because it relies on
+ }
if (!parsed_function()->has_saved_current_context_var()) {
LocalVariable* temp =
new LocalVariable(current_function().token_pos(),
« no previous file with comments | « no previous file | tests/lib/mirrors/metadata_nested_constructor_call_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698