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

Unified Diff: lib/compiler/implementation/compile_time_constants.dart

Issue 10910088: Fix host-checked + checked by registering when a class is being instantiated, not when being proces… (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 3 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 | lib/compiler/implementation/compiler.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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)
@@ -51,7 +51,7 @@
List<Constant> getDependencies() => const <Constant>[];
// Just use a randome value.
- int hashCode() => 9264297841582447;
+ int hashCode() => 926429784158;
bool isSentinel() => true;
}
@@ -83,7 +83,7 @@
buffer.add(handler.compiler.namer.isolatePropertiesAccess(element));
}
- int hashCode() => element.hashCode();
+ int hashCode() => (17 * element.hashCode()) & 0x7fffffff;
}
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);
« no previous file with comments | « no previous file | lib/compiler/implementation/compiler.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698