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

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

Issue 1489413006: Revert of 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: 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/x64/code-stubs-x64.cc ('k') | test/cctest/interpreter/test-bytecode-generator.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_X64 5 #if V8_TARGET_ARCH_X64
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 171 matching lines...) Expand 10 before | Expand all | Expand 10 after
182 } 182 }
183 183
184 184
185 void CallFunctionWithFeedbackAndVectorDescriptor::InitializePlatformSpecific( 185 void CallFunctionWithFeedbackAndVectorDescriptor::InitializePlatformSpecific(
186 CallInterfaceDescriptorData* data) { 186 CallInterfaceDescriptorData* data) {
187 Register registers[] = {rdi, rdx, rbx}; 187 Register registers[] = {rdi, rdx, rbx};
188 data->InitializePlatformSpecific(arraysize(registers), registers); 188 data->InitializePlatformSpecific(arraysize(registers), registers);
189 } 189 }
190 190
191 191
192 void ConstructDescriptor::InitializePlatformSpecific( 192 void CallConstructDescriptor::InitializePlatformSpecific(
193 CallInterfaceDescriptorData* data) { 193 CallInterfaceDescriptorData* data) {
194 // rax : number of arguments 194 // rax : number of arguments
195 // rbx : feedback vector 195 // rbx : feedback vector
196 // rdx : slot in feedback vector (Smi, for RecordCallTarget) 196 // rdx : slot in feedback vector (Smi, for RecordCallTarget)
197 // rdi : constructor function 197 // rdi : constructor function
198 // TODO(turbofan): So far we don't gather type feedback and hence skip the 198 // 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. 199 // slot parameter, but ArrayConstructStub needs the vector to be undefined.
200 Register registers[] = {rax, rbx, rdx, rdi}; 200 Register registers[] = {rax, rdi, rbx};
201 data->InitializePlatformSpecific(arraysize(registers), registers); 201 data->InitializePlatformSpecific(arraysize(registers), registers);
202 } 202 }
203 203
204 204
205 void CallTrampolineDescriptor::InitializePlatformSpecific( 205 void CallTrampolineDescriptor::InitializePlatformSpecific(
206 CallInterfaceDescriptorData* data) { 206 CallInterfaceDescriptorData* data) {
207 // rax : number of arguments 207 // rax : number of arguments
208 // rdi : the target to call 208 // rdi : the target to call
209 Register registers[] = {rdi, rax}; 209 Register registers[] = {rdi, rax};
210 data->InitializePlatformSpecific(arraysize(registers), registers); 210 data->InitializePlatformSpecific(arraysize(registers), registers);
(...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after
442 r15, // address of first argument (argv) 442 r15, // address of first argument (argv)
443 rbx // the runtime function to call 443 rbx // the runtime function to call
444 }; 444 };
445 data->InitializePlatformSpecific(arraysize(registers), registers); 445 data->InitializePlatformSpecific(arraysize(registers), registers);
446 } 446 }
447 447
448 } // namespace internal 448 } // namespace internal
449 } // namespace v8 449 } // namespace v8
450 450
451 #endif // V8_TARGET_ARCH_X64 451 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/x64/code-stubs-x64.cc ('k') | test/cctest/interpreter/test-bytecode-generator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698