Reviewers: Mads Ager,

Description:
Add more debugging information to scripts compiled through eval.

Scripts now have a compilation type which can be host, eval or JSON.
Host scripts are compiled through the API, eval scripts are compiled
through call to evan and JSON scripts are compiled as a result of
calling JSON.parse.

For scripts scripts compiled through eval the JavaScript function in top
of the stack and the pc offset into the code is stored in the script
object. This makes it possible to calculate the source position of the
eval call later when requested. This information can be obtained through
the script mirror object and is part of the script mirror JSON
serialization for the debugger protocol.

Moved the enumeration ScripType into class Script and remamed to Type.
The new compilation type enumeration is also inside the class Script.

This information is now shown when using the scripts command in he
developer shell debugger.

Please review this at http://codereview.chromium.org/119108

SVN Base: http://v8.googlecode.com/svn/branches/bleeding_edge/

Affected files:
   M     src/accessors.h
   M     src/accessors.cc
   M     src/bootstrapper.cc
   M     src/compiler.cc
   M     src/d8.cc
   M     src/d8.js
   M     src/debug-delay.js
   M     src/debug.cc
   M     src/factory.cc
   M     src/mirror-delay.js
   M     src/objects-inl.h
   M     src/objects.h
   M     test/mjsunit/debug-compile-event.js
   M     test/mjsunit/mirror-script.js



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

Reply via email to