2009/5/7 jimt <[email protected]>

>
> Hi,
>
> I'm building v8 for an ARM6 board, and things appear to run smoothly
> up until the point where I call v8::Context::New(NULL,
> api_callback_context_);
>
> As you know, the creation of a new context forces the JS natives to be
> compiled and run.
>
> This process proceeds fine up until the point where the JSEntryStub is
> called to invoke the compiled JS function. The code is generated by
> JSEntryStub::GenerateBody.
>
> Debugging this issue, I've noticed that even if
> JSEntryStub::GenerateBody contains only a few nop()s, the crash still
> occurs, leading me to believe that the issue has nothing to do with
> the compiled  JS function. The crash occurs at Invoke() in
> execution.cc where CALL_GENERATED_CODE happens. I know the addresses
> of the parameters are valid, as well as the address of the stub. (I
> can inspect the memory at the entry stub address and see the
> instructions put there by JSEntryStub::GenerateBody).
>
> Everything appears fine from a method invocation standpoint as far as
> I can tell. What gives?



It would be interesting to see what gdb says.  Try 'bt', 'info reg' and
'disass address address' where the two addresses are on either side of the
PC when it crashes.

Also, be sure to compile the VM in debug mode when testing.  There are a ton
of asserts that are compiled out in release mode and they can often give you
a clue as to what is going wrong.


>
>
> Thanks again.
>
> .
> >
>


-- 
Erik Corry, Software Engineer
Google Denmark ApS.  CVR nr. 28 86 69 84
c/o Philip & Partners, 7 Vognmagergade, P.O. Box 2227, DK-1018 Copenhagen K,
Denmark.

--~--~---------~--~----~------------~-------~--~----~
v8-users mailing list
[email protected]
http://groups.google.com/group/v8-users
-~----------~----~----~----~------~----~------~--~---

Reply via email to