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

Side by Side Diff: src/full-codegen/ppc/full-codegen-ppc.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
OLDNEW
1 // Copyright 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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_PPC 5 #if V8_TARGET_ARCH_PPC
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 4070 matching lines...) Expand 10 before | Expand all | Expand 10 after
4081 void FullCodeGenerator::ClearPendingMessage() { 4081 void FullCodeGenerator::ClearPendingMessage() {
4082 DCHECK(!result_register().is(r4)); 4082 DCHECK(!result_register().is(r4));
4083 ExternalReference pending_message_obj = 4083 ExternalReference pending_message_obj =
4084 ExternalReference::address_of_pending_message_obj(isolate()); 4084 ExternalReference::address_of_pending_message_obj(isolate());
4085 __ LoadRoot(r4, Heap::kTheHoleValueRootIndex); 4085 __ LoadRoot(r4, Heap::kTheHoleValueRootIndex);
4086 __ mov(ip, Operand(pending_message_obj)); 4086 __ mov(ip, Operand(pending_message_obj));
4087 __ StoreP(r4, MemOperand(ip)); 4087 __ StoreP(r4, MemOperand(ip));
4088 } 4088 }
4089 4089
4090 4090
4091 void FullCodeGenerator::EmitLoadStoreICSlot(FeedbackVectorSlot slot) {
4092 DCHECK(!slot.IsInvalid());
4093 __ mov(VectorStoreICTrampolineDescriptor::SlotRegister(),
4094 Operand(SmiFromSlot(slot)));
4095 }
4096
4097 void FullCodeGenerator::DeferredCommands::EmitCommands() { 4091 void FullCodeGenerator::DeferredCommands::EmitCommands() {
4098 DCHECK(!result_register().is(r4)); 4092 DCHECK(!result_register().is(r4));
4099 // Restore the accumulator (r3) and token (r4). 4093 // Restore the accumulator (r3) and token (r4).
4100 __ Pop(r4, result_register()); 4094 __ Pop(r4, result_register());
4101 for (DeferredCommand cmd : commands_) { 4095 for (DeferredCommand cmd : commands_) {
4102 Label skip; 4096 Label skip;
4103 __ CmpSmiLiteral(r4, Smi::FromInt(cmd.token), r0); 4097 __ CmpSmiLiteral(r4, Smi::FromInt(cmd.token), r0);
4104 __ bne(&skip); 4098 __ bne(&skip);
4105 switch (cmd.command) { 4099 switch (cmd.command) {
4106 case kReturn: 4100 case kReturn:
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
4189 return ON_STACK_REPLACEMENT; 4183 return ON_STACK_REPLACEMENT;
4190 } 4184 }
4191 4185
4192 DCHECK(interrupt_address == 4186 DCHECK(interrupt_address ==
4193 isolate->builtins()->OsrAfterStackCheck()->entry()); 4187 isolate->builtins()->OsrAfterStackCheck()->entry());
4194 return OSR_AFTER_STACK_CHECK; 4188 return OSR_AFTER_STACK_CHECK;
4195 } 4189 }
4196 } // namespace internal 4190 } // namespace internal
4197 } // namespace v8 4191 } // namespace v8
4198 #endif // V8_TARGET_ARCH_PPC 4192 #endif // V8_TARGET_ARCH_PPC
OLDNEW
« no previous file with comments | « src/full-codegen/mips64/full-codegen-mips64.cc ('k') | src/full-codegen/x64/full-codegen-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698