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 359 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
370 | 370 |
371 | 371 |
372 void GrowArrayElementsDescriptor::InitializePlatformSpecific( | 372 void GrowArrayElementsDescriptor::InitializePlatformSpecific( |
373 CallInterfaceDescriptorData* data) { | 373 CallInterfaceDescriptorData* data) { |
374 Register registers[] = {ObjectRegister(), KeyRegister()}; | 374 Register registers[] = {ObjectRegister(), KeyRegister()}; |
375 data->InitializePlatformSpecific(arraysize(registers), registers); | 375 data->InitializePlatformSpecific(arraysize(registers), registers); |
376 } | 376 } |
377 | 377 |
378 | 378 |
379 Type::FunctionType* | 379 Type::FunctionType* |
| 380 FastCloneRegExpDescriptor::BuildCallInterfaceDescriptorFunctionType( |
| 381 Isolate* isolate, int paramater_count) { |
| 382 Zone* zone = isolate->interface_descriptor_zone(); |
| 383 Type::FunctionType* function = |
| 384 Type::FunctionType::New(AnyTagged(zone), Type::Undefined(), 4, zone); |
| 385 function->InitParameter(0, AnyTagged(zone)); // closure |
| 386 function->InitParameter(1, SmiType(zone)); // literal_index |
| 387 function->InitParameter(2, AnyTagged(zone)); // pattern |
| 388 function->InitParameter(3, AnyTagged(zone)); // flags |
| 389 return function; |
| 390 } |
| 391 |
| 392 |
| 393 Type::FunctionType* |
380 FastCloneShallowArrayDescriptor::BuildCallInterfaceDescriptorFunctionType( | 394 FastCloneShallowArrayDescriptor::BuildCallInterfaceDescriptorFunctionType( |
381 Isolate* isolate, int paramater_count) { | 395 Isolate* isolate, int paramater_count) { |
382 Zone* zone = isolate->interface_descriptor_zone(); | 396 Zone* zone = isolate->interface_descriptor_zone(); |
383 Type::FunctionType* function = | 397 Type::FunctionType* function = |
384 Type::FunctionType::New(AnyTagged(zone), Type::Undefined(), 3, zone); | 398 Type::FunctionType::New(AnyTagged(zone), Type::Undefined(), 3, zone); |
385 function->InitParameter(0, AnyTagged(zone)); | 399 function->InitParameter(0, AnyTagged(zone)); |
386 function->InitParameter(1, SmiType(zone)); | 400 function->InitParameter(1, SmiType(zone)); |
387 function->InitParameter(2, AnyTagged(zone)); | 401 function->InitParameter(2, AnyTagged(zone)); |
388 return function; | 402 return function; |
389 } | 403 } |
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
554 Type::FunctionType::New(AnyTagged(zone), Type::Undefined(), 5, zone); | 568 Type::FunctionType::New(AnyTagged(zone), Type::Undefined(), 5, zone); |
555 function->InitParameter(0, Type::Receiver()); | 569 function->InitParameter(0, Type::Receiver()); |
556 function->InitParameter(1, SmiType(zone)); | 570 function->InitParameter(1, SmiType(zone)); |
557 function->InitParameter(2, AnyTagged(zone)); | 571 function->InitParameter(2, AnyTagged(zone)); |
558 function->InitParameter(3, AnyTagged(zone)); | 572 function->InitParameter(3, AnyTagged(zone)); |
559 function->InitParameter(4, AnyTagged(zone)); | 573 function->InitParameter(4, AnyTagged(zone)); |
560 return function; | 574 return function; |
561 } | 575 } |
562 } // namespace internal | 576 } // namespace internal |
563 } // namespace v8 | 577 } // namespace v8 |
OLD | NEW |