| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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 ssa; | 5 part of ssa; |
| 6 | 6 |
| 7 class Interceptors { | 7 class Interceptors { |
| 8 Compiler compiler; | 8 Compiler compiler; |
| 9 Interceptors(Compiler this.compiler); | 9 Interceptors(Compiler this.compiler); |
| 10 | 10 |
| (...skipping 425 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 436 if (cls == builder.backend.jsArrayClass) { | 436 if (cls == builder.backend.jsArrayClass) { |
| 437 type = HType.READABLE_ARRAY; | 437 type = HType.READABLE_ARRAY; |
| 438 } else if (cls == builder.backend.jsStringClass) { | 438 } else if (cls == builder.backend.jsStringClass) { |
| 439 type = HType.STRING; | 439 type = HType.STRING; |
| 440 } else if (cls == builder.backend.jsNumberClass) { | 440 } else if (cls == builder.backend.jsNumberClass) { |
| 441 type = HType.NUMBER; | 441 type = HType.NUMBER; |
| 442 } else if (cls == builder.backend.jsIntClass) { | 442 } else if (cls == builder.backend.jsIntClass) { |
| 443 type = HType.INTEGER; | 443 type = HType.INTEGER; |
| 444 } else if (cls == builder.backend.jsDoubleClass) { | 444 } else if (cls == builder.backend.jsDoubleClass) { |
| 445 type = HType.DOUBLE; | 445 type = HType.DOUBLE; |
| 446 } else if (cls == builder.backend.jsNullClass) { |
| 447 type = HType.NULL; |
| 448 } else if (cls == builder.backend.jsBoolClass) { |
| 449 type = HType.BOOLEAN; |
| 446 } | 450 } |
| 447 value.guaranteedType = type; | 451 value.guaranteedType = type; |
| 448 } | 452 } |
| 449 } | 453 } |
| 450 | 454 |
| 451 bool hasValueForDirectLocal(Element element) { | 455 bool hasValueForDirectLocal(Element element) { |
| 452 assert(element != null); | 456 assert(element != null); |
| 453 assert(isAccessedDirectly(element)); | 457 assert(isAccessedDirectly(element)); |
| 454 return directLocals[element] != null; | 458 return directLocals[element] != null; |
| 455 } | 459 } |
| (...skipping 4482 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4938 new HSubGraphBlockInformation(elseBranch.graph)); | 4942 new HSubGraphBlockInformation(elseBranch.graph)); |
| 4939 | 4943 |
| 4940 HBasicBlock conditionStartBlock = conditionBranch.block; | 4944 HBasicBlock conditionStartBlock = conditionBranch.block; |
| 4941 conditionStartBlock.setBlockFlow(info, joinBlock); | 4945 conditionStartBlock.setBlockFlow(info, joinBlock); |
| 4942 SubGraph conditionGraph = conditionBranch.graph; | 4946 SubGraph conditionGraph = conditionBranch.graph; |
| 4943 HIf branch = conditionGraph.end.last; | 4947 HIf branch = conditionGraph.end.last; |
| 4944 assert(branch is HIf); | 4948 assert(branch is HIf); |
| 4945 branch.blockInformation = conditionStartBlock.blockFlow; | 4949 branch.blockInformation = conditionStartBlock.blockFlow; |
| 4946 } | 4950 } |
| 4947 } | 4951 } |
| OLD | NEW |