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

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

Issue 2649703002: [Atomics] Make Atomics.compareExchange a builtin using TF (Closed)
Patch Set: PPC and S390 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 2015 the V8 project authors. All rights reserved. 1 // Copyright 2015 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 2247 matching lines...) Expand 10 before | Expand all | Expand 10 after
2258 __ StoreHalfWord(i.InputRegister(0), i.MemoryOperand(NULL, 1)); 2258 __ StoreHalfWord(i.InputRegister(0), i.MemoryOperand(NULL, 1));
2259 break; 2259 break;
2260 case kAtomicStoreWord32: 2260 case kAtomicStoreWord32:
2261 __ StoreW(i.InputRegister(0), i.MemoryOperand(NULL, 1)); 2261 __ StoreW(i.InputRegister(0), i.MemoryOperand(NULL, 1));
2262 break; 2262 break;
2263 case kAtomicExchangeInt8: 2263 case kAtomicExchangeInt8:
2264 case kAtomicExchangeUint8: 2264 case kAtomicExchangeUint8:
2265 case kAtomicExchangeInt16: 2265 case kAtomicExchangeInt16:
2266 case kAtomicExchangeUint16: 2266 case kAtomicExchangeUint16:
2267 case kAtomicExchangeWord32: 2267 case kAtomicExchangeWord32:
2268 case kAtomicCompareExchangeInt8:
2269 case kAtomicCompareExchangeUint8:
2270 case kAtomicCompareExchangeInt16:
2271 case kAtomicCompareExchangeUint16:
2272 case kAtomicCompareExchangeWord32:
2268 UNREACHABLE(); 2273 UNREACHABLE();
2269 break; 2274 break;
2270 default: 2275 default:
2271 UNREACHABLE(); 2276 UNREACHABLE();
2272 break; 2277 break;
2273 } 2278 }
2274 return kSuccess; 2279 return kSuccess;
2275 } // NOLINT(readability/fn_size) 2280 } // NOLINT(readability/fn_size)
2276 2281
2277 // Assembles branches after an instruction. 2282 // Assembles branches after an instruction.
(...skipping 527 matching lines...) Expand 10 before | Expand all | Expand 10 after
2805 padding_size -= 2; 2810 padding_size -= 2;
2806 } 2811 }
2807 } 2812 }
2808 } 2813 }
2809 2814
2810 #undef __ 2815 #undef __
2811 2816
2812 } // namespace compiler 2817 } // namespace compiler
2813 } // namespace internal 2818 } // namespace internal
2814 } // namespace v8 2819 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698