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

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

Issue 1024893002: Do not emit stubName for static functions. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: rebased Created 5 years, 8 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 | « pkg/compiler/lib/src/js_emitter/old_emitter/container_builder.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/js_emitter/old_emitter/setup_program_builder.dart
diff --git a/pkg/compiler/lib/src/js_emitter/old_emitter/setup_program_builder.dart b/pkg/compiler/lib/src/js_emitter/old_emitter/setup_program_builder.dart
index 7d065a3e344647c9e6280fcc49d9f24b9658e687..5d77ebdc207b547a937db49569d2d7e5689d82cc 100644
--- a/pkg/compiler/lib/src/js_emitter/old_emitter/setup_program_builder.dart
+++ b/pkg/compiler/lib/src/js_emitter/old_emitter/setup_program_builder.dart
@@ -667,17 +667,19 @@ function $setupProgramName(programData, typesOffset) {
var funcs = [prototype[name] = prototype[alias] = f];
f.\$stubName = name;
functions.push(name);
- for (; index < array.length; index += 2) {
- f = array[index + 1];
+ for (index++; index < array.length; index++) {
+ f = array[index];
if (typeof f != "function") break;
- f.\$stubName = ${readString("array", "index + 2")};
+ if (!isStatic) {
+ f.\$stubName = ${readString("array", "++index")};
+ }
funcs.push(f);
if (f.\$stubName) {
prototype[f.\$stubName] = f;
functions.push(f.\$stubName);
}
}
- index++;
+
for (var i = 0; i < funcs.length; index++, i++) {
funcs[i].\$callName = ${readString("array", "index")};
}
« no previous file with comments | « pkg/compiler/lib/src/js_emitter/old_emitter/container_builder.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698