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/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 1883 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1894 Operand operand = i.MemoryOperand(&index); | 1894 Operand operand = i.MemoryOperand(&index); |
1895 __ xchg_w(i.InputRegister(index), operand); | 1895 __ xchg_w(i.InputRegister(index), operand); |
1896 break; | 1896 break; |
1897 } | 1897 } |
1898 case kIA32Xchgl: { | 1898 case kIA32Xchgl: { |
1899 size_t index = 0; | 1899 size_t index = 0; |
1900 Operand operand = i.MemoryOperand(&index); | 1900 Operand operand = i.MemoryOperand(&index); |
1901 __ xchg(i.InputRegister(index), operand); | 1901 __ xchg(i.InputRegister(index), operand); |
1902 break; | 1902 break; |
1903 } | 1903 } |
1904 case kIA32Int32x4Create: { | |
1905 XMMRegister dst = i.OutputSimd128Register(); | |
1906 __ movd(dst, i.InputOperand(0)); | |
1907 __ shufps(dst, dst, 0x0); | |
1908 break; | |
1909 } | |
1910 case kIA32Int32x4ExtractLane: { | |
1911 CpuFeatureScope sse_scope(masm(), SSE4_1); | |
1912 __ Pextrd(i.OutputRegister(), i.InputSimd128Register(0), i.InputInt8(1)); | |
1913 break; | |
1914 } | |
1915 case kIA32Int32x4ReplaceLane: { | |
1916 CpuFeatureScope sse_scope(masm(), SSE4_1); | |
1917 __ Pinsrd(i.OutputSimd128Register(), i.InputOperand(2), i.InputInt8(1)); | |
1918 break; | |
1919 } | |
1920 case kIA32Int32x4Add: { | |
1921 __ paddd(i.OutputSimd128Register(), i.InputSimd128Register(1)); | |
bbudge
2017/02/15 16:07:31
If it's planned to use AVX, then we should make th
Jing
2017/02/16 05:11:17
To add AVX version ,we do have some code needed to
bbudge
2017/02/17 00:44:39
OK.
| |
1922 break; | |
1923 } | |
1924 case kIA32Int32x4Sub: { | |
1925 __ psubd(i.OutputSimd128Register(), i.InputSimd128Register(1)); | |
1926 break; | |
1927 } | |
1904 case kCheckedLoadInt8: | 1928 case kCheckedLoadInt8: |
1905 ASSEMBLE_CHECKED_LOAD_INTEGER(movsx_b); | 1929 ASSEMBLE_CHECKED_LOAD_INTEGER(movsx_b); |
1906 break; | 1930 break; |
1907 case kCheckedLoadUint8: | 1931 case kCheckedLoadUint8: |
1908 ASSEMBLE_CHECKED_LOAD_INTEGER(movzx_b); | 1932 ASSEMBLE_CHECKED_LOAD_INTEGER(movzx_b); |
1909 break; | 1933 break; |
1910 case kCheckedLoadInt16: | 1934 case kCheckedLoadInt16: |
1911 ASSEMBLE_CHECKED_LOAD_INTEGER(movsx_w); | 1935 ASSEMBLE_CHECKED_LOAD_INTEGER(movsx_w); |
1912 break; | 1936 break; |
1913 case kCheckedLoadUint16: | 1937 case kCheckedLoadUint16: |
(...skipping 747 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
2661 int padding_size = last_lazy_deopt_pc_ + space_needed - current_pc; | 2685 int padding_size = last_lazy_deopt_pc_ + space_needed - current_pc; |
2662 __ Nop(padding_size); | 2686 __ Nop(padding_size); |
2663 } | 2687 } |
2664 } | 2688 } |
2665 | 2689 |
2666 #undef __ | 2690 #undef __ |
2667 | 2691 |
2668 } // namespace compiler | 2692 } // namespace compiler |
2669 } // namespace internal | 2693 } // namespace internal |
2670 } // namespace v8 | 2694 } // namespace v8 |
OLD | NEW |