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

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

Issue 1471193002: X87: [builtins] Sanitize the machinery around Construct calls. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 1 month 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') | 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 192 matching lines...) Expand 10 before | Expand all | Expand 10 after
203 203
204 void CallTrampolineDescriptor::InitializePlatformSpecific( 204 void CallTrampolineDescriptor::InitializePlatformSpecific(
205 CallInterfaceDescriptorData* data) { 205 CallInterfaceDescriptorData* data) {
206 // eax : number of arguments 206 // eax : number of arguments
207 // edi : the target to call 207 // edi : the target to call
208 Register registers[] = {edi, eax}; 208 Register registers[] = {edi, eax};
209 data->InitializePlatformSpecific(arraysize(registers), registers); 209 data->InitializePlatformSpecific(arraysize(registers), registers);
210 } 210 }
211 211
212 212
213 void ConstructTrampolineDescriptor::InitializePlatformSpecific(
214 CallInterfaceDescriptorData* data) {
215 // eax : number of arguments
216 // edx : the new target
217 // edi : the target to call
218 Register registers[] = {edi, edx, eax};
219 data->InitializePlatformSpecific(arraysize(registers), registers);
220 }
221
222
213 void RegExpConstructResultDescriptor::InitializePlatformSpecific( 223 void RegExpConstructResultDescriptor::InitializePlatformSpecific(
214 CallInterfaceDescriptorData* data) { 224 CallInterfaceDescriptorData* data) {
215 Register registers[] = {ecx, ebx, eax}; 225 Register registers[] = {ecx, ebx, eax};
216 data->InitializePlatformSpecific(arraysize(registers), registers, NULL); 226 data->InitializePlatformSpecific(arraysize(registers), registers, NULL);
217 } 227 }
218 228
219 229
220 void TransitionElementsKindDescriptor::InitializePlatformSpecific( 230 void TransitionElementsKindDescriptor::InitializePlatformSpecific(
221 CallInterfaceDescriptorData* data) { 231 CallInterfaceDescriptorData* data) {
222 Register registers[] = {eax, ebx}; 232 Register registers[] = {eax, ebx};
(...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after
432 ecx, // address of first argument (argv) 442 ecx, // address of first argument (argv)
433 ebx // the runtime function to call 443 ebx // the runtime function to call
434 }; 444 };
435 data->InitializePlatformSpecific(arraysize(registers), registers); 445 data->InitializePlatformSpecific(arraysize(registers), registers);
436 } 446 }
437 447
438 } // namespace internal 448 } // namespace internal
439 } // namespace v8 449 } // namespace v8
440 450
441 #endif // V8_TARGET_ARCH_X87 451 #endif // V8_TARGET_ARCH_X87
OLDNEW
« no previous file with comments | « src/x87/code-stubs-x87.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698