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

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

Issue 836093007: split api call stubs into accessor and function call stubs (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/x64/code-stubs-x64.cc ('k') | src/x64/macro-assembler-x64.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/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 283 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 rax, // 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
305 };
306 Representation representations[] = {
307 Representation::Tagged(), // context
308 Representation::Tagged(), // callee
309 Representation::Tagged(), // call_data
310 Representation::Tagged(), // holder
311 Representation::External(), // api_function_address
312 Representation::Integer32(), // actual number of arguments
313 };
314 data->Initialize(arraysize(registers), registers, representations);
315 }
316
317
318 void ApiAccessorDescriptor::Initialize(CallInterfaceDescriptorData* data) {
319 Register registers[] = {
320 rsi, // context
321 rax, // callee
322 rbx, // call_data
323 rcx, // holder
324 rdx, // api_function_address
304 }; 325 };
305 Representation representations[] = { 326 Representation representations[] = {
306 Representation::Tagged(), // context 327 Representation::Tagged(), // context
307 Representation::Tagged(), // callee 328 Representation::Tagged(), // callee
308 Representation::Tagged(), // call_data 329 Representation::Tagged(), // call_data
309 Representation::Tagged(), // holder 330 Representation::Tagged(), // holder
310 Representation::External(), // api_function_address 331 Representation::External(), // api_function_address
311 }; 332 };
312 data->Initialize(arraysize(registers), registers, representations); 333 data->Initialize(arraysize(registers), registers, representations);
313 } 334 }
314 } 335 }
315 } // namespace v8::internal 336 } // namespace v8::internal
316 337
317 #endif // V8_TARGET_ARCH_X64 338 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/x64/code-stubs-x64.cc ('k') | src/x64/macro-assembler-x64.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698