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

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

Issue 1284593003: Remove dart2jslib.dart (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 5 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) 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 library dart2js.constant_system.js; 5 library dart2js.constant_system.js;
6 6
7 import '../compiler.dart' show Compiler;
7 import '../constants/constant_system.dart'; 8 import '../constants/constant_system.dart';
8 import '../constants/values.dart'; 9 import '../constants/values.dart';
9 import '../constant_system_dart.dart'; 10 import '../constant_system_dart.dart';
10 import '../dart_types.dart'; 11 import '../dart_types.dart';
11 import '../dart2jslib.dart' show Compiler;
12 import '../elements/elements.dart' show ClassElement; 12 import '../elements/elements.dart' show ClassElement;
13 import '../tree/tree.dart' show DartString, LiteralDartString; 13 import '../tree/tree.dart' show DartString, LiteralDartString;
14 import 'js_backend.dart'; 14 import 'js_backend.dart';
15 15
16 const JAVA_SCRIPT_CONSTANT_SYSTEM = const JavaScriptConstantSystem(); 16 const JAVA_SCRIPT_CONSTANT_SYSTEM = const JavaScriptConstantSystem();
17 17
18 class JavaScriptBitNotOperation extends BitNotOperation { 18 class JavaScriptBitNotOperation extends BitNotOperation {
19 const JavaScriptBitNotOperation(); 19 const JavaScriptBitNotOperation();
20 20
21 ConstantValue fold(ConstantValue constant) { 21 ConstantValue fold(ConstantValue constant) {
(...skipping 351 matching lines...) Expand 10 before | Expand all | Expand 10 after
373 result.add(keyList); 373 result.add(keyList);
374 } else { 374 } else {
375 // Add the keys individually to avoid generating an unused list constant 375 // Add the keys individually to avoid generating an unused list constant
376 // for the keys. 376 // for the keys.
377 result.addAll(keys); 377 result.addAll(keys);
378 } 378 }
379 result.addAll(values); 379 result.addAll(values);
380 return result; 380 return result;
381 } 381 }
382 } 382 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/js_backend/codegen/task.dart ('k') | pkg/compiler/lib/src/js_backend/js_backend.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698