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

Side by Side Diff: src/mips64/interface-descriptors-mips64.cc

Issue 882683002: MIPS: Use a trampoline stub to load the type feedback vector for CallICs. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 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/mips64/full-codegen-mips64.cc ('k') | no next file » | 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 #include "src/v8.h" 5 #include "src/v8.h"
6 6
7 #if V8_TARGET_ARCH_MIPS64 7 #if V8_TARGET_ARCH_MIPS64
8 8
9 #include "src/interface-descriptors.h" 9 #include "src/interface-descriptors.h"
10 10
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 void CallFunctionWithFeedbackDescriptor::Initialize( 112 void CallFunctionWithFeedbackDescriptor::Initialize(
113 CallInterfaceDescriptorData* data) { 113 CallInterfaceDescriptorData* data) {
114 Register registers[] = {cp, a1, a3}; 114 Register registers[] = {cp, a1, a3};
115 Representation representations[] = {Representation::Tagged(), 115 Representation representations[] = {Representation::Tagged(),
116 Representation::Tagged(), 116 Representation::Tagged(),
117 Representation::Smi()}; 117 Representation::Smi()};
118 data->Initialize(arraysize(registers), registers, representations); 118 data->Initialize(arraysize(registers), registers, representations);
119 } 119 }
120 120
121 121
122 void CallFunctionWithFeedbackAndVectorDescriptor::Initialize(
123 CallInterfaceDescriptorData* data) {
124 Register registers[] = {cp, a1, a3, a2};
125 Representation representations[] = {
126 Representation::Tagged(), Representation::Tagged(), Representation::Smi(),
127 Representation::Tagged()};
128 data->Initialize(arraysize(registers), registers, representations);
129 }
130
131
122 void CallFunctionDescriptor::Initialize(CallInterfaceDescriptorData* data) { 132 void CallFunctionDescriptor::Initialize(CallInterfaceDescriptorData* data) {
123 Register registers[] = {cp, a1}; 133 Register registers[] = {cp, a1};
124 data->Initialize(arraysize(registers), registers, NULL); 134 data->Initialize(arraysize(registers), registers, NULL);
125 } 135 }
126 136
127 137
128 void CallConstructDescriptor::Initialize(CallInterfaceDescriptorData* data) { 138 void CallConstructDescriptor::Initialize(CallInterfaceDescriptorData* data) {
129 // a0 : number of arguments 139 // a0 : number of arguments
130 // a1 : the function to call 140 // a1 : the function to call
131 // a2 : feedback vector 141 // a2 : feedback vector
(...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after
327 Representation::Tagged(), // call_data 337 Representation::Tagged(), // call_data
328 Representation::Tagged(), // holder 338 Representation::Tagged(), // holder
329 Representation::External(), // api_function_address 339 Representation::External(), // api_function_address
330 }; 340 };
331 data->Initialize(arraysize(registers), registers, representations); 341 data->Initialize(arraysize(registers), registers, representations);
332 } 342 }
333 } 343 }
334 } // namespace v8::internal 344 } // namespace v8::internal
335 345
336 #endif // V8_TARGET_ARCH_MIPS64 346 #endif // V8_TARGET_ARCH_MIPS64
OLDNEW
« no previous file with comments | « src/mips64/full-codegen-mips64.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698