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

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

Issue 1476413003: Provide call counts for constructor calls, surface them as a vector IC. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: REBASE. Created 5 years 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/code-stubs-mips64.cc ('k') | src/objects.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 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 #include "src/interface-descriptors.h" 7 #include "src/interface-descriptors.h"
8 8
9 namespace v8 { 9 namespace v8 {
10 namespace internal { 10 namespace internal {
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after
181 } 181 }
182 182
183 183
184 void CallFunctionDescriptor::InitializePlatformSpecific( 184 void CallFunctionDescriptor::InitializePlatformSpecific(
185 CallInterfaceDescriptorData* data) { 185 CallInterfaceDescriptorData* data) {
186 Register registers[] = {a1}; 186 Register registers[] = {a1};
187 data->InitializePlatformSpecific(arraysize(registers), registers, NULL); 187 data->InitializePlatformSpecific(arraysize(registers), registers, NULL);
188 } 188 }
189 189
190 190
191 void CallConstructDescriptor::InitializePlatformSpecific( 191 void ConstructDescriptor::InitializePlatformSpecific(
192 CallInterfaceDescriptorData* data) { 192 CallInterfaceDescriptorData* data) {
193 // a0 : number of arguments 193 // a0 : number of arguments
194 // a1 : the function to call 194 // a1 : the function to call
195 // a2 : feedback vector 195 // a2 : feedback vector
196 // a3 : slot in feedback vector (Smi, for RecordCallTarget) 196 // a3 : slot in feedback vector (Smi, for RecordCallTarget)
197 // a4 : new target (for IsSuperConstructorCall)
198 // TODO(turbofan): So far we don't gather type feedback and hence skip the 197 // TODO(turbofan): So far we don't gather type feedback and hence skip the
199 // slot parameter, but ArrayConstructStub needs the vector to be undefined. 198 // slot parameter, but ArrayConstructStub needs the vector to be undefined.
200 Register registers[] = {a0, a1, a4, a2}; 199 Register registers[] = {a0, a1, a2, a3};
201 data->InitializePlatformSpecific(arraysize(registers), registers, NULL); 200 data->InitializePlatformSpecific(arraysize(registers), registers, NULL);
202 } 201 }
203 202
204 203
205 void CallTrampolineDescriptor::InitializePlatformSpecific( 204 void CallTrampolineDescriptor::InitializePlatformSpecific(
206 CallInterfaceDescriptorData* data) { 205 CallInterfaceDescriptorData* data) {
207 // a1: target 206 // a1: target
208 // a0: number of arguments 207 // a0: number of arguments
209 Register registers[] = {a1, a0}; 208 Register registers[] = {a1, a0};
210 data->InitializePlatformSpecific(arraysize(registers), registers); 209 data->InitializePlatformSpecific(arraysize(registers), registers);
(...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after
443 a2, // address of first argument (argv) 442 a2, // address of first argument (argv)
444 a1 // the runtime function to call 443 a1 // the runtime function to call
445 }; 444 };
446 data->InitializePlatformSpecific(arraysize(registers), registers); 445 data->InitializePlatformSpecific(arraysize(registers), registers);
447 } 446 }
448 447
449 } // namespace internal 448 } // namespace internal
450 } // namespace v8 449 } // namespace v8
451 450
452 #endif // V8_TARGET_ARCH_MIPS64 451 #endif // V8_TARGET_ARCH_MIPS64
OLDNEW
« no previous file with comments | « src/mips64/code-stubs-mips64.cc ('k') | src/objects.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698