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

Unified Diff: src/crankshaft/ia32/lithium-codegen-ia32.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/ia32/lithium-codegen-ia32.cc
diff --git a/src/crankshaft/ia32/lithium-codegen-ia32.cc b/src/crankshaft/ia32/lithium-codegen-ia32.cc
index c5d6534eddbae4e31ab20f5bd39649128b1689cb..57ca0eed72dcabed893195fe473698164cd3c52e 100644
--- a/src/crankshaft/ia32/lithium-codegen-ia32.cc
+++ b/src/crankshaft/ia32/lithium-codegen-ia32.cc
@@ -997,6 +997,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