JS_STACK_GROWTH_DIRECTION is normally -1 (down) but is defined as 1 (up)
for HPPA.

Does anyone test with stack-growing-up any more?  (I know HPPA is tier-3,
at best.)  Do any of you think about this possibility when you write code?
When you masm.Push something and you need the address of the pushed item,
do you worry about whether you should capture the stack pointer before or
after you push?

The wasm baseline compiler currently assumes that the stack grows down so I
guess I can just add an assert there and somebody can fix that if it
becomes necessary, but it would be nice to know if I should be worrying
about this at all.

(It looks like stack direction is now like floating point and endianness --
all mainstream systems agree, at last.  I just hope everyone will get
around to adopting TSO before too long.)

--lars
_______________________________________________
dev-tech-js-engine-internals mailing list
dev-tech-js-engine-internals@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-tech-js-engine-internals

Reply via email to