| 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 777 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 788 compiler->EmitDoubleCompareBool( | 788 compiler->EmitDoubleCompareBool( |
| 789 true_condition, left, right, locs.out().reg()); | 789 true_condition, left, right, locs.out().reg()); |
| 790 } | 790 } |
| 791 } | 791 } |
| 792 | 792 |
| 793 | 793 |
| 794 void EqualityCompareInstr::EmitNativeCode(FlowGraphCompiler* compiler) { | 794 void EqualityCompareInstr::EmitNativeCode(FlowGraphCompiler* compiler) { |
| 795 ASSERT((kind() == Token::kNE) || (kind() == Token::kEQ)); | 795 ASSERT((kind() == Token::kNE) || (kind() == Token::kEQ)); |
| 796 BranchInstr* kNoBranch = NULL; | 796 BranchInstr* kNoBranch = NULL; |
| 797 if (receiver_class_id() == kSmiCid) { | 797 if (receiver_class_id() == kSmiCid) { |
| 798 // Deoptimizes if both arguments not Smi. | |
| 799 EmitSmiComparisonOp(compiler, *locs(), kind(), kNoBranch); | 798 EmitSmiComparisonOp(compiler, *locs(), kind(), kNoBranch); |
| 800 return; | 799 return; |
| 801 } | 800 } |
| 802 if (receiver_class_id() == kMintCid) { | 801 if (receiver_class_id() == kMintCid) { |
| 803 EmitUnboxedMintEqualityOp(compiler, *locs(), kind(), kNoBranch); | 802 EmitUnboxedMintEqualityOp(compiler, *locs(), kind(), kNoBranch); |
| 804 return; | 803 return; |
| 805 } | 804 } |
| 806 if (receiver_class_id() == kDoubleCid) { | 805 if (receiver_class_id() == kDoubleCid) { |
| 807 EmitDoubleComparisonOp(compiler, *locs(), kind(), kNoBranch); | 806 EmitDoubleComparisonOp(compiler, *locs(), kind(), kNoBranch); |
| 808 return; | 807 return; |
| (...skipping 2605 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3414 PcDescriptors::kOther, | 3413 PcDescriptors::kOther, |
| 3415 locs()); | 3414 locs()); |
| 3416 __ Drop(2); // Discard type arguments and receiver. | 3415 __ Drop(2); // Discard type arguments and receiver. |
| 3417 } | 3416 } |
| 3418 | 3417 |
| 3419 } // namespace dart | 3418 } // namespace dart |
| 3420 | 3419 |
| 3421 #undef __ | 3420 #undef __ |
| 3422 | 3421 |
| 3423 #endif // defined TARGET_ARCH_IA32 | 3422 #endif // defined TARGET_ARCH_IA32 |
| OLD | NEW |