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

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

Issue 85663003: We can actually map the Dart shift right to the JavaScript one under certain conditions. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: 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
« no previous file with comments | « sdk/lib/_internal/compiler/implementation/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 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
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
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 }
OLDNEW
« no previous file with comments | « sdk/lib/_internal/compiler/implementation/ssa/nodes.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698