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

Unified Diff: pkg/compiler/lib/src/js_emitter/old_emitter/emitter.dart

Issue 1057513002: Also intialize methods inherited from mixin classes. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Added a regression test. Created 5 years, 9 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: pkg/compiler/lib/src/js_emitter/old_emitter/emitter.dart
diff --git a/pkg/compiler/lib/src/js_emitter/old_emitter/emitter.dart b/pkg/compiler/lib/src/js_emitter/old_emitter/emitter.dart
index d16d5c577b289c305f8aeb9d7dfced27f416d064..94e1a2bfb9a11e76cd783c6bd432c64c8016c687 100644
--- a/pkg/compiler/lib/src/js_emitter/old_emitter/emitter.dart
+++ b/pkg/compiler/lib/src/js_emitter/old_emitter/emitter.dart
@@ -828,20 +828,6 @@ class OldEmitter implements Emitter {
}
}
- String get markerFun => 'markerFun';
-
- void emitMarkerFun(CodeOutput output) {
- jsAst.Statement markerFunStmt = js.statement('''
- // This function is used to mark the end of the inheritance chain so that
- // finishAddStubsHelper knows where to stop searching for deferred work.
- // We have to put it at the top level so that we only get one instance of
- // it even if we call parseReflectionData multiple times, e.g., due to
- // deferred loading.
- function #() {}''', markerFun);
- output.addBuffer(jsAst.prettyPrint(markerFunStmt, compiler));
- output.add(N);
- }
-
void emitConvertToFastObjectFunction(CodeOutput output) {
List<jsAst.Statement> debugCode = <jsAst.Statement>[];
if (DEBUG_FAST_OBJECTS) {
@@ -1302,7 +1288,6 @@ class OldEmitter implements Emitter {
emitConvertToFastObjectFunction(mainOutput);
emitConvertToSlowObjectFunction(mainOutput);
- emitMarkerFun(mainOutput);
for (String globalObject in Namer.reservedGlobalObjectNames) {
mainOutput.add('$globalObject = convertToFastObject($globalObject)$N');

Powered by Google App Engine
This is Rietveld 408576698