Hi, There must be something wrong with your setting of break points. There is only on way of getting JavaScript code into V8 from a client application, and that is through the static method v8::Script::Compile in the public API. This method is defined in api.cc where it in turn calls v8::internal:Compiler::Complie defined in compiler.cc. All the adding of code to V8 from Chromium is handled in v8_proxy.cpp.
Code added from within JavaScript through the use of eval will be handled by v8::internal:Compiler::ComplieEval. Note that if you are using Chromium for this you need to take the multiprocess architecture into account either by using the --single-process switch to turn it off or by attaching to the process you will actually like to debug. Regards, Søren On Thu, May 28, 2009 at 07:52, Lucius Fox <[email protected]> wrote: > > Hi, > > i am trying to understand how chromium passes JS script node/JS file > to v8 engine for execution. > So i setup breakpoints in Xcode with test)shell xcode project opened: > Compiler::Compile > Compiler::CompileEval > Compiler::CompileLazy > > And then I 'build and go (debug)' to get a TestShell. It did start up > the TestShell, and it did break in the initial breakpoint I setup in > test_shell_main.cc. But when I load a page with Javascript for sure, > e.g. www.cnn.con, it never breaks in the Compiler functions that I > mentioned above. > > Can you please tell me how does chromium passes JS script node/JS file > to v8 engine for execution > > > > --~--~---------~--~----~------------~-------~--~----~ Chromium Developers mailing list: [email protected] View archives, change email options, or unsubscribe: http://groups.google.com/group/chromium-dev -~----------~----~----~----~------~----~------~--~---
