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

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

Issue 2777203007: [builtins] Introduce new TFC macro and auto-generate TFS descriptors (Closed)
Patch Set: Rebase Created 3 years, 8 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/interface-descriptors-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 #if V8_TARGET_ARCH_X87 5 #if V8_TARGET_ARCH_X87
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 282 matching lines...) Expand 10 before | Expand all | Expand 10 after
293 Register registers[] = {eax}; 293 Register registers[] = {eax};
294 data->InitializePlatformSpecific(arraysize(registers), registers); 294 data->InitializePlatformSpecific(arraysize(registers), registers);
295 } 295 }
296 296
297 void StringAddDescriptor::InitializePlatformSpecific( 297 void StringAddDescriptor::InitializePlatformSpecific(
298 CallInterfaceDescriptorData* data) { 298 CallInterfaceDescriptorData* data) {
299 Register registers[] = {edx, eax}; 299 Register registers[] = {edx, eax};
300 data->InitializePlatformSpecific(arraysize(registers), registers, NULL); 300 data->InitializePlatformSpecific(arraysize(registers), registers, NULL);
301 } 301 }
302 302
303
304 void KeyedDescriptor::InitializePlatformSpecific(
305 CallInterfaceDescriptorData* data) {
306 Register registers[] = {
307 ecx, // key
308 };
309 data->InitializePlatformSpecific(arraysize(registers), registers);
310 }
311
312
313 void NamedDescriptor::InitializePlatformSpecific(
314 CallInterfaceDescriptorData* data) {
315 Register registers[] = {
316 ecx, // name
317 };
318 data->InitializePlatformSpecific(arraysize(registers), registers);
319 }
320
321
322 void CallHandlerDescriptor::InitializePlatformSpecific(
323 CallInterfaceDescriptorData* data) {
324 Register registers[] = {
325 edx, // name
326 };
327 data->InitializePlatformSpecific(arraysize(registers), registers);
328 }
329
330
331 void ArgumentAdaptorDescriptor::InitializePlatformSpecific( 303 void ArgumentAdaptorDescriptor::InitializePlatformSpecific(
332 CallInterfaceDescriptorData* data) { 304 CallInterfaceDescriptorData* data) {
333 Register registers[] = { 305 Register registers[] = {
334 edi, // JSFunction 306 edi, // JSFunction
335 edx, // the new target 307 edx, // the new target
336 eax, // actual number of arguments 308 eax, // actual number of arguments
337 ebx, // expected number of arguments 309 ebx, // expected number of arguments
338 }; 310 };
339 data->InitializePlatformSpecific(arraysize(registers), registers); 311 data->InitializePlatformSpecific(arraysize(registers), registers);
340 } 312 }
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
408 ebx, // the JSGeneratorObject to resume 380 ebx, // the JSGeneratorObject to resume
409 edx // the resume mode (tagged) 381 edx // the resume mode (tagged)
410 }; 382 };
411 data->InitializePlatformSpecific(arraysize(registers), registers); 383 data->InitializePlatformSpecific(arraysize(registers), registers);
412 } 384 }
413 385
414 } // namespace internal 386 } // namespace internal
415 } // namespace v8 387 } // namespace v8
416 388
417 #endif // V8_TARGET_ARCH_X87 389 #endif // V8_TARGET_ARCH_X87
OLDNEW
« no previous file with comments | « src/x64/interface-descriptors-x64.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698