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

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

Issue 1564713002: Copier should copy InvokeMethod calling convention (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 4 years, 11 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 | « no previous file | 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 library dart2js.ir_nodes; 4 library dart2js.ir_nodes;
5 5
6 import 'dart:collection'; 6 import 'dart:collection';
7 import 'cps_fragment.dart' show CpsFragment; 7 import 'cps_fragment.dart' show CpsFragment;
8 import '../constants/values.dart' as values; 8 import '../constants/values.dart' as values;
9 import '../dart_types.dart' show DartType, InterfaceType, TypeVariableType; 9 import '../dart_types.dart' show DartType, InterfaceType, TypeVariableType;
10 import '../elements/elements.dart'; 10 import '../elements/elements.dart';
(...skipping 2465 matching lines...) Expand 10 before | Expand all | Expand 10 after
2476 visitContinuation(Continuation node) {} 2476 visitContinuation(Continuation node) {}
2477 2477
2478 Definition visitInvokeStatic(InvokeStatic node) { 2478 Definition visitInvokeStatic(InvokeStatic node) {
2479 return new InvokeStatic(node.target, node.selector, getList(node.arguments), 2479 return new InvokeStatic(node.target, node.selector, getList(node.arguments),
2480 node.sourceInformation); 2480 node.sourceInformation);
2481 } 2481 }
2482 2482
2483 Definition visitInvokeMethod(InvokeMethod node) { 2483 Definition visitInvokeMethod(InvokeMethod node) {
2484 return new InvokeMethod(getCopy(node.receiver), node.selector, node.mask, 2484 return new InvokeMethod(getCopy(node.receiver), node.selector, node.mask,
2485 getList(node.arguments), 2485 getList(node.arguments),
2486 node.sourceInformation); 2486 node.sourceInformation)
2487 ..callingConvention = node.callingConvention;
asgerf 2016/01/06 15:38:33 While you're at it, could you add this as a named
sra1 2016/01/06 20:42:04 Done.
2487 } 2488 }
2488 2489
2489 Definition visitInvokeMethodDirectly(InvokeMethodDirectly node) { 2490 Definition visitInvokeMethodDirectly(InvokeMethodDirectly node) {
2490 return new InvokeMethodDirectly(getCopy(node.receiver), node.target, 2491 return new InvokeMethodDirectly(getCopy(node.receiver), node.target,
2491 node.selector, 2492 node.selector,
2492 getList(node.arguments), 2493 getList(node.arguments),
2493 node.sourceInformation); 2494 node.sourceInformation);
2494 } 2495 }
2495 2496
2496 Definition visitInvokeConstructor(InvokeConstructor node) { 2497 Definition visitInvokeConstructor(InvokeConstructor node) {
(...skipping 291 matching lines...) Expand 10 before | Expand all | Expand 10 after
2788 plug(new Branch.loose(_definitions.getCopy(node.condition), 2789 plug(new Branch.loose(_definitions.getCopy(node.condition),
2789 _copies[node.trueContinuation.definition], 2790 _copies[node.trueContinuation.definition],
2790 _copies[node.falseContinuation.definition]) 2791 _copies[node.falseContinuation.definition])
2791 ..isStrictCheck = node.isStrictCheck); 2792 ..isStrictCheck = node.isStrictCheck);
2792 } 2793 }
2793 2794
2794 visitUnreachable(Unreachable node) { 2795 visitUnreachable(Unreachable node) {
2795 plug(new Unreachable()); 2796 plug(new Unreachable());
2796 } 2797 }
2797 } 2798 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698