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

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

Issue 1471623005: PPC: [builtins] Sanitize the machinery around Construct calls. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years 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/ppc/code-stubs-ppc.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 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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_PPC 5 #if V8_TARGET_ARCH_PPC
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 186 matching lines...) Expand 10 before | Expand all | Expand 10 after
197 197
198 void CallTrampolineDescriptor::InitializePlatformSpecific( 198 void CallTrampolineDescriptor::InitializePlatformSpecific(
199 CallInterfaceDescriptorData* data) { 199 CallInterfaceDescriptorData* data) {
200 // r3 : number of arguments 200 // r3 : number of arguments
201 // r4 : the target to call 201 // r4 : the target to call
202 Register registers[] = {r4, r3}; 202 Register registers[] = {r4, r3};
203 data->InitializePlatformSpecific(arraysize(registers), registers); 203 data->InitializePlatformSpecific(arraysize(registers), registers);
204 } 204 }
205 205
206 206
207 void ConstructTrampolineDescriptor::InitializePlatformSpecific(
208 CallInterfaceDescriptorData* data) {
209 // r3 : number of arguments
210 // r4 : the target to call
211 // r6 : the new target
212 Register registers[] = {r4, r6, r3};
213 data->InitializePlatformSpecific(arraysize(registers), registers);
214 }
215
216
207 void RegExpConstructResultDescriptor::InitializePlatformSpecific( 217 void RegExpConstructResultDescriptor::InitializePlatformSpecific(
208 CallInterfaceDescriptorData* data) { 218 CallInterfaceDescriptorData* data) {
209 Register registers[] = {r5, r4, r3}; 219 Register registers[] = {r5, r4, r3};
210 data->InitializePlatformSpecific(arraysize(registers), registers); 220 data->InitializePlatformSpecific(arraysize(registers), registers);
211 } 221 }
212 222
213 223
214 void TransitionElementsKindDescriptor::InitializePlatformSpecific( 224 void TransitionElementsKindDescriptor::InitializePlatformSpecific(
215 CallInterfaceDescriptorData* data) { 225 CallInterfaceDescriptorData* data) {
216 Register registers[] = {r3, r4}; 226 Register registers[] = {r3, r4};
(...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after
424 r3, // argument count (argc) 434 r3, // argument count (argc)
425 r5, // address of first argument (argv) 435 r5, // address of first argument (argv)
426 r4 // the runtime function to call 436 r4 // the runtime function to call
427 }; 437 };
428 data->InitializePlatformSpecific(arraysize(registers), registers); 438 data->InitializePlatformSpecific(arraysize(registers), registers);
429 } 439 }
430 } // namespace internal 440 } // namespace internal
431 } // namespace v8 441 } // namespace v8
432 442
433 #endif // V8_TARGET_ARCH_PPC 443 #endif // V8_TARGET_ARCH_PPC
OLDNEW
« no previous file with comments | « src/ppc/code-stubs-ppc.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698