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

Side by Side Diff: src/full-codegen/arm/full-codegen-arm.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, 10 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 | « no previous file | src/full-codegen/arm64/full-codegen-arm64.cc » ('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_ARM 5 #if V8_TARGET_ARCH_ARM
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 4079 matching lines...) Expand 10 before | Expand all | Expand 10 after
4090 void FullCodeGenerator::ClearPendingMessage() { 4090 void FullCodeGenerator::ClearPendingMessage() {
4091 DCHECK(!result_register().is(r1)); 4091 DCHECK(!result_register().is(r1));
4092 ExternalReference pending_message_obj = 4092 ExternalReference pending_message_obj =
4093 ExternalReference::address_of_pending_message_obj(isolate()); 4093 ExternalReference::address_of_pending_message_obj(isolate());
4094 __ LoadRoot(r1, Heap::kTheHoleValueRootIndex); 4094 __ LoadRoot(r1, Heap::kTheHoleValueRootIndex);
4095 __ mov(ip, Operand(pending_message_obj)); 4095 __ mov(ip, Operand(pending_message_obj));
4096 __ str(r1, MemOperand(ip)); 4096 __ str(r1, MemOperand(ip));
4097 } 4097 }
4098 4098
4099 4099
4100 void FullCodeGenerator::EmitLoadStoreICSlot(FeedbackVectorSlot slot) {
4101 DCHECK(!slot.IsInvalid());
4102 __ mov(VectorStoreICTrampolineDescriptor::SlotRegister(),
4103 Operand(SmiFromSlot(slot)));
4104 }
4105
4106 void FullCodeGenerator::DeferredCommands::EmitCommands() { 4100 void FullCodeGenerator::DeferredCommands::EmitCommands() {
4107 DCHECK(!result_register().is(r1)); 4101 DCHECK(!result_register().is(r1));
4108 __ Pop(result_register()); // Restore the accumulator. 4102 __ Pop(result_register()); // Restore the accumulator.
4109 __ Pop(r1); // Get the token. 4103 __ Pop(r1); // Get the token.
4110 for (DeferredCommand cmd : commands_) { 4104 for (DeferredCommand cmd : commands_) {
4111 Label skip; 4105 Label skip;
4112 __ cmp(r1, Operand(Smi::FromInt(cmd.token))); 4106 __ cmp(r1, Operand(Smi::FromInt(cmd.token)));
4113 __ b(ne, &skip); 4107 __ b(ne, &skip);
4114 switch (cmd.command) { 4108 switch (cmd.command) {
4115 case kReturn: 4109 case kReturn:
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after
4270 DCHECK(interrupt_address == 4264 DCHECK(interrupt_address ==
4271 isolate->builtins()->OsrAfterStackCheck()->entry()); 4265 isolate->builtins()->OsrAfterStackCheck()->entry());
4272 return OSR_AFTER_STACK_CHECK; 4266 return OSR_AFTER_STACK_CHECK;
4273 } 4267 }
4274 4268
4275 4269
4276 } // namespace internal 4270 } // namespace internal
4277 } // namespace v8 4271 } // namespace v8
4278 4272
4279 #endif // V8_TARGET_ARCH_ARM 4273 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « no previous file | src/full-codegen/arm64/full-codegen-arm64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698