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

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

Issue 1469793002: [builtins] Sanitize the machinery around Construct calls. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: mips64 fix. 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/mips64/code-stubs-mips64.cc ('k') | src/objects.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 #if V8_TARGET_ARCH_MIPS64 5 #if V8_TARGET_ARCH_MIPS64
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 // a1: target 200 // a1: target
201 // a0: number of arguments 201 // a0: number of arguments
202 Register registers[] = {a1, a0}; 202 Register registers[] = {a1, a0};
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 // a1: target
210 // a3: new target
211 // a0: number of arguments
212 Register registers[] = {a1, a3, a0};
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[] = {a2, a1, a0}; 219 Register registers[] = {a2, a1, a0};
210 data->InitializePlatformSpecific(arraysize(registers), registers, NULL); 220 data->InitializePlatformSpecific(arraysize(registers), registers, NULL);
211 } 221 }
212 222
213 223
214 void TransitionElementsKindDescriptor::InitializePlatformSpecific( 224 void TransitionElementsKindDescriptor::InitializePlatformSpecific(
215 CallInterfaceDescriptorData* data) { 225 CallInterfaceDescriptorData* data) {
216 Register registers[] = {a0, a1}; 226 Register registers[] = {a0, a1};
(...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after
426 a2, // address of first argument (argv) 436 a2, // address of first argument (argv)
427 a1 // the runtime function to call 437 a1 // the runtime function to call
428 }; 438 };
429 data->InitializePlatformSpecific(arraysize(registers), registers); 439 data->InitializePlatformSpecific(arraysize(registers), registers);
430 } 440 }
431 441
432 } // namespace internal 442 } // namespace internal
433 } // namespace v8 443 } // namespace v8
434 444
435 #endif // V8_TARGET_ARCH_MIPS64 445 #endif // V8_TARGET_ARCH_MIPS64
OLDNEW
« no previous file with comments | « src/mips64/code-stubs-mips64.cc ('k') | src/objects.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698