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

Side by Side Diff: pkg/compiler/lib/src/tree_ir/tree_ir_builder.dart

Issue 1250633002: Add operators test to source_mapping_test. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Updated cf. comments. Created 5 years, 5 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 tree_ir_builder; 5 library tree_ir_builder;
6 6
7 import '../dart2jslib.dart' as dart2js; 7 import '../dart2jslib.dart' as dart2js;
8 import '../elements/elements.dart'; 8 import '../elements/elements.dart';
9 import '../cps_ir/cps_ir_nodes.dart' as cps_ir; 9 import '../cps_ir/cps_ir_nodes.dart' as cps_ir;
10 import '../util/util.dart' show CURRENT_ELEMENT_SPANNABLE; 10 import '../util/util.dart' show CURRENT_ELEMENT_SPANNABLE;
(...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after
260 260
261 Statement visitSetField(cps_ir.SetField node) { 261 Statement visitSetField(cps_ir.SetField node) {
262 return new ExpressionStatement( 262 return new ExpressionStatement(
263 new SetField(getVariableUse(node.object), 263 new SetField(getVariableUse(node.object),
264 node.field, 264 node.field,
265 getVariableUse(node.value)), 265 getVariableUse(node.value)),
266 visit(node.body)); 266 visit(node.body));
267 } 267 }
268 268
269 Expression visitInterceptor(cps_ir.Interceptor node) { 269 Expression visitInterceptor(cps_ir.Interceptor node) {
270 return new Interceptor(getVariableUse(node.input), node.interceptedClasses); 270 return new Interceptor(
271 getVariableUse(node.input),
272 node.interceptedClasses,
273 node.sourceInformation);
271 } 274 }
272 275
273 Expression visitCreateInstance(cps_ir.CreateInstance node) { 276 Expression visitCreateInstance(cps_ir.CreateInstance node) {
274 return new CreateInstance( 277 return new CreateInstance(
275 node.classElement, 278 node.classElement,
276 translateArguments(node.arguments), 279 translateArguments(node.arguments),
277 translateArguments(node.typeInformation), 280 translateArguments(node.typeInformation),
278 node.sourceInformation); 281 node.sourceInformation);
279 } 282 }
280 283
(...skipping 350 matching lines...) Expand 10 before | Expand all | Expand 10 after
631 getVariableUse(node.index)); 634 getVariableUse(node.index));
632 } 635 }
633 636
634 Expression visitSetIndex(cps_ir.SetIndex node) { 637 Expression visitSetIndex(cps_ir.SetIndex node) {
635 return new SetIndex(getVariableUse(node.object), 638 return new SetIndex(getVariableUse(node.object),
636 getVariableUse(node.index), 639 getVariableUse(node.index),
637 getVariableUse(node.value)); 640 getVariableUse(node.value));
638 } 641 }
639 } 642 }
640 643
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/ssa/types_propagation.dart ('k') | pkg/compiler/lib/src/tree_ir/tree_ir_nodes.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698