Chromium Code Reviews| Index: lib/compiler/implementation/compile_time_constants.dart |
| =================================================================== |
| --- lib/compiler/implementation/compile_time_constants.dart (revision 11874) |
| +++ lib/compiler/implementation/compile_time_constants.dart (working copy) |
| @@ -83,7 +83,7 @@ |
| buffer.add(handler.compiler.namer.isolatePropertiesAccess(element)); |
| } |
| - int hashCode() => element.hashCode(); |
| + int hashCode() => 17 * element.hashCode(); |
|
ahe
2012/09/05 13:18:21
(...) & 0x7fffffff
ngeoffray
2012/09/05 13:23:27
Done.
|
| } |
| class PrimitiveConstant extends Constant { |
| @@ -917,7 +917,7 @@ |
| classElement.ensureResolved(compiler); |
| // TODO(floitsch): copy over the generic type. |
| DartType type = new InterfaceType(classElement); |
| - compiler.registerInstantiatedClass(classElement); |
| + compiler.enqueuer.codegen.registerInstantiatedClass(classElement); |
| Constant constant = new MapConstant(type, keysList, values, protoValue); |
| compiler.constantHandler.registerCompileTimeConstant(constant); |
| return constant; |
| @@ -1148,7 +1148,7 @@ |
| evaluator.evaluateConstructorFieldValues(arguments); |
| List<Constant> jsNewArguments = evaluator.buildJsNewArguments(classElement); |
| - compiler.registerInstantiatedClass(classElement); |
| + compiler.enqueuer.codegen.registerInstantiatedClass(classElement); |
| // TODO(floitsch): take generic types into account. |
| DartType type = classElement.computeType(compiler); |
| Constant constant = new ConstructedConstant(type, jsNewArguments); |