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