Chromium Code Reviews| Index: frog/leg/ssa/builder.dart |
| diff --git a/frog/leg/ssa/builder.dart b/frog/leg/ssa/builder.dart |
| index 9610513ae5b39b8bad7c33e5be03c76cc894b2f3..8d32546e15e4b6bdacc35749fa7150714ede6fcc 100644 |
| --- a/frog/leg/ssa/builder.dart |
| +++ b/frog/leg/ssa/builder.dart |
| @@ -809,8 +809,12 @@ class SsaBuilder implements Visitor { |
| if (localsHandler.hasValueForDirectLocal(member)) { |
| value = localsHandler.readLocal(member); |
| } else { |
| - // TODO(karlklose): get default value. |
| - value = graph.addNewLiteralNull(); |
| + var fieldValue = |
| + compiler.compileTimeConstantHandler.compileVariable(member); |
| + // TODO(floitsch): this constant should be treated like all |
| + // other constants and should be at the top of the graph. |
|
ngeoffray
2012/02/28 09:48:26
Why can't you do it?
floitsch
2012/02/28 10:19:01
We could, but it would be tedious and I'm about to
|
| + value = new HLiteral.internal(fieldValue, HType.UNKNOWN); |
| + add(value); |
| } |
| constructorArguments.add(value); |
| } |