Make MacroAssembler::getStackPointer non-static
Categories
(Core :: JavaScript Engine: JIT, enhancement, P3)
Tracking
()
Tracking | Status | |
---|---|---|
firefox75 | --- | fixed |
People
(Reporter: mgaudet, Assigned: lth)
Details
Attachments
(1 file)
Reviewbot is getting grumpy with [clang-tidy: readability-static-accessed-through-instance]
because we use masm.getStackPointer()
all over the place.
While this is defined static on a bunch of our platforms, it is non-static on ARM64 I believe, and so we -need- to be using it as an instance method.
We should just make getStackPointer non-static everywhere.
Assignee | ||
Updated•6 years ago
|
Assignee | ||
Comment 1•6 years ago
|
||
Probably worth noting here that getStackPointer() can't be moved into MacroAssembler.h because the return type is not the same on every platform: on ARM64 it's the magic platform-private type RegisterOrSP, on other platforms it's just Register.
Assignee | ||
Comment 2•6 years ago
|
||
getStackPointer is non-static on arm64 so accesses must be via member access: masm.getStackPointer.
But it is static on other platforms, so the member access ticks off the static checkers.
Just make it non-static everywhere; it'll get inlined and boil away in any case.
Assignee | ||
Comment 3•6 years ago
|
||
Comment 5•6 years ago
|
||
bugherder |
Description
•