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

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

Issue 2223133003: pkg/compiler: clean up imports (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 4 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
OLDNEW
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, 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 import '../compiler.dart' show Compiler; 5 import '../compiler.dart' show Compiler;
6 import '../dart_types.dart'; 6 import '../dart_types.dart';
7 import '../elements/elements.dart'; 7 import '../elements/elements.dart';
8 import '../js/js.dart' as jsAst; 8 import '../js/js.dart' as jsAst;
9 import '../js/js.dart' show js; 9 import '../js/js.dart' show js;
10 import '../ssa/codegen.dart' show SsaCodeGenerator; 10 import '../ssa/codegen.dart' show SsaCodeGenerator;
11 import '../ssa/nodes.dart' show HTypeConversion, HInstruction; 11 import '../ssa/nodes.dart' show HTypeConversion;
12 import '../universe/call_structure.dart' show CallStructure; 12 import '../universe/call_structure.dart' show CallStructure;
13 import '../universe/use.dart' 13 import '../universe/use.dart' show StaticUse;
14 show DynamicUse, StaticUse, StaticUseKind, TypeUse, TypeUseKind;
15 import 'backend.dart'; 14 import 'backend.dart';
16 15
17 class CheckedModeHelper { 16 class CheckedModeHelper {
18 final String name; 17 final String name;
19 18
20 const CheckedModeHelper(String this.name); 19 const CheckedModeHelper(String this.name);
21 20
22 StaticUse getStaticUse(Compiler compiler) { 21 StaticUse getStaticUse(Compiler compiler) {
23 JavaScriptBackend backend = compiler.backend; 22 JavaScriptBackend backend = compiler.backend;
24 return new StaticUse.staticInvoke( 23 return new StaticUse.staticInvoke(
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 DartType type = node.typeExpression; 130 DartType type = node.typeExpression;
132 Element element = type.element; 131 Element element = type.element;
133 jsAst.Name isField = codegen.backend.namer.operatorIs(element); 132 jsAst.Name isField = codegen.backend.namer.operatorIs(element);
134 arguments.add(js.quoteName(isField)); 133 arguments.add(js.quoteName(isField));
135 codegen.use(node.typeRepresentation); 134 codegen.use(node.typeRepresentation);
136 arguments.add(codegen.pop()); 135 arguments.add(codegen.pop());
137 jsAst.Name asField = codegen.backend.namer.substitutionName(element); 136 jsAst.Name asField = codegen.backend.namer.substitutionName(element);
138 arguments.add(js.quoteName(asField)); 137 arguments.add(js.quoteName(asField));
139 } 138 }
140 } 139 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/js_backend/backend.dart ('k') | pkg/compiler/lib/src/js_backend/custom_elements_analysis.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698