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

Side by Side Diff: pkg/dart2js_incremental/lib/library_updater.dart

Issue 887663002: Suffix temporary API for incremental compilation in program_builder with HackForIncrementalCompilat… (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 10 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 | Annotate | Revision Log
« no previous file with comments | « pkg/compiler/lib/src/use_unused_api.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 library dart2js_incremental.library_updater; 5 library dart2js_incremental.library_updater;
6 6
7 import 'dart:async' show 7 import 'dart:async' show
8 Future; 8 Future;
9 9
10 import 'dart:convert' show 10 import 'dart:convert' show
(...skipping 1460 matching lines...) Expand 10 before | Expand all | Expand 10 after
1471 1471
1472 class EmitterHelper extends JsFeatures { 1472 class EmitterHelper extends JsFeatures {
1473 final Compiler compiler; 1473 final Compiler compiler;
1474 1474
1475 EmitterHelper(this.compiler); 1475 EmitterHelper(this.compiler);
1476 1476
1477 ClassEmitter get classEmitter => backend.emitter.oldEmitter.classEmitter; 1477 ClassEmitter get classEmitter => backend.emitter.oldEmitter.classEmitter;
1478 1478
1479 List<String> computeFields(ClassElement classElement) { 1479 List<String> computeFields(ClassElement classElement) {
1480 Class cls = new ProgramBuilder(compiler, namer, emitter) 1480 Class cls = new ProgramBuilder(compiler, namer, emitter)
1481 .buildClassWithFieldsForIncrementalCompilation(classElement); 1481 .buildFieldsHackForIncrementalCompilation(classElement);
1482 // TODO(ahe): Rewrite for new emitter. 1482 // TODO(ahe): Rewrite for new emitter.
1483 ClassBuilder builder = new ClassBuilder(classElement, namer); 1483 ClassBuilder builder = new ClassBuilder(classElement, namer);
1484 classEmitter.emitFields(cls, builder); 1484 classEmitter.emitFields(cls, builder);
1485 return builder.fields; 1485 return builder.fields;
1486 } 1486 }
1487 } 1487 }
1488 1488
1489 // TODO(ahe): Remove this method. 1489 // TODO(ahe): Remove this method.
1490 NO_WARN(x) => x; 1490 NO_WARN(x) => x;
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/use_unused_api.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698