OLD | NEW |
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/interface-descriptors.h" | 5 #include "src/interface-descriptors.h" |
6 | 6 |
7 namespace v8 { | 7 namespace v8 { |
8 namespace internal { | 8 namespace internal { |
9 | 9 |
10 namespace { | 10 namespace { |
(...skipping 291 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
302 data->InitializePlatformSpecific(0, nullptr); | 302 data->InitializePlatformSpecific(0, nullptr); |
303 } | 303 } |
304 | 304 |
305 | 305 |
306 void GrowArrayElementsDescriptor::InitializePlatformSpecific( | 306 void GrowArrayElementsDescriptor::InitializePlatformSpecific( |
307 CallInterfaceDescriptorData* data) { | 307 CallInterfaceDescriptorData* data) { |
308 Register registers[] = {ObjectRegister(), KeyRegister()}; | 308 Register registers[] = {ObjectRegister(), KeyRegister()}; |
309 data->InitializePlatformSpecific(arraysize(registers), registers); | 309 data->InitializePlatformSpecific(arraysize(registers), registers); |
310 } | 310 } |
311 | 311 |
312 FunctionType* FastArrayPushDescriptor::BuildCallInterfaceDescriptorFunctionType( | 312 FunctionType* |
| 313 VarArgFunctionDescriptor::BuildCallInterfaceDescriptorFunctionType( |
313 Isolate* isolate, int paramater_count) { | 314 Isolate* isolate, int paramater_count) { |
314 Zone* zone = isolate->interface_descriptor_zone(); | 315 Zone* zone = isolate->interface_descriptor_zone(); |
315 FunctionType* function = | 316 FunctionType* function = |
316 Type::Function(AnyTagged(zone), AnyTagged(zone), 1, zone)->AsFunction(); | 317 Type::Function(AnyTagged(zone), AnyTagged(zone), 1, zone)->AsFunction(); |
317 function->InitParameter(0, UntaggedIntegral32(zone)); // actual #arguments | 318 function->InitParameter(0, UntaggedIntegral32(zone)); // actual #arguments |
318 return function; | 319 return function; |
319 } | 320 } |
320 | 321 |
321 FunctionType* | 322 FunctionType* |
322 FastCloneRegExpDescriptor::BuildCallInterfaceDescriptorFunctionType( | 323 FastCloneRegExpDescriptor::BuildCallInterfaceDescriptorFunctionType( |
(...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
537 Type::Function(AnyTagged(zone), Type::Undefined(), 4, zone)->AsFunction(); | 538 Type::Function(AnyTagged(zone), Type::Undefined(), 4, zone)->AsFunction(); |
538 function->InitParameter(kAccumulatorParameter, AnyTagged(zone)); | 539 function->InitParameter(kAccumulatorParameter, AnyTagged(zone)); |
539 function->InitParameter(kBytecodeOffsetParameter, UntaggedIntegral32(zone)); | 540 function->InitParameter(kBytecodeOffsetParameter, UntaggedIntegral32(zone)); |
540 function->InitParameter(kBytecodeArrayParameter, AnyTagged(zone)); | 541 function->InitParameter(kBytecodeArrayParameter, AnyTagged(zone)); |
541 function->InitParameter(kDispatchTableParameter, AnyTagged(zone)); | 542 function->InitParameter(kDispatchTableParameter, AnyTagged(zone)); |
542 return function; | 543 return function; |
543 } | 544 } |
544 | 545 |
545 } // namespace internal | 546 } // namespace internal |
546 } // namespace v8 | 547 } // namespace v8 |
OLD | NEW |