| 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 #include "vm/globals.h" // Needed here to get TARGET_ARCH_XXX. | 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_XXX. |
| 6 | 6 |
| 7 #include "vm/flow_graph_compiler.h" | 7 #include "vm/flow_graph_compiler.h" |
| 8 | 8 |
| 9 #include "vm/dart_entry.h" | 9 #include "vm/dart_entry.h" |
| 10 #include "vm/debugger.h" | 10 #include "vm/debugger.h" |
| (...skipping 456 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 467 } | 467 } |
| 468 } | 468 } |
| 469 | 469 |
| 470 | 470 |
| 471 void FlowGraphCompiler::EmitDoubleCompareBranch(Condition true_condition, | 471 void FlowGraphCompiler::EmitDoubleCompareBranch(Condition true_condition, |
| 472 XmmRegister left, | 472 XmmRegister left, |
| 473 XmmRegister right, | 473 XmmRegister right, |
| 474 BranchInstr* branch) { | 474 BranchInstr* branch) { |
| 475 ASSERT(branch != NULL); | 475 ASSERT(branch != NULL); |
| 476 assembler()->comisd(left, right); | 476 assembler()->comisd(left, right); |
| 477 BlockEntryInstr* nan_result = branch->is_negated() ? | 477 BlockEntryInstr* nan_result = (true_condition == NOT_EQUAL) ? |
| 478 branch->true_successor() : branch->false_successor(); | 478 branch->true_successor() : branch->false_successor(); |
| 479 assembler()->j(PARITY_EVEN, GetBlockLabel(nan_result)); | 479 assembler()->j(PARITY_EVEN, GetBlockLabel(nan_result)); |
| 480 branch->EmitBranchOnCondition(this, true_condition); | 480 branch->EmitBranchOnCondition(this, true_condition); |
| 481 } | 481 } |
| 482 | 482 |
| 483 | 483 |
| 484 | 484 |
| 485 void FlowGraphCompiler::EmitDoubleCompareBool(Condition true_condition, | 485 void FlowGraphCompiler::EmitDoubleCompareBool(Condition true_condition, |
| 486 XmmRegister left, | 486 XmmRegister left, |
| 487 XmmRegister right, | 487 XmmRegister right, |
| (...skipping 303 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 791 return; | 791 return; |
| 792 } | 792 } |
| 793 } | 793 } |
| 794 | 794 |
| 795 // This move is not blocked. | 795 // This move is not blocked. |
| 796 EmitMove(index); | 796 EmitMove(index); |
| 797 } | 797 } |
| 798 | 798 |
| 799 | 799 |
| 800 } // namespace dart | 800 } // namespace dart |
| OLD | NEW |