Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1489)

Side by Side Diff: src/compiler/mips64/code-generator-mips64.cc

Issue 2799863002: [Atomics] use TFJ builtins for atomic add, sub, and, or, and xor (Closed)
Patch Set: [Atomics] use TFJ builtins for atomic add, sub, and, or, and xor Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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 #include "src/compilation-info.h" 6 #include "src/compilation-info.h"
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 1908 matching lines...) Expand 10 before | Expand all | Expand 10 after
1919 case kAtomicExchangeInt8: 1919 case kAtomicExchangeInt8:
1920 case kAtomicExchangeUint8: 1920 case kAtomicExchangeUint8:
1921 case kAtomicExchangeInt16: 1921 case kAtomicExchangeInt16:
1922 case kAtomicExchangeUint16: 1922 case kAtomicExchangeUint16:
1923 case kAtomicExchangeWord32: 1923 case kAtomicExchangeWord32:
1924 case kAtomicCompareExchangeInt8: 1924 case kAtomicCompareExchangeInt8:
1925 case kAtomicCompareExchangeUint8: 1925 case kAtomicCompareExchangeUint8:
1926 case kAtomicCompareExchangeInt16: 1926 case kAtomicCompareExchangeInt16:
1927 case kAtomicCompareExchangeUint16: 1927 case kAtomicCompareExchangeUint16:
1928 case kAtomicCompareExchangeWord32: 1928 case kAtomicCompareExchangeWord32:
1929 case kAtomicAddInt8:
1930 case kAtomicAddUint8:
1931 case kAtomicAddInt16:
1932 case kAtomicAddUint16:
1933 case kAtomicAddWord32:
1934 case kAtomicSubInt8:
1935 case kAtomicSubUint8:
1936 case kAtomicSubInt16:
1937 case kAtomicSubUint16:
1938 case kAtomicSubWord32:
1939 case kAtomicAndInt8:
1940 case kAtomicAndUint8:
1941 case kAtomicAndInt16:
1942 case kAtomicAndUint16:
1943 case kAtomicAndWord32:
1944 case kAtomicOrInt8:
1945 case kAtomicOrUint8:
1946 case kAtomicOrInt16:
1947 case kAtomicOrUint16:
1948 case kAtomicOrWord32:
1949 case kAtomicXorInt8:
1950 case kAtomicXorUint8:
1951 case kAtomicXorInt16:
1952 case kAtomicXorUint16:
1953 case kAtomicXorWord32:
1929 UNREACHABLE(); 1954 UNREACHABLE();
1930 break; 1955 break;
1931 case kMips64AssertEqual: 1956 case kMips64AssertEqual:
1932 __ Assert(eq, static_cast<BailoutReason>(i.InputOperand(2).immediate()), 1957 __ Assert(eq, static_cast<BailoutReason>(i.InputOperand(2).immediate()),
1933 i.InputRegister(0), Operand(i.InputRegister(1))); 1958 i.InputRegister(0), Operand(i.InputRegister(1)));
1934 break; 1959 break;
1935 case kMips64S128Zero: { 1960 case kMips64S128Zero: {
1936 CpuFeatureScope msa_scope(masm(), MIPS_SIMD); 1961 CpuFeatureScope msa_scope(masm(), MIPS_SIMD);
1937 __ xor_v(i.OutputSimd128Register(), i.OutputSimd128Register(), 1962 __ xor_v(i.OutputSimd128Register(), i.OutputSimd128Register(),
1938 i.OutputSimd128Register()); 1963 i.OutputSimd128Register());
(...skipping 824 matching lines...) Expand 10 before | Expand all | Expand 10 after
2763 padding_size -= v8::internal::Assembler::kInstrSize; 2788 padding_size -= v8::internal::Assembler::kInstrSize;
2764 } 2789 }
2765 } 2790 }
2766 } 2791 }
2767 2792
2768 #undef __ 2793 #undef __
2769 2794
2770 } // namespace compiler 2795 } // namespace compiler
2771 } // namespace internal 2796 } // namespace internal
2772 } // namespace v8 2797 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698