| OLD | NEW |
| 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 part of dart2js.cps_ir.optimizers; | 5 part of dart2js.cps_ir.optimizers; |
| 6 | 6 |
| 7 /** | 7 /** |
| 8 * [ShrinkingReducer] applies shrinking reductions to CPS terms as described | 8 * [ShrinkingReducer] applies shrinking reductions to CPS terms as described |
| 9 * in 'Compiling with Continuations, Continued' by Andrew Kennedy. | 9 * in 'Compiling with Continuations, Continued' by Andrew Kennedy. |
| 10 */ | 10 */ |
| (...skipping 440 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 451 processSetField(SetField node) { | 451 processSetField(SetField node) { |
| 452 node.object.parent = node; | 452 node.object.parent = node; |
| 453 node.value.parent = node; | 453 node.value.parent = node; |
| 454 node.body.parent = node; | 454 node.body.parent = node; |
| 455 } | 455 } |
| 456 | 456 |
| 457 processGetField(GetField node) { | 457 processGetField(GetField node) { |
| 458 node.object.parent = node; | 458 node.object.parent = node; |
| 459 } | 459 } |
| 460 | 460 |
| 461 processCreateClosureClass(CreateClosureClass node) { | 461 processCreateInstance(CreateInstance node) { |
| 462 node.arguments.forEach((Reference ref) => ref.parent = node); | 462 node.arguments.forEach((Reference ref) => ref.parent = node); |
| 463 } | 463 } |
| 464 | 464 |
| 465 processCreateBox(CreateBox node) { | 465 processCreateBox(CreateBox node) { |
| 466 } | 466 } |
| 467 } | 467 } |
| 468 | 468 |
| 469 class _ReductionKind { | 469 class _ReductionKind { |
| 470 final String name; | 470 final String name; |
| 471 final int hashCode; | 471 final int hashCode; |
| (...skipping 29 matching lines...) Expand all Loading... |
| 501 } | 501 } |
| 502 | 502 |
| 503 String toString() => "$kind: $node"; | 503 String toString() => "$kind: $node"; |
| 504 } | 504 } |
| 505 | 505 |
| 506 /// A dummy class used solely to mark nodes as deleted once they are removed | 506 /// A dummy class used solely to mark nodes as deleted once they are removed |
| 507 /// from a term. | 507 /// from a term. |
| 508 class _DeletedNode extends Node { | 508 class _DeletedNode extends Node { |
| 509 accept(_) => null; | 509 accept(_) => null; |
| 510 } | 510 } |
| OLD | NEW |