Go to file
sgjesse@chromium.org 882614391f Add scope chain information to the debugger.
For each frame it is now possible to request information on the scope chain. Each scope in the chain can have one of the types local, global, with and closure. For scopes of type global and with the mirror for the actual global or with object is available. For scopes of type local and closure a plain JavaScript object with the materialized content of the scope is created and its mirror is returned. Depending on the level of possible optimization the content of the materialized local and closure scopes might only contain the names which are actually used.

To iterate the scope chain an iterator ScopeIterator have been added which can provide the type of each scope for each part of the chain. This iterator creates an artificial local scope whenever that is present as the context chain does not include the local scope.

To avoid caching the mirror objects for the materialized the local and closure scopes transient mirrors have been added. They have negative handles and cannot be retrieved by subsequent lookup calls. Their content is part of a single response.

For debugging purposes an additional runtime function DebugPrintScopes is been added.

Added commands 'scopes' and 'scope' to the developer shell and fixed the dir command.

BUG=none
TEST=test/mjsunit/debug-scopes.js
Review URL: http://codereview.chromium.org/123021

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@2149 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
2009-06-12 10:03:25 +00:00
benchmarks Remove duplicate line in benchmarks/base.js 2009-05-26 13:28:51 +00:00
include Lars spotted that Handle::operator -> and * are not inlined. That apparently buys us almost ~10% 2009-06-11 19:44:48 +00:00
samples Add a "read" extension to the shell programs. This global function 2009-04-17 21:04:34 +00:00
src Add scope chain information to the debugger. 2009-06-12 10:03:25 +00:00
test Add scope chain information to the debugger. 2009-06-12 10:03:25 +00:00
tools Add log compression ability. 2009-06-08 13:39:48 +00:00
AUTHORS Fix compilation on FreeBSD. Thanks to Ryan Dahl for patch. 2009-06-08 08:51:35 +00:00
ChangeLog Prepare push of V8 version 1.2.7 to trunk. Now working on version 1.2.8. 2009-06-08 11:03:04 +00:00
LICENSE Remove JSCRE 2009-02-25 08:08:01 +00:00
SConstruct Fix compilation on FreeBSD. Thanks to Ryan Dahl for patch. 2009-06-08 08:51:35 +00:00