gecko/js
Jim Blandy 920b2f659b Bug 692903: Identify scripts more helpfully in InferSpew output. r=bhackett
This delays assigning id numbers to scripts until the first time the id is
actually retrieved, and at that point produces an InferSpew message
identifying the script by id, address, url and line number. This means that
we only identify scripts we actually mention in InferSpew output.

If JSScript::id had users other than jsinfer, this wouldn't be appropriate.

With this patch applied, we get output like this, the first time a given script is mentioned:

[infer] script #2: 0x7ffff5906660 /home/jimb/moz/dbg/js/src/jit-test/lib/prolog.js:1
[infer] typeSet: T0x9ff748 bytecode0 #2
...
2011-10-07 15:12:12 -07:00
..
ductwork/debugger Bug 689884 - Deleted the now unused Makefiles from the tree; r=khuey 2011-10-06 17:15:07 +01:00
examples Add a throw hook to jorendb. 2011-05-13 21:13:04 -05:00
ipc Remove jsobj.h from installed headers, bug 690943. r=luke 2011-10-04 07:06:54 -07:00
jetpack Remove jsobj.h from installed headers, bug 690943. r=luke 2011-10-04 07:06:54 -07:00
jsd Remove jsobj.h from installed headers, bug 690943. r=luke 2011-10-04 07:06:54 -07:00
src Bug 692903: Identify scripts more helpfully in InferSpew output. r=bhackett 2011-10-07 15:12:12 -07:00