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

Unified Diff: src/compiler/instruction-scheduler.cc

Issue 2623633003: [Atomics] Make Atomics.exchange a builtin using TF (Closed)
Patch Set: remove headers Created 3 years, 10 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 side-by-side diff with in-line comments
Download patch
Index: src/compiler/instruction-scheduler.cc
diff --git a/src/compiler/instruction-scheduler.cc b/src/compiler/instruction-scheduler.cc
index 8ba287b1bcf1123af5c74df40ef24d473fcd26ba..8693cb729f0629a29b4117bb10b5bfb751fb23a3 100644
--- a/src/compiler/instruction-scheduler.cc
+++ b/src/compiler/instruction-scheduler.cc
@@ -326,6 +326,13 @@ int InstructionScheduler::GetInstructionFlags(const Instruction* instr) const {
case kAtomicStoreWord32:
return kHasSideEffect;
+ case kAtomicExchangeInt8:
+ case kAtomicExchangeUint8:
+ case kAtomicExchangeInt16:
+ case kAtomicExchangeUint16:
+ case kAtomicExchangeWord32:
+ return kIsLoadOperation | kHasSideEffect;
Jarin 2017/03/01 07:45:37 kIsLoadOperation is redundant here, kHasSideEffect
aseemgarg 2017/03/02 03:26:56 Done.
+
#define CASE(Name) case k##Name:
TARGET_ARCH_OPCODE_LIST(CASE)
#undef CASE

Powered by Google App Engine
This is Rietveld 408576698