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

Unified Diff: sdk/lib/_internal/compiler/implementation/ssa/builder.dart

Issue 14178008: Fix crash reported in http://code.google.com/p/dart/issues/detail?id=9949. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 8 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/language/issue9949_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/_internal/compiler/implementation/ssa/builder.dart
===================================================================
--- sdk/lib/_internal/compiler/implementation/ssa/builder.dart (revision 21601)
+++ sdk/lib/_internal/compiler/implementation/ssa/builder.dart (working copy)
@@ -1188,8 +1188,8 @@
Map<Element, HInstruction> fieldValues,
FunctionElement inlinedFromElement,
Node callNode) {
+ constructor = constructor.implementation;
compiler.withCurrentElement(constructor, () {
- assert(invariant(constructor, constructor.isImplementation));
constructors.add(constructor);
List<HInstruction> compiledArguments = new List<HInstruction>();
@@ -1312,8 +1312,13 @@
FunctionElement target = elements[call];
Selector selector = elements.getSelector(call);
Link<Node> arguments = call.arguments;
- inlineSuperOrRedirect(target, selector, arguments, constructors,
- fieldValues, constructor, call);
+ inlineSuperOrRedirect(target,
+ selector,
+ arguments,
+ constructors,
+ fieldValues,
+ constructor,
+ call);
foundSuperOrRedirect = true;
} else {
// A field initializer.
@@ -1343,7 +1348,7 @@
if (target == null) {
compiler.internalError("no default constructor available");
}
- inlineSuperOrRedirect(target.implementation,
+ inlineSuperOrRedirect(target,
selector,
const Link<Node>(),
constructors,
« no previous file with comments | « no previous file | tests/language/issue9949_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698