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

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

Issue 1266013006: [stubs] Unify (and optimize) implementation of ToObject. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 4 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/ia32/code-stubs-ia32.cc ('k') | src/interface-descriptors.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_IA32 7 #if V8_TARGET_ARCH_IA32
8 8
9 #include "src/interface-descriptors.h" 9 #include "src/interface-descriptors.h"
10 10
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 96
97 97
98 void ToNumberDescriptor::InitializePlatformSpecific( 98 void ToNumberDescriptor::InitializePlatformSpecific(
99 CallInterfaceDescriptorData* data) { 99 CallInterfaceDescriptorData* data) {
100 // ToNumberStub invokes a function, and therefore needs a context. 100 // ToNumberStub invokes a function, and therefore needs a context.
101 Register registers[] = {eax}; 101 Register registers[] = {eax};
102 data->InitializePlatformSpecific(arraysize(registers), registers, NULL); 102 data->InitializePlatformSpecific(arraysize(registers), registers, NULL);
103 } 103 }
104 104
105 105
106 void ToObjectDescriptor::InitializePlatformSpecific(
107 CallInterfaceDescriptorData* data) {
108 // ToObjectStub invokes a function, and therefore needs a context.
109 Register registers[] = {eax};
mvstanton 2015/07/31 11:04:57 You could also reduce the number of platform depen
Benedikt Meurer 2015/07/31 11:18:10 Done. Thanks for the pointer.
110 data->InitializePlatformSpecific(arraysize(registers), registers, nullptr);
111 }
112
113
106 void NumberToStringDescriptor::InitializePlatformSpecific( 114 void NumberToStringDescriptor::InitializePlatformSpecific(
107 CallInterfaceDescriptorData* data) { 115 CallInterfaceDescriptorData* data) {
108 Register registers[] = {eax}; 116 Register registers[] = {eax};
109 data->InitializePlatformSpecific(arraysize(registers), registers, NULL); 117 data->InitializePlatformSpecific(arraysize(registers), registers, NULL);
110 } 118 }
111 119
112 120
113 void TypeofDescriptor::InitializePlatformSpecific( 121 void TypeofDescriptor::InitializePlatformSpecific(
114 CallInterfaceDescriptorData* data) { 122 CallInterfaceDescriptorData* data) {
115 Register registers[] = {ebx}; 123 Register registers[] = {ebx};
(...skipping 250 matching lines...) Expand 10 before | Expand all | Expand 10 after
366 edi, // math rounding function 374 edi, // math rounding function
367 edx, // vector slot id 375 edx, // vector slot id
368 ebx // type vector 376 ebx // type vector
369 }; 377 };
370 data->InitializePlatformSpecific(arraysize(registers), registers); 378 data->InitializePlatformSpecific(arraysize(registers), registers);
371 } 379 }
372 } // namespace internal 380 } // namespace internal
373 } // namespace v8 381 } // namespace v8
374 382
375 #endif // V8_TARGET_ARCH_IA32 383 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/ia32/code-stubs-ia32.cc ('k') | src/interface-descriptors.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698