Chromium Code Reviews| 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/ast/scopes.h" | 7 #include "src/ast/scopes.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 1728 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1739 } else { | 1739 } else { |
| 1740 __ vxorpd(i.OutputDoubleRegister(), kScratchDoubleReg, | 1740 __ vxorpd(i.OutputDoubleRegister(), kScratchDoubleReg, |
| 1741 i.InputOperand(0)); | 1741 i.InputOperand(0)); |
| 1742 } | 1742 } |
| 1743 break; | 1743 break; |
| 1744 } | 1744 } |
| 1745 case kSSEFloat64SilenceNaN: | 1745 case kSSEFloat64SilenceNaN: |
| 1746 __ Xorpd(kScratchDoubleReg, kScratchDoubleReg); | 1746 __ Xorpd(kScratchDoubleReg, kScratchDoubleReg); |
| 1747 __ Subsd(i.InputDoubleRegister(0), kScratchDoubleReg); | 1747 __ Subsd(i.InputDoubleRegister(0), kScratchDoubleReg); |
| 1748 break; | 1748 break; |
| 1749 case kSSECreateInt32x4: { | |
|
bbudge
2016/08/22 19:09:52
Would this be the AVX implementation too? In that
gdeepti
2016/08/22 23:26:11
I was conflicted about calling these kX64 ops beca
| |
| 1750 CpuFeatureScope sse_scope(masm(), SSE4_1); | |
| 1751 XMMRegister dst = i.OutputSimd128Register(); | |
| 1752 __ movd(dst, i.InputRegister(0)); | |
| 1753 __ shufps(dst, dst, 0x0); | |
| 1754 break; | |
| 1755 } | |
| 1756 case kSSEInt32x4ExtractLane: { | |
| 1757 CpuFeatureScope sse_scope(masm(), SSE4_1); | |
| 1758 __ pextrd(i.OutputRegister(), i.InputSimd128Register(0), i.InputInt8(1)); | |
|
bbudge
2016/08/22 19:09:52
Rather than defining kSSE and kAVX values, I think
gdeepti
2016/08/22 23:26:11
Changed to kX64Int32x4ExtractLane, kX64CreateInt32
| |
| 1759 break; | |
| 1760 } | |
| 1749 case kX64Movsxbl: | 1761 case kX64Movsxbl: |
| 1750 ASSEMBLE_MOVX(movsxbl); | 1762 ASSEMBLE_MOVX(movsxbl); |
| 1751 __ AssertZeroExtended(i.OutputRegister()); | 1763 __ AssertZeroExtended(i.OutputRegister()); |
| 1752 break; | 1764 break; |
| 1753 case kX64Movzxbl: | 1765 case kX64Movzxbl: |
| 1754 ASSEMBLE_MOVX(movzxbl); | 1766 ASSEMBLE_MOVX(movzxbl); |
| 1755 __ AssertZeroExtended(i.OutputRegister()); | 1767 __ AssertZeroExtended(i.OutputRegister()); |
| 1756 break; | 1768 break; |
| 1757 case kX64Movsxbq: | 1769 case kX64Movsxbq: |
| 1758 ASSEMBLE_MOVX(movsxbq); | 1770 ASSEMBLE_MOVX(movsxbq); |
| (...skipping 847 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 2606 int padding_size = last_lazy_deopt_pc_ + space_needed - current_pc; | 2618 int padding_size = last_lazy_deopt_pc_ + space_needed - current_pc; |
| 2607 __ Nop(padding_size); | 2619 __ Nop(padding_size); |
| 2608 } | 2620 } |
| 2609 } | 2621 } |
| 2610 | 2622 |
| 2611 #undef __ | 2623 #undef __ |
| 2612 | 2624 |
| 2613 } // namespace compiler | 2625 } // namespace compiler |
| 2614 } // namespace internal | 2626 } // namespace internal |
| 2615 } // namespace v8 | 2627 } // namespace v8 |
| OLD | NEW |