Closed Bug 1281961 Opened 8 years ago Closed 8 years ago

WasmBaselineCompile fails to compile on non-ion platform

Categories

(Core :: JavaScript Engine: JIT, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: stevensn, Unassigned)

References

Details

Attachments

(1 file)

On ppc64 (non-ion)

WasmBaselineCompile.cpp:1031:17: error: ‘ScratchRegisterScope’ was not declared

JS_PUNBOX64 is defined on 64 bit platforms that aren't supported by WarmBaselineCompile (non-ion, maybe mips64 ?)
Lars, what's the easiest way around this?
Flags: needinfo?(lhansen)
Attached patch 1281961.diffSplinter Review
Attachment #8764782 - Flags: review?(lhansen)
I think the easiest way forward - for now - is to do for PPC64 what I do for ARM64 up at the top of WasmBaselineCompile.cpp, and just define a dummy ScratchRegisterScope for the platform so that this code will compile.

The guard in BaselineCanCompile() down at the bottom of the file will ensure that this compiler is never invoked on PPC64, so it's OK to have a dummy implementation that just allows compilation to proceed - that's the situation for ARM64 as well.

I believe that it's not necessary for JS_PUNBOX64 to be defined on PPC64, with that fix in place, but do let me know if that turns out not to be the case.
Flags: needinfo?(lhansen)
Comment on attachment 8764782 [details] [diff] [review]
1281961.diff

Review of attachment 8764782 [details] [diff] [review]:
-----------------------------------------------------------------

Clearing r? for now, see my other comment about a better way to fix this.
Attachment #8764782 - Flags: review?(lhansen)
Also, there's a patch coming on bug 1277008 to clean up scratch register handling further.
I have been testing this and it compiles on various platforms with Ion disabled (notably on arm64 which should be similar to ppc64) -- there's a more general solution now.  Please close this ticket if you find that the current code suits your needs.
WasmBaselineCompile now builds on ppc

Thanks
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: