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

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

Issue 1762723002: Cleanup 1: split parts into their own libraries, remove unused imports (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 9 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 part of native; 5 import '../common.dart';
6 import '../compiler.dart' show
7 Compiler;
8 import '../constants/values.dart';
9 import '../dart_types.dart';
10 import '../elements/elements.dart';
11 import '../js/js.dart' as js;
12 import '../js_backend/js_backend.dart';
13 import '../js_emitter/js_emitter.dart' show
14 CodeEmitterTask,
15 NativeEmitter;
16 import '../ssa/builder.dart' show SsaBuilder;
17 import '../ssa/nodes.dart' show
18 HInstruction,
19 HForeignCode,
20 HReturn;
21 import '../tree/tree.dart';
22 import '../universe/side_effects.dart' show
23 SideEffects;
6 24
7 final RegExp nativeRedirectionRegExp = new RegExp(r'^[a-zA-Z][a-zA-Z_$0-9]*$'); 25 final RegExp nativeRedirectionRegExp = new RegExp(r'^[a-zA-Z][a-zA-Z_$0-9]*$');
8 26
9 void handleSsaNative(SsaBuilder builder, Expression nativeBody) { 27 void handleSsaNative(SsaBuilder builder, Expression nativeBody) {
10 Compiler compiler = builder.compiler; 28 Compiler compiler = builder.compiler;
11 FunctionElement element = builder.target; 29 FunctionElement element = builder.target;
12 NativeEmitter nativeEmitter = builder.nativeEmitter; 30 NativeEmitter nativeEmitter = builder.nativeEmitter;
13 JavaScriptBackend backend = builder.backend; 31 JavaScriptBackend backend = builder.backend;
14 DiagnosticReporter reporter = compiler.reporter; 32 DiagnosticReporter reporter = compiler.reporter;
15 33
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 LiteralString jsCode = nativeBody.asLiteralString(); 124 LiteralString jsCode = nativeBody.asLiteralString();
107 builder.push(new HForeignCode.statement( 125 builder.push(new HForeignCode.statement(
108 js.js.statementTemplateYielding( 126 js.js.statementTemplateYielding(
109 new js.LiteralStatement(jsCode.dartString.slowToString())), 127 new js.LiteralStatement(jsCode.dartString.slowToString())),
110 <HInstruction>[], 128 <HInstruction>[],
111 new SideEffects(), 129 new SideEffects(),
112 null, 130 null,
113 backend.dynamicType)); 131 backend.dynamicType));
114 } 132 }
115 } 133 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698