OLD | NEW |
1 // Copyright 2015 the V8 project authors. All rights reserved. | 1 // Copyright 2015 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/compilation-info.h" | 7 #include "src/compilation-info.h" |
8 #include "src/compiler/code-generator-impl.h" | 8 #include "src/compiler/code-generator-impl.h" |
9 #include "src/compiler/gap-resolver.h" | 9 #include "src/compiler/gap-resolver.h" |
10 #include "src/compiler/node-matchers.h" | 10 #include "src/compiler/node-matchers.h" |
(...skipping 582 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
593 #define ASSEMBLE_FLOAT_COMPARE(cmp_rr_instr, cmp_rm_instr, load_instr) \ | 593 #define ASSEMBLE_FLOAT_COMPARE(cmp_rr_instr, cmp_rm_instr, load_instr) \ |
594 do { \ | 594 do { \ |
595 AddressingMode mode = AddressingModeField::decode(instr->opcode()); \ | 595 AddressingMode mode = AddressingModeField::decode(instr->opcode()); \ |
596 if (mode != kMode_None) { \ | 596 if (mode != kMode_None) { \ |
597 size_t first_index = 1; \ | 597 size_t first_index = 1; \ |
598 MemOperand operand = i.MemoryOperand(&mode, &first_index); \ | 598 MemOperand operand = i.MemoryOperand(&mode, &first_index); \ |
599 __ cmp_rm_instr(i.InputDoubleRegister(0), operand); \ | 599 __ cmp_rm_instr(i.InputDoubleRegister(0), operand); \ |
600 } else if (HasFPRegisterInput(instr, 1)) { \ | 600 } else if (HasFPRegisterInput(instr, 1)) { \ |
601 __ cmp_rr_instr(i.InputDoubleRegister(0), i.InputDoubleRegister(1)); \ | 601 __ cmp_rr_instr(i.InputDoubleRegister(0), i.InputDoubleRegister(1)); \ |
602 } else { \ | 602 } else { \ |
| 603 USE(HasFPStackSlotInput); \ |
603 DCHECK(HasFPStackSlotInput(instr, 1)); \ | 604 DCHECK(HasFPStackSlotInput(instr, 1)); \ |
604 MemOperand operand = i.InputStackSlot(1); \ | 605 MemOperand operand = i.InputStackSlot(1); \ |
605 if (operand.offset() >= 0) { \ | 606 if (operand.offset() >= 0) { \ |
606 __ cmp_rm_instr(i.InputDoubleRegister(0), operand); \ | 607 __ cmp_rm_instr(i.InputDoubleRegister(0), operand); \ |
607 } else { \ | 608 } else { \ |
608 __ load_instr(kScratchDoubleReg, operand); \ | 609 __ load_instr(kScratchDoubleReg, operand); \ |
609 __ cmp_rr_instr(i.InputDoubleRegister(0), kScratchDoubleReg); \ | 610 __ cmp_rr_instr(i.InputDoubleRegister(0), kScratchDoubleReg); \ |
610 } \ | 611 } \ |
611 } \ | 612 } \ |
612 } while (0) | 613 } while (0) |
(...skipping 2282 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2895 padding_size -= 2; | 2896 padding_size -= 2; |
2896 } | 2897 } |
2897 } | 2898 } |
2898 } | 2899 } |
2899 | 2900 |
2900 #undef __ | 2901 #undef __ |
2901 | 2902 |
2902 } // namespace compiler | 2903 } // namespace compiler |
2903 } // namespace internal | 2904 } // namespace internal |
2904 } // namespace v8 | 2905 } // namespace v8 |
OLD | NEW |