| 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 3581 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3592 case NOT_EQUAL: return EQUAL; | 3592 case NOT_EQUAL: return EQUAL; |
| 3593 case LESS: return GREATER_EQUAL; | 3593 case LESS: return GREATER_EQUAL; |
| 3594 case LESS_EQUAL: return GREATER; | 3594 case LESS_EQUAL: return GREATER; |
| 3595 case GREATER: return LESS_EQUAL; | 3595 case GREATER: return LESS_EQUAL; |
| 3596 case GREATER_EQUAL: return LESS; | 3596 case GREATER_EQUAL: return LESS; |
| 3597 case BELOW: return ABOVE_EQUAL; | 3597 case BELOW: return ABOVE_EQUAL; |
| 3598 case BELOW_EQUAL: return ABOVE; | 3598 case BELOW_EQUAL: return ABOVE; |
| 3599 case ABOVE: return BELOW_EQUAL; | 3599 case ABOVE: return BELOW_EQUAL; |
| 3600 case ABOVE_EQUAL: return BELOW; | 3600 case ABOVE_EQUAL: return BELOW; |
| 3601 default: | 3601 default: |
| 3602 OS::Print("Error %d\n", condition); | |
| 3603 UNIMPLEMENTED(); | 3602 UNIMPLEMENTED(); |
| 3604 return EQUAL; | 3603 return EQUAL; |
| 3605 } | 3604 } |
| 3606 } | 3605 } |
| 3607 | 3606 |
| 3608 | 3607 |
| 3609 void ControlInstruction::EmitBranchOnValue(FlowGraphCompiler* compiler, | 3608 void ControlInstruction::EmitBranchOnValue(FlowGraphCompiler* compiler, |
| 3610 bool value) { | 3609 bool value) { |
| 3611 if (value && !compiler->CanFallThroughTo(true_successor())) { | 3610 if (value && !compiler->CanFallThroughTo(true_successor())) { |
| 3612 __ jmp(compiler->GetJumpLabel(true_successor())); | 3611 __ jmp(compiler->GetJumpLabel(true_successor())); |
| (...skipping 359 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3972 PcDescriptors::kOther, | 3971 PcDescriptors::kOther, |
| 3973 locs()); | 3972 locs()); |
| 3974 __ Drop(2); // Discard type arguments and receiver. | 3973 __ Drop(2); // Discard type arguments and receiver. |
| 3975 } | 3974 } |
| 3976 | 3975 |
| 3977 } // namespace dart | 3976 } // namespace dart |
| 3978 | 3977 |
| 3979 #undef __ | 3978 #undef __ |
| 3980 | 3979 |
| 3981 #endif // defined TARGET_ARCH_IA32 | 3980 #endif // defined TARGET_ARCH_IA32 |
| OLD | NEW |