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

Unified Diff: pkg/compiler/lib/src/js_backend/backend.dart

Issue 1322973007: Use memory compiler in compiler_helper.dart. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Update cf. comments. Created 5 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pkg/compiler/lib/src/helpers/trace.dart ('k') | pkg/compiler/lib/src/js_backend/namer_names.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/js_backend/backend.dart
diff --git a/pkg/compiler/lib/src/js_backend/backend.dart b/pkg/compiler/lib/src/js_backend/backend.dart
index e0311003aa1ea7cc2d8f6b729899b67a1b3e0e45..9513375b7a10c75d590485f5a889fb579b394cb9 100644
--- a/pkg/compiler/lib/src/js_backend/backend.dart
+++ b/pkg/compiler/lib/src/js_backend/backend.dart
@@ -1501,16 +1501,8 @@ class JavaScriptBackend extends Backend {
*
* Invariant: [element] must be a declaration element.
*/
- String assembleCode(Element element) {
+ String getGeneratedCode(Element element) {
assert(invariant(element, element.isDeclaration));
- var code = generatedCode[element];
- if (namer is jsAst.TokenFinalizer) {
- jsAst.TokenCounter counter = new jsAst.TokenCounter();
- counter.countTokens(code);
- // Avoid a warning.
- var finalizer = namer;
- finalizer.finalizeTokens();
- }
return jsAst.prettyPrint(generatedCode[element], compiler).getText();
}
« no previous file with comments | « pkg/compiler/lib/src/helpers/trace.dart ('k') | pkg/compiler/lib/src/js_backend/namer_names.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698