Chromium Code Reviews| Index: runtime/vm/parser.cc |
| =================================================================== |
| --- runtime/vm/parser.cc (revision 15096) |
| +++ runtime/vm/parser.cc (working copy) |
| @@ -5035,10 +5035,11 @@ |
| // class in the current library (but not in its imports) and only create a new |
| // canonical signature class if it does not exist yet. |
| const String& signature = String::Handle(function.Signature()); |
| - Class& signature_class = Class::ZoneHandle( |
| - library_.LookupLocalClass(signature)); |
| - |
| + Class& signature_class = Class::ZoneHandle(function.signature_class()); |
| if (signature_class.IsNull()) { |
|
regis
2012/11/19 19:20:32
ASSERT(is_new_closure);
or you could set the signa
hausner
2012/11/19 21:35:04
Done.
|
| + signature_class = library_.LookupLocalClass(signature); |
| + } |
| + if (signature_class.IsNull()) { |
| // If we don't have a signature class yet, this must be a closure we |
| // have not parsed before. |
| ASSERT(is_new_closure); |