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

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

Issue 2847343002: Add support for profile-based startup optimizations. (Closed)
Patch Set: Address comments. Created 3 years, 7 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
« no previous file with comments | « pkg/compiler/lib/src/dart2js.dart ('k') | pkg/compiler/lib/src/js_emitter/model.dart » ('j') | 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) 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 library dart2js.js_emitter.code_emitter_task; 5 library dart2js.js_emitter.code_emitter_task;
6 6
7 import 'package:js_runtime/shared/embedded_names.dart' show JsBuiltin; 7 import 'package:js_runtime/shared/embedded_names.dart' show JsBuiltin;
8 8
9 import '../common.dart'; 9 import '../common.dart';
10 import '../common/tasks.dart' show CompilerTask; 10 import '../common/tasks.dart' show CompilerTask;
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
175 backend.rtiEncoder); 175 backend.rtiEncoder);
176 typeTestRegistry = new TypeTestRegistry(codegenWorldBuilder, closedWorld); 176 typeTestRegistry = new TypeTestRegistry(codegenWorldBuilder, closedWorld);
177 }); 177 });
178 } 178 }
179 179
180 int assembleProgram(Namer namer, ClosedWorld closedWorld) { 180 int assembleProgram(Namer namer, ClosedWorld closedWorld) {
181 return measure(() { 181 return measure(() {
182 _finalizeRti(); 182 _finalizeRti();
183 ProgramBuilder programBuilder = new ProgramBuilder( 183 ProgramBuilder programBuilder = new ProgramBuilder(
184 compiler.options, 184 compiler.options,
185 compiler.reporter,
185 compiler.elementEnvironment, 186 compiler.elementEnvironment,
186 compiler.commonElements, 187 compiler.commonElements,
187 compiler.types, 188 compiler.types,
188 compiler.deferredLoadTask, 189 compiler.deferredLoadTask,
189 compiler.closureToClassMapper, 190 compiler.closureToClassMapper,
190 compiler.codegenWorldBuilder, 191 compiler.codegenWorldBuilder,
191 backend.nativeCodegenEnqueuer, 192 backend.nativeCodegenEnqueuer,
192 backend.backendUsage, 193 backend.backendUsage,
193 backend.constants, 194 backend.constants,
194 backend.nativeData, 195 backend.nativeData,
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
270 271
271 /// Returns the JS code for accessing the given [constant]. 272 /// Returns the JS code for accessing the given [constant].
272 jsAst.Expression constantReference(ConstantValue constant); 273 jsAst.Expression constantReference(ConstantValue constant);
273 274
274 /// Returns the JS template for the given [builtin]. 275 /// Returns the JS template for the given [builtin].
275 jsAst.Template templateForBuiltin(JsBuiltin builtin); 276 jsAst.Template templateForBuiltin(JsBuiltin builtin);
276 277
277 /// Returns the size of the code generated for a given output [unit]. 278 /// Returns the size of the code generated for a given output [unit].
278 int generatedSize(OutputUnit unit); 279 int generatedSize(OutputUnit unit);
279 } 280 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/dart2js.dart ('k') | pkg/compiler/lib/src/js_emitter/model.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698