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

Side by Side Diff: src/full-codegen/x64/full-codegen-x64.cc

Issue 1617503003: [Atomics] code stubs for atomic operations (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: 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 unified diff | Download patch
« no previous file with comments | « src/full-codegen/full-codegen.h ('k') | src/interface-descriptors.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #if V8_TARGET_ARCH_X64 5 #if V8_TARGET_ARCH_X64
6 6
7 #include "src/ast/scopes.h" 7 #include "src/ast/scopes.h"
8 #include "src/code-factory.h" 8 #include "src/code-factory.h"
9 #include "src/code-stubs.h" 9 #include "src/code-stubs.h"
10 #include "src/codegen.h" 10 #include "src/codegen.h"
(...skipping 4651 matching lines...) Expand 10 before | Expand all | Expand 10 after
4662 __ Store(pending_message_obj, rdx); 4662 __ Store(pending_message_obj, rdx);
4663 } 4663 }
4664 4664
4665 4665
4666 void FullCodeGenerator::EmitLoadStoreICSlot(FeedbackVectorSlot slot) { 4666 void FullCodeGenerator::EmitLoadStoreICSlot(FeedbackVectorSlot slot) {
4667 DCHECK(!slot.IsInvalid()); 4667 DCHECK(!slot.IsInvalid());
4668 __ Move(VectorStoreICTrampolineDescriptor::SlotRegister(), SmiFromSlot(slot)); 4668 __ Move(VectorStoreICTrampolineDescriptor::SlotRegister(), SmiFromSlot(slot));
4669 } 4669 }
4670 4670
4671 4671
4672 void FullCodeGenerator::EmitAtomicsLoad(CallRuntime* expr) {
Jarin 2016/01/28 08:11:11 You can use FullCodeGenerator::EmitIntrinsicAsStub
4673 ZoneList<Expression*>* args = expr->arguments();
4674 DCHECK(args->length() == 2);
4675
4676 VisitForStackValue(args->at(0)); // Load the object.
4677 VisitForAccumulatorValue(args->at(1)); // Load the index.
4678 __ Pop(rdx);
4679
4680 AtomicsLoadStub stub(isolate());
4681 __ CallStub(&stub);
4682 context()->Plug(rax);
4683 }
4684
4685
4672 #undef __ 4686 #undef __
4673 4687
4674 4688
4675 static const byte kJnsInstruction = 0x79; 4689 static const byte kJnsInstruction = 0x79;
4676 static const byte kNopByteOne = 0x66; 4690 static const byte kNopByteOne = 0x66;
4677 static const byte kNopByteTwo = 0x90; 4691 static const byte kNopByteTwo = 0x90;
4678 #ifdef DEBUG 4692 #ifdef DEBUG
4679 static const byte kCallInstruction = 0xe8; 4693 static const byte kCallInstruction = 0xe8;
4680 #endif 4694 #endif
4681 4695
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
4746 Assembler::target_address_at(call_target_address, 4760 Assembler::target_address_at(call_target_address,
4747 unoptimized_code)); 4761 unoptimized_code));
4748 return OSR_AFTER_STACK_CHECK; 4762 return OSR_AFTER_STACK_CHECK;
4749 } 4763 }
4750 4764
4751 4765
4752 } // namespace internal 4766 } // namespace internal
4753 } // namespace v8 4767 } // namespace v8
4754 4768
4755 #endif // V8_TARGET_ARCH_X64 4769 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/full-codegen/full-codegen.h ('k') | src/interface-descriptors.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698