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

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

Issue 883613003: fix performance regression on intel call api stubs (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 10 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/x64/code-stubs-x64.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_X64 7 #if V8_TARGET_ARCH_X64
8 8
9 #include "src/interface-descriptors.h" 9 #include "src/interface-descriptors.h"
10 10
(...skipping 279 matching lines...) Expand 10 before | Expand all | Expand 10 after
290 Representation::Integer32(), // actual number of arguments 290 Representation::Integer32(), // actual number of arguments
291 Representation::Integer32(), // expected number of arguments 291 Representation::Integer32(), // expected number of arguments
292 }; 292 };
293 data->Initialize(arraysize(registers), registers, representations); 293 data->Initialize(arraysize(registers), registers, representations);
294 } 294 }
295 295
296 296
297 void ApiFunctionDescriptor::Initialize(CallInterfaceDescriptorData* data) { 297 void ApiFunctionDescriptor::Initialize(CallInterfaceDescriptorData* data) {
298 Register registers[] = { 298 Register registers[] = {
299 rsi, // context 299 rsi, // context
300 rax, // callee 300 rdi, // callee
301 rbx, // call_data 301 rbx, // call_data
302 rcx, // holder 302 rcx, // holder
303 rdx, // api_function_address 303 rdx, // api_function_address
304 rdi, // actual number of arguments 304 rax, // actual number of arguments
305 }; 305 };
306 Representation representations[] = { 306 Representation representations[] = {
307 Representation::Tagged(), // context 307 Representation::Tagged(), // context
308 Representation::Tagged(), // callee 308 Representation::Tagged(), // callee
309 Representation::Tagged(), // call_data 309 Representation::Tagged(), // call_data
310 Representation::Tagged(), // holder 310 Representation::Tagged(), // holder
311 Representation::External(), // api_function_address 311 Representation::External(), // api_function_address
312 Representation::Integer32(), // actual number of arguments 312 Representation::Integer32(), // actual number of arguments
313 }; 313 };
314 data->Initialize(arraysize(registers), registers, representations); 314 data->Initialize(arraysize(registers), registers, representations);
315 } 315 }
316 316
317 317
318 void ApiAccessorDescriptor::Initialize(CallInterfaceDescriptorData* data) { 318 void ApiAccessorDescriptor::Initialize(CallInterfaceDescriptorData* data) {
319 Register registers[] = { 319 Register registers[] = {
320 rsi, // context 320 rsi, // context
321 rax, // callee 321 rdi, // callee
322 rbx, // call_data 322 rbx, // call_data
323 rcx, // holder 323 rcx, // holder
324 rdx, // api_function_address 324 rdx, // api_function_address
325 }; 325 };
326 Representation representations[] = { 326 Representation representations[] = {
327 Representation::Tagged(), // context 327 Representation::Tagged(), // context
328 Representation::Tagged(), // callee 328 Representation::Tagged(), // callee
329 Representation::Tagged(), // call_data 329 Representation::Tagged(), // call_data
330 Representation::Tagged(), // holder 330 Representation::Tagged(), // holder
331 Representation::External(), // api_function_address 331 Representation::External(), // api_function_address
332 }; 332 };
333 data->Initialize(arraysize(registers), registers, representations); 333 data->Initialize(arraysize(registers), registers, representations);
334 } 334 }
335 } 335 }
336 } // namespace v8::internal 336 } // namespace v8::internal
337 337
338 #endif // V8_TARGET_ARCH_X64 338 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/x64/code-stubs-x64.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698