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

Side by Side Diff: pkg/compiler/lib/src/cps_ir/cps_ir_tracer.dart

Issue 1761903002: dart2js cps: Keep interceptors in a separate field. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Rebase Created 4 years, 9 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
OLDNEW
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, 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 dart2js.ir_tracer; 5 library dart2js.ir_tracer;
6 6
7 import 'dart:async' show EventSink; 7 import 'dart:async' show EventSink;
8 import 'cps_ir_nodes.dart' as cps_ir; 8 import 'cps_ir_nodes.dart' as cps_ir;
9 import '../tracer.dart'; 9 import '../tracer.dart';
10 10
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 tag("locals", () { 77 tag("locals", () {
78 printProperty("size", 0); 78 printProperty("size", 0);
79 printProperty("method", "None"); 79 printProperty("method", "None");
80 }); 80 });
81 }); 81 });
82 tag("HIR", () { 82 tag("HIR", () {
83 String formatParameter(cps_ir.Parameter param) { 83 String formatParameter(cps_ir.Parameter param) {
84 return '${names.name(param)} ${param.type}'; 84 return '${names.name(param)} ${param.type}';
85 } 85 }
86 if (entryPoint != null) { 86 if (entryPoint != null) {
87 String thisParam = entryPoint.thisParameter != null 87 String thisParam = entryPoint.receiverParameter != null
88 ? formatParameter(entryPoint.thisParameter) 88 ? formatParameter(entryPoint.receiverParameter)
89 : 'no receiver'; 89 : 'no receiver';
90 String interceptorParam = entryPoint.interceptorParameter != null
91 ? formatParameter(entryPoint.interceptorParameter)
92 : 'no interceptor';
90 String params = entryPoint.parameters.map(formatParameter).join(', '); 93 String params = entryPoint.parameters.map(formatParameter).join(', ');
91 printStmt('x0', 'Entry ($thisParam) ($params)'); 94 printStmt('x0', 'Entry ($interceptorParam) ($thisParam) ($params)');
92 } 95 }
93 String params = block.parameters.map(formatParameter).join(', '); 96 String params = block.parameters.map(formatParameter).join(', ');
94 printStmt('x0', 'Parameters ($params)'); 97 printStmt('x0', 'Parameters ($params)');
95 visit(block.body); 98 visit(block.body);
96 }); 99 });
97 }); 100 });
98 } 101 }
99 102
100 void printStmt(String resultVar, String contents) { 103 void printStmt(String resultVar, String contents) {
101 int bci = 0; 104 int bci = 0;
(...skipping 581 matching lines...) Expand 10 before | Expand all | Expand 10 after
683 } 686 }
684 687
685 visitBoundsCheck(cps_ir.BoundsCheck node) { 688 visitBoundsCheck(cps_ir.BoundsCheck node) {
686 unexpectedNode(node); 689 unexpectedNode(node);
687 } 690 }
688 691
689 visitReceiverCheck(cps_ir.ReceiverCheck node) { 692 visitReceiverCheck(cps_ir.ReceiverCheck node) {
690 unexpectedNode(node); 693 unexpectedNode(node);
691 } 694 }
692 } 695 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/cps_ir/cps_ir_nodes_sexpr.dart ('k') | pkg/compiler/lib/src/cps_ir/inline.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698