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

Side by Side Diff: pkg/compiler/lib/src/native/ssa.dart

Issue 1880323002: dart2js cleanup: remove unused imports and variables (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: merge master Created 4 years, 8 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) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, 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 '../common.dart'; 5 import '../common.dart';
6 import '../compiler.dart' show Compiler; 6 import '../compiler.dart' show Compiler;
7 import '../constants/values.dart'; 7 import '../constants/values.dart';
8 import '../dart_types.dart'; 8 import '../dart_types.dart';
9 import '../elements/elements.dart'; 9 import '../elements/elements.dart';
10 import '../js/js.dart' as js; 10 import '../js/js.dart' as js;
11 import '../js_backend/js_backend.dart'; 11 import '../js_backend/js_backend.dart';
12 import '../js_emitter/js_emitter.dart' show CodeEmitterTask, NativeEmitter; 12 import '../js_emitter/js_emitter.dart' show NativeEmitter;
13 import '../ssa/builder.dart' show SsaBuilder; 13 import '../ssa/builder.dart' show SsaBuilder;
14 import '../ssa/nodes.dart' show HInstruction, HForeignCode, HReturn; 14 import '../ssa/nodes.dart' show HInstruction, HForeignCode, HReturn;
15 import '../tree/tree.dart'; 15 import '../tree/tree.dart';
16 import '../universe/side_effects.dart' show SideEffects; 16 import '../universe/side_effects.dart' show SideEffects;
17 17
18 final RegExp nativeRedirectionRegExp = new RegExp(r'^[a-zA-Z][a-zA-Z_$0-9]*$'); 18 final RegExp nativeRedirectionRegExp = new RegExp(r'^[a-zA-Z][a-zA-Z_$0-9]*$');
19 19
20 void handleSsaNative(SsaBuilder builder, Expression nativeBody) { 20 void handleSsaNative(SsaBuilder builder, Expression nativeBody) {
21 Compiler compiler = builder.compiler; 21 Compiler compiler = builder.compiler;
22 FunctionElement element = builder.target; 22 FunctionElement element = builder.target;
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 LiteralString jsCode = nativeBody.asLiteralString(); 118 LiteralString jsCode = nativeBody.asLiteralString();
119 builder.push(new HForeignCode.statement( 119 builder.push(new HForeignCode.statement(
120 js.js.statementTemplateYielding( 120 js.js.statementTemplateYielding(
121 new js.LiteralStatement(jsCode.dartString.slowToString())), 121 new js.LiteralStatement(jsCode.dartString.slowToString())),
122 <HInstruction>[], 122 <HInstruction>[],
123 new SideEffects(), 123 new SideEffects(),
124 null, 124 null,
125 backend.dynamicType)); 125 backend.dynamicType));
126 } 126 }
127 } 127 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/native/scanner.dart ('k') | pkg/compiler/lib/src/parser/member_listener.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698