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

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

Issue 2649703002: [Atomics] Make Atomics.compareExchange a builtin using TF (Closed)
Patch Set: rebase and move cmpxchg to builtins-sharedarraybuffer-gen.cc Created 3 years, 9 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 1903 matching lines...) Expand 10 before | Expand all | Expand 10 after
1914 ASSEMBLE_ATOMIC_STORE_INTEGER(sh); 1914 ASSEMBLE_ATOMIC_STORE_INTEGER(sh);
1915 break; 1915 break;
1916 case kAtomicStoreWord32: 1916 case kAtomicStoreWord32:
1917 ASSEMBLE_ATOMIC_STORE_INTEGER(sw); 1917 ASSEMBLE_ATOMIC_STORE_INTEGER(sw);
1918 break; 1918 break;
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:
1925 case kAtomicCompareExchangeUint8:
1926 case kAtomicCompareExchangeInt16:
1927 case kAtomicCompareExchangeUint16:
1928 case kAtomicCompareExchangeWord32:
1924 UNREACHABLE(); 1929 UNREACHABLE();
1925 break; 1930 break;
1926 case kMips64AssertEqual: 1931 case kMips64AssertEqual:
1927 __ Assert(eq, static_cast<BailoutReason>(i.InputOperand(2).immediate()), 1932 __ Assert(eq, static_cast<BailoutReason>(i.InputOperand(2).immediate()),
1928 i.InputRegister(0), Operand(i.InputRegister(1))); 1933 i.InputRegister(0), Operand(i.InputRegister(1)));
1929 break; 1934 break;
1930 } 1935 }
1931 return kSuccess; 1936 return kSuccess;
1932 } // NOLINT(readability/fn_size) 1937 } // NOLINT(readability/fn_size)
1933 1938
(...skipping 749 matching lines...) Expand 10 before | Expand all | Expand 10 after
2683 padding_size -= v8::internal::Assembler::kInstrSize; 2688 padding_size -= v8::internal::Assembler::kInstrSize;
2684 } 2689 }
2685 } 2690 }
2686 } 2691 }
2687 2692
2688 #undef __ 2693 #undef __
2689 2694
2690 } // namespace compiler 2695 } // namespace compiler
2691 } // namespace internal 2696 } // namespace internal
2692 } // namespace v8 2697 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698