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

Side by Side Diff: src/arm64/interface-descriptors-arm64.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, 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/arm64/code-stubs-arm64.cc ('k') | src/code-factory.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/arm64/interface-descriptors-arm64.h" 5 #include "src/arm64/interface-descriptors-arm64.h"
6 6
7 #if V8_TARGET_ARCH_ARM64 7 #if V8_TARGET_ARCH_ARM64
8 8
9 #include "src/interface-descriptors.h" 9 #include "src/interface-descriptors.h"
10 10
(...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after
214 214
215 void CallTrampolineDescriptor::InitializePlatformSpecific( 215 void CallTrampolineDescriptor::InitializePlatformSpecific(
216 CallInterfaceDescriptorData* data) { 216 CallInterfaceDescriptorData* data) {
217 // x1: target 217 // x1: target
218 // x0: number of arguments 218 // x0: number of arguments
219 Register registers[] = {x1, x0}; 219 Register registers[] = {x1, x0};
220 data->InitializePlatformSpecific(arraysize(registers), registers); 220 data->InitializePlatformSpecific(arraysize(registers), registers);
221 } 221 }
222 222
223 223
224 void ConstructTrampolineDescriptor::InitializePlatformSpecific(
225 CallInterfaceDescriptorData* data) {
226 // x3: new target
227 // x1: target
228 // x0: number of arguments
229 Register registers[] = {x1, x3, x0};
230 data->InitializePlatformSpecific(arraysize(registers), registers);
231 }
232
233
224 void RegExpConstructResultDescriptor::InitializePlatformSpecific( 234 void RegExpConstructResultDescriptor::InitializePlatformSpecific(
225 CallInterfaceDescriptorData* data) { 235 CallInterfaceDescriptorData* data) {
226 // x2: length 236 // x2: length
227 // x1: index (of last match) 237 // x1: index (of last match)
228 // x0: string 238 // x0: string
229 Register registers[] = {x2, x1, x0}; 239 Register registers[] = {x2, x1, x0};
230 data->InitializePlatformSpecific(arraysize(registers), registers); 240 data->InitializePlatformSpecific(arraysize(registers), registers);
231 } 241 }
232 242
233 243
(...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after
481 x1 // the runtime function to call 491 x1 // the runtime function to call
482 }; 492 };
483 data->InitializePlatformSpecific(arraysize(registers), registers); 493 data->InitializePlatformSpecific(arraysize(registers), registers);
484 } 494 }
485 495
486 496
487 } // namespace internal 497 } // namespace internal
488 } // namespace v8 498 } // namespace v8
489 499
490 #endif // V8_TARGET_ARCH_ARM64 500 #endif // V8_TARGET_ARCH_ARM64
OLDNEW
« no previous file with comments | « src/arm64/code-stubs-arm64.cc ('k') | src/code-factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698