Index: src/arm64/code-stubs-arm64.cc |
diff --git a/src/arm64/code-stubs-arm64.cc b/src/arm64/code-stubs-arm64.cc |
index 280c681b1b36887e82c7f3833916d804579faf39..b217815ea7cd04d1300213d294ce2ff03edcee7a 100644 |
--- a/src/arm64/code-stubs-arm64.cc |
+++ b/src/arm64/code-stubs-arm64.cc |
@@ -347,87 +347,77 @@ void CallDescriptors::InitializeForIsolate(Isolate* isolate) { |
{ |
CallInterfaceDescriptor* descriptor = |
isolate->call_descriptor(Isolate::ArgumentAdaptorCall); |
- static Register registers[] = { x1, // JSFunction |
- cp, // context |
- x0, // actual number of arguments |
- x2, // expected number of arguments |
+ Register registers[] = { x1, // JSFunction |
+ cp, // context |
+ x0, // actual number of arguments |
+ x2, // 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->platform_specific_descriptor_ = &default_descriptor; |
+ descriptor->Initialize(ARRAY_SIZE(registers), registers, |
+ representations, &default_descriptor); |
} |
{ |
CallInterfaceDescriptor* descriptor = |
isolate->call_descriptor(Isolate::KeyedCall); |
- static Register registers[] = { cp, // context |
- x2, // key |
+ Register registers[] = { cp, // context |
+ x2, // 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->platform_specific_descriptor_ = &noInlineDescriptor; |
+ descriptor->Initialize(ARRAY_SIZE(registers), registers, |
+ representations, &noInlineDescriptor); |
} |
{ |
CallInterfaceDescriptor* descriptor = |
isolate->call_descriptor(Isolate::NamedCall); |
- static Register registers[] = { cp, // context |
- x2, // name |
+ Register registers[] = { cp, // context |
+ x2, // 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->platform_specific_descriptor_ = &noInlineDescriptor; |
+ descriptor->Initialize(ARRAY_SIZE(registers), registers, |
+ representations, &noInlineDescriptor); |
} |
{ |
CallInterfaceDescriptor* descriptor = |
isolate->call_descriptor(Isolate::CallHandler); |
- static Register registers[] = { cp, // context |
- x0, // receiver |
+ Register registers[] = { cp, // context |
+ x0, // 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->platform_specific_descriptor_ = &default_descriptor; |
+ descriptor->Initialize(ARRAY_SIZE(registers), registers, |
+ representations, &default_descriptor); |
} |
{ |
CallInterfaceDescriptor* descriptor = |
isolate->call_descriptor(Isolate::ApiFunctionCall); |
- static Register registers[] = { x0, // callee |
- x4, // call_data |
- x2, // holder |
- x1, // api_function_address |
- cp, // context |
+ Register registers[] = { x0, // callee |
+ x4, // call_data |
+ x2, // holder |
+ x1, // api_function_address |
+ cp, // 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->platform_specific_descriptor_ = &default_descriptor; |
+ descriptor->Initialize(ARRAY_SIZE(registers), registers, |
+ representations, &default_descriptor); |
} |
} |