I actually prefer your original approach that wraps the operands with utility functions, I think it makes it clearer at the caller site what you are trying to
accomplish, the inline offset math just confuses things.

Perhaps you just need more helper functions to make the different cases clear,
e.g.

StackOperand <-- two variants for arguments and indexed access
StackOpeandForPC  <-- returns an operand for the return address on the stack

https://codereview.chromium.org/19857006/

--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
--- You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to