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

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

Issue 800903005: dart2js OldEmitter: name anonymous function so it does not need to be copied in deferred parts. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 11 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/reflection_data_parser.dart
diff --git a/pkg/compiler/lib/src/js_emitter/old_emitter/reflection_data_parser.dart b/pkg/compiler/lib/src/js_emitter/old_emitter/reflection_data_parser.dart
index 29179732ad5ca4f84339c73d26e2ad63d7b6818b..b89ceee16b1d583148cc29a8636edbc99941c080 100644
--- a/pkg/compiler/lib/src/js_emitter/old_emitter/reflection_data_parser.dart
+++ b/pkg/compiler/lib/src/js_emitter/old_emitter/reflection_data_parser.dart
@@ -419,7 +419,7 @@ jsAst.Expression getReflectionDataParser(OldEmitter oldEmitter,
}
return js('''
-(function (reflectionData) {
+function parseReflectionData(reflectionData) {
floitsch 2015/01/05 13:46:19 Use the shared name. I guess the dependency should
zarah 2015/01/05 14:00:26 Done.
"use strict";
#header;
if (#needsClassSupport) {
@@ -433,7 +433,7 @@ jsAst.Expression getReflectionDataParser(OldEmitter oldEmitter,
#tearOffCode;
#incrementalSupport;
#init;
-})''', {
+}''', {
'header': header,
'defineClass': oldEmitter.defineClassFunction,
'inheritFrom': oldEmitter.buildInheritFrom(),

Powered by Google App Engine
This is Rietveld 408576698