| 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 334 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 345 data->InitializePlatformSpecific(0, nullptr); | 345 data->InitializePlatformSpecific(0, nullptr); |
| 346 } | 346 } |
| 347 | 347 |
| 348 | 348 |
| 349 void GrowArrayElementsDescriptor::InitializePlatformSpecific( | 349 void GrowArrayElementsDescriptor::InitializePlatformSpecific( |
| 350 CallInterfaceDescriptorData* data) { | 350 CallInterfaceDescriptorData* data) { |
| 351 Register registers[] = {ObjectRegister(), KeyRegister()}; | 351 Register registers[] = {ObjectRegister(), KeyRegister()}; |
| 352 data->InitializePlatformSpecific(arraysize(registers), registers); | 352 data->InitializePlatformSpecific(arraysize(registers), registers); |
| 353 } | 353 } |
| 354 | 354 |
| 355 FunctionType* FastArrayPushDescriptor::BuildCallInterfaceDescriptorFunctionType( |
| 356 Isolate* isolate, int paramater_count) { |
| 357 Zone* zone = isolate->interface_descriptor_zone(); |
| 358 FunctionType* function = |
| 359 Type::Function(AnyTagged(zone), AnyTagged(zone), 1, zone)->AsFunction(); |
| 360 function->InitParameter(0, UntaggedIntegral32(zone)); // actual #arguments |
| 361 return function; |
| 362 } |
| 363 |
| 355 FunctionType* | 364 FunctionType* |
| 356 FastCloneRegExpDescriptor::BuildCallInterfaceDescriptorFunctionType( | 365 FastCloneRegExpDescriptor::BuildCallInterfaceDescriptorFunctionType( |
| 357 Isolate* isolate, int paramater_count) { | 366 Isolate* isolate, int paramater_count) { |
| 358 Zone* zone = isolate->interface_descriptor_zone(); | 367 Zone* zone = isolate->interface_descriptor_zone(); |
| 359 FunctionType* function = | 368 FunctionType* function = |
| 360 Type::Function(AnyTagged(zone), Type::Undefined(), 4, zone)->AsFunction(); | 369 Type::Function(AnyTagged(zone), Type::Undefined(), 4, zone)->AsFunction(); |
| 361 function->InitParameter(0, AnyTagged(zone)); // closure | 370 function->InitParameter(0, AnyTagged(zone)); // closure |
| 362 function->InitParameter(1, SmiType(zone)); // literal_index | 371 function->InitParameter(1, SmiType(zone)); // literal_index |
| 363 function->InitParameter(2, AnyTagged(zone)); // pattern | 372 function->InitParameter(2, AnyTagged(zone)); // pattern |
| 364 function->InitParameter(3, AnyTagged(zone)); // flags | 373 function->InitParameter(3, AnyTagged(zone)); // flags |
| (...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 545 function->InitParameter(kAccumulatorParameter, AnyTagged(zone)); | 554 function->InitParameter(kAccumulatorParameter, AnyTagged(zone)); |
| 546 function->InitParameter(kRegisterFileParameter, ExternalPointer(zone)); | 555 function->InitParameter(kRegisterFileParameter, ExternalPointer(zone)); |
| 547 function->InitParameter(kBytecodeOffsetParameter, UntaggedIntegral32(zone)); | 556 function->InitParameter(kBytecodeOffsetParameter, UntaggedIntegral32(zone)); |
| 548 function->InitParameter(kBytecodeArrayParameter, AnyTagged(zone)); | 557 function->InitParameter(kBytecodeArrayParameter, AnyTagged(zone)); |
| 549 function->InitParameter(kDispatchTableParameter, AnyTagged(zone)); | 558 function->InitParameter(kDispatchTableParameter, AnyTagged(zone)); |
| 550 return function; | 559 return function; |
| 551 } | 560 } |
| 552 | 561 |
| 553 } // namespace internal | 562 } // namespace internal |
| 554 } // namespace v8 | 563 } // namespace v8 |
| OLD | NEW |