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

Side by Side Diff: pkg/compiler/lib/src/ssa/ssa_tracer.dart

Issue 2260223002: Add SSA instructions for reified type information (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: reformat Created 4 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 | « pkg/compiler/lib/src/ssa/nodes.dart ('k') | pkg/compiler/lib/src/universe/call_structure.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) 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 ssa.tracer; 5 library ssa.tracer;
6 6
7 import 'dart:async' show EventSink; 7 import 'dart:async' show EventSink;
8 8
9 import '../compiler.dart' show Compiler; 9 import '../compiler.dart' show Compiler;
10 import '../diagnostics/invariant.dart' show DEBUG_MODE; 10 import '../diagnostics/invariant.dart' show DEBUG_MODE;
(...skipping 488 matching lines...) Expand 10 before | Expand all | Expand 10 after
499 if (node.witness != null) { 499 if (node.witness != null) {
500 result += " witnessed by ${temporaryId(node.witness)}"; 500 result += " witnessed by ${temporaryId(node.witness)}";
501 } 501 }
502 return result; 502 return result;
503 } 503 }
504 504
505 String visitRangeConversion(HRangeConversion node) { 505 String visitRangeConversion(HRangeConversion node) {
506 return "RangeConversion: ${node.checkedInput}"; 506 return "RangeConversion: ${node.checkedInput}";
507 } 507 }
508 508
509 String visitTypeInfoReadRaw(HTypeInfoReadRaw node) {
510 return "TypeInfoReadRaw";
511 }
512
513 String visitTypeInfoReadVariable(HTypeInfoReadVariable node) {
514 return "TypeInfoReadVariable ${node.variable}";
515 }
516
517 String visitTypeInfoExpression(HTypeInfoExpression node) {
518 return "TypeInfoExpression ${node.kindAsString} ${node.dartType}";
519 }
520
509 String visitReadTypeVariable(HReadTypeVariable node) { 521 String visitReadTypeVariable(HReadTypeVariable node) {
510 return "ReadTypeVariable: ${node.dartType} ${node.hasReceiver}"; 522 return "ReadTypeVariable: ${node.dartType} ${node.hasReceiver}";
511 } 523 }
512 524
513 String visitFunctionType(HFunctionType node) { 525 String visitFunctionType(HFunctionType node) {
514 return "FunctionType: ${node.dartType}"; 526 return "FunctionType: ${node.dartType}";
515 } 527 }
516 528
517 String visitVoidType(HVoidType node) { 529 String visitVoidType(HVoidType node) {
518 return "VoidType"; 530 return "VoidType";
519 } 531 }
520 532
521 String visitInterfaceType(HInterfaceType node) { 533 String visitInterfaceType(HInterfaceType node) {
522 return "InterfaceType: ${node.dartType}"; 534 return "InterfaceType: ${node.dartType}";
523 } 535 }
524 536
525 String visitDynamicType(HDynamicType node) { 537 String visitDynamicType(HDynamicType node) {
526 return "DynamicType"; 538 return "DynamicType";
527 } 539 }
528 540
529 String visitAwait(HAwait node) { 541 String visitAwait(HAwait node) {
530 return "Await: ${temporaryId(node.inputs[0])}"; 542 return "Await: ${temporaryId(node.inputs[0])}";
531 } 543 }
532 544
533 String visitYield(HYield node) { 545 String visitYield(HYield node) {
534 return "Yield${node.hasStar ? "*" : ""}: ${temporaryId(node.inputs[0])}"; 546 return "Yield${node.hasStar ? "*" : ""}: ${temporaryId(node.inputs[0])}";
535 } 547 }
536 } 548 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/ssa/nodes.dart ('k') | pkg/compiler/lib/src/universe/call_structure.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698