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

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

Issue 10855174: Lazy implementation of final variables. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: rebase wrt CL 10832351. Created 8 years, 4 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
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 class InvocationInfo { 5 class InvocationInfo {
6 int parameterCount = -1; 6 int parameterCount = -1;
7 List<HType> providedTypes; 7 List<HType> providedTypes;
8 List<Element> compiledFunctions; 8 List<Element> compiledFunctions;
9 9
10 InvocationInfo(HInvoke node, HTypeMap types) 10 InvocationInfo(HInvoke node, HTypeMap types)
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 void codegen(WorkItem work) { 122 void codegen(WorkItem work) {
123 HGraph graph = builder.build(work); 123 HGraph graph = builder.build(work);
124 optimizer.optimize(work, graph); 124 optimizer.optimize(work, graph);
125 if (work.allowSpeculativeOptimization 125 if (work.allowSpeculativeOptimization
126 && optimizer.trySpeculativeOptimizations(work, graph)) { 126 && optimizer.trySpeculativeOptimizations(work, graph)) {
127 CodeBuffer codeBuffer = generator.generateBailoutMethod(work, graph); 127 CodeBuffer codeBuffer = generator.generateBailoutMethod(work, graph);
128 compiler.codegenWorld.addBailoutCode(work, codeBuffer); 128 compiler.codegenWorld.addBailoutCode(work, codeBuffer);
129 optimizer.prepareForSpeculativeOptimizations(work, graph); 129 optimizer.prepareForSpeculativeOptimizations(work, graph);
130 optimizer.optimize(work, graph); 130 optimizer.optimize(work, graph);
131 } 131 }
132 CodeBuffer codeBuffer = generator.generateMethod(work, graph); 132 CodeBuffer codeBuffer = generator.generateCode(work, graph);
133 compiler.codegenWorld.addGeneratedCode(work, codeBuffer); 133 compiler.codegenWorld.addGeneratedCode(work, codeBuffer);
134 invalidateAfterCodegen.forEach( 134 invalidateAfterCodegen.forEach(
135 compiler.enqueuer.codegen.eagerRecompile); 135 compiler.enqueuer.codegen.eagerRecompile);
136 invalidateAfterCodegen.clear(); 136 invalidateAfterCodegen.clear();
137 } 137 }
138 138
139 void processNativeClasses(Enqueuer world, 139 void processNativeClasses(Enqueuer world,
140 Collection<LibraryElement> libraries) { 140 Collection<LibraryElement> libraries) {
141 native.processNativeClasses(world, emitter, libraries); 141 native.processNativeClasses(world, emitter, libraries);
142 } 142 }
(...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after
346 FunctionSignature signature = element.computeSignature(compiler); 346 FunctionSignature signature = element.computeSignature(compiler);
347 if (signature.parameterCount == found.parameterCount) { 347 if (signature.parameterCount == found.parameterCount) {
348 found.addCompiledFunction(element); 348 found.addCompiledFunction(element);
349 return found.providedTypes; 349 return found.providedTypes;
350 } 350 }
351 } 351 }
352 return null; 352 return null;
353 } 353 }
354 } 354 }
355 } 355 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698