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(); |
} |