| OLD | NEW |
| 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 /// This file use methods that aren't used by dart2js.dart, but that we wish to | 5 /// This file use methods that aren't used by dart2js.dart, but that we wish to |
| 6 /// keep anyway. This might be general API that isn't currently in use, | 6 /// keep anyway. This might be general API that isn't currently in use, |
| 7 /// debugging aids, or API only used for testing (see TODO below). | 7 /// debugging aids, or API only used for testing (see TODO below). |
| 8 | 8 |
| 9 library dart2js.use_unused_api; | 9 library dart2js.use_unused_api; |
| 10 | 10 |
| 11 import '../compiler.dart' as api; | 11 import '../compiler.dart' as api; |
| 12 | 12 |
| 13 import 'colors.dart' as colors; | 13 import 'colors.dart' as colors; |
| 14 import 'constants/values.dart' as constants; | 14 import 'constants/values.dart' as constants; |
| 15 import 'cps_ir/cps_ir_builder.dart' as ir_builder; | 15 import 'cps_ir/cps_ir_builder.dart' as ir_builder; |
| 16 import 'cps_ir/cps_ir_nodes_sexpr.dart' as cps_ir_nodes_sexpr; | 16 import 'cps_ir/cps_ir_nodes_sexpr.dart' as cps_ir_nodes_sexpr; |
| 17 import 'dart_types.dart' as dart_types; | 17 import 'dart_types.dart' as dart_types; |
| 18 import 'dart2js.dart' as dart2js; | 18 import 'dart2js.dart' as dart2js; |
| 19 import 'dart2jslib.dart' as dart2jslib; | 19 import 'dart2jslib.dart' as dart2jslib; |
| 20 import 'elements/elements.dart' as elements; | 20 import 'elements/elements.dart' as elements; |
| 21 import 'elements/modelx.dart' as modelx; | 21 import 'elements/modelx.dart' as modelx; |
| 22 import 'elements/visitor.dart' as elements_visitor; | 22 import 'elements/visitor.dart' as elements_visitor; |
| 23 import 'filenames.dart' as filenames; | 23 import 'filenames.dart' as filenames; |
| 24 import 'inferrer/concrete_types_inferrer.dart' as concrete_types_inferrer; | 24 import 'inferrer/concrete_types_inferrer.dart' as concrete_types_inferrer; |
| 25 import 'inferrer/type_graph_inferrer.dart' as type_graph_inferrer; | 25 import 'inferrer/type_graph_inferrer.dart' as type_graph_inferrer; |
| 26 import 'io/code_output.dart' as io; |
| 26 import 'js/js.dart' as js; | 27 import 'js/js.dart' as js; |
| 27 import 'js_emitter/js_emitter.dart' as js_emitter; | 28 import 'js_emitter/js_emitter.dart' as js_emitter; |
| 28 import 'source_file_provider.dart' as source_file_provider; | 29 import 'source_file_provider.dart' as source_file_provider; |
| 29 import 'ssa/ssa.dart' as ssa; | 30 import 'ssa/ssa.dart' as ssa; |
| 30 import 'tree/tree.dart' as tree; | 31 import 'tree/tree.dart' as tree; |
| 31 import 'universe/universe.dart' as universe; | 32 import 'universe/universe.dart' as universe; |
| 32 import 'util/util.dart' as util; | 33 import 'util/util.dart' as util; |
| 33 | 34 |
| 34 import 'scanner/scannerlib.dart' show | 35 import 'scanner/scannerlib.dart' show |
| 35 PartialClassElement, | 36 PartialClassElement, |
| (...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 183 useFilenames() { | 184 useFilenames() { |
| 184 filenames.appendSlash(null); | 185 filenames.appendSlash(null); |
| 185 } | 186 } |
| 186 | 187 |
| 187 useSsa(ssa.HInstruction instruction) { | 188 useSsa(ssa.HInstruction instruction) { |
| 188 instruction.isConstantNumber(); | 189 instruction.isConstantNumber(); |
| 189 new ssa.HAndOrBlockInformation(null, null, null); | 190 new ssa.HAndOrBlockInformation(null, null, null); |
| 190 new ssa.HStatementSequenceInformation(null); | 191 new ssa.HStatementSequenceInformation(null); |
| 191 } | 192 } |
| 192 | 193 |
| 193 useCodeBuffer(dart2jslib.CodeBuffer buffer) { | 194 useCodeBuffer(io.CodeBuffer buffer) { |
| 194 buffer.writeln(); | 195 buffer.writeln(); |
| 196 new io.LineColumnCodeOutput(null); |
| 195 } | 197 } |
| 196 | 198 |
| 197 usedByTests() { | 199 usedByTests() { |
| 198 // TODO(ahe): We should try to avoid including API used only for tests. In | 200 // TODO(ahe): We should try to avoid including API used only for tests. In |
| 199 // most cases, such API can be moved to a test library. | 201 // most cases, such API can be moved to a test library. |
| 200 dart2jslib.World world = null; | 202 dart2jslib.World world = null; |
| 201 dart2jslib.Compiler compiler = null; | 203 dart2jslib.Compiler compiler = null; |
| 202 compiler.currentlyInUserCode(); | 204 compiler.currentlyInUserCode(); |
| 203 type_graph_inferrer.TypeGraphInferrer typeGraphInferrer = null; | 205 type_graph_inferrer.TypeGraphInferrer typeGraphInferrer = null; |
| 204 source_file_provider.SourceFileProvider sourceFileProvider = null; | 206 source_file_provider.SourceFileProvider sourceFileProvider = null; |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 268 new dart_types.ResolvedTypedefType(null, null, null).unalias(null); | 270 new dart_types.ResolvedTypedefType(null, null, null).unalias(null); |
| 269 } | 271 } |
| 270 | 272 |
| 271 useCodeEmitterTask(js_emitter.CodeEmitterTask codeEmitterTask) { | 273 useCodeEmitterTask(js_emitter.CodeEmitterTask codeEmitterTask) { |
| 272 codeEmitterTask.oldEmitter.clearCspPrecompiledNodes(); | 274 codeEmitterTask.oldEmitter.clearCspPrecompiledNodes(); |
| 273 } | 275 } |
| 274 | 276 |
| 275 useScript(dart2jslib.Script script) { | 277 useScript(dart2jslib.Script script) { |
| 276 script.copyWithFile(null); | 278 script.copyWithFile(null); |
| 277 } | 279 } |
| OLD | NEW |