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

Side by Side Diff: src/arm64/interface-descriptors-arm64.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/arm64/code-stubs-arm64.cc ('k') | src/ast/ast.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 #include "src/arm64/interface-descriptors-arm64.h" 5 #include "src/arm64/interface-descriptors-arm64.h"
6 6
7 #if V8_TARGET_ARCH_ARM64 7 #if V8_TARGET_ARCH_ARM64
8 8
9 #include "src/interface-descriptors.h" 9 #include "src/interface-descriptors.h"
10 10
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after
202 } 202 }
203 203
204 204
205 void CallFunctionWithFeedbackAndVectorDescriptor::InitializePlatformSpecific( 205 void CallFunctionWithFeedbackAndVectorDescriptor::InitializePlatformSpecific(
206 CallInterfaceDescriptorData* data) { 206 CallInterfaceDescriptorData* data) {
207 Register registers[] = {x1, x3, x2}; 207 Register registers[] = {x1, x3, x2};
208 data->InitializePlatformSpecific(arraysize(registers), registers); 208 data->InitializePlatformSpecific(arraysize(registers), registers);
209 } 209 }
210 210
211 211
212 void CallConstructDescriptor::InitializePlatformSpecific( 212 void ConstructDescriptor::InitializePlatformSpecific(
213 CallInterfaceDescriptorData* data) { 213 CallInterfaceDescriptorData* data) {
214 // x0 : number of arguments 214 // x0 : number of arguments
215 // x1 : the function to call 215 // x1 : the function to call
216 // x2 : feedback vector 216 // x2 : feedback vector
217 // x3 : slot in feedback vector (Smi, for RecordCallTarget) 217 // x3 : slot in feedback vector (Smi, for RecordCallTarget)
218 // x4 : new target (for IsSuperConstructorCall)
219 // TODO(turbofan): So far we don't gather type feedback and hence skip the 218 // TODO(turbofan): So far we don't gather type feedback and hence skip the
220 // slot parameter, but ArrayConstructStub needs the vector to be undefined. 219 // slot parameter, but ArrayConstructStub needs the vector to be undefined.
221 Register registers[] = {x0, x1, x4, x2}; 220 Register registers[] = {x0, x1, x3, x3};
222 data->InitializePlatformSpecific(arraysize(registers), registers); 221 data->InitializePlatformSpecific(arraysize(registers), registers);
223 } 222 }
224 223
225 224
226 void CallTrampolineDescriptor::InitializePlatformSpecific( 225 void CallTrampolineDescriptor::InitializePlatformSpecific(
227 CallInterfaceDescriptorData* data) { 226 CallInterfaceDescriptorData* data) {
228 // x1: target 227 // x1: target
229 // x0: number of arguments 228 // x0: number of arguments
230 Register registers[] = {x1, x0}; 229 Register registers[] = {x1, x0};
231 data->InitializePlatformSpecific(arraysize(registers), registers); 230 data->InitializePlatformSpecific(arraysize(registers), registers);
(...skipping 270 matching lines...) Expand 10 before | Expand all | Expand 10 after
502 x1 // the runtime function to call 501 x1 // the runtime function to call
503 }; 502 };
504 data->InitializePlatformSpecific(arraysize(registers), registers); 503 data->InitializePlatformSpecific(arraysize(registers), registers);
505 } 504 }
506 505
507 506
508 } // namespace internal 507 } // namespace internal
509 } // namespace v8 508 } // namespace v8
510 509
511 #endif // V8_TARGET_ARCH_ARM64 510 #endif // V8_TARGET_ARCH_ARM64
OLDNEW
« no previous file with comments | « src/arm64/code-stubs-arm64.cc ('k') | src/ast/ast.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698