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

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

Issue 236313012: Don't hide interceptors in mirrors. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address comments. Created 6 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 | Annotate | Revision Log
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 'ssa.dart'; 9 import 'ssa.dart';
10 import '../js_backend/js_backend.dart'; 10 import '../js_backend/js_backend.dart';
(...skipping 285 matching lines...) Expand 10 before | Expand all | Expand 10 after
296 296
297 String visitInvokeClosure(HInvokeClosure node) 297 String visitInvokeClosure(HInvokeClosure node)
298 => visitInvokeDynamic(node, "closure"); 298 => visitInvokeDynamic(node, "closure");
299 299
300 String visitInvokeDynamic(HInvokeDynamic invoke, String kind) { 300 String visitInvokeDynamic(HInvokeDynamic invoke, String kind) {
301 String receiver = temporaryId(invoke.receiver); 301 String receiver = temporaryId(invoke.receiver);
302 String name = invoke.selector.name; 302 String name = invoke.selector.name;
303 String target = "($kind) $receiver.$name"; 303 String target = "($kind) $receiver.$name";
304 int offset = HInvoke.ARGUMENTS_OFFSET; 304 int offset = HInvoke.ARGUMENTS_OFFSET;
305 List arguments = invoke.inputs.sublist(offset); 305 List arguments = invoke.inputs.sublist(offset);
306 return visitGenericInvoke("Invoke", target, arguments); 306 return visitGenericInvoke("Invoke", target, arguments) +
307 "(${invoke.selector.mask})";
307 } 308 }
308 309
309 String visitInvokeDynamicMethod(HInvokeDynamicMethod node) 310 String visitInvokeDynamicMethod(HInvokeDynamicMethod node)
310 => visitInvokeDynamic(node, "method"); 311 => visitInvokeDynamic(node, "method");
311 String visitInvokeDynamicGetter(HInvokeDynamicGetter node) 312 String visitInvokeDynamicGetter(HInvokeDynamicGetter node)
312 => visitInvokeDynamic(node, "get"); 313 => visitInvokeDynamic(node, "get");
313 String visitInvokeDynamicSetter(HInvokeDynamicSetter node) 314 String visitInvokeDynamicSetter(HInvokeDynamicSetter node)
314 => visitInvokeDynamic(node, "set"); 315 => visitInvokeDynamic(node, "set");
315 316
316 String visitInvokeStatic(HInvokeStatic invoke) { 317 String visitInvokeStatic(HInvokeStatic invoke) {
(...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after
511 } 512 }
512 513
513 String visitInterfaceType(HInterfaceType node) { 514 String visitInterfaceType(HInterfaceType node) {
514 return "InterfaceType: ${node.dartType}"; 515 return "InterfaceType: ${node.dartType}";
515 } 516 }
516 517
517 String visitDynamicType(HDynamicType node) { 518 String visitDynamicType(HDynamicType node) {
518 return "DynamicType"; 519 return "DynamicType";
519 } 520 }
520 } 521 }
OLDNEW
« no previous file with comments | « sdk/lib/_internal/compiler/implementation/ssa/codegen.dart ('k') | sdk/lib/_internal/lib/interceptors.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698