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

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

Issue 2733953004: PPC/s390: [Atomics] Make Atomics.exchange a builtin using TF (Closed)
Patch Set: minor fix 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 2242 matching lines...) Expand 10 before | Expand all | Expand 10 after
2253 break; 2253 break;
2254 case kAtomicStoreWord8: 2254 case kAtomicStoreWord8:
2255 __ StoreByte(i.InputRegister(0), i.MemoryOperand(NULL, 1)); 2255 __ StoreByte(i.InputRegister(0), i.MemoryOperand(NULL, 1));
2256 break; 2256 break;
2257 case kAtomicStoreWord16: 2257 case kAtomicStoreWord16:
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:
2264 case kAtomicExchangeUint8:
2265 case kAtomicExchangeInt16:
2266 case kAtomicExchangeUint16:
2267 case kAtomicExchangeWord32:
2268 UNREACHABLE();
2269 break;
2263 default: 2270 default:
2264 UNREACHABLE(); 2271 UNREACHABLE();
2265 break; 2272 break;
2266 } 2273 }
2267 return kSuccess; 2274 return kSuccess;
2268 } // NOLINT(readability/fn_size) 2275 } // NOLINT(readability/fn_size)
2269 2276
2270 // Assembles branches after an instruction. 2277 // Assembles branches after an instruction.
2271 void CodeGenerator::AssembleArchBranch(Instruction* instr, BranchInfo* branch) { 2278 void CodeGenerator::AssembleArchBranch(Instruction* instr, BranchInfo* branch) {
2272 S390OperandConverter i(this, instr); 2279 S390OperandConverter i(this, instr);
(...skipping 525 matching lines...) Expand 10 before | Expand all | Expand 10 after
2798 padding_size -= 2; 2805 padding_size -= 2;
2799 } 2806 }
2800 } 2807 }
2801 } 2808 }
2802 2809
2803 #undef __ 2810 #undef __
2804 2811
2805 } // namespace compiler 2812 } // namespace compiler
2806 } // namespace internal 2813 } // namespace internal
2807 } // namespace v8 2814 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/ppc/instruction-selector-ppc.cc ('k') | src/compiler/s390/instruction-selector-s390.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698