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

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

Issue 1283773002: dart2js cps: Do not add identical calls for foreign code conditions. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Merge 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
« no previous file with comments | « no previous file | pkg/compiler/lib/src/js_backend/codegen/unsugar.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 '../../constants/values.dart'; 8 import '../../constants/values.dart';
9 import '../../dart_types.dart' show 9 import '../../dart_types.dart' show
10 DartType, 10 DartType,
(...skipping 21 matching lines...) Expand all
32 FunctionElement get getInterceptorMethod => _backend.getInterceptorMethod; 32 FunctionElement get getInterceptorMethod => _backend.getInterceptorMethod;
33 33
34 JavaScriptBackend get _backend => _compiler.backend; 34 JavaScriptBackend get _backend => _compiler.backend;
35 35
36 CodeEmitterTask get _emitter => _backend.emitter; 36 CodeEmitterTask get _emitter => _backend.emitter;
37 37
38 Namer get _namer => _backend.namer; 38 Namer get _namer => _backend.namer;
39 39
40 Glue(this._compiler); 40 Glue(this._compiler);
41 41
42 ClassWorld get classWorld => _compiler.world;
43
42 js.Expression constantReference(ConstantValue value) { 44 js.Expression constantReference(ConstantValue value) {
43 return _emitter.constantReference(value); 45 return _emitter.constantReference(value);
44 } 46 }
45 47
46 reportInternalError(String message) { 48 reportInternalError(String message) {
47 _compiler.internalError(_compiler.currentElement, message); 49 _compiler.internalError(_compiler.currentElement, message);
48 } 50 }
49 51
50 ConstantValue getConstantValueForVariable(VariableElement variable) { 52 ConstantValue getConstantValueForVariable(VariableElement variable) {
51 return _backend.constants.getConstantValueForVariable(variable); 53 return _backend.constants.getConstantValueForVariable(variable);
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after
239 return _backend.operatorEqHandlesNullArgument(element); 241 return _backend.operatorEqHandlesNullArgument(element);
240 } 242 }
241 243
242 bool hasStrictSubtype(ClassElement element) { 244 bool hasStrictSubtype(ClassElement element) {
243 return _compiler.world.hasAnyStrictSubtype(element); 245 return _compiler.world.hasAnyStrictSubtype(element);
244 } 246 }
245 247
246 ClassElement get jsExtendableArrayClass => _backend.jsExtendableArrayClass; 248 ClassElement get jsExtendableArrayClass => _backend.jsExtendableArrayClass;
247 ClassElement get jsMutableArrayClass => _backend.jsMutableArrayClass; 249 ClassElement get jsMutableArrayClass => _backend.jsMutableArrayClass;
248 } 250 }
OLDNEW
« no previous file with comments | « no previous file | pkg/compiler/lib/src/js_backend/codegen/unsugar.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698