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

Side by Side Diff: sdk/lib/_internal/compiler/implementation/js_backend/backend.dart

Issue 90713003: Dart2js option to dump info about compilation (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 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
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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 js_backend; 5 part of js_backend;
6 6
7 const VERBOSE_OPTIMIZER_HINTS = false; 7 const VERBOSE_OPTIMIZER_HINTS = false;
8 8
9 class JavaScriptItemCompilationContext extends ItemCompilationContext { 9 class JavaScriptItemCompilationContext extends ItemCompilationContext {
10 final Set<HInstruction> boundsChecked = new Set<HInstruction>(); 10 final Set<HInstruction> boundsChecked = new Set<HInstruction>();
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after
161 } 161 }
162 162
163 163
164 class JavaScriptBackend extends Backend { 164 class JavaScriptBackend extends Backend {
165 SsaBuilderTask builder; 165 SsaBuilderTask builder;
166 SsaFromIrBuilderTask fromIrBuilder; 166 SsaFromIrBuilderTask fromIrBuilder;
167 SsaOptimizerTask optimizer; 167 SsaOptimizerTask optimizer;
168 SsaCodeGeneratorTask generator; 168 SsaCodeGeneratorTask generator;
169 CodeEmitterTask emitter; 169 CodeEmitterTask emitter;
170 170
171 CodeBuffer emitCodeFor(Element element) {
ahe 2013/11/27 19:28:53 This method is unfortunately named as emitting nor
sigurdm 2013/11/29 10:39:37 ok
172 if (generatedCode.containsKey(element)) return null;
173 return jsAst.prettyPrint(generatedCode[element], compiler);
174 }
175
171 /** 176 /**
172 * The generated code as a js AST for compiled methods. 177 * The generated code as a js AST for compiled methods.
173 */ 178 */
174 Map<Element, jsAst.Expression> get generatedCode { 179 Map<Element, jsAst.Expression> get generatedCode {
175 return compiler.enqueuer.codegen.generatedCode; 180 return compiler.enqueuer.codegen.generatedCode;
176 } 181 }
177 182
178 FunctionInlineCache inlineCache = new FunctionInlineCache(); 183 FunctionInlineCache inlineCache = new FunctionInlineCache();
179 184
180 ClassElement jsInterceptorClass; 185 ClassElement jsInterceptorClass;
(...skipping 1814 matching lines...) Expand 10 before | Expand all | Expand 10 after
1995 copy(constant.values); 2000 copy(constant.values);
1996 copy(constant.protoValue); 2001 copy(constant.protoValue);
1997 copy(constant); 2002 copy(constant);
1998 } 2003 }
1999 2004
2000 void visitConstructed(ConstructedConstant constant) { 2005 void visitConstructed(ConstructedConstant constant) {
2001 copy(constant.fields); 2006 copy(constant.fields);
2002 copy(constant); 2007 copy(constant);
2003 } 2008 }
2004 } 2009 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698