Chromium Code Reviews| Index: src/full-codegen/x64/full-codegen-x64.cc |
| diff --git a/src/full-codegen/x64/full-codegen-x64.cc b/src/full-codegen/x64/full-codegen-x64.cc |
| index 6d3d1b435b1ea495dbd59c0aa2db422fa7b571c4..87ebfde99a46e03b3a2452641b3dc83438cab90a 100644 |
| --- a/src/full-codegen/x64/full-codegen-x64.cc |
| +++ b/src/full-codegen/x64/full-codegen-x64.cc |
| @@ -4669,6 +4669,20 @@ void FullCodeGenerator::EmitLoadStoreICSlot(FeedbackVectorSlot slot) { |
| } |
| +void FullCodeGenerator::EmitAtomicsLoad(CallRuntime* expr) { |
|
Jarin
2016/01/28 08:11:11
You can use FullCodeGenerator::EmitIntrinsicAsStub
|
| + ZoneList<Expression*>* args = expr->arguments(); |
| + DCHECK(args->length() == 2); |
| + |
| + VisitForStackValue(args->at(0)); // Load the object. |
| + VisitForAccumulatorValue(args->at(1)); // Load the index. |
| + __ Pop(rdx); |
| + |
| + AtomicsLoadStub stub(isolate()); |
| + __ CallStub(&stub); |
| + context()->Plug(rax); |
| +} |
| + |
| + |
| #undef __ |