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