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

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

Issue 2997033002: Revert "Implement .getCallType" and "Update status" (Closed)
Patch Set: Created 3 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/namer.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) 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 import '../common.dart'; 5 import '../common.dart';
6 import '../common_elements.dart'; 6 import '../common_elements.dart';
7 import '../constants/values.dart'; 7 import '../constants/values.dart';
8 import '../elements/entities.dart'; 8 import '../elements/entities.dart';
9 import '../elements/types.dart'; 9 import '../elements/types.dart';
10 import '../io/code_output.dart'; 10 import '../io/code_output.dart';
(...skipping 264 matching lines...) Expand 10 before | Expand all | Expand 10 after
275 } 275 }
276 276
277 @override 277 @override
278 jsAst.Expression visitType(TypeConstantValue constant, [_]) { 278 jsAst.Expression visitType(TypeConstantValue constant, [_]) {
279 DartType type = constant.representedType; 279 DartType type = constant.representedType;
280 jsAst.Name typeName; 280 jsAst.Name typeName;
281 Entity element; 281 Entity element;
282 if (type is InterfaceType) { 282 if (type is InterfaceType) {
283 element = type.element; 283 element = type.element;
284 } else if (type is TypedefType) { 284 } else if (type is TypedefType) {
285 // TODO(redemption): Handle typedef type literals from .dill.
285 element = type.element; 286 element = type.element;
286 } else { 287 } else {
287 assert(type is DynamicType); 288 assert(type is DynamicType);
288 } 289 }
289 typeName = _namer.runtimeTypeName(element); 290 typeName = _namer.runtimeTypeName(element);
290 return new jsAst.Call(getHelperProperty(_commonElements.createRuntimeType), 291 return new jsAst.Call(getHelperProperty(_commonElements.createRuntimeType),
291 [js.quoteName(typeName)]); 292 [js.quoteName(typeName)]);
292 } 293 }
293 294
294 @override 295 @override
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
364 _rtiEncoder.getTypeRepresentation(_emitter, argument, unexpected)); 365 _rtiEncoder.getTypeRepresentation(_emitter, argument, unexpected));
365 } 366 }
366 return new jsAst.ArrayInitializer(arguments); 367 return new jsAst.ArrayInitializer(arguments);
367 } 368 }
368 369
369 @override 370 @override
370 jsAst.Expression visitDeferred(DeferredConstantValue constant, [_]) { 371 jsAst.Expression visitDeferred(DeferredConstantValue constant, [_]) {
371 return constantReferenceGenerator(constant.referenced); 372 return constantReferenceGenerator(constant.referenced);
372 } 373 }
373 } 374 }
OLDNEW
« no previous file with comments | « no previous file | pkg/compiler/lib/src/js_backend/namer.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698