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

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

Issue 1367783003: Revert "dart2js: fix for https://github.com/dart-lang/sdk/issues/24412" (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 5 years, 2 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 library code_generator_dependencies; 5 library code_generator_dependencies;
6 6
7 import '../js_backend.dart'; 7 import '../js_backend.dart';
8 import '../../common/registry.dart' show 8 import '../../common/registry.dart' show
9 Registry; 9 Registry;
10 import '../../compiler.dart' show 10 import '../../compiler.dart' show
(...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after
254 return _backend.operatorEqHandlesNullArgument(element); 254 return _backend.operatorEqHandlesNullArgument(element);
255 } 255 }
256 256
257 bool hasStrictSubtype(ClassElement element) { 257 bool hasStrictSubtype(ClassElement element) {
258 return _compiler.world.hasAnyStrictSubtype(element); 258 return _compiler.world.hasAnyStrictSubtype(element);
259 } 259 }
260 260
261 ClassElement get jsExtendableArrayClass => _backend.jsExtendableArrayClass; 261 ClassElement get jsExtendableArrayClass => _backend.jsExtendableArrayClass;
262 ClassElement get jsMutableArrayClass => _backend.jsMutableArrayClass; 262 ClassElement get jsMutableArrayClass => _backend.jsMutableArrayClass;
263 263
264 ClassElement get jsPlainJavaScriptObjectClass =>
265 _backend.jsPlainJavaScriptObjectClass;
266 ClassElement get jsUnknownJavaScriptObjectClass =>
267 _backend.jsUnknownJavaScriptObjectClass;
268
269 bool isStringClass(ClassElement classElement) => 264 bool isStringClass(ClassElement classElement) =>
270 classElement == _backend.jsStringClass || 265 classElement == _backend.jsStringClass ||
271 classElement == _compiler.stringClass; 266 classElement == _compiler.stringClass;
272 267
273 bool isBoolClass(ClassElement classElement) => 268 bool isBoolClass(ClassElement classElement) =>
274 classElement == _backend.jsBoolClass || 269 classElement == _backend.jsBoolClass ||
275 classElement == _compiler.boolClass; 270 classElement == _compiler.boolClass;
276 } 271 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/js_backend/codegen/codegen.dart ('k') | sdk/lib/_internal/js_runtime/lib/js_helper.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698