[utils] Fix Malloced implementation
According to the specification, class-specific {operator new} and {operator delete} should be static methods. Interestingly, if the {static} keyword is missing, the methods are implicitly static anyway. This is confusing, so this CL adds the {static} keywords explicitly. It also removes the redundant {Malloced::New} and {Malloced::Delete} methods. R=mlippautz@chromium.org Bug: v8:9396 Change-Id: I1db7c87b816567cc1a9153d0b18e3dd4ae81dd6f Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/1700080Reviewed-by: Michael Lippautz <mlippautz@chromium.org> Commit-Queue: Clemens Hammacher <clemensh@chromium.org> Cr-Commit-Position: refs/heads/master@{#62703}
Showing
Please
register
or
sign in
to comment