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

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

Issue 1317903002: dart2js cps: Use dummy constant in dummy receiver optimization. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Revert+Unrevert Created 5 years, 3 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 | « pkg/compiler/lib/src/cps_ir/type_propagation.dart ('k') | no next file » | 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 '../../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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 ClassWorld get classWorld => _compiler.world; 47 ClassWorld get classWorld => _compiler.world;
48 48
49 js.Expression constantReference(ConstantValue value) { 49 js.Expression constantReference(ConstantValue value) {
50 return _emitter.constantReference(value); 50 return _emitter.constantReference(value);
51 } 51 }
52 52
53 reportInternalError(String message) { 53 reportInternalError(String message) {
54 _compiler.internalError(_compiler.currentElement, message); 54 _compiler.internalError(_compiler.currentElement, message);
55 } 55 }
56 56
57 bool isUsedAsMixin(ClassElement clazz) { 57 bool isUsedAsMixin(ClassElement classElement) {
58 return classWorld.isUsedAsMixin(clazz); 58 return classWorld.isUsedAsMixin(classElement);
59 } 59 }
60 60
61 ConstantValue getConstantValueForVariable(VariableElement variable) { 61 ConstantValue getConstantValueForVariable(VariableElement variable) {
62 return _backend.constants.getConstantValueForVariable(variable); 62 return _backend.constants.getConstantValueForVariable(variable);
63 } 63 }
64 64
65 js.Expression staticFunctionAccess(FunctionElement element) { 65 js.Expression staticFunctionAccess(FunctionElement element) {
66 return _backend.emitter.staticFunctionAccess(element); 66 return _backend.emitter.staticFunctionAccess(element);
67 } 67 }
68 68
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after
262 ClassElement get jsMutableArrayClass => _backend.jsMutableArrayClass; 262 ClassElement get jsMutableArrayClass => _backend.jsMutableArrayClass;
263 263
264 bool isStringClass(ClassElement classElement) => 264 bool isStringClass(ClassElement classElement) =>
265 classElement == _backend.jsStringClass || 265 classElement == _backend.jsStringClass ||
266 classElement == _compiler.stringClass; 266 classElement == _compiler.stringClass;
267 267
268 bool isBoolClass(ClassElement classElement) => 268 bool isBoolClass(ClassElement classElement) =>
269 classElement == _backend.jsBoolClass || 269 classElement == _backend.jsBoolClass ||
270 classElement == _compiler.boolClass; 270 classElement == _compiler.boolClass;
271 } 271 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/cps_ir/type_propagation.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698