| OLD | NEW |
| 1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "src/compiler/code-generator.h" | 5 #include "src/compiler/code-generator.h" |
| 6 | 6 |
| 7 #include "src/compiler/code-generator-impl.h" | 7 #include "src/compiler/code-generator-impl.h" |
| 8 #include "src/compiler/gap-resolver.h" | 8 #include "src/compiler/gap-resolver.h" |
| 9 #include "src/compiler/node-matchers.h" | 9 #include "src/compiler/node-matchers.h" |
| 10 #include "src/compiler/node-properties-inl.h" | 10 #include "src/compiler/node-properties-inl.h" |
| (...skipping 669 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 680 // Assembles boolean materializations after this instruction. | 680 // Assembles boolean materializations after this instruction. |
| 681 void CodeGenerator::AssembleArchBoolean(Instruction* instr, | 681 void CodeGenerator::AssembleArchBoolean(Instruction* instr, |
| 682 FlagsCondition condition) { | 682 FlagsCondition condition) { |
| 683 X64OperandConverter i(this, instr); | 683 X64OperandConverter i(this, instr); |
| 684 Label done; | 684 Label done; |
| 685 | 685 |
| 686 // Materialize a full 64-bit 1 or 0 value. The result register is always the | 686 // Materialize a full 64-bit 1 or 0 value. The result register is always the |
| 687 // last output of the instruction. | 687 // last output of the instruction. |
| 688 Label check; | 688 Label check; |
| 689 DCHECK_NE(0, instr->OutputCount()); | 689 DCHECK_NE(0, instr->OutputCount()); |
| 690 Register reg = i.OutputRegister(instr->OutputCount() - 1); | 690 Register reg = i.OutputRegister(static_cast<int>(instr->OutputCount() - 1)); |
| 691 Condition cc = no_condition; | 691 Condition cc = no_condition; |
| 692 switch (condition) { | 692 switch (condition) { |
| 693 case kUnorderedEqual: | 693 case kUnorderedEqual: |
| 694 __ j(parity_odd, &check, Label::kNear); | 694 __ j(parity_odd, &check, Label::kNear); |
| 695 __ movl(reg, Immediate(0)); | 695 __ movl(reg, Immediate(0)); |
| 696 __ jmp(&done, Label::kNear); | 696 __ jmp(&done, Label::kNear); |
| 697 // Fall through. | 697 // Fall through. |
| 698 case kEqual: | 698 case kEqual: |
| 699 cc = equal; | 699 cc = equal; |
| 700 break; | 700 break; |
| (...skipping 291 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 992 } | 992 } |
| 993 return *(code->instruction_start() + start_pc) == | 993 return *(code->instruction_start() + start_pc) == |
| 994 v8::internal::Assembler::kNopByte; | 994 v8::internal::Assembler::kNopByte; |
| 995 } | 995 } |
| 996 | 996 |
| 997 #endif | 997 #endif |
| 998 | 998 |
| 999 } // namespace internal | 999 } // namespace internal |
| 1000 } // namespace compiler | 1000 } // namespace compiler |
| 1001 } // namespace v8 | 1001 } // namespace v8 |
| OLD | NEW |