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

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

Issue 1727953004: [fullcodegen] Factor out EmitLoadStoreICSlot from archs. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 9 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/arm/full-codegen-arm.cc ('k') | src/full-codegen/full-codegen.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 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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_ARM64 5 #if V8_TARGET_ARCH_ARM64
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 4131 matching lines...) Expand 10 before | Expand all | Expand 10 after
4142 void FullCodeGenerator::ClearPendingMessage() { 4142 void FullCodeGenerator::ClearPendingMessage() {
4143 DCHECK(!result_register().is(x10)); 4143 DCHECK(!result_register().is(x10));
4144 ExternalReference pending_message_obj = 4144 ExternalReference pending_message_obj =
4145 ExternalReference::address_of_pending_message_obj(isolate()); 4145 ExternalReference::address_of_pending_message_obj(isolate());
4146 __ LoadRoot(x10, Heap::kTheHoleValueRootIndex); 4146 __ LoadRoot(x10, Heap::kTheHoleValueRootIndex);
4147 __ Mov(x13, pending_message_obj); 4147 __ Mov(x13, pending_message_obj);
4148 __ Str(x10, MemOperand(x13)); 4148 __ Str(x10, MemOperand(x13));
4149 } 4149 }
4150 4150
4151 4151
4152 void FullCodeGenerator::EmitLoadStoreICSlot(FeedbackVectorSlot slot) {
4153 DCHECK(!slot.IsInvalid());
4154 __ Mov(VectorStoreICTrampolineDescriptor::SlotRegister(), SmiFromSlot(slot));
4155 }
4156
4157 void FullCodeGenerator::DeferredCommands::EmitCommands() { 4152 void FullCodeGenerator::DeferredCommands::EmitCommands() {
4158 __ Pop(result_register(), x1); // Restore the accumulator and get the token. 4153 __ Pop(result_register(), x1); // Restore the accumulator and get the token.
4159 for (DeferredCommand cmd : commands_) { 4154 for (DeferredCommand cmd : commands_) {
4160 Label skip; 4155 Label skip;
4161 __ Cmp(x1, Operand(Smi::FromInt(cmd.token))); 4156 __ Cmp(x1, Operand(Smi::FromInt(cmd.token)));
4162 __ B(ne, &skip); 4157 __ B(ne, &skip);
4163 switch (cmd.command) { 4158 switch (cmd.command) {
4164 case kReturn: 4159 case kReturn:
4165 codegen_->EmitUnwindAndReturn(); 4160 codegen_->EmitUnwindAndReturn();
4166 break; 4161 break;
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
4267 } 4262 }
4268 4263
4269 return INTERRUPT; 4264 return INTERRUPT;
4270 } 4265 }
4271 4266
4272 4267
4273 } // namespace internal 4268 } // namespace internal
4274 } // namespace v8 4269 } // namespace v8
4275 4270
4276 #endif // V8_TARGET_ARCH_ARM64 4271 #endif // V8_TARGET_ARCH_ARM64
OLDNEW
« no previous file with comments | « src/full-codegen/arm/full-codegen-arm.cc ('k') | src/full-codegen/full-codegen.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698