Chromium Code Reviews| Index: sdk/lib/_internal/compiler/implementation/compiler.dart |
| =================================================================== |
| --- sdk/lib/_internal/compiler/implementation/compiler.dart (revision 29517) |
| +++ sdk/lib/_internal/compiler/implementation/compiler.dart (working copy) |
| @@ -465,7 +465,12 @@ |
| Element identicalFunction; |
| Element functionApplyMethod; |
| Element invokeOnMethod; |
| + Element intEnvironment; |
| + Element boolEnvironment; |
| + Element stringEnvironment; |
| + fromEnvironment(String name) => null; |
| + |
| Element get currentElement => _currentElement; |
| String tryToString(object) { |
| @@ -844,6 +849,15 @@ |
| symbolValidatedConstructorSelector); |
| } else if (mirrorsUsedClass == cls) { |
| mirrorsUsedConstructor = cls.constructors.head; |
| + } else if (intClass == cls) { |
| + intEnvironment = intClass.lookupConstructor( |
| + new Selector.callConstructor('fromEnvironment', null, 2)); |
| + } else if (stringClass == cls) { |
| + stringEnvironment = stringClass.lookupConstructor( |
| + new Selector.callConstructor('fromEnvironment', null, 2)); |
| + } else if (boolClass == cls) { |
| + boolEnvironment = boolClass.lookupConstructor( |
| + new Selector.callConstructor('fromEnvironment', null, 1)); |
|
kasperl
2013/10/30 13:35:25
Again, I don't really see why bool.fromEnvironment
ngeoffray
2013/10/30 15:13:59
Done.
|
| } |
| } |