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

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

Issue 813603002: dart2js: Add a pointer from the emitter's JS code to the encoding part. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « pkg/compiler/lib/src/js_emitter/old_emitter/class_builder.dart ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 part of dart2js.js_emitter; 5 part of dart2js.js_emitter;
6 6
7 7
8 class OldEmitter implements Emitter { 8 class OldEmitter implements Emitter {
9 final Compiler compiler; 9 final Compiler compiler;
10 final CodeEmitterTask task; 10 final CodeEmitterTask task;
(...skipping 509 matching lines...) Expand 10 before | Expand all | Expand 10 after
520 * 'Super;field1,field2' 520 * 'Super;field1,field2'
521 * from the CLASS_DESCRIPTOR_PROPERTY property on the descriptor. 521 * from the CLASS_DESCRIPTOR_PROPERTY property on the descriptor.
522 */ 522 */
523 var classData = desc["${namer.classDescriptorProperty}"], 523 var classData = desc["${namer.classDescriptorProperty}"],
524 supr, fields = classData; 524 supr, fields = classData;
525 if (#hasRetainedMetadata) 525 if (#hasRetainedMetadata)
526 if (typeof classData == "object" && 526 if (typeof classData == "object" &&
527 classData instanceof Array) { 527 classData instanceof Array) {
528 classData = fields = classData[0]; 528 classData = fields = classData[0];
529 } 529 }
530 // ${ClassBuilder.fieldEncodingDescription}.
530 var s = fields.split(";"); 531 var s = fields.split(";");
531 fields = s[1] == "" ? [] : s[1].split(","); 532 fields = s[1] == "" ? [] : s[1].split(",");
532 supr = s[0]; 533 supr = s[0];
534 // ${ClassBuilder.functionTypeEncodingDescription}.
533 split = supr.split(":"); 535 split = supr.split(":");
534 if (split.length == 2) { 536 if (split.length == 2) {
535 supr = split[0]; 537 supr = split[0];
536 var functionSignature = split[1]; 538 var functionSignature = split[1];
537 if (functionSignature) 539 if (functionSignature)
538 desc.$signaturePropertyName = (function(s) { 540 desc.$signaturePropertyName = (function(s) {
539 return function(){ return #metadata[s]; }; 541 return function(){ return #metadata[s]; };
540 })(functionSignature); 542 })(functionSignature);
541 } 543 }
542 544
(...skipping 1739 matching lines...) Expand 10 before | Expand all | Expand 10 after
2282 for (Element element in compiler.enqueuer.codegen.newlyEnqueuedElements) { 2284 for (Element element in compiler.enqueuer.codegen.newlyEnqueuedElements) {
2283 if (element.isInstanceMember) { 2285 if (element.isInstanceMember) {
2284 cachedClassBuilders.remove(element.enclosingClass); 2286 cachedClassBuilders.remove(element.enclosingClass);
2285 2287
2286 nativeEmitter.cachedBuilders.remove(element.enclosingClass); 2288 nativeEmitter.cachedBuilders.remove(element.enclosingClass);
2287 2289
2288 } 2290 }
2289 } 2291 }
2290 } 2292 }
2291 } 2293 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/js_emitter/old_emitter/class_builder.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698