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

Side by Side Diff: pkg/compiler/lib/src/js_emitter/class_stub_generator.dart

Issue 2641813006: Change js_emitter parts into libraries (Closed)
Patch Set: Created 3 years, 11 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 dart2js.js_emitter; 5 library dart2js.js_emitter.class_stub_generator;
6
7 import '../common.dart';
8 import '../common/names.dart' show Identifiers;
9 import '../compiler.dart' show Compiler;
10 import '../elements/elements.dart'
11 show
12 ClassElement,
Siggi Cherem (dart-lang) 2017/01/19 16:41:41 indentation seems odd here, missing darftmt? (same
Siggi Cherem (dart-lang) 2017/01/19 16:45:17 I see that you are fixing this in a subsequent CL,
13 Element;
14 import '../js/js.dart' as jsAst;
15 import '../js/js.dart' show js;
16 import '../js_backend/js_backend.dart'
17 show
18 JavaScriptBackend,
19 Namer;
20 import '../universe/selector.dart' show Selector;
21 import '../universe/world_builder.dart'
22 show CodegenWorldBuilder, SelectorConstraints;
23 import '../world.dart' show ClosedWorld;
24
25 import 'model.dart';
6 26
7 class ClassStubGenerator { 27 class ClassStubGenerator {
8 final Namer namer; 28 final Namer namer;
9 final JavaScriptBackend backend; 29 final JavaScriptBackend backend;
10 final CodegenWorldBuilder worldBuilder; 30 final CodegenWorldBuilder worldBuilder;
11 final ClosedWorld closedWorld; 31 final ClosedWorld closedWorld;
12 final bool enableMinification; 32 final bool enableMinification;
13 33
14 ClassStubGenerator( 34 ClassStubGenerator(
15 this.namer, this.backend, this.worldBuilder, this.closedWorld, 35 this.namer, this.backend, this.worldBuilder, this.closedWorld,
(...skipping 278 matching lines...) Expand 10 before | Expand all | Expand 10 after
294 if (cache === void 0) cache = #tearOff( 314 if (cache === void 0) cache = #tearOff(
295 this, funcs, reflectionInfo, true, [], name).prototype; 315 this, funcs, reflectionInfo, true, [], name).prototype;
296 return cache; 316 return cache;
297 } 317 }
298 : tearOffGetter(funcs, reflectionInfo, name, isIntercepted); 318 : tearOffGetter(funcs, reflectionInfo, name, isIntercepted);
299 }''', 319 }''',
300 {'tearOff': tearOffAccessExpression}); 320 {'tearOff': tearOffAccessExpression});
301 321
302 return <jsAst.Statement>[tearOffGetter, tearOff]; 322 return <jsAst.Statement>[tearOffGetter, tearOff];
303 } 323 }
OLDNEW
« no previous file with comments | « no previous file | pkg/compiler/lib/src/js_emitter/code_emitter_task.dart » ('j') | pkg/compiler/lib/src/js_emitter/js_emitter.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698