Comment #25 on issue 2355 by [email protected]: Implement generators
http://code.google.com/p/v8/issues/detail?id=2355

Found a slight bug… Example code:
({ ok: true, fn: function*(a) { this.ok } }).fn(0).next();

This code works fine on x64 builds, but crashes on ia32 when it attempts to run "this.ok", because "this" appears to be in "the hole". I tracked the problem down to that the EmitGeneratorResume-function appears to be pushing two arguments onto the stack for every formal argument defined on the function, making the example code create a stack like:
  [02] : 0x5a0080a1 <the hole>
  [01] : 0x5a0080a1 <the hole>
  [00] : 0x22714589 <an Object with map 0x5fc0ae71>#3#

`this` then gets assigned to the value at 01 instead of 00.. I ran a test where i fixed the stack up afterwards which appears to fix the problem and verified that on x64 where the code works, the stack looks right.


--
You received this message because this project is configured to send all issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

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