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

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

Issue 10398044: Reverting 7667 (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
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
« no previous file with comments | « lib/compiler/implementation/compiler.dart ('k') | lib/compiler/implementation/native_emitter.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/compiler/implementation/emitter.dart
===================================================================
--- lib/compiler/implementation/emitter.dart (revision 7672)
+++ lib/compiler/implementation/emitter.dart (working copy)
@@ -25,7 +25,7 @@
bool needsDefineClass = false;
bool needsClosureClass = false;
final Namer namer;
- NativeEmitter nativeEmitter;
+ final NativeEmitter nativeEmitter;
StringBuffer boundClosureBuffer;
StringBuffer mainBuffer;
/** Shorter access to [isolatePropertiesName]. Both here in the code, as
@@ -34,11 +34,10 @@
CodeEmitterTask(Compiler compiler)
: namer = compiler.namer,
+ nativeEmitter = new NativeEmitter(compiler),
boundClosureBuffer = new StringBuffer(),
mainBuffer = new StringBuffer(),
- super(compiler) {
- nativeEmitter = new NativeEmitter(this);
- }
+ super(compiler);
String get name() => 'CodeEmitter';
@@ -771,11 +770,13 @@
if (member.kind == ElementKind.GETTER || member.kind == ElementKind.FIELD) {
Set<Selector> selectors = compiler.universe.invokedNames[member.name];
if (selectors !== null && !selectors.isEmpty()) {
- emitCallStubForGetter(member, selectors, defineInstanceMember);
+ compiler.emitter.emitCallStubForGetter(member, selectors,
+ defineInstanceMember);
}
} else if (member.kind == ElementKind.FUNCTION) {
if (compiler.universe.hasGetter(member, compiler)) {
- emitDynamicFunctionGetter(member, defineInstanceMember);
+ compiler.emitter.emitDynamicFunctionGetter(member,
+ defineInstanceMember);
}
}
}
« no previous file with comments | « lib/compiler/implementation/compiler.dart ('k') | lib/compiler/implementation/native_emitter.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698