| 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 class Interceptors { | 5 class Interceptors { |
| 6 Compiler compiler; | 6 Compiler compiler; |
| 7 Interceptors(Compiler this.compiler); | 7 Interceptors(Compiler this.compiler); |
| 8 | 8 |
| 9 SourceString mapOperatorToMethodName(Operator op) { | 9 SourceString mapOperatorToMethodName(Operator op) { |
| 10 String name = op.source.stringValue; | 10 String name = op.source.stringValue; |
| (...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 90 } | 90 } |
| 91 | 91 |
| 92 Element getIndexInterceptor() { | 92 Element getIndexInterceptor() { |
| 93 return compiler.findHelper(const SourceString('index')); | 93 return compiler.findHelper(const SourceString('index')); |
| 94 } | 94 } |
| 95 | 95 |
| 96 Element getIndexAssignmentInterceptor() { | 96 Element getIndexAssignmentInterceptor() { |
| 97 return compiler.findHelper(const SourceString('indexSet')); | 97 return compiler.findHelper(const SourceString('indexSet')); |
| 98 } | 98 } |
| 99 | 99 |
| 100 Element getEqualsNullInterceptor() { | |
| 101 return compiler.findHelper(const SourceString('eqNull')); | |
| 102 } | |
| 103 | |
| 104 Element getExceptionUnwrapper() { | 100 Element getExceptionUnwrapper() { |
| 105 return compiler.findHelper(const SourceString('unwrapException')); | 101 return compiler.findHelper(const SourceString('unwrapException')); |
| 106 } | 102 } |
| 107 | 103 |
| 108 Element getClosureConverter() { | 104 Element getClosureConverter() { |
| 109 return compiler.findHelper(const SourceString('convertDartClosureToJS')); | 105 return compiler.findHelper(const SourceString('convertDartClosureToJS')); |
| 110 } | 106 } |
| 111 | 107 |
| 112 Element getTraceFromException() { | 108 Element getTraceFromException() { |
| 113 return compiler.findHelper(const SourceString('getTraceFromException')); | 109 return compiler.findHelper(const SourceString('getTraceFromException')); |
| (...skipping 3429 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3543 new HSubGraphBlockInformation(thenGraph), | 3539 new HSubGraphBlockInformation(thenGraph), |
| 3544 new HSubGraphBlockInformation(elseGraph)); | 3540 new HSubGraphBlockInformation(elseGraph)); |
| 3545 | 3541 |
| 3546 HBasicBlock conditionStartBlock = conditionGraph.start; | 3542 HBasicBlock conditionStartBlock = conditionGraph.start; |
| 3547 conditionGraph.start.setBlockFlow(info, joinBlock); | 3543 conditionGraph.start.setBlockFlow(info, joinBlock); |
| 3548 HIf branch = conditionGraph.end.last; | 3544 HIf branch = conditionGraph.end.last; |
| 3549 assert(branch is HIf); | 3545 assert(branch is HIf); |
| 3550 branch.blockInformation = conditionStartBlock.blockFlow; | 3546 branch.blockInformation = conditionStartBlock.blockFlow; |
| 3551 } | 3547 } |
| 3552 } | 3548 } |
| OLD | NEW |