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

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

Issue 2844383007: Add HCreateBox (Closed)
Patch Set: Created 3 years, 7 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') | no next file » | 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 '../../compiler_new.dart' show OutputSink; 7 import '../../compiler_new.dart' show OutputSink;
8 import '../diagnostics/invariant.dart' show DEBUG_MODE; 8 import '../diagnostics/invariant.dart' show DEBUG_MODE;
9 import '../js_backend/namer.dart' show Namer; 9 import '../js_backend/namer.dart' show Namer;
10 import '../tracer.dart'; 10 import '../tracer.dart';
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after
198 if (node.label != null) { 198 if (node.label != null) {
199 return "Continue ${node.label.labelName}: (B${target.id})"; 199 return "Continue ${node.label.labelName}: (B${target.id})";
200 } 200 }
201 return "Continue: (B${target.id})"; 201 return "Continue: (B${target.id})";
202 } 202 }
203 203
204 String visitCreate(HCreate node) { 204 String visitCreate(HCreate node) {
205 return handleGenericInvoke("Create", "${node.element.name}", node.inputs); 205 return handleGenericInvoke("Create", "${node.element.name}", node.inputs);
206 } 206 }
207 207
208 String visitCreateBox(HCreateBox node) {
209 return handleGenericInvoke("CreateBox", "", node.inputs);
210 }
211
208 String visitDivide(HDivide node) => handleInvokeBinary(node, 'Divide'); 212 String visitDivide(HDivide node) => handleInvokeBinary(node, 'Divide');
209 213
210 String visitExit(HExit node) => "Exit"; 214 String visitExit(HExit node) => "Exit";
211 215
212 String visitFieldGet(HFieldGet node) { 216 String visitFieldGet(HFieldGet node) {
213 if (node.isNullCheck) { 217 if (node.isNullCheck) {
214 return 'FieldGet: NullCheck ${temporaryId(node.receiver)}'; 218 return 'FieldGet: NullCheck ${temporaryId(node.receiver)}';
215 } 219 }
216 String fieldName = node.element.name; 220 String fieldName = node.element.name;
217 return 'FieldGet: ${temporaryId(node.receiver)}.$fieldName'; 221 return 'FieldGet: ${temporaryId(node.receiver)}.$fieldName';
(...skipping 315 matching lines...) Expand 10 before | Expand all | Expand 10 after
533 } 537 }
534 538
535 String visitAwait(HAwait node) { 539 String visitAwait(HAwait node) {
536 return "Await: ${temporaryId(node.inputs[0])}"; 540 return "Await: ${temporaryId(node.inputs[0])}";
537 } 541 }
538 542
539 String visitYield(HYield node) { 543 String visitYield(HYield node) {
540 return "Yield${node.hasStar ? "*" : ""}: ${temporaryId(node.inputs[0])}"; 544 return "Yield${node.hasStar ? "*" : ""}: ${temporaryId(node.inputs[0])}";
541 } 545 }
542 } 546 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/ssa/nodes.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698