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

Unified Diff: src/crankshaft/x64/lithium-codegen-x64.cc

Issue 1617503003: [Atomics] code stubs for atomic operations (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: call code stub from TF Created 4 years, 11 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/crankshaft/x64/lithium-codegen-x64.cc
diff --git a/src/crankshaft/x64/lithium-codegen-x64.cc b/src/crankshaft/x64/lithium-codegen-x64.cc
index 695c19777bd47ee1673d62f8ef7c0f315bcac34b..95b42d83bd1d9bfdc94e0068426d37bc70a0b14f 100644
--- a/src/crankshaft/x64/lithium-codegen-x64.cc
+++ b/src/crankshaft/x64/lithium-codegen-x64.cc
@@ -927,6 +927,16 @@ void LCodeGen::DoCallStub(LCallStub* instr) {
CallCode(stub.GetCode(), RelocInfo::CODE_TARGET, instr);
break;
}
+ case CodeStub::AtomicsLoad: {
Jarin 2016/01/28 08:11:12 You should not need this if you used HCallWithDesr
binji 2016/01/28 16:20:01 Done.
+ // TODO(binji): better way to do this?
+ AtomicsLoadDescriptor descriptor(isolate());
+ DCHECK(descriptor.GetRegisterParameterCount() == 2);
+ __ Pop(descriptor.GetRegisterParameter(1));
+ __ Pop(descriptor.GetRegisterParameter(0));
+ AtomicsLoadStub stub(isolate());
+ CallCode(stub.GetCode(), RelocInfo::CODE_TARGET, instr);
+ break;
+ }
default:
UNREACHABLE();
}

Powered by Google App Engine
This is Rietveld 408576698