| OLD | NEW |
| 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, 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 #include "vm/globals.h" // Needed here to get TARGET_ARCH_IA32. | 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_IA32. |
| 6 #if defined(TARGET_ARCH_IA32) | 6 #if defined(TARGET_ARCH_IA32) |
| 7 | 7 |
| 8 #include "vm/intermediate_language.h" | 8 #include "vm/intermediate_language.h" |
| 9 | 9 |
| 10 #include "lib/error.h" | 10 #include "lib/error.h" |
| (...skipping 778 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 789 compiler->EmitDoubleCompareBool( | 789 compiler->EmitDoubleCompareBool( |
| 790 true_condition, left, right, locs.out().reg()); | 790 true_condition, left, right, locs.out().reg()); |
| 791 } | 791 } |
| 792 } | 792 } |
| 793 | 793 |
| 794 | 794 |
| 795 void EqualityCompareInstr::EmitNativeCode(FlowGraphCompiler* compiler) { | 795 void EqualityCompareInstr::EmitNativeCode(FlowGraphCompiler* compiler) { |
| 796 ASSERT((kind() == Token::kNE) || (kind() == Token::kEQ)); | 796 ASSERT((kind() == Token::kNE) || (kind() == Token::kEQ)); |
| 797 BranchInstr* kNoBranch = NULL; | 797 BranchInstr* kNoBranch = NULL; |
| 798 if (receiver_class_id() == kSmiCid) { | 798 if (receiver_class_id() == kSmiCid) { |
| 799 // Deoptimizes if both arguments not Smi. | |
| 800 EmitSmiComparisonOp(compiler, *locs(), kind(), kNoBranch); | 799 EmitSmiComparisonOp(compiler, *locs(), kind(), kNoBranch); |
| 801 return; | 800 return; |
| 802 } | 801 } |
| 803 if (receiver_class_id() == kMintCid) { | 802 if (receiver_class_id() == kMintCid) { |
| 804 EmitUnboxedMintEqualityOp(compiler, *locs(), kind(), kNoBranch); | 803 EmitUnboxedMintEqualityOp(compiler, *locs(), kind(), kNoBranch); |
| 805 return; | 804 return; |
| 806 } | 805 } |
| 807 if (receiver_class_id() == kDoubleCid) { | 806 if (receiver_class_id() == kDoubleCid) { |
| 808 EmitDoubleComparisonOp(compiler, *locs(), kind(), kNoBranch); | 807 EmitDoubleComparisonOp(compiler, *locs(), kind(), kNoBranch); |
| 809 return; | 808 return; |
| (...skipping 2684 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3494 PcDescriptors::kOther, | 3493 PcDescriptors::kOther, |
| 3495 locs()); | 3494 locs()); |
| 3496 __ Drop(2); // Discard type arguments and receiver. | 3495 __ Drop(2); // Discard type arguments and receiver. |
| 3497 } | 3496 } |
| 3498 | 3497 |
| 3499 } // namespace dart | 3498 } // namespace dart |
| 3500 | 3499 |
| 3501 #undef __ | 3500 #undef __ |
| 3502 | 3501 |
| 3503 #endif // defined TARGET_ARCH_IA32 | 3502 #endif // defined TARGET_ARCH_IA32 |
| OLD | NEW |