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

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

Issue 1475823003: [runtime] First step to sanitize regexp literal creation. (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
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_X64 5 #if V8_TARGET_ARCH_X64
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 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 const Register ToObjectDescriptor::ReceiverRegister() { return rax; } 119 const Register ToObjectDescriptor::ReceiverRegister() { return rax; }
120 120
121 121
122 void NumberToStringDescriptor::InitializePlatformSpecific( 122 void NumberToStringDescriptor::InitializePlatformSpecific(
123 CallInterfaceDescriptorData* data) { 123 CallInterfaceDescriptorData* data) {
124 Register registers[] = {rax}; 124 Register registers[] = {rax};
125 data->InitializePlatformSpecific(arraysize(registers), registers); 125 data->InitializePlatformSpecific(arraysize(registers), registers);
126 } 126 }
127 127
128 128
129 void FastCloneRegExpDescriptor::InitializePlatformSpecific(
130 CallInterfaceDescriptorData* data) {
131 Register registers[] = {rdi, rax, rcx, rdx};
132 data->InitializePlatformSpecific(arraysize(registers), registers);
133 }
134
135
129 void FastCloneShallowArrayDescriptor::InitializePlatformSpecific( 136 void FastCloneShallowArrayDescriptor::InitializePlatformSpecific(
130 CallInterfaceDescriptorData* data) { 137 CallInterfaceDescriptorData* data) {
131 Register registers[] = {rax, rbx, rcx}; 138 Register registers[] = {rax, rbx, rcx};
132 data->InitializePlatformSpecific(arraysize(registers), registers); 139 data->InitializePlatformSpecific(arraysize(registers), registers);
133 } 140 }
134 141
135 142
136 void FastCloneShallowObjectDescriptor::InitializePlatformSpecific( 143 void FastCloneShallowObjectDescriptor::InitializePlatformSpecific(
137 CallInterfaceDescriptorData* data) { 144 CallInterfaceDescriptorData* data) {
138 Register registers[] = {rax, rbx, rcx, rdx}; 145 Register registers[] = {rax, rbx, rcx, rdx};
(...skipping 296 matching lines...) Expand 10 before | Expand all | Expand 10 after
435 r15, // address of first argument (argv) 442 r15, // address of first argument (argv)
436 rbx // the runtime function to call 443 rbx // the runtime function to call
437 }; 444 };
438 data->InitializePlatformSpecific(arraysize(registers), registers); 445 data->InitializePlatformSpecific(arraysize(registers), registers);
439 } 446 }
440 447
441 } // namespace internal 448 } // namespace internal
442 } // namespace v8 449 } // namespace v8
443 450
444 #endif // V8_TARGET_ARCH_X64 451 #endif // V8_TARGET_ARCH_X64
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698