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

Side by Side Diff: src/full-codegen/mips64/full-codegen-mips64.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/mips/full-codegen-mips.cc ('k') | src/full-codegen/ppc/full-codegen-ppc.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_MIPS64 5 #if V8_TARGET_ARCH_MIPS64
6 6
7 // Note on Mips implementation: 7 // Note on Mips implementation:
8 // 8 //
9 // The result_register() for mips is the 'v0' register, which is defined 9 // The result_register() for mips is the 'v0' register, which is defined
10 // by the ABI to contain function return values. However, the first 10 // by the ABI to contain function return values. However, the first
(...skipping 4100 matching lines...) Expand 10 before | Expand all | Expand 10 after
4111 void FullCodeGenerator::ClearPendingMessage() { 4111 void FullCodeGenerator::ClearPendingMessage() {
4112 DCHECK(!result_register().is(a1)); 4112 DCHECK(!result_register().is(a1));
4113 ExternalReference pending_message_obj = 4113 ExternalReference pending_message_obj =
4114 ExternalReference::address_of_pending_message_obj(isolate()); 4114 ExternalReference::address_of_pending_message_obj(isolate());
4115 __ LoadRoot(a1, Heap::kTheHoleValueRootIndex); 4115 __ LoadRoot(a1, Heap::kTheHoleValueRootIndex);
4116 __ li(at, Operand(pending_message_obj)); 4116 __ li(at, Operand(pending_message_obj));
4117 __ sd(a1, MemOperand(at)); 4117 __ sd(a1, MemOperand(at));
4118 } 4118 }
4119 4119
4120 4120
4121 void FullCodeGenerator::EmitLoadStoreICSlot(FeedbackVectorSlot slot) {
4122 DCHECK(!slot.IsInvalid());
4123 __ li(VectorStoreICTrampolineDescriptor::SlotRegister(),
4124 Operand(SmiFromSlot(slot)));
4125 }
4126
4127 void FullCodeGenerator::DeferredCommands::EmitCommands() { 4121 void FullCodeGenerator::DeferredCommands::EmitCommands() {
4128 __ Pop(result_register()); // Restore the accumulator. 4122 __ Pop(result_register()); // Restore the accumulator.
4129 __ Pop(a1); // Get the token. 4123 __ Pop(a1); // Get the token.
4130 for (DeferredCommand cmd : commands_) { 4124 for (DeferredCommand cmd : commands_) {
4131 Label skip; 4125 Label skip;
4132 __ li(at, Operand(Smi::FromInt(cmd.token))); 4126 __ li(at, Operand(Smi::FromInt(cmd.token)));
4133 __ Branch(&skip, ne, a1, Operand(at)); 4127 __ Branch(&skip, ne, a1, Operand(at));
4134 switch (cmd.command) { 4128 switch (cmd.command) {
4135 case kReturn: 4129 case kReturn:
4136 codegen_->EmitUnwindAndReturn(); 4130 codegen_->EmitUnwindAndReturn();
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
4231 reinterpret_cast<uint64_t>( 4225 reinterpret_cast<uint64_t>(
4232 isolate->builtins()->OsrAfterStackCheck()->entry())); 4226 isolate->builtins()->OsrAfterStackCheck()->entry()));
4233 return OSR_AFTER_STACK_CHECK; 4227 return OSR_AFTER_STACK_CHECK;
4234 } 4228 }
4235 4229
4236 4230
4237 } // namespace internal 4231 } // namespace internal
4238 } // namespace v8 4232 } // namespace v8
4239 4233
4240 #endif // V8_TARGET_ARCH_MIPS64 4234 #endif // V8_TARGET_ARCH_MIPS64
OLDNEW
« no previous file with comments | « src/full-codegen/mips/full-codegen-mips.cc ('k') | src/full-codegen/ppc/full-codegen-ppc.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698