| 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; |
| 6 |
| 5 class SsaCodeGeneratorTask extends CompilerTask { | 7 class SsaCodeGeneratorTask extends CompilerTask { |
| 6 | 8 |
| 7 final JavaScriptBackend backend; | 9 final JavaScriptBackend backend; |
| 8 | 10 |
| 9 SsaCodeGeneratorTask(JavaScriptBackend backend) | 11 SsaCodeGeneratorTask(JavaScriptBackend backend) |
| 10 : this.backend = backend, | 12 : this.backend = backend, |
| 11 super(backend.compiler); | 13 super(backend.compiler); |
| 12 String get name => 'SSA code generator'; | 14 String get name => 'SSA code generator'; |
| 13 NativeEmitter get nativeEmitter => backend.emitter.nativeEmitter; | 15 NativeEmitter get nativeEmitter => backend.emitter.nativeEmitter; |
| 14 | 16 |
| (...skipping 2975 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2990 if (leftType.canBeNull() && rightType.canBeNull()) { | 2992 if (leftType.canBeNull() && rightType.canBeNull()) { |
| 2991 if (left.isConstantNull() || right.isConstantNull() || | 2993 if (left.isConstantNull() || right.isConstantNull() || |
| 2992 (leftType.isPrimitive() && leftType == rightType)) { | 2994 (leftType.isPrimitive() && leftType == rightType)) { |
| 2993 return '=='; | 2995 return '=='; |
| 2994 } | 2996 } |
| 2995 return null; | 2997 return null; |
| 2996 } else { | 2998 } else { |
| 2997 return '==='; | 2999 return '==='; |
| 2998 } | 3000 } |
| 2999 } | 3001 } |
| OLD | NEW |