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

Side by Side Diff: dart/sdk/lib/_internal/compiler/implementation/ssa/tracer.dart

Issue 50313007: Implement dynamic function checks. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Merged with r30897. Created 7 years 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, 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 tracer; 5 library tracer;
6 6
7 import 'dart:async' show EventSink; 7 import 'dart:async' show EventSink;
8 8
9 import 'ssa.dart'; 9 import 'ssa.dart';
10 import '../js_backend/js_backend.dart'; 10 import '../js_backend/js_backend.dart';
(...skipping 503 matching lines...) Expand 10 before | Expand all | Expand 10 after
514 } 514 }
515 515
516 String visitTypeKnown(HTypeKnown node) { 516 String visitTypeKnown(HTypeKnown node) {
517 assert(node.inputs.length == 1); 517 assert(node.inputs.length == 1);
518 return "TypeKnown: ${temporaryId(node.checkedInput)} is ${node.knownType}"; 518 return "TypeKnown: ${temporaryId(node.checkedInput)} is ${node.knownType}";
519 } 519 }
520 520
521 String visitRangeConversion(HRangeConversion node) { 521 String visitRangeConversion(HRangeConversion node) {
522 return "RangeConversion: ${node.checkedInput}"; 522 return "RangeConversion: ${node.checkedInput}";
523 } 523 }
524
525 String visitReadTypeVariable(HReadTypeVariable node) {
526 return "ReadTypeVariable: ${node.dartType} ${node.hasReceiver}";
527 }
528
529 String visitFunctionType(HFunctionType node) {
530 return "FunctionType: ${node.dartType}";
531 }
532
533 String visitVoidType(HVoidType node) {
534 return "VoidType";
535 }
536
537 String visitInterfaceType(HInterfaceType node) {
538 return "InterfaceType: ${node.dartType}";
539 }
540
541 String visitDynamicType(HDynamicType node) {
542 return "DynamicType";
543 }
524 } 544 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698