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

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

Issue 11412105: - Move length getter and setter interceptors to the new interceptor scheme. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 1 month 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
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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:io'; 7 import 'dart:io';
8 import 'ssa.dart'; 8 import 'ssa.dart';
9 import '../js_backend/js_backend.dart'; 9 import '../js_backend/js_backend.dart';
10 import '../dart2jslib.dart'; 10 import '../dart2jslib.dart';
(...skipping 316 matching lines...) Expand 10 before | Expand all | Expand 10 after
327 return visitGenericInvoke("Invoke", target, arguments); 327 return visitGenericInvoke("Invoke", target, arguments);
328 } 328 }
329 329
330 String visitInvokeDynamicMethod(HInvokeDynamicMethod node) 330 String visitInvokeDynamicMethod(HInvokeDynamicMethod node)
331 => visitInvokeDynamic(node, "method"); 331 => visitInvokeDynamic(node, "method");
332 String visitInvokeDynamicGetter(HInvokeDynamicGetter node) 332 String visitInvokeDynamicGetter(HInvokeDynamicGetter node)
333 => visitInvokeDynamic(node, "get"); 333 => visitInvokeDynamic(node, "get");
334 String visitInvokeDynamicSetter(HInvokeDynamicSetter node) 334 String visitInvokeDynamicSetter(HInvokeDynamicSetter node)
335 => visitInvokeDynamic(node, "set"); 335 => visitInvokeDynamic(node, "set");
336 336
337 String visitInvokeInterceptor(HInvokeInterceptor invoke)
338 => visitInvokeStatic(invoke);
339
340 String visitInvokeStatic(HInvokeStatic invoke) { 337 String visitInvokeStatic(HInvokeStatic invoke) {
341 String target = temporaryId(invoke.target); 338 String target = temporaryId(invoke.target);
342 int offset = HInvoke.ARGUMENTS_OFFSET; 339 int offset = HInvoke.ARGUMENTS_OFFSET;
343 List arguments = 340 List arguments =
344 invoke.inputs.getRange(offset, invoke.inputs.length - offset); 341 invoke.inputs.getRange(offset, invoke.inputs.length - offset);
345 return visitGenericInvoke("Invoke", target, arguments); 342 return visitGenericInvoke("Invoke", target, arguments);
346 } 343 }
347 344
348 String visitInvokeSuper(HInvokeSuper invoke) { 345 String visitInvokeSuper(HInvokeSuper invoke) {
349 String target = temporaryId(invoke.target); 346 String target = temporaryId(invoke.target);
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after
528 } 525 }
529 526
530 String visitTypeConversion(HTypeConversion node) { 527 String visitTypeConversion(HTypeConversion node) {
531 return "TypeConversion: ${temporaryId(node.checkedInput)} to ${node.type}"; 528 return "TypeConversion: ${temporaryId(node.checkedInput)} to ${node.type}";
532 } 529 }
533 530
534 String visitRangeConversion(HRangeConversion node) { 531 String visitRangeConversion(HRangeConversion node) {
535 return "RangeConversion: ${node.checkedInput}"; 532 return "RangeConversion: ${node.checkedInput}";
536 } 533 }
537 } 534 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698