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

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

Issue 2637383005: enable --dump-info with the --fast-startup emitter (Closed)
Patch Set: Created 3 years, 11 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
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.js_emitter.full_emitter; 5 library dart2js.js_emitter.full_emitter;
6 6
7 import 'dart:collection' show HashMap; 7 import 'dart:collection' show HashMap;
8 import 'dart:convert'; 8 import 'dart:convert';
9 9
10 import 'package:js_runtime/shared/embedded_names.dart' as embeddedNames; 10 import 'package:js_runtime/shared/embedded_names.dart' as embeddedNames;
(...skipping 402 matching lines...) Expand 10 before | Expand all | Expand 10 after
413 generateEmbeddedGlobalAccessString(embeddedNames.GLOBAL_FUNCTIONS); 413 generateEmbeddedGlobalAccessString(embeddedNames.GLOBAL_FUNCTIONS);
414 return jsAst.js.expressionTemplateFor("$functionGettersMap[#]()"); 414 return jsAst.js.expressionTemplateFor("$functionGettersMap[#]()");
415 415
416 default: 416 default:
417 reporter.internalError( 417 reporter.internalError(
418 NO_LOCATION_SPANNABLE, "Unhandled Builtin: $builtin"); 418 NO_LOCATION_SPANNABLE, "Unhandled Builtin: $builtin");
419 return null; 419 return null;
420 } 420 }
421 } 421 }
422 422
423 @override
424 int generatedSize(OutputUnit unit) {
425 return outputBuffers[unit].length;
426 }
427
423 List<jsAst.Statement> buildTrivialNsmHandlers() { 428 List<jsAst.Statement> buildTrivialNsmHandlers() {
424 return nsmEmitter.buildTrivialNsmHandlers(); 429 return nsmEmitter.buildTrivialNsmHandlers();
425 } 430 }
426 431
427 jsAst.Statement buildNativeInfoHandler( 432 jsAst.Statement buildNativeInfoHandler(
428 jsAst.Expression infoAccess, 433 jsAst.Expression infoAccess,
429 jsAst.Expression constructorAccess, 434 jsAst.Expression constructorAccess,
430 jsAst.Expression subclassReadGenerator(jsAst.Expression subclass), 435 jsAst.Expression subclassReadGenerator(jsAst.Expression subclass),
431 jsAst.Expression interceptorsByTagAccess, 436 jsAst.Expression interceptorsByTagAccess,
432 jsAst.Expression leafTagsAccess) { 437 jsAst.Expression leafTagsAccess) {
(...skipping 1746 matching lines...) Expand 10 before | Expand all | Expand 10 after
2179 if (cachedElements.isEmpty) return; 2184 if (cachedElements.isEmpty) return;
2180 for (Element element in backend.codegenEnqueuer.newlyEnqueuedElements) { 2185 for (Element element in backend.codegenEnqueuer.newlyEnqueuedElements) {
2181 if (element.isInstanceMember) { 2186 if (element.isInstanceMember) {
2182 cachedClassBuilders.remove(element.enclosingClass); 2187 cachedClassBuilders.remove(element.enclosingClass);
2183 2188
2184 nativeEmitter.cachedBuilders.remove(element.enclosingClass); 2189 nativeEmitter.cachedBuilders.remove(element.enclosingClass);
2185 } 2190 }
2186 } 2191 }
2187 } 2192 }
2188 } 2193 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/js_emitter/code_emitter_task.dart ('k') | pkg/compiler/lib/src/js_emitter/lazy_emitter/emitter.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698