OLD | NEW |
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 408 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
419 if (i > 0) buffer.write(", "); | 419 if (i > 0) buffer.write(", "); |
420 buffer.write(temporaryId(phi.inputs[i])); | 420 buffer.write(temporaryId(phi.inputs[i])); |
421 } | 421 } |
422 buffer.write(")"); | 422 buffer.write(")"); |
423 return buffer.toString(); | 423 return buffer.toString(); |
424 } | 424 } |
425 | 425 |
426 String visitReturn(HReturn node) => "Return ${temporaryId(node.inputs[0])}"; | 426 String visitReturn(HReturn node) => "Return ${temporaryId(node.inputs[0])}"; |
427 | 427 |
428 String visitShiftLeft(HShiftLeft node) => handleInvokeBinary(node, '<<'); | 428 String visitShiftLeft(HShiftLeft node) => handleInvokeBinary(node, '<<'); |
| 429 String visitShiftRight(HShiftRight node) => handleInvokeBinary(node, '>>'); |
429 | 430 |
430 String visitStatic(HStatic node) | 431 String visitStatic(HStatic node) |
431 => "Static ${node.element.name}"; | 432 => "Static ${node.element.name}"; |
432 | 433 |
433 String visitLazyStatic(HLazyStatic node) | 434 String visitLazyStatic(HLazyStatic node) |
434 => "LazyStatic ${node.element.name}"; | 435 => "LazyStatic ${node.element.name}"; |
435 | 436 |
436 String visitOneShotInterceptor(HOneShotInterceptor node) | 437 String visitOneShotInterceptor(HOneShotInterceptor node) |
437 => visitInvokeDynamic(node, "one shot interceptor"); | 438 => visitInvokeDynamic(node, "one shot interceptor"); |
438 | 439 |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
514 | 515 |
515 String visitTypeKnown(HTypeKnown node) { | 516 String visitTypeKnown(HTypeKnown node) { |
516 assert(node.inputs.length == 1); | 517 assert(node.inputs.length == 1); |
517 return "TypeKnown: ${temporaryId(node.checkedInput)} is ${node.knownType}"; | 518 return "TypeKnown: ${temporaryId(node.checkedInput)} is ${node.knownType}"; |
518 } | 519 } |
519 | 520 |
520 String visitRangeConversion(HRangeConversion node) { | 521 String visitRangeConversion(HRangeConversion node) { |
521 return "RangeConversion: ${node.checkedInput}"; | 522 return "RangeConversion: ${node.checkedInput}"; |
522 } | 523 } |
523 } | 524 } |
OLD | NEW |