On 2014/01/30 18:28:40, ulan wrote:
Please take a look. In the long term we probably need more general solution
for
this type of problem.

I've been thinking about handling it in masm:

When we emit a branch instruction, check if the target label is bound. If it
is
bound, then we know the distance and can emit the correct branch instruction. Otherwise, emit the requested branch instruction + nop, so that later on we
could change it to a longer jump if the label is bound too far away.

Another approach is to add NEAR/FAR parameter to branch instructions like in
x64.

We are working on a generic fix. Current preference is not to use Near/Far, we
are evaluating alternatives (adding nop, using veneer). Probably easier to
discuss offline.

https://codereview.chromium.org/141753020/

--
--
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