Index: pkg/fletchc/lib/src/fletch_backend.dart |
diff --git a/pkg/fletchc/lib/src/fletch_backend.dart b/pkg/fletchc/lib/src/fletch_backend.dart |
index 8d5d5703d209e5d65e03144b3b9a7c589d94af95..24bfad9a26b445815bac8d4e244e8e18b2ccba03 100644 |
--- a/pkg/fletchc/lib/src/fletch_backend.dart |
+++ b/pkg/fletchc/lib/src/fletch_backend.dart |
@@ -75,7 +75,8 @@ import 'package:compiler/src/library_loader.dart' show |
import 'fletch_constants.dart' show |
FletchClassConstant, |
- FletchFunctionConstant; |
+ FletchFunctionConstant, |
+ FletchClassInstanceConstant; |
import 'compiled_function.dart' show |
CompiledFunction; |
@@ -922,6 +923,10 @@ class FletchBackend extends Backend { |
commands |
..add(new PushFromMap(MapId.classes, compiledClass.id)) |
..add(const PushNewInstance()); |
+ } else if (constant is FletchClassInstanceConstant) { |
+ commands |
+ ..add(new PushFromMap(MapId.classes, constant.classId)) |
+ ..add(const PushNewInstance()); |
} else { |
throw "Unsupported constant: ${constant.toStructuredString()}"; |
} |