| Index: src/x64/code-stubs-x64.cc
|
| diff --git a/src/x64/code-stubs-x64.cc b/src/x64/code-stubs-x64.cc
|
| index 005d84211372273291fefbe9d97d8f9234aebe15..d1c08b64a32417f13749f44a060e12e641e0462d 100644
|
| --- a/src/x64/code-stubs-x64.cc
|
| +++ b/src/x64/code-stubs-x64.cc
|
| @@ -306,82 +306,72 @@ void CallDescriptors::InitializeForIsolate(Isolate* isolate) {
|
| {
|
| CallInterfaceDescriptor* descriptor =
|
| isolate->call_descriptor(Isolate::ArgumentAdaptorCall);
|
| - static Register registers[] = { rdi, // JSFunction
|
| - rsi, // context
|
| - rax, // actual number of arguments
|
| - rbx, // expected number of arguments
|
| + Register registers[] = { rdi, // JSFunction
|
| + rsi, // context
|
| + rax, // actual number of arguments
|
| + rbx, // expected number of arguments
|
| };
|
| - static Representation representations[] = {
|
| + Representation representations[] = {
|
| Representation::Tagged(), // JSFunction
|
| Representation::Tagged(), // context
|
| Representation::Integer32(), // actual number of arguments
|
| Representation::Integer32(), // expected number of arguments
|
| };
|
| - descriptor->register_param_count_ = 4;
|
| - descriptor->register_params_ = registers;
|
| - descriptor->param_representations_ = representations;
|
| + descriptor->Initialize(ARRAY_SIZE(registers), registers, representations);
|
| }
|
| {
|
| CallInterfaceDescriptor* descriptor =
|
| isolate->call_descriptor(Isolate::KeyedCall);
|
| - static Register registers[] = { rsi, // context
|
| - rcx, // key
|
| + Register registers[] = { rsi, // context
|
| + rcx, // key
|
| };
|
| - static Representation representations[] = {
|
| + Representation representations[] = {
|
| Representation::Tagged(), // context
|
| Representation::Tagged(), // key
|
| };
|
| - descriptor->register_param_count_ = 2;
|
| - descriptor->register_params_ = registers;
|
| - descriptor->param_representations_ = representations;
|
| + descriptor->Initialize(ARRAY_SIZE(registers), registers, representations);
|
| }
|
| {
|
| CallInterfaceDescriptor* descriptor =
|
| isolate->call_descriptor(Isolate::NamedCall);
|
| - static Register registers[] = { rsi, // context
|
| - rcx, // name
|
| + Register registers[] = { rsi, // context
|
| + rcx, // name
|
| };
|
| - static Representation representations[] = {
|
| + Representation representations[] = {
|
| Representation::Tagged(), // context
|
| Representation::Tagged(), // name
|
| };
|
| - descriptor->register_param_count_ = 2;
|
| - descriptor->register_params_ = registers;
|
| - descriptor->param_representations_ = representations;
|
| + descriptor->Initialize(ARRAY_SIZE(registers), registers, representations);
|
| }
|
| {
|
| CallInterfaceDescriptor* descriptor =
|
| isolate->call_descriptor(Isolate::CallHandler);
|
| - static Register registers[] = { rsi, // context
|
| - rdx, // receiver
|
| + Register registers[] = { rsi, // context
|
| + rdx, // receiver
|
| };
|
| - static Representation representations[] = {
|
| + Representation representations[] = {
|
| Representation::Tagged(), // context
|
| Representation::Tagged(), // receiver
|
| };
|
| - descriptor->register_param_count_ = 2;
|
| - descriptor->register_params_ = registers;
|
| - descriptor->param_representations_ = representations;
|
| + descriptor->Initialize(ARRAY_SIZE(registers), registers, representations);
|
| }
|
| {
|
| CallInterfaceDescriptor* descriptor =
|
| isolate->call_descriptor(Isolate::ApiFunctionCall);
|
| - static Register registers[] = { rax, // callee
|
| - rbx, // call_data
|
| - rcx, // holder
|
| - rdx, // api_function_address
|
| - rsi, // context
|
| + Register registers[] = { rax, // callee
|
| + rbx, // call_data
|
| + rcx, // holder
|
| + rdx, // api_function_address
|
| + rsi, // context
|
| };
|
| - static Representation representations[] = {
|
| + Representation representations[] = {
|
| Representation::Tagged(), // callee
|
| Representation::Tagged(), // call_data
|
| Representation::Tagged(), // holder
|
| Representation::External(), // api_function_address
|
| Representation::Tagged(), // context
|
| };
|
| - descriptor->register_param_count_ = 5;
|
| - descriptor->register_params_ = registers;
|
| - descriptor->param_representations_ = representations;
|
| + descriptor->Initialize(ARRAY_SIZE(registers), registers, representations);
|
| }
|
| }
|
|
|
|
|