Whenever a script object is created it is assigned a unique id. Currently this id...
authorsgjesse@chromium.org <sgjesse@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Tue, 10 Mar 2009 08:10:50 +0000 (08:10 +0000)
committersgjesse@chromium.org <sgjesse@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Tue, 10 Mar 2009 08:10:50 +0000 (08:10 +0000)
commit9d17b0d4c82ce3477c014044f6914fdbf6692f69
treef46acaeb69ca953465565ab6be076f5a86b1aa58
parentbab4b3b2e017f3e11f3e510450525b05273332ee
Whenever a script object is created it is assigned a unique id. Currently this id is assigned from an 32 bit integer counter.

Changed the script break points to be able to handle both break points based on script names and script ids. When break points are set through a script id the position is relative to the script itself. This is different from the script break points set through script names where the line/coulmn offset is taken into account.

This has the side effect that function break points are not converted into script break points for named scripts.

Show the script id in the D8 shell debugger when listing all scripts using the 'scripts' command.
Review URL: http://codereview.chromium.org/40317

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@1468 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
15 files changed:
include/v8.h
src/accessors.cc
src/accessors.h
src/api.cc
src/bootstrapper.cc
src/d8.js
src/debug-delay.js
src/factory.cc
src/factory.h
src/mirror-delay.js
src/objects-inl.h
src/objects.h
test/cctest/test-debug.cc
test/mjsunit/debug-script-breakpoints.js
test/mjsunit/debug-setbreakpoint.js