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/osr.h" | 10 #include "src/compiler/osr.h" |
(...skipping 526 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
537 case kX87Ror: | 537 case kX87Ror: |
538 if (HasImmediateInput(instr, 1)) { | 538 if (HasImmediateInput(instr, 1)) { |
539 __ ror(i.OutputOperand(), i.InputInt5(1)); | 539 __ ror(i.OutputOperand(), i.InputInt5(1)); |
540 } else { | 540 } else { |
541 __ ror_cl(i.OutputOperand()); | 541 __ ror_cl(i.OutputOperand()); |
542 } | 542 } |
543 break; | 543 break; |
544 case kX87Lzcnt: | 544 case kX87Lzcnt: |
545 __ Lzcnt(i.OutputRegister(), i.InputOperand(0)); | 545 __ Lzcnt(i.OutputRegister(), i.InputOperand(0)); |
546 break; | 546 break; |
| 547 case kX87Popcnt: |
| 548 __ Popcnt(i.OutputRegister(), i.InputOperand(0)); |
| 549 break; |
547 case kX87LoadFloat64Constant: { | 550 case kX87LoadFloat64Constant: { |
548 InstructionOperand* source = instr->InputAt(0); | 551 InstructionOperand* source = instr->InputAt(0); |
549 InstructionOperand* destination = instr->Output(); | 552 InstructionOperand* destination = instr->Output(); |
550 DCHECK(source->IsConstant()); | 553 DCHECK(source->IsConstant()); |
551 X87OperandConverter g(this, NULL); | 554 X87OperandConverter g(this, NULL); |
552 Constant src_constant = g.ToConstant(source); | 555 Constant src_constant = g.ToConstant(source); |
553 | 556 |
554 DCHECK_EQ(Constant::kFloat64, src_constant.type()); | 557 DCHECK_EQ(Constant::kFloat64, src_constant.type()); |
555 uint64_t src = bit_cast<uint64_t>(src_constant.ToFloat64()); | 558 uint64_t src = bit_cast<uint64_t>(src_constant.ToFloat64()); |
556 uint32_t lower = static_cast<uint32_t>(src); | 559 uint32_t lower = static_cast<uint32_t>(src); |
(...skipping 1331 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1888 int padding_size = last_lazy_deopt_pc_ + space_needed - current_pc; | 1891 int padding_size = last_lazy_deopt_pc_ + space_needed - current_pc; |
1889 __ Nop(padding_size); | 1892 __ Nop(padding_size); |
1890 } | 1893 } |
1891 } | 1894 } |
1892 | 1895 |
1893 #undef __ | 1896 #undef __ |
1894 | 1897 |
1895 } // namespace compiler | 1898 } // namespace compiler |
1896 } // namespace internal | 1899 } // namespace internal |
1897 } // namespace v8 | 1900 } // namespace v8 |
OLD | NEW |