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

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

Issue 2842653003: Include superclasses of classes only needed for rti (Closed)
Patch Set: Update status file Created 3 years, 7 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 unified diff | Download patch
« no previous file with comments | « no previous file | pkg/compiler/lib/src/js_emitter/program_builder/collector.dart » ('j') | 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 library dart2js.new_js_emitter.model; 5 library dart2js.new_js_emitter.model;
6 6
7 import '../constants/values.dart' show ConstantValue; 7 import '../constants/values.dart' show ConstantValue;
8 import '../deferred_load.dart' show OutputUnit; 8 import '../deferred_load.dart' show OutputUnit;
9 import '../elements/entities.dart'; 9 import '../elements/entities.dart';
10 import '../js/js.dart' as js show Expression, Name, Statement, TokenFinalizer; 10 import '../js/js.dart' as js show Expression, Name, Statement, TokenFinalizer;
(...skipping 264 matching lines...) Expand 10 before | Expand all | Expand 10 after
275 Class get superclass => _superclass; 275 Class get superclass => _superclass;
276 276
277 void setSuperclass(Class superclass) { 277 void setSuperclass(Class superclass) {
278 _superclass = superclass; 278 _superclass = superclass;
279 } 279 }
280 280
281 js.Name get superclassName => superclass == null ? null : superclass.name; 281 js.Name get superclassName => superclass == null ? null : superclass.name;
282 282
283 int get superclassHolderIndex => 283 int get superclassHolderIndex =>
284 (superclass == null) ? 0 : superclass.holder.index; 284 (superclass == null) ? 0 : superclass.holder.index;
285
286 String toString() => 'Class(${element.name})';
285 } 287 }
286 288
287 class MixinApplication extends Class { 289 class MixinApplication extends Class {
288 Class _mixinClass; 290 Class _mixinClass;
289 291
290 MixinApplication( 292 MixinApplication(
291 ClassEntity element, 293 ClassEntity element,
292 js.Name name, 294 js.Name name,
293 Holder holder, 295 Holder holder,
294 List<Field> instanceFields, 296 List<Field> instanceFields,
(...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after
527 functionType: functionType); 529 functionType: functionType);
528 530
529 bool get isStatic => true; 531 bool get isStatic => true;
530 } 532 }
531 533
532 class StaticStubMethod extends StubMethod implements StaticMethod { 534 class StaticStubMethod extends StubMethod implements StaticMethod {
533 Holder holder; 535 Holder holder;
534 StaticStubMethod(js.Name name, this.holder, js.Expression code) 536 StaticStubMethod(js.Name name, this.holder, js.Expression code)
535 : super(name, code); 537 : super(name, code);
536 } 538 }
OLDNEW
« no previous file with comments | « no previous file | pkg/compiler/lib/src/js_emitter/program_builder/collector.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698