Index: src/objects.cc |
diff --git a/src/objects.cc b/src/objects.cc |
index d669943db93f727b62d4304b17357cc9df53a36c..3f6eb52af4f86dc694a203bc1af3b7ff231afa85 100644 |
--- a/src/objects.cc |
+++ b/src/objects.cc |
@@ -13638,14 +13638,11 @@ int SharedFunctionInfo::SourceSize() { |
return end_position() - start_position(); |
} |
- |
-namespace { |
- |
-void CalculateInstanceSizeHelper(InstanceType instance_type, |
- int requested_internal_fields, |
- int requested_in_object_properties, |
- int* instance_size, |
- int* in_object_properties) { |
+void JSFunction::CalculateInstanceSizeHelper(InstanceType instance_type, |
+ int requested_internal_fields, |
+ int requested_in_object_properties, |
+ int* instance_size, |
+ int* in_object_properties) { |
int header_size = JSObject::GetHeaderSize(instance_type); |
DCHECK_LE(requested_internal_fields, |
(JSObject::kMaxInstanceSize - header_size) >> kPointerSizeLog2); |
@@ -13658,8 +13655,6 @@ void CalculateInstanceSizeHelper(InstanceType instance_type, |
requested_internal_fields; |
} |
-} // namespace |
- |
void JSFunction::CalculateInstanceSize(InstanceType instance_type, |
int requested_internal_fields, |