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

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

Issue 2649703002: [Atomics] Make Atomics.compareExchange a builtin using TF (Closed)
Patch Set: use TF_BUILTIN macro 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 2374 matching lines...) Expand 10 before | Expand all | Expand 10 after
2385 Register value = i.InputRegister(2); 2385 Register value = i.InputRegister(2);
2386 Register output = i.OutputRegister(); 2386 Register output = i.OutputRegister();
2387 Label do_cs; 2387 Label do_cs;
2388 __ lay(r1, MemOperand(base, index)); 2388 __ lay(r1, MemOperand(base, index));
2389 __ LoadlW(output, MemOperand(r1)); 2389 __ LoadlW(output, MemOperand(r1));
2390 __ bind(&do_cs); 2390 __ bind(&do_cs);
2391 __ cs(output, value, MemOperand(r1)); 2391 __ cs(output, value, MemOperand(r1));
2392 __ bne(&do_cs, Label::kNear); 2392 __ bne(&do_cs, Label::kNear);
2393 break; 2393 break;
2394 } 2394 }
2395 case kAtomicCompareExchangeInt8:
2396 case kAtomicCompareExchangeUint8:
2397 case kAtomicCompareExchangeInt16:
2398 case kAtomicCompareExchangeUint16:
2399 case kAtomicCompareExchangeWord32: {
2400 UNREACHABLE();
2401 break;
2402 }
2395 default: 2403 default:
2396 UNREACHABLE(); 2404 UNREACHABLE();
2397 break; 2405 break;
2398 } 2406 }
2399 return kSuccess; 2407 return kSuccess;
2400 } // NOLINT(readability/fn_size) 2408 } // NOLINT(readability/fn_size)
2401 2409
2402 // Assembles branches after an instruction. 2410 // Assembles branches after an instruction.
2403 void CodeGenerator::AssembleArchBranch(Instruction* instr, BranchInfo* branch) { 2411 void CodeGenerator::AssembleArchBranch(Instruction* instr, BranchInfo* branch) {
2404 S390OperandConverter i(this, instr); 2412 S390OperandConverter i(this, instr);
(...skipping 525 matching lines...) Expand 10 before | Expand all | Expand 10 after
2930 padding_size -= 2; 2938 padding_size -= 2;
2931 } 2939 }
2932 } 2940 }
2933 } 2941 }
2934 2942
2935 #undef __ 2943 #undef __
2936 2944
2937 } // namespace compiler 2945 } // namespace compiler
2938 } // namespace internal 2946 } // namespace internal
2939 } // namespace v8 2947 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698