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

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

Issue 2314703002: Split World usage into open, inference, and closed world. (Closed)
Patch Set: Updated cf. comments Created 4 years, 2 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/optimize.dart ('k') | pkg/compiler/lib/src/ssa/types.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 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 } else if (instruction.isIndexablePrimitive(compiler)) { 138 } else if (instruction.isIndexablePrimitive(compiler)) {
139 prefix = 'r'; 139 prefix = 'r';
140 } else if (instruction.isBoolean(compiler)) { 140 } else if (instruction.isBoolean(compiler)) {
141 prefix = 'b'; 141 prefix = 'b';
142 } else if (instruction.isInteger(compiler)) { 142 } else if (instruction.isInteger(compiler)) {
143 prefix = 'i'; 143 prefix = 'i';
144 } else if (instruction.isDouble(compiler)) { 144 } else if (instruction.isDouble(compiler)) {
145 prefix = 'd'; 145 prefix = 'd';
146 } else if (instruction.isNumber(compiler)) { 146 } else if (instruction.isNumber(compiler)) {
147 prefix = 'n'; 147 prefix = 'n';
148 } else if (instruction.instructionType.containsAll(compiler.world)) { 148 } else if (instruction.instructionType.containsAll(compiler.closedWorld)) {
149 prefix = 'v'; 149 prefix = 'v';
150 } else { 150 } else {
151 prefix = 'U'; 151 prefix = 'U';
152 } 152 }
153 return "$prefix${instruction.id}"; 153 return "$prefix${instruction.id}";
154 } 154 }
155 155
156 String visitBoolify(HBoolify node) { 156 String visitBoolify(HBoolify node) {
157 return "Boolify: ${temporaryId(node.inputs[0])}"; 157 return "Boolify: ${temporaryId(node.inputs[0])}";
158 } 158 }
(...skipping 377 matching lines...) Expand 10 before | Expand all | Expand 10 after
536 } 536 }
537 537
538 String visitAwait(HAwait node) { 538 String visitAwait(HAwait node) {
539 return "Await: ${temporaryId(node.inputs[0])}"; 539 return "Await: ${temporaryId(node.inputs[0])}";
540 } 540 }
541 541
542 String visitYield(HYield node) { 542 String visitYield(HYield node) {
543 return "Yield${node.hasStar ? "*" : ""}: ${temporaryId(node.inputs[0])}"; 543 return "Yield${node.hasStar ? "*" : ""}: ${temporaryId(node.inputs[0])}";
544 } 544 }
545 } 545 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/ssa/optimize.dart ('k') | pkg/compiler/lib/src/ssa/types.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698