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

Side by Side Diff: dart/pkg/compiler/lib/src/js_backend/backend.dart

Issue 710173005: Disable source maps completely. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Update fallbackCompiler to new API. Created 6 years, 1 month 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
« no previous file with comments | « no previous file | dart/pkg/compiler/lib/src/js_backend/codegen/task.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 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 const bool USE_CPS_IR = const bool.fromEnvironment("USE_CPS_IR"); 9 const bool USE_CPS_IR = const bool.fromEnvironment("USE_CPS_IR");
10 10
(...skipping 443 matching lines...) Expand 10 before | Expand all | Expand 10 after
454 rti = new RuntimeTypes(compiler), 454 rti = new RuntimeTypes(compiler),
455 specializedGetInterceptors = new Map<String, Set<ClassElement>>(), 455 specializedGetInterceptors = new Map<String, Set<ClassElement>>(),
456 super(compiler) { 456 super(compiler) {
457 emitter = new CodeEmitterTask(compiler, namer, generateSourceMap); 457 emitter = new CodeEmitterTask(compiler, namer, generateSourceMap);
458 typeVariableHandler = new TypeVariableHandler(this); 458 typeVariableHandler = new TypeVariableHandler(this);
459 customElementsAnalysis = new CustomElementsAnalysis(this); 459 customElementsAnalysis = new CustomElementsAnalysis(this);
460 constantCompilerTask = new JavaScriptConstantTask(compiler); 460 constantCompilerTask = new JavaScriptConstantTask(compiler);
461 resolutionCallbacks = new JavaScriptResolutionCallbacks(this); 461 resolutionCallbacks = new JavaScriptResolutionCallbacks(this);
462 functionCompiler = USE_CPS_IR 462 functionCompiler = USE_CPS_IR
463 ? new CspFunctionCompiler(compiler, this) 463 ? new CspFunctionCompiler(compiler, this)
464 : new SsaFunctionCompiler(this); 464 : new SsaFunctionCompiler(this, generateSourceMap);
465 } 465 }
466 466
467 ConstantSystem get constantSystem => constants.constantSystem; 467 ConstantSystem get constantSystem => constants.constantSystem;
468 468
469 /// Returns constant environment for the JavaScript interpretation of the 469 /// Returns constant environment for the JavaScript interpretation of the
470 /// constants. 470 /// constants.
471 JavaScriptConstantCompiler get constants { 471 JavaScriptConstantCompiler get constants {
472 return constantCompilerTask.jsConstantCompiler; 472 return constantCompilerTask.jsConstantCompiler;
473 } 473 }
474 474
(...skipping 1994 matching lines...) Expand 10 before | Expand all | Expand 10 after
2469 } 2469 }
2470 } 2470 }
2471 2471
2472 /// Records that [constant] is used by the element behind [registry]. 2472 /// Records that [constant] is used by the element behind [registry].
2473 class Dependency { 2473 class Dependency {
2474 final ConstantValue constant; 2474 final ConstantValue constant;
2475 final Element annotatedElement; 2475 final Element annotatedElement;
2476 2476
2477 const Dependency(this.constant, this.annotatedElement); 2477 const Dependency(this.constant, this.annotatedElement);
2478 } 2478 }
OLDNEW
« no previous file with comments | « no previous file | dart/pkg/compiler/lib/src/js_backend/codegen/task.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698