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 1888 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1899 Operand operand = i.MemoryOperand(&index); | 1899 Operand operand = i.MemoryOperand(&index); |
1900 __ xchg_w(i.InputRegister(index), operand); | 1900 __ xchg_w(i.InputRegister(index), operand); |
1901 break; | 1901 break; |
1902 } | 1902 } |
1903 case kIA32Xchgl: { | 1903 case kIA32Xchgl: { |
1904 size_t index = 0; | 1904 size_t index = 0; |
1905 Operand operand = i.MemoryOperand(&index); | 1905 Operand operand = i.MemoryOperand(&index); |
1906 __ xchg(i.InputRegister(index), operand); | 1906 __ xchg(i.InputRegister(index), operand); |
1907 break; | 1907 break; |
1908 } | 1908 } |
1909 case kIA32Int32x4Splat: { | |
1910 XMMRegister dst = i.OutputSimd128Register(); | |
1911 __ movd(dst, i.InputOperand(0)); | |
1912 __ pshufd(dst, dst, 0x0); | |
1913 break; | |
1914 } | |
1915 case kIA32Int32x4ExtractLane: { | |
1916 __ Pextrd(i.OutputRegister(), i.InputSimd128Register(0), i.InputInt8(1)); | |
1917 break; | |
1918 } | |
1919 case kIA32Int32x4ReplaceLane: { | |
1920 CpuFeatureScope sse_scope(masm(), SSE4_1); | |
1921 __ pinsrd(i.OutputSimd128Register(), i.InputOperand(2), i.InputInt8(1)); | |
1922 break; | |
1923 } | |
1924 case kSSEInt32x4Add: { | |
1925 __ paddd(i.OutputSimd128Register(), i.InputOperand(1)); | |
1926 break; | |
1927 } | |
1928 case kSSEInt32x4Sub: { | |
1929 __ psubd(i.OutputSimd128Register(), i.InputOperand(1)); | |
1930 break; | |
1931 } | |
1932 case kAVXInt32x4Add: { | |
1933 CpuFeatureScope avx_scope(masm(), AVX); | |
1934 __ vpaddd(i.OutputSimd128Register(), i.InputSimd128Register(0), | |
1935 i.InputOperand(1)); | |
1936 break; | |
1937 } | |
1938 case kAVXInt32x4Sub: { | |
1939 CpuFeatureScope avx_scope(masm(), AVX); | |
1940 __ vpsubd(i.OutputSimd128Register(), i.InputSimd128Register(0), | |
1941 i.InputOperand(1)); | |
1942 break; | |
1943 } | |
1944 case kCheckedLoadInt8: | 1909 case kCheckedLoadInt8: |
1945 ASSEMBLE_CHECKED_LOAD_INTEGER(movsx_b); | 1910 ASSEMBLE_CHECKED_LOAD_INTEGER(movsx_b); |
1946 break; | 1911 break; |
1947 case kCheckedLoadUint8: | 1912 case kCheckedLoadUint8: |
1948 ASSEMBLE_CHECKED_LOAD_INTEGER(movzx_b); | 1913 ASSEMBLE_CHECKED_LOAD_INTEGER(movzx_b); |
1949 break; | 1914 break; |
1950 case kCheckedLoadInt16: | 1915 case kCheckedLoadInt16: |
1951 ASSEMBLE_CHECKED_LOAD_INTEGER(movsx_w); | 1916 ASSEMBLE_CHECKED_LOAD_INTEGER(movsx_w); |
1952 break; | 1917 break; |
1953 case kCheckedLoadUint16: | 1918 case kCheckedLoadUint16: |
(...skipping 747 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2701 int padding_size = last_lazy_deopt_pc_ + space_needed - current_pc; | 2666 int padding_size = last_lazy_deopt_pc_ + space_needed - current_pc; |
2702 __ Nop(padding_size); | 2667 __ Nop(padding_size); |
2703 } | 2668 } |
2704 } | 2669 } |
2705 | 2670 |
2706 #undef __ | 2671 #undef __ |
2707 | 2672 |
2708 } // namespace compiler | 2673 } // namespace compiler |
2709 } // namespace internal | 2674 } // namespace internal |
2710 } // namespace v8 | 2675 } // namespace v8 |
OLD | NEW |