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

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

Issue 860593002: X87: 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/x87/code-stubs-x87.cc ('k') | src/x87/macro-assembler-x87.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_X87 7 #if V8_TARGET_ARCH_X87
8 8
9 #include "src/interface-descriptors.h" 9 #include "src/interface-descriptors.h"
10 10
(...skipping 282 matching lines...) Expand 10 before | Expand all | Expand 10 after
293 } 293 }
294 294
295 295
296 void ApiFunctionDescriptor::Initialize(CallInterfaceDescriptorData* data) { 296 void ApiFunctionDescriptor::Initialize(CallInterfaceDescriptorData* data) {
297 Register registers[] = { 297 Register registers[] = {
298 esi, // context 298 esi, // context
299 eax, // callee 299 eax, // callee
300 ebx, // call_data 300 ebx, // call_data
301 ecx, // holder 301 ecx, // holder
302 edx, // api_function_address 302 edx, // api_function_address
303 edi, // actual number of arguments
304 };
305 Representation representations[] = {
306 Representation::Tagged(), // context
307 Representation::Tagged(), // callee
308 Representation::Tagged(), // call_data
309 Representation::Tagged(), // holder
310 Representation::External(), // api_function_address
311 Representation::Integer32(), // actual number of arguments
312 };
313 data->Initialize(arraysize(registers), registers, representations);
314 }
315
316
317 void ApiAccessorDescriptor::Initialize(CallInterfaceDescriptorData* data) {
318 Register registers[] = {
319 esi, // context
320 eax, // callee
321 ebx, // call_data
322 ecx, // holder
323 edx, // api_function_address
303 }; 324 };
304 Representation representations[] = { 325 Representation representations[] = {
305 Representation::Tagged(), // context 326 Representation::Tagged(), // context
306 Representation::Tagged(), // callee 327 Representation::Tagged(), // callee
307 Representation::Tagged(), // call_data 328 Representation::Tagged(), // call_data
308 Representation::Tagged(), // holder 329 Representation::Tagged(), // holder
309 Representation::External(), // api_function_address 330 Representation::External(), // api_function_address
310 }; 331 };
311 data->Initialize(arraysize(registers), registers, representations); 332 data->Initialize(arraysize(registers), registers, representations);
312 } 333 }
313 } 334 }
314 } // namespace v8::internal 335 } // namespace v8::internal
315 336
316 #endif // V8_TARGET_ARCH_X87 337 #endif // V8_TARGET_ARCH_X87
OLDNEW
« no previous file with comments | « src/x87/code-stubs-x87.cc ('k') | src/x87/macro-assembler-x87.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698