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

Unified Diff: dart/lib/compiler/implementation/ssa/builder.dart

Issue 10377166: Prepare to have more than one universe. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 years, 7 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
Index: dart/lib/compiler/implementation/ssa/builder.dart
diff --git a/dart/lib/compiler/implementation/ssa/builder.dart b/dart/lib/compiler/implementation/ssa/builder.dart
index 1845fc829118c700e6c6dffc799de3ec29d7784b..8744e9ebfddab8a9dada5d73a246f0d57f3d0ff1 100644
--- a/dart/lib/compiler/implementation/ssa/builder.dart
+++ b/dart/lib/compiler/implementation/ssa/builder.dart
@@ -857,7 +857,7 @@ class SsaBuilder implements Visitor {
bodyElement = new ConstructorBodyElement(constructor);
TreeElements treeElements =
compiler.resolver.resolveMethodElement(constructor);
- compiler.addToWorkList(bodyElement, treeElements);
+ compiler.enqueuer.codegen.addToWorkList(bodyElement, treeElements);
classElement.backendMembers =
classElement.backendMembers.prepend(bodyElement);
}
@@ -1487,7 +1487,7 @@ class SsaBuilder implements Visitor {
ClassElement closureClassElement =
nestedClosureData.closureClassElement;
FunctionElement callElement = nestedClosureData.callElement;
- compiler.addToWorkList(callElement, elements);
+ compiler.enqueuer.codegen.addToWorkList(callElement, elements);
compiler.registerInstantiatedClass(closureClassElement);
assert(closureClassElement.members.isEmpty());
@@ -1919,7 +1919,7 @@ class SsaBuilder implements Visitor {
Type type = elements.getType(typeAnnotation);
HInstruction typeInfo = null;
- if (compiler.universe.rti.hasTypeArguments(type)) {
+ if (compiler.codegenWorld.rti.hasTypeArguments(type)) {
HInstruction typeInfoGetter =
new HStatic(interceptors.getGetRuntimeTypeInfo());
add(typeInfoGetter);
@@ -2339,8 +2339,8 @@ class SsaBuilder implements Visitor {
}
generateSetRuntimeTypeInformation(HInstruction instance, Type type) {
- if (compiler.universe.rti.hasTypeArguments(type)) {
- String typeString = compiler.universe.rti.asJsString(type);
+ if (compiler.codegenWorld.rti.hasTypeArguments(type)) {
+ String typeString = compiler.codegenWorld.rti.asJsString(type);
HInstruction typeInfo = new HForeign(new LiteralDartString(typeString),
new LiteralDartString('Object'),
<HInstruction>[]);
« no previous file with comments | « dart/lib/compiler/implementation/scanner/scanner_task.dart ('k') | dart/lib/compiler/implementation/ssa/closure.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698