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

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

Issue 743383002: Redo "Revert "Encode super calls via extra properties on prototypes."" (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 1 month 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/emitter.dart ('k') | pkg/compiler/lib/src/ssa/codegen.dart » ('j') | 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/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 afd0cae95692e5ba2c44a9070f9d21276d656edc..a1d3610313a000087529643d0c114996f2b51616 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
@@ -141,16 +141,11 @@ jsAst.Expression getReflectionDataParser(String classesCollector,
* [array].
*/
jsAst.Statement addStubs = js.statement('''
- function addStubs(descriptor, array, nameTag, isStatic,
+ function addStubs(descriptor, array, name, isStatic,
originalDescriptor, functions) {
- // The name could be an aliased method, which is only resolved later in
- // finishClasses. We need to use the actual name for the generated stubs.
- // Note that no getter for the alias is needed, as getter sends via super
- // are handled via the prototype chain and not using the alias.
- var name = nameTag.split(':')[0];
var f, funcs =
- [originalDescriptor[nameTag] =
- descriptor[nameTag] = f = ${readFunction("array", "$FUNCTION_INDEX")}];
+ [originalDescriptor[name] =
+ descriptor[name] = f = ${readFunction("array", "$FUNCTION_INDEX")}];
f.\$stubName = name;
functions.push(name);
for (var index = $FUNCTION_INDEX; index < array.length; index += 2) {
@@ -184,7 +179,7 @@ jsAst.Expression getReflectionDataParser(String classesCollector,
if (getterStubName) {
f = tearOff(funcs, array, isStatic, name, isIntercepted);
- descriptor[nameTag].\$getter = f;
+ descriptor[name].\$getter = f;
f.\$getterStub = true;
// Used to create an isolate using spawnFunction.
if (isStatic) #[name] = f; // embedded globalFunctions.
« no previous file with comments | « pkg/compiler/lib/src/js_emitter/old_emitter/emitter.dart ('k') | pkg/compiler/lib/src/ssa/codegen.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698