Compare commits
5010 Commits
mozilla
...
SpiderMonk
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
cf6db2abdd | ||
|
|
e973ce2e64 | ||
|
|
a7c924107a | ||
|
|
dd04b345a9 | ||
|
|
196840e43e | ||
|
|
f6cc728f7c | ||
|
|
b176dfdf14 | ||
|
|
306aeb02c4 | ||
|
|
0689998baf | ||
|
|
f82e1076b8 | ||
|
|
36f1b44c5a | ||
|
|
a01beb172e | ||
|
|
87244f2387 | ||
|
|
bb1700203f | ||
|
|
04f1117a20 | ||
|
|
d7c8c29308 | ||
|
|
75045483df | ||
|
|
eb4284dfe3 | ||
|
|
5f08e5453f | ||
|
|
297a92fed5 | ||
|
|
430ba8a25f | ||
|
|
d4c9e5196e | ||
|
|
92181cdedc | ||
|
|
d42fcb5d9a | ||
|
|
a75043737c | ||
|
|
ad5a6cbd9c | ||
|
|
b73c93ce31 | ||
|
|
74ac28f85b | ||
|
|
3d5bbbd416 | ||
|
|
a659fad23a | ||
|
|
0534335359 | ||
|
|
d9d9f76b42 | ||
|
|
2ce568f036 | ||
|
|
2feaadaafd | ||
|
|
4142a81ec0 | ||
|
|
4eba0d77e0 | ||
|
|
347f0232ad | ||
|
|
2fd0ae6b14 | ||
|
|
87f42c5a2a | ||
|
|
692d4446f3 | ||
|
|
ff9e7d1ae5 | ||
|
|
6faae76e7e | ||
|
|
472ac2feab | ||
|
|
e295e36d9e | ||
|
|
bf8d9a56ec | ||
|
|
73b18ade9c | ||
|
|
6122209dca | ||
|
|
e5b764e983 | ||
|
|
84611771f9 | ||
|
|
95cb9f8bb7 | ||
|
|
b667832a93 | ||
|
|
f2a087fb61 | ||
|
|
744a8a6402 | ||
|
|
2c19d573b9 | ||
|
|
44e18f453b | ||
|
|
e8ee11cc30 | ||
|
|
f97650ff4d | ||
|
|
6398fd3969 | ||
|
|
64bc56432a | ||
|
|
9c0688e086 | ||
|
|
1e17c44fbd | ||
|
|
02486bc176 | ||
|
|
74736d0aa2 | ||
|
|
e62feeeeb5 | ||
|
|
25629114ff | ||
|
|
f0dc15e6f1 | ||
|
|
767e2ceb35 | ||
|
|
444c87e0f5 | ||
|
|
6995e6db68 | ||
|
|
036f73d888 | ||
|
|
017f8429a6 | ||
|
|
a548931dc2 | ||
|
|
2edfbcee56 | ||
|
|
a2eaa7c8b9 | ||
|
|
4d96b37aed | ||
|
|
be859bc4a8 | ||
|
|
ce4a0d7dfa | ||
|
|
c8d156d137 | ||
|
|
afc0070e3a | ||
|
|
6757eb6507 | ||
|
|
921da2b46b | ||
|
|
774b05a64e | ||
|
|
eb37b3b03b | ||
|
|
c33d03c991 | ||
|
|
03091e4c57 | ||
|
|
d3f6fcb126 | ||
|
|
0351cf31cb | ||
|
|
6d3eca4275 | ||
|
|
0d867e309d | ||
|
|
4eae6b10bd | ||
|
|
e2462a0ad5 | ||
|
|
ba07bbb4d5 | ||
|
|
8719b2fcc7 | ||
|
|
33de54eaeb | ||
|
|
e6a6c4d084 | ||
|
|
bc3d710f3f | ||
|
|
12070e6983 | ||
|
|
1adbedd6f9 | ||
|
|
6f2f42b217 | ||
|
|
2b6176f9d8 | ||
|
|
1d0fead886 | ||
|
|
815a0d1a53 | ||
|
|
eaeddb7cbc | ||
|
|
5054c76987 | ||
|
|
aaa877b47c | ||
|
|
c6620f1885 | ||
|
|
d0ab03d4a3 | ||
|
|
a11bd9820c | ||
|
|
e35fa87f00 | ||
|
|
0e79006260 | ||
|
|
a02a1efd96 | ||
|
|
a76e7f64d4 | ||
|
|
242018f1b0 | ||
|
|
e1fb42ecd9 | ||
|
|
fbaca6a474 | ||
|
|
d3dee2a1cd | ||
|
|
e4d6b73897 | ||
|
|
e67ea67176 | ||
|
|
2ee3f26756 | ||
|
|
2f69c04ca1 | ||
|
|
f3596d389e | ||
|
|
eb644191a7 | ||
|
|
b8f65f898c | ||
|
|
dae6ba15ff | ||
|
|
9c9fd15257 | ||
|
|
1975d14459 | ||
|
|
7a3a4637e0 | ||
|
|
d2ee90c6f6 | ||
|
|
869710ea81 | ||
|
|
cbe75d082c | ||
|
|
45096aedf8 | ||
|
|
b334610eb4 | ||
|
|
19df6bd097 | ||
|
|
382fa764f3 | ||
|
|
90665d4586 | ||
|
|
4d8a1b7ce4 | ||
|
|
7c95f4e280 | ||
|
|
6b177d62cb | ||
|
|
5212d164bb | ||
|
|
536a210148 | ||
|
|
2a07783ae3 | ||
|
|
deb6b70b30 | ||
|
|
2149baa1b7 | ||
|
|
cfc9d86f06 | ||
|
|
713b176c77 | ||
|
|
5d5567ee0b | ||
|
|
928e03821e | ||
|
|
8e0bea5308 | ||
|
|
a15efa757c | ||
|
|
b0cb022865 | ||
|
|
4db27e1c5c | ||
|
|
74d4f4944e | ||
|
|
7f91320a9f | ||
|
|
101f6c6d04 | ||
|
|
4469613c6c | ||
|
|
52d4b0ef55 | ||
|
|
f1cbc7a59f | ||
|
|
6476689c2a | ||
|
|
1879f2dad1 | ||
|
|
3308c1a24a | ||
|
|
2f1162ac13 | ||
|
|
b29fa59c9e | ||
|
|
7156617070 | ||
|
|
dbcff154a0 | ||
|
|
4ce01434b7 | ||
|
|
dd5d0a0c69 | ||
|
|
6b3655097e | ||
|
|
f6b4569d23 | ||
|
|
7ee2406a60 | ||
|
|
9ea292f821 | ||
|
|
0ad35718e6 | ||
|
|
cf081db165 | ||
|
|
a5c4d7dadc | ||
|
|
ff4eb30e75 | ||
|
|
eecde8e1b4 | ||
|
|
7265fa57bd | ||
|
|
c73df6a348 | ||
|
|
0144faa442 | ||
|
|
1f6040d392 | ||
|
|
01c1aa106c | ||
|
|
fa224fd2ef | ||
|
|
d2f3506c5b | ||
|
|
2d31e54c33 | ||
|
|
43acfe6cc5 | ||
|
|
8f341809c7 | ||
|
|
c1a5d8d3b3 | ||
|
|
be7e32c82b | ||
|
|
0bb7b2cbd4 | ||
|
|
24405b2309 | ||
|
|
7a522664a1 | ||
|
|
5606d9ffe7 | ||
|
|
a870fdb2bf | ||
|
|
23fc9f0716 | ||
|
|
eee480656d | ||
|
|
eb4e58c625 | ||
|
|
7084adda2f | ||
|
|
4fc0cd66b9 | ||
|
|
c847582208 | ||
|
|
8aa9a429e2 | ||
|
|
3dd636321e | ||
|
|
a792550eaf | ||
|
|
93d3fcc553 | ||
|
|
b574a339c4 | ||
|
|
26593bba3e | ||
|
|
bb6dae00b4 | ||
|
|
536bb5fb69 | ||
|
|
5b7224a0ba | ||
|
|
2565f0ea42 | ||
|
|
978f92d1cb | ||
|
|
57fb94abb2 | ||
|
|
9e150141dc | ||
|
|
43f1a57a68 | ||
|
|
4a625adf16 | ||
|
|
e2980a544f | ||
|
|
998ecccd77 | ||
|
|
03d573ae07 | ||
|
|
3995187622 | ||
|
|
09e945fd66 | ||
|
|
05a1c42505 | ||
|
|
dbfcbd98f5 | ||
|
|
badd14779a | ||
|
|
be17f0bd8d | ||
|
|
d926919cb7 | ||
|
|
097912ea50 | ||
|
|
0824b3c722 | ||
|
|
ef2de12e76 | ||
|
|
aa18bd41b1 | ||
|
|
acf0119e9e | ||
|
|
3688797c1c | ||
|
|
9f88be8d5b | ||
|
|
19394cf881 | ||
|
|
b42f4a67f9 | ||
|
|
1c9f6bdf36 | ||
|
|
c759a83640 | ||
|
|
95940ed7dd | ||
|
|
3177780a05 | ||
|
|
cc1becb059 | ||
|
|
3e23be2a65 | ||
|
|
a616b0c737 | ||
|
|
51248e7bd6 | ||
|
|
1003354989 | ||
|
|
6ef933f1dd | ||
|
|
0532abd596 | ||
|
|
8a0510d517 | ||
|
|
3ca1f0e330 | ||
|
|
9a3681b17c | ||
|
|
fd21a37d46 | ||
|
|
4b813fe58a | ||
|
|
2e1de58db6 | ||
|
|
ad1b4d1f0f | ||
|
|
34d1dbb943 | ||
|
|
d8f18ce4e4 | ||
|
|
f797cb3825 | ||
|
|
f7496502f8 | ||
|
|
df1afa8f63 | ||
|
|
3f1787b5b9 | ||
|
|
a203142a37 | ||
|
|
bf3698e38e | ||
|
|
ad0bb844fb | ||
|
|
b0645e2d20 | ||
|
|
b5d3b442c6 | ||
|
|
ba2c2ed5c3 | ||
|
|
c85dbb793f | ||
|
|
575cafe33c | ||
|
|
38eaee9d7f | ||
|
|
618048aeca | ||
|
|
4c59734a0a | ||
|
|
a7cf25c760 | ||
|
|
58fb3b03d9 | ||
|
|
54f5b97a00 | ||
|
|
93857c0f50 | ||
|
|
0f78181c4a | ||
|
|
696ff1d673 | ||
|
|
d3752ac63b | ||
|
|
397d1112c0 | ||
|
|
d718c75e36 | ||
|
|
87be6c6bbb | ||
|
|
fe5f58e6b1 | ||
|
|
afb0729ff5 | ||
|
|
b682893960 | ||
|
|
03918ae6a0 | ||
|
|
2ca263121e | ||
|
|
619de9735c | ||
|
|
93b0afe1e6 | ||
|
|
801b4353bb | ||
|
|
c49c3453db | ||
|
|
d2800a7dca | ||
|
|
990634558a | ||
|
|
e1c7dc7d45 | ||
|
|
4f6b1eff1e | ||
|
|
853b441ba7 | ||
|
|
a85fcf53ab | ||
|
|
5069231a7a | ||
|
|
64a6aa6855 | ||
|
|
00d1f7c1ed | ||
|
|
fad5a4613b | ||
|
|
e826647f5a | ||
|
|
81f553ec98 | ||
|
|
7e9fb1460b | ||
|
|
6509224cb1 | ||
|
|
3429485e0c | ||
|
|
21ed55f697 | ||
|
|
367db8d903 | ||
|
|
0944b9df83 | ||
|
|
4d8bb40766 | ||
|
|
c7f2668539 | ||
|
|
d86add2381 | ||
|
|
64bd2d479b | ||
|
|
1d02eeaa85 | ||
|
|
4ec5bfbc70 | ||
|
|
00783c3caf | ||
|
|
23494411d1 | ||
|
|
9962598ad4 | ||
|
|
b4f057ab70 | ||
|
|
39fa156cf9 | ||
|
|
c4a1ce23c0 | ||
|
|
af89e6ee56 | ||
|
|
68fb13b240 | ||
|
|
403adcd321 | ||
|
|
450cc00b0e | ||
|
|
5bddf80e07 | ||
|
|
38b1292ac7 | ||
|
|
bc64bc9f75 | ||
|
|
092b0da252 | ||
|
|
33a3f8c4e9 | ||
|
|
8fd8e53a03 | ||
|
|
6851a0e6ef | ||
|
|
cf7c0268db | ||
|
|
ef83d32fa5 | ||
|
|
54e5227fce | ||
|
|
d8242d6b50 | ||
|
|
5d922b0607 | ||
|
|
1bb3eb1ece | ||
|
|
e3c7b8ee2e | ||
|
|
8a4c30499c | ||
|
|
a079b82f96 | ||
|
|
2e7953e856 | ||
|
|
53faa92171 | ||
|
|
71559caf86 | ||
|
|
4cec320d5f | ||
|
|
f6dd7b8e2d | ||
|
|
986a620583 | ||
|
|
0f13df8524 | ||
|
|
4cf12f52b4 | ||
|
|
7a6596b388 | ||
|
|
ed68810de3 | ||
|
|
522e2c939f | ||
|
|
19ceea02ea | ||
|
|
629930594a | ||
|
|
796c404334 | ||
|
|
253d092aa2 | ||
|
|
b4c83f3565 | ||
|
|
946d7a4f6c | ||
|
|
ee4fc06d7b | ||
|
|
83be20c407 | ||
|
|
78a97845e4 | ||
|
|
cc8152d779 | ||
|
|
7ed1508eb7 | ||
|
|
18b1ecd76a | ||
|
|
a3f31ec82d | ||
|
|
a19951a779 | ||
|
|
08d367bb94 | ||
|
|
3515cf905f | ||
|
|
b09afc13b7 | ||
|
|
03e55a2524 | ||
|
|
3e7a55229e | ||
|
|
85af300c3f | ||
|
|
90d84e1b14 | ||
|
|
3b2e752c9d | ||
|
|
71846e88e0 | ||
|
|
6268b0ebfb | ||
|
|
c3340327ce | ||
|
|
da930054fd | ||
|
|
44278b8dbc | ||
|
|
dc85222579 | ||
|
|
cd7dbec032 | ||
|
|
10536d60d8 | ||
|
|
7d13af6cd7 | ||
|
|
75b23e3d9b | ||
|
|
261c09e9a4 | ||
|
|
964bf5df85 | ||
|
|
10e896e070 | ||
|
|
f2e785dc3d | ||
|
|
0110ffd817 | ||
|
|
d29688bda8 | ||
|
|
fd043bcb87 | ||
|
|
0d13f6d8ad | ||
|
|
ef67a6638f | ||
|
|
4ec4b95cab | ||
|
|
f281182e39 | ||
|
|
3dc8a3ae8d | ||
|
|
3f18a46c65 | ||
|
|
390518f530 | ||
|
|
963de1188c | ||
|
|
aea45d430c | ||
|
|
a25d4830f5 | ||
|
|
204a4ebb6f | ||
|
|
26e487f807 | ||
|
|
d0ec2a3f30 | ||
|
|
cbb595bc74 | ||
|
|
53acefa0fb | ||
|
|
811fd2c6b7 | ||
|
|
29f9544186 | ||
|
|
e1b5af3c02 | ||
|
|
26476a8f72 | ||
|
|
9557259fac | ||
|
|
97b3ba87ce | ||
|
|
60eb0f82a8 | ||
|
|
fd9d887680 | ||
|
|
24c82877d7 | ||
|
|
cb9d4c2248 | ||
|
|
6bcb5e9aea | ||
|
|
436cbe9f4c | ||
|
|
e8e225d6a4 | ||
|
|
658c01a15c | ||
|
|
928b076582 | ||
|
|
d10846bc53 | ||
|
|
38fe84272b | ||
|
|
5d4dcb3021 | ||
|
|
9fd537fc37 | ||
|
|
15bd8936d3 | ||
|
|
7f19f8bc79 | ||
|
|
c4968109cb | ||
|
|
eaf15669da | ||
|
|
13dd42d26e | ||
|
|
2810bc0762 | ||
|
|
2ffbe5d997 | ||
|
|
f1177f874c | ||
|
|
1249f0b7be | ||
|
|
ec76a92bb8 | ||
|
|
791a1160b9 | ||
|
|
921ba39e2a | ||
|
|
1d4ce9d870 | ||
|
|
aac6b1834b | ||
|
|
889a98b461 | ||
|
|
c5aa091c9a | ||
|
|
ed672de7ee | ||
|
|
4d514e1475 | ||
|
|
3d43df67e0 | ||
|
|
4173b65b96 | ||
|
|
0e289f9983 | ||
|
|
07045aadc0 | ||
|
|
a363205273 | ||
|
|
d583bfd2c0 | ||
|
|
4073da1ad6 | ||
|
|
9770e7f6a0 | ||
|
|
b5086dd83e | ||
|
|
38de983db5 | ||
|
|
d7e950cb07 | ||
|
|
98a44d6d1d | ||
|
|
8bfc148b9e | ||
|
|
5c932baf63 | ||
|
|
f59ddd76de | ||
|
|
8e26ea23af | ||
|
|
10b0586ff2 | ||
|
|
83eeb740a3 | ||
|
|
e9f056b9e6 | ||
|
|
f92ae60b6b | ||
|
|
fd4f23b3a3 | ||
|
|
03dd781fc8 | ||
|
|
bef9e12eb4 | ||
|
|
110e0583ca | ||
|
|
081ed90d75 | ||
|
|
417fe30eff | ||
|
|
a81a0d9d11 | ||
|
|
2781aefef5 | ||
|
|
2905eb0808 | ||
|
|
cf08e060ad | ||
|
|
518fd29f37 | ||
|
|
18a5d0d12b | ||
|
|
58e5b3ad09 | ||
|
|
aedcffba4d | ||
|
|
2aa6e2a7ea | ||
|
|
ea5de2e14e | ||
|
|
3285a208a8 | ||
|
|
fb2a0d08d0 | ||
|
|
c72fa9d414 | ||
|
|
15e4c2641f | ||
|
|
1692db1422 | ||
|
|
134f2d6f55 | ||
|
|
c9dc101f20 | ||
|
|
dc04fe1709 | ||
|
|
7029665f7b | ||
|
|
ee1fa0a7dc | ||
|
|
b7455fddad | ||
|
|
29bd495725 | ||
|
|
b346f9f8ae | ||
|
|
b4c8b8c251 | ||
|
|
3c24dfcac9 | ||
|
|
da64cf3a29 | ||
|
|
a4c2157cb7 | ||
|
|
a8b91edb14 | ||
|
|
3f589f9b96 | ||
|
|
58b2032551 | ||
|
|
45a9c60036 | ||
|
|
9ffd44c8c4 | ||
|
|
7666302ed2 | ||
|
|
36b2df5f6e | ||
|
|
229ce1d8b7 | ||
|
|
9d97f5e3a4 | ||
|
|
17747420b6 | ||
|
|
6790bf9cf4 | ||
|
|
b88f55edc1 | ||
|
|
048e4e82c4 | ||
|
|
99d5cec396 | ||
|
|
686ab09e1d | ||
|
|
d24e485ddd | ||
|
|
1160764112 | ||
|
|
debca7e4b0 | ||
|
|
727677388a | ||
|
|
bf84d4676d | ||
|
|
ff98509a11 | ||
|
|
dda42577e3 | ||
|
|
1cf2eda599 | ||
|
|
c7a7f073cb | ||
|
|
04bb9b85c5 | ||
|
|
28e1db1ba8 | ||
|
|
9c07a0ccb1 | ||
|
|
41474b9f25 | ||
|
|
699f7b273a | ||
|
|
378581e3b2 | ||
|
|
1fb5bce42e | ||
|
|
e0dbef53b9 | ||
|
|
b324c734a9 | ||
|
|
a9cc8d7fb8 | ||
|
|
69064850c5 | ||
|
|
ab4610e04c | ||
|
|
c40e5f80b0 | ||
|
|
7f1c53ffbd | ||
|
|
d61f5ac92d | ||
|
|
3058b55651 | ||
|
|
f3a71182c0 | ||
|
|
01c800f006 | ||
|
|
a52ecc58f7 | ||
|
|
8ad4687c4c | ||
|
|
a2302d6ea3 | ||
|
|
b1870aece3 | ||
|
|
c4d31156fa | ||
|
|
0fc4671799 | ||
|
|
dcaeb10200 | ||
|
|
759e54597a | ||
|
|
79be6ce3fb | ||
|
|
004510d695 | ||
|
|
44d663eb20 | ||
|
|
d99af8473b | ||
|
|
7f75cbf21c | ||
|
|
da00efde73 | ||
|
|
302a2b6698 | ||
|
|
400853b281 | ||
|
|
7d2fbdcb39 | ||
|
|
a39ecbd7f8 | ||
|
|
6f24a9248e | ||
|
|
7f391c8809 | ||
|
|
bd55775598 | ||
|
|
1da19b249d | ||
|
|
0e52fa808b | ||
|
|
7f1123fbb0 | ||
|
|
16c0bec37b | ||
|
|
d6e6532f96 | ||
|
|
f814af496f | ||
|
|
b185fdbace | ||
|
|
f97c125cc8 | ||
|
|
6ed1aaebd1 | ||
|
|
3ad7662ba1 | ||
|
|
2d66797d69 | ||
|
|
36841b7bfb | ||
|
|
62f88d15c0 | ||
|
|
05cb2627de | ||
|
|
413a084535 | ||
|
|
08a6bbac38 | ||
|
|
3a70c5668a | ||
|
|
771bb0ab08 | ||
|
|
c089c7be5b | ||
|
|
1075d0220f | ||
|
|
c070f4d115 | ||
|
|
129212b050 | ||
|
|
d5206868ec | ||
|
|
bb80c6008d | ||
|
|
5c03605811 | ||
|
|
df7f514392 | ||
|
|
7bb700d460 | ||
|
|
89c44b8453 | ||
|
|
6cc6eed4f5 | ||
|
|
4a97a49730 | ||
|
|
27f3f1694f | ||
|
|
d37168f980 | ||
|
|
2e593ad30b | ||
|
|
f88927fd2a | ||
|
|
c8a0af7840 | ||
|
|
c765a66dc8 | ||
|
|
214076ccbf | ||
|
|
dfd1fc1277 | ||
|
|
4ea46c84ff | ||
|
|
6eb7152c7b | ||
|
|
80b34e4cfe | ||
|
|
28ed9703d1 | ||
|
|
9867c7247c | ||
|
|
f527b81530 | ||
|
|
e1b3ab92e1 | ||
|
|
0f7c4fcc60 | ||
|
|
79f4237ad6 | ||
|
|
4a943aa35d | ||
|
|
18de1add17 | ||
|
|
74701acb12 | ||
|
|
f404081f95 | ||
|
|
4563d8a75c | ||
|
|
c296a8e7da | ||
|
|
c6af0a0d7c | ||
|
|
46dfd716ef | ||
|
|
1cc1204f3b | ||
|
|
331c0397cf | ||
|
|
b46780dae8 | ||
|
|
849f62d331 | ||
|
|
c6925b2474 | ||
|
|
fa58313d3b | ||
|
|
eda50c70ba | ||
|
|
9fe486c0b3 | ||
|
|
43f3a6ef9c | ||
|
|
5c8f6e680f | ||
|
|
9bdd226ce2 | ||
|
|
b0ee04ea51 | ||
|
|
1c5477a07a | ||
|
|
1e340bcd24 | ||
|
|
336c7bc219 | ||
|
|
e23567617a | ||
|
|
71f3407fae | ||
|
|
a62a32763e | ||
|
|
4b9888f652 | ||
|
|
9532cb1ca2 | ||
|
|
48cc145a5a | ||
|
|
a77900beba | ||
|
|
02c54f87d0 | ||
|
|
50802fef79 | ||
|
|
1e98e9a663 | ||
|
|
f7190f6f47 | ||
|
|
103713e48c | ||
|
|
b323adce22 | ||
|
|
31130f0665 | ||
|
|
6acac9aa1b | ||
|
|
98f788ca35 | ||
|
|
49e7c3f993 | ||
|
|
d12d057d72 | ||
|
|
5b2644b7cb | ||
|
|
fe65f0b10a | ||
|
|
321cc67e2d | ||
|
|
f82390981e | ||
|
|
3ed23f8046 | ||
|
|
73200c8277 | ||
|
|
1cd8ece754 | ||
|
|
e900d18ade | ||
|
|
9723eeea42 | ||
|
|
8e40fcd4a6 | ||
|
|
843ee0f1c6 | ||
|
|
1c7b13862f | ||
|
|
b1cadc9f54 | ||
|
|
36910f8877 | ||
|
|
c4b86b343e | ||
|
|
dc2098cbe1 | ||
|
|
0b93c5a323 | ||
|
|
73e840f5f5 | ||
|
|
5d65c5c70c | ||
|
|
8741a16194 | ||
|
|
280bcbeebd | ||
|
|
ecf275a7cc | ||
|
|
993717ca00 | ||
|
|
5129708072 | ||
|
|
4993683d59 | ||
|
|
4a6ca01df0 | ||
|
|
f68500ff33 | ||
|
|
22ee60a3f4 | ||
|
|
b48fcb2453 | ||
|
|
7a8682458e | ||
|
|
7a5a400eff | ||
|
|
2865244818 | ||
|
|
ebc6d89a67 | ||
|
|
cbef624550 | ||
|
|
2f8779ae3d | ||
|
|
b2438a38ca | ||
|
|
a38f64b869 | ||
|
|
1179f03bd9 | ||
|
|
c1032fa648 | ||
|
|
29bade6bcb | ||
|
|
138ffb41d2 | ||
|
|
935d2b357a | ||
|
|
8dcb1aa63a | ||
|
|
c2ae678e88 | ||
|
|
2ef9d58cf1 | ||
|
|
c595004478 | ||
|
|
3a151fb16a | ||
|
|
99d6170c91 | ||
|
|
d1c07cffa3 | ||
|
|
36e5403568 | ||
|
|
e5de7aa2e1 | ||
|
|
b2738846f8 | ||
|
|
c822503f00 | ||
|
|
7f9c0797fb | ||
|
|
34cb6ec1f6 | ||
|
|
71b345a6ee | ||
|
|
cd9dabac07 | ||
|
|
d74d40ae85 | ||
|
|
a34949bc86 | ||
|
|
af673cd536 | ||
|
|
004c474793 | ||
|
|
2116f90197 | ||
|
|
ef78a4310b | ||
|
|
fca9be5a9a | ||
|
|
ec969f3351 | ||
|
|
2f930733a2 | ||
|
|
c36b7571bf | ||
|
|
7e9b56edac | ||
|
|
37a87d59ec | ||
|
|
89414bdc34 | ||
|
|
56adf83688 | ||
|
|
182a2d0cc7 | ||
|
|
67620830db | ||
|
|
ad992aff3d | ||
|
|
9f3aa1200d | ||
|
|
b0a4c2c716 | ||
|
|
5438b98906 | ||
|
|
81fe1dd834 | ||
|
|
1e16c84e01 | ||
|
|
0958221b99 | ||
|
|
f4e9409e30 | ||
|
|
29a360ec69 | ||
|
|
e94d00e173 | ||
|
|
58bc94bb8e | ||
|
|
27d276091a | ||
|
|
aab130cc8b | ||
|
|
7da6419e6b | ||
|
|
3e01c94cf4 | ||
|
|
5a61e26e0e | ||
|
|
67cffb963d | ||
|
|
2b8e7bc80a | ||
|
|
f5699caa1c | ||
|
|
007d2572ec | ||
|
|
6685c97686 | ||
|
|
d2443ecc8f | ||
|
|
f9b726fb87 | ||
|
|
a21eaed68f | ||
|
|
5a3b222dd6 | ||
|
|
30e2f97b27 | ||
|
|
5e861f6532 | ||
|
|
57cdb17162 | ||
|
|
2184647a9a | ||
|
|
bf2d88dc1e | ||
|
|
1a54cc0a9e | ||
|
|
f1e0b05dc4 | ||
|
|
b5b273d3ef | ||
|
|
d89b691fba | ||
|
|
f888cfd66a | ||
|
|
a6807f0b9a | ||
|
|
59389793dc | ||
|
|
5d5cbcf87e | ||
|
|
756a63cc4b | ||
|
|
ec9ecfbf56 | ||
|
|
756fd5b9bf | ||
|
|
8a8dd2f29f | ||
|
|
518758ca7c | ||
|
|
37467e85ac | ||
|
|
0b0a2a52d0 | ||
|
|
6564810f9b | ||
|
|
c59a27d07a | ||
|
|
69ae0abf2a | ||
|
|
848184e8a5 | ||
|
|
e937d85212 | ||
|
|
33d6ccb403 | ||
|
|
490a70caa5 | ||
|
|
d93cb5e22a | ||
|
|
4ffa68f14c | ||
|
|
e20ba6de49 | ||
|
|
afe39bc285 | ||
|
|
2b9a1d888b | ||
|
|
0701bd1c63 | ||
|
|
cc457d3fc1 | ||
|
|
7a416a829b | ||
|
|
d026fc4ce6 | ||
|
|
7d9ce23446 | ||
|
|
85bacc0b74 | ||
|
|
f739fe345a | ||
|
|
4af09d8402 | ||
|
|
7b2337aec4 | ||
|
|
e94b531ee1 | ||
|
|
9e855e939f | ||
|
|
30d672124d | ||
|
|
cd880119c8 | ||
|
|
3a45a3dc3a | ||
|
|
0ab02a302c | ||
|
|
e8841f67c3 | ||
|
|
065cfb55ee | ||
|
|
45b5b5c210 | ||
|
|
91c1672c14 | ||
|
|
c93f8f4104 | ||
|
|
d73a35099d | ||
|
|
df5601c29a | ||
|
|
41f1b4f090 | ||
|
|
65ba85c5bd | ||
|
|
5f66795cb8 | ||
|
|
2b334450f9 | ||
|
|
93e51d6671 | ||
|
|
7bd0ce4b9a | ||
|
|
f851822ded | ||
|
|
46c68e910e | ||
|
|
f73b4a295c | ||
|
|
2c7ce3d346 | ||
|
|
cf798f296d | ||
|
|
738ba6769e | ||
|
|
6978dba76f | ||
|
|
18c7a095bf | ||
|
|
8cd41c644c | ||
|
|
5ce3f53659 | ||
|
|
5ae651083e | ||
|
|
6d28021460 | ||
|
|
7c8f78f13e | ||
|
|
525be8b73c | ||
|
|
18eaaa07f0 | ||
|
|
ae80c98370 | ||
|
|
894f581915 | ||
|
|
f65af38e65 | ||
|
|
2bc0de0b77 | ||
|
|
47ac447f58 | ||
|
|
3001c332c3 | ||
|
|
9d3a292399 | ||
|
|
b1546b7d52 | ||
|
|
e8c1c880f1 | ||
|
|
f8f27f84e8 | ||
|
|
fd8029f77c | ||
|
|
3bd3c3860d | ||
|
|
c954784c1d | ||
|
|
5090b6a4f4 | ||
|
|
1f83c25503 | ||
|
|
9a4c01c5f3 | ||
|
|
171bcbb83c | ||
|
|
514ba65f4c | ||
|
|
bcd5608410 | ||
|
|
1565e175b6 | ||
|
|
fcac17d298 | ||
|
|
2ddf7cd9af | ||
|
|
5cb570fb1f | ||
|
|
71fd3536bf | ||
|
|
feef8d9c26 | ||
|
|
bde0802271 | ||
|
|
7c34652d21 | ||
|
|
47e8c17786 | ||
|
|
909945b91f | ||
|
|
1a347c2ce7 | ||
|
|
2eeb35565a | ||
|
|
08b386f9cb | ||
|
|
39e2e1bae0 | ||
|
|
749291404c | ||
|
|
6d058eeeee | ||
|
|
0f2655b53c | ||
|
|
560aa64449 | ||
|
|
38f2dcce35 | ||
|
|
c7ff132202 | ||
|
|
2f5bd9c888 | ||
|
|
407666da46 | ||
|
|
fc13c09b25 | ||
|
|
bb900a9f9d | ||
|
|
c6a0b70795 | ||
|
|
00d806da59 | ||
|
|
a14e087299 | ||
|
|
f73d63e385 | ||
|
|
3166b9d9f5 | ||
|
|
4a1a03c683 | ||
|
|
9df05e8207 | ||
|
|
16417acbfc | ||
|
|
f3b963f1b8 | ||
|
|
75468d7b44 | ||
|
|
36835ec766 | ||
|
|
a0e09b1568 | ||
|
|
a4de4b5d61 | ||
|
|
56f25d5b0b | ||
|
|
63065c3d13 | ||
|
|
066a8fdc3f | ||
|
|
6ea6bf8db7 | ||
|
|
d4ea1ed1b6 | ||
|
|
73eed11d26 | ||
|
|
31e3d18f62 | ||
|
|
5279660a51 | ||
|
|
5a16b75b94 | ||
|
|
91395e31f9 | ||
|
|
847b17e502 | ||
|
|
2e0eb5f4ed | ||
|
|
736014b2ec | ||
|
|
b739d3db2f | ||
|
|
c90a6b6591 | ||
|
|
1edbf737bb | ||
|
|
e095459b50 | ||
|
|
50a63e5cc8 | ||
|
|
2eba8f268f | ||
|
|
23167da3f9 | ||
|
|
423c860f73 | ||
|
|
a39a110ab9 | ||
|
|
d4d95498a3 | ||
|
|
d8f009a9bb | ||
|
|
31e0c0882b | ||
|
|
a7875cd8c2 | ||
|
|
6342eba8da | ||
|
|
bddc8c873b | ||
|
|
7e2b8250af | ||
|
|
ab4d32e60f | ||
|
|
6e0e3ff345 | ||
|
|
351acc6d6f | ||
|
|
7d90504b18 | ||
|
|
15d647276b | ||
|
|
06d6784934 | ||
|
|
055ccbc896 | ||
|
|
66efe621c9 | ||
|
|
0ec16f60c8 | ||
|
|
9d55f92a4e | ||
|
|
c2725b051a | ||
|
|
be606125ff | ||
|
|
d0dbc1ba65 | ||
|
|
5552ee46a1 | ||
|
|
87b79bdc01 | ||
|
|
1100db045f | ||
|
|
0c0aa03bc8 | ||
|
|
f2b08b64ca | ||
|
|
fe14da3d04 | ||
|
|
3aae944f66 | ||
|
|
1b5515eaa5 | ||
|
|
6f1e81d880 | ||
|
|
e335e63e8a | ||
|
|
27f7f2d66d | ||
|
|
298169eb59 | ||
|
|
5e0237d8a6 | ||
|
|
736eb04028 | ||
|
|
d6bf9584b7 | ||
|
|
d2e0e65685 | ||
|
|
34d108941a | ||
|
|
d58bfd92b9 | ||
|
|
0c8ef97698 | ||
|
|
c6ba9519b8 | ||
|
|
97d2ab236b | ||
|
|
f33032c0ef | ||
|
|
5d5ee4c40d | ||
|
|
9ac35ef965 | ||
|
|
d845c03da1 | ||
|
|
a551ed02ac | ||
|
|
b92a78c828 | ||
|
|
62e242067b | ||
|
|
48aeda36b9 | ||
|
|
477761b77a | ||
|
|
120d70e207 | ||
|
|
5aaa827e18 | ||
|
|
4544703e9d | ||
|
|
2ddc86aa2f | ||
|
|
ba5bcc37f1 | ||
|
|
3492bd5b6b | ||
|
|
2e8e49c276 | ||
|
|
57e0cceaad | ||
|
|
5a14360d5a | ||
|
|
05574b8797 | ||
|
|
6493572113 | ||
|
|
a35aac5eae | ||
|
|
d00288c6ca | ||
|
|
2730141975 | ||
|
|
6f0c617896 | ||
|
|
cff9a24cd5 | ||
|
|
4e2473b8ea | ||
|
|
545a9acd6e | ||
|
|
ca600aab3f | ||
|
|
5260f16e31 | ||
|
|
72188b7413 | ||
|
|
eb2f91ec04 | ||
|
|
54cd9d7f80 | ||
|
|
e9aae9e229 | ||
|
|
41e4edcfca | ||
|
|
d2f50674bb | ||
|
|
7904be8420 | ||
|
|
0d1043d721 | ||
|
|
b9bae1b8c3 | ||
|
|
2704bc5419 | ||
|
|
ea2c6cffd9 | ||
|
|
12f4c6f06f | ||
|
|
c5e806848c | ||
|
|
e2209a9a18 | ||
|
|
fdfb3e654f | ||
|
|
2a812dcccc | ||
|
|
32f8ab11a9 | ||
|
|
e40b183083 | ||
|
|
d49b8c7d4c | ||
|
|
757cbcdac7 | ||
|
|
4fcf322350 | ||
|
|
ede0319097 | ||
|
|
6fe6655ed1 | ||
|
|
809a198969 | ||
|
|
1d7ce5d10b | ||
|
|
b87ccde43b | ||
|
|
89836e1844 | ||
|
|
b730edf085 | ||
|
|
568042b1d3 | ||
|
|
353cfacf03 | ||
|
|
7f4edf7cd7 | ||
|
|
620edc7e4b | ||
|
|
2967c94ab7 | ||
|
|
40b1dd793e | ||
|
|
aa0364d96e | ||
|
|
b7f1f4f158 | ||
|
|
37bd0ff8e8 | ||
|
|
51ccf3f4a6 | ||
|
|
6dc9367285 | ||
|
|
8ef17362a7 | ||
|
|
51d5ffd0d2 | ||
|
|
9de8b01a90 | ||
|
|
69ef1c676d | ||
|
|
8971dd2932 | ||
|
|
b0626f8f35 | ||
|
|
b11315f58d | ||
|
|
f6ecab2fe9 | ||
|
|
08bfbf832c | ||
|
|
22af17ef42 | ||
|
|
2f93295c49 | ||
|
|
eae4b59639 | ||
|
|
e0c2486ca8 | ||
|
|
6aa5136356 | ||
|
|
a5810d7432 | ||
|
|
dfda5fb533 | ||
|
|
ec3d7d579a | ||
|
|
b07314676c | ||
|
|
4c9accc7a3 | ||
|
|
1e2280e66f | ||
|
|
5287697b5c | ||
|
|
b2e3cfdead | ||
|
|
2c3e08667b | ||
|
|
878b8d2055 | ||
|
|
65c78855f4 | ||
|
|
4229eed9e1 | ||
|
|
acd50e3811 | ||
|
|
e0bdb8c018 | ||
|
|
1b7053743f | ||
|
|
8c3d3311e8 | ||
|
|
be78f27eea | ||
|
|
e042d5c584 | ||
|
|
b812d7600a | ||
|
|
68ea43efd0 | ||
|
|
d6b2f1dbd3 | ||
|
|
4445c154ab | ||
|
|
c862cb4ed1 | ||
|
|
90883e4791 | ||
|
|
2d246a2c09 | ||
|
|
78d90ede24 | ||
|
|
e509e2bbcb | ||
|
|
478882211f | ||
|
|
fec94bd0c4 | ||
|
|
91035380e4 | ||
|
|
afa32d12e4 | ||
|
|
817068cd07 | ||
|
|
9cde818fc9 | ||
|
|
34be3454f2 | ||
|
|
017c922bbf | ||
|
|
46218e7c24 | ||
|
|
8881b48ddb | ||
|
|
437fef3051 | ||
|
|
c88b2adacf | ||
|
|
1865fd6edd | ||
|
|
ea28d41d41 | ||
|
|
d7bf521871 | ||
|
|
8db18cb578 | ||
|
|
42b6110574 | ||
|
|
918e43e871 | ||
|
|
016ae7f6b3 | ||
|
|
286098fc96 | ||
|
|
51e192b3b4 | ||
|
|
95b852a8ca | ||
|
|
10e89930d3 | ||
|
|
2434bb767c | ||
|
|
ac3cfc4391 | ||
|
|
2e2a3b5ac7 | ||
|
|
138e0933c2 | ||
|
|
672ee7245f | ||
|
|
1a596d9651 | ||
|
|
cd4979b51c | ||
|
|
123830ec3f | ||
|
|
da0ce3321f | ||
|
|
5fe026c648 | ||
|
|
c4774082ef | ||
|
|
30dff79ff9 | ||
|
|
3942be2b44 | ||
|
|
be51f1246d | ||
|
|
3619727cca | ||
|
|
206148343b | ||
|
|
6c88bfcd03 | ||
|
|
af7f6004a9 | ||
|
|
dd6e645d0e | ||
|
|
22755a8a80 | ||
|
|
85e128c803 | ||
|
|
8bb4855b3e | ||
|
|
294a1a9391 | ||
|
|
62237665d8 | ||
|
|
a256ceff0e | ||
|
|
e289ce98a1 | ||
|
|
4d6c256e98 | ||
|
|
508cf175e1 | ||
|
|
b13f0c5c82 | ||
|
|
7631844a60 | ||
|
|
9635ce6b3d | ||
|
|
2ef860f895 | ||
|
|
1f604bee50 | ||
|
|
f092ac5a6d | ||
|
|
d7e1b5d4df | ||
|
|
b437ecfbf4 | ||
|
|
a574505dcc | ||
|
|
91d6a26ca0 | ||
|
|
8ec5d1453a | ||
|
|
12f8d7bcf7 | ||
|
|
ff591346ce | ||
|
|
600549559f | ||
|
|
b962ff63b0 | ||
|
|
52586c4d17 | ||
|
|
28617bfaaa | ||
|
|
335c402656 | ||
|
|
3ab42497ba | ||
|
|
cd0724bace | ||
|
|
4e88e16bc8 | ||
|
|
95cea74d0f | ||
|
|
1334e17d15 | ||
|
|
492295c5a2 | ||
|
|
3b9d34af51 | ||
|
|
2a00111629 | ||
|
|
347eee7298 | ||
|
|
7929e2ceda | ||
|
|
0c5f32f50a | ||
|
|
c56e8ff2f5 | ||
|
|
55f54e47a2 | ||
|
|
76c17657e3 | ||
|
|
5e3b928a96 | ||
|
|
f4aa850478 | ||
|
|
c2529a4155 | ||
|
|
109d0d3225 | ||
|
|
ab4e2c97d3 | ||
|
|
0e12939552 | ||
|
|
57893c342f | ||
|
|
50d4df11e1 | ||
|
|
3749ccde2a | ||
|
|
c08f341ef8 | ||
|
|
684148cae8 | ||
|
|
d726cb3ebe | ||
|
|
9485dfc44f | ||
|
|
438a628720 | ||
|
|
8c2e3a9e4e | ||
|
|
b2f7c3129e | ||
|
|
64916c2971 | ||
|
|
0609b59d96 | ||
|
|
a41388158b | ||
|
|
6698866bd5 | ||
|
|
5500648646 | ||
|
|
f80cc2f932 | ||
|
|
f91e42b5a2 | ||
|
|
5094c23fe3 | ||
|
|
f688a536e7 | ||
|
|
b9f8af2788 | ||
|
|
6b39c7aa84 | ||
|
|
88c09f9734 | ||
|
|
7ea10d3109 | ||
|
|
0d2281ac04 | ||
|
|
c3e35c8ca1 | ||
|
|
a30cf37991 | ||
|
|
acbd1d72b5 | ||
|
|
5d7a8e9edc | ||
|
|
e0132151d4 | ||
|
|
13f8faca02 | ||
|
|
67c1948979 | ||
|
|
35c48dd63c | ||
|
|
e597bf5b5e | ||
|
|
88b00edc52 | ||
|
|
211af529a6 | ||
|
|
5a6dc2c339 | ||
|
|
e08c473f5d | ||
|
|
7a78a0b28f | ||
|
|
3161248e22 | ||
|
|
bfd2a80270 | ||
|
|
b8f73d0d11 | ||
|
|
6c0731c604 | ||
|
|
0a28a3229c | ||
|
|
ecb25efdfb | ||
|
|
8e00bfe0eb | ||
|
|
d19a4861c3 | ||
|
|
1c551f13a6 | ||
|
|
bbdd8c06f6 | ||
|
|
712e26cd47 | ||
|
|
73417c4932 | ||
|
|
a53203e2ef | ||
|
|
1a25100bd7 | ||
|
|
db6ed23d59 | ||
|
|
19d327904e | ||
|
|
b4a73dfecd | ||
|
|
fe4d6b6028 | ||
|
|
a71a1c0dd0 | ||
|
|
5d6ae7c994 | ||
|
|
dc4b00830b | ||
|
|
a019c0116a | ||
|
|
bf4daa1995 | ||
|
|
91122bb62e | ||
|
|
f50ba15064 | ||
|
|
b88ae5f133 | ||
|
|
86fb3ce8f4 | ||
|
|
75200d01e2 | ||
|
|
5c124270ab | ||
|
|
ee2c0a8fe3 | ||
|
|
f1117c1fdd | ||
|
|
a94cef9200 | ||
|
|
d11f71c015 | ||
|
|
7587fab4a2 | ||
|
|
50f935b04c | ||
|
|
4a6a6680d9 | ||
|
|
9d27424fc1 | ||
|
|
4a9bcccc01 | ||
|
|
168ba9c0a1 | ||
|
|
cb12d7afa5 | ||
|
|
3c23c30dbf | ||
|
|
30b4dee6b8 | ||
|
|
234afb6498 | ||
|
|
5978cd996d | ||
|
|
8e51f4d46e | ||
|
|
b9def1b64c | ||
|
|
e655606d45 | ||
|
|
92cbd90c62 | ||
|
|
d16f011fb5 | ||
|
|
57c206bcd6 | ||
|
|
24baa667bd | ||
|
|
f7657488f1 | ||
|
|
c96b769834 | ||
|
|
320dfed35e | ||
|
|
2c5a2de20c | ||
|
|
48a6674533 | ||
|
|
76c4c3637d | ||
|
|
d98f212496 | ||
|
|
11693b6038 | ||
|
|
9f83b0ed2a | ||
|
|
f84f572b39 | ||
|
|
0b2ad46a78 | ||
|
|
a46c5c88c0 | ||
|
|
2448b8de54 | ||
|
|
dea1bc690b | ||
|
|
789a359a50 | ||
|
|
7a2a400559 | ||
|
|
da0f5f3d98 | ||
|
|
b2342730a5 | ||
|
|
9c907875f7 | ||
|
|
15ccbf9305 | ||
|
|
83f0974449 | ||
|
|
b11a146230 | ||
|
|
60f2552649 | ||
|
|
1392966e57 | ||
|
|
fc0eba060b | ||
|
|
2bf7384cfb | ||
|
|
e3ed4915d7 | ||
|
|
c60578c1b0 | ||
|
|
0eda784b7f | ||
|
|
bc68714899 | ||
|
|
44a8d24a32 | ||
|
|
f647ce5eee | ||
|
|
f1b645fc25 | ||
|
|
b2d91b9ad4 | ||
|
|
b2cb413058 | ||
|
|
97473fe3df | ||
|
|
7618086a4f | ||
|
|
97468bbadf | ||
|
|
9a2c14992b | ||
|
|
a59941bb28 | ||
|
|
33806af9b8 | ||
|
|
3e2cda5d0a | ||
|
|
fa96bee2d3 | ||
|
|
08121ac830 | ||
|
|
fd96ba4fea | ||
|
|
75b9d4a08c | ||
|
|
029abfce97 | ||
|
|
ce0012353f | ||
|
|
dd74c5aed1 | ||
|
|
d2150d71f0 | ||
|
|
d6ad711ae6 | ||
|
|
67a39a1228 | ||
|
|
7d4c6bb773 | ||
|
|
2f4c510318 | ||
|
|
3c3581178a | ||
|
|
548b9d6c4c | ||
|
|
6332064074 | ||
|
|
c4f659ca8c | ||
|
|
8c5475f152 | ||
|
|
62e6e57ecd | ||
|
|
2c0cdb4289 | ||
|
|
14a3005a7c | ||
|
|
339c214ae5 | ||
|
|
ee3c8f24c2 | ||
|
|
9f7cc4d959 | ||
|
|
b0bdb0dfe9 | ||
|
|
3762f96a42 | ||
|
|
475ac7e1df | ||
|
|
fbb54196c3 | ||
|
|
2c0825655a | ||
|
|
12b4734f6d | ||
|
|
5822084a51 | ||
|
|
4379b22868 | ||
|
|
f26f34527e | ||
|
|
4ef443b405 | ||
|
|
e432b92ff1 | ||
|
|
8d3cdccd9b | ||
|
|
bf11c69c53 | ||
|
|
16ac2997a7 | ||
|
|
cb61debdb9 | ||
|
|
eb2a18d4ae | ||
|
|
282a985095 | ||
|
|
943a65a6f0 | ||
|
|
b440092bca | ||
|
|
cf926dbbdb | ||
|
|
00bb442e13 | ||
|
|
29365a7bda | ||
|
|
2d5cf48d3a | ||
|
|
187de8be31 | ||
|
|
fe449b9657 | ||
|
|
29a0696e9c | ||
|
|
fc27316259 | ||
|
|
2ff677c5ee | ||
|
|
81bfcd2a88 | ||
|
|
342dd37103 | ||
|
|
455d111643 | ||
|
|
92d99aa71b | ||
|
|
7e6479a2d5 | ||
|
|
64dd0d0c4d | ||
|
|
57aa62b576 | ||
|
|
1346b87b70 | ||
|
|
e255a1fd19 | ||
|
|
31bc917f97 | ||
|
|
311426a6dd | ||
|
|
f5ee6c472f | ||
|
|
d2c44f767c | ||
|
|
1fda8731c7 | ||
|
|
c23f5ac38e | ||
|
|
1a80c8258c | ||
|
|
0dca929694 | ||
|
|
b9be4b3dd0 | ||
|
|
bd875567cd | ||
|
|
5b42f0064d | ||
|
|
3b60cb0ec6 | ||
|
|
0f35d8b2bc | ||
|
|
c7e7cf6692 | ||
|
|
2007494741 | ||
|
|
09cbe71a86 | ||
|
|
0da65bb90f | ||
|
|
05ea421cc7 | ||
|
|
cfd164684f | ||
|
|
352f3ffb50 | ||
|
|
bfdcc1dcc8 | ||
|
|
454a9e032a | ||
|
|
efe1df531c | ||
|
|
d50230b4a3 | ||
|
|
5a89b7676b | ||
|
|
5e51556fa4 | ||
|
|
b00d237b2e | ||
|
|
9b798c58b4 | ||
|
|
003d8e7e66 | ||
|
|
890aa52090 | ||
|
|
2d4f140614 | ||
|
|
a27ce79837 | ||
|
|
b0c2910017 | ||
|
|
128bf4e0e9 | ||
|
|
9259fe97e2 | ||
|
|
7615b5ea60 | ||
|
|
1924467f93 | ||
|
|
7be85096a1 | ||
|
|
a423a51195 | ||
|
|
ad28c21c1f | ||
|
|
83752c0f9f | ||
|
|
f3d1e1ef76 | ||
|
|
4115576894 | ||
|
|
757a4afe34 | ||
|
|
9c33f4f9c2 | ||
|
|
3cd94f6cbd | ||
|
|
93570f0e55 | ||
|
|
62d14b55d8 | ||
|
|
3aebc76c7e | ||
|
|
8ac619f636 | ||
|
|
294bc0f649 | ||
|
|
57b27feb1d | ||
|
|
e4011231b1 | ||
|
|
5b84b1bad0 | ||
|
|
a24888cb6b | ||
|
|
d27980931b | ||
|
|
df8ee4f952 | ||
|
|
63e4e055bd | ||
|
|
c0b17138e9 | ||
|
|
3c6086a706 | ||
|
|
4f69710047 | ||
|
|
faa834a3ee | ||
|
|
ae9687b74c | ||
|
|
131f763acd | ||
|
|
b951ea47e4 | ||
|
|
b42085b40d | ||
|
|
b8c6ff499b | ||
|
|
4e68055c90 | ||
|
|
b21a0a3dc2 | ||
|
|
0bcbcd1274 | ||
|
|
e93ac54f9b | ||
|
|
b8fac6a0d6 | ||
|
|
3f930cae77 | ||
|
|
c595feae21 | ||
|
|
7f9873ef37 | ||
|
|
df3aef5b18 | ||
|
|
b4cf5d55e6 | ||
|
|
3af8f78a16 | ||
|
|
8e2e7cc31d | ||
|
|
8e448ca0aa | ||
|
|
b2789762d5 | ||
|
|
e116d0734f | ||
|
|
a5b68a51d4 | ||
|
|
ec4e745fd7 | ||
|
|
d3f5a11ce2 | ||
|
|
62d99fd16c | ||
|
|
561fb77158 | ||
|
|
4846ccbd06 | ||
|
|
08f8c7b913 | ||
|
|
1413e61bb7 | ||
|
|
3d1105a304 | ||
|
|
e81453f9cc | ||
|
|
78c4ef3027 | ||
|
|
a6d8a01dbe | ||
|
|
09445da482 | ||
|
|
2c4799cb6a | ||
|
|
a27d9ef42b | ||
|
|
d4cf794f56 | ||
|
|
3a7487e541 | ||
|
|
85ddbf48a3 | ||
|
|
b82a67ec4d | ||
|
|
01d32f802c | ||
|
|
ec4e8ae657 | ||
|
|
97a581c802 | ||
|
|
7f5458a00a | ||
|
|
4e2f5b2591 | ||
|
|
7119ca03d7 | ||
|
|
f2e54cb30b | ||
|
|
fa809ac509 | ||
|
|
86cad4cf3a | ||
|
|
c9b0ed62d3 | ||
|
|
de6720ce96 | ||
|
|
a532925345 | ||
|
|
6ba44ce798 | ||
|
|
ae59ee1212 | ||
|
|
4701d5873e | ||
|
|
75b7e14a4c | ||
|
|
5305b9b5e4 | ||
|
|
22f8a0f5e7 | ||
|
|
ecdbc35698 | ||
|
|
52af6edc27 | ||
|
|
d392ac652b | ||
|
|
57863c9016 | ||
|
|
0d0b3ed9a6 | ||
|
|
f54f8fe1ab | ||
|
|
02ffa135a9 | ||
|
|
6266cfc1da | ||
|
|
41c1538be4 | ||
|
|
1293325ba5 | ||
|
|
174c4ac0a9 | ||
|
|
c9b214227f | ||
|
|
31714aef51 | ||
|
|
d38a282ad3 | ||
|
|
3c6600b488 | ||
|
|
98a0d64f08 | ||
|
|
74d3829c90 | ||
|
|
a56b77c410 | ||
|
|
eb1d96246c | ||
|
|
8c9c348e14 | ||
|
|
02b5b864b2 | ||
|
|
af040c285a | ||
|
|
d016600b86 | ||
|
|
2845653597 | ||
|
|
70d3cb2ec6 | ||
|
|
1186f79958 | ||
|
|
f28564b030 | ||
|
|
433fa79a05 | ||
|
|
f5a16ffd4c | ||
|
|
b7747b61e3 | ||
|
|
c177e3bf62 | ||
|
|
95128e92b0 | ||
|
|
409055ee48 | ||
|
|
a8edb6848a | ||
|
|
cb25518b9a | ||
|
|
cb423e2566 | ||
|
|
c1da67728a | ||
|
|
98c60e7686 | ||
|
|
b1eba9a94c | ||
|
|
acc952abd1 | ||
|
|
538875f285 | ||
|
|
055d1a3d2f | ||
|
|
9d02ddd3e3 | ||
|
|
99a80cc2c2 | ||
|
|
893ba89462 | ||
|
|
c96f9b6d3d | ||
|
|
985c0a2d54 | ||
|
|
5b20b0d8ef | ||
|
|
5936b33e09 | ||
|
|
22025666c8 | ||
|
|
aae96d7dab | ||
|
|
ec22a125a0 | ||
|
|
daef014f1b | ||
|
|
95df7f3db2 | ||
|
|
c302fdb3ed | ||
|
|
bdcabf7e0c | ||
|
|
5d469b730b | ||
|
|
348d2a5427 | ||
|
|
7cbdf1f095 | ||
|
|
dd7e285f0a | ||
|
|
7cf702542b | ||
|
|
4fee03ae06 | ||
|
|
363e1eda65 | ||
|
|
df78d821d3 | ||
|
|
bfa36304cf | ||
|
|
4a3668af8a | ||
|
|
766b603f84 | ||
|
|
b0bf28b88a | ||
|
|
8a2b6ef6ab | ||
|
|
5da7e8508a | ||
|
|
da76a6c0c5 | ||
|
|
76af850276 | ||
|
|
3a64eaf734 | ||
|
|
d6052a78b0 | ||
|
|
2cf2f2781d | ||
|
|
23fc533a11 | ||
|
|
8bb41097c9 | ||
|
|
3b969ae764 | ||
|
|
9e45c7f577 | ||
|
|
c6417cadce | ||
|
|
2602d0ba10 | ||
|
|
144346e743 | ||
|
|
fab44e06aa | ||
|
|
5e6e5a94e7 | ||
|
|
8947da8733 | ||
|
|
f3e73ca9bd | ||
|
|
284c54a31f | ||
|
|
9c46fb1533 | ||
|
|
613b7ca9c8 | ||
|
|
761517abf6 | ||
|
|
8fcb880394 | ||
|
|
20bed4ce21 | ||
|
|
b14a5fe545 | ||
|
|
8317b5ebf6 | ||
|
|
a934c7e47b | ||
|
|
3fe780e607 | ||
|
|
eb28a8ce7b | ||
|
|
128b450308 | ||
|
|
2e1454d094 | ||
|
|
834b847c0c | ||
|
|
4a52d75bc6 | ||
|
|
fd159ded8f | ||
|
|
df9ec020e8 | ||
|
|
9dcfa94a21 | ||
|
|
9d8cc89730 | ||
|
|
f7981d9440 | ||
|
|
eb2cbabd5a | ||
|
|
69cecdbaa9 | ||
|
|
311fafd918 | ||
|
|
941183eb4c | ||
|
|
0109aa76a9 | ||
|
|
b3fa00ca58 | ||
|
|
3585aabb2b | ||
|
|
a71f603e16 | ||
|
|
db07330732 | ||
|
|
deb55dfde8 | ||
|
|
d145ae30ec | ||
|
|
4fe7797685 | ||
|
|
0ed519b947 | ||
|
|
18aa5b9c5e | ||
|
|
522e3088ae | ||
|
|
48fe086e11 | ||
|
|
70a65f8fef | ||
|
|
aaef1a76f2 | ||
|
|
f5d2de2c00 | ||
|
|
16ae67a435 | ||
|
|
7249976e60 | ||
|
|
9654b38277 | ||
|
|
10fa5f97ae | ||
|
|
bce7488ee7 | ||
|
|
73856153bd | ||
|
|
3be0d61806 | ||
|
|
735013e764 | ||
|
|
fa23aaac85 | ||
|
|
00df1faf1e | ||
|
|
0f38838fc7 | ||
|
|
4e51ebe3d3 | ||
|
|
0db6261ead | ||
|
|
2586b71106 | ||
|
|
c0dada7b24 | ||
|
|
45d9d51eea | ||
|
|
61449ac96f | ||
|
|
915b078651 | ||
|
|
07563be6c6 | ||
|
|
a2ebe87eb7 | ||
|
|
3d29e46f9a | ||
|
|
dc0c05aefd | ||
|
|
7156a1e413 | ||
|
|
458688af89 | ||
|
|
9f8d4f57aa | ||
|
|
e150cd5e3a | ||
|
|
0e98047126 | ||
|
|
2aba141d10 | ||
|
|
9fa76d6d7c | ||
|
|
7eb7367d16 | ||
|
|
7b00ec064f | ||
|
|
690dc7016d | ||
|
|
e47e03526f | ||
|
|
dda01456e4 | ||
|
|
021446b4b5 | ||
|
|
dd5dc2a2a7 | ||
|
|
5cb5b5865f | ||
|
|
a56fb40bbd | ||
|
|
ed92e6c79c | ||
|
|
f143a20647 | ||
|
|
058bc9121f | ||
|
|
1f12a32bfb | ||
|
|
07f97631c5 | ||
|
|
e98aae2c4a | ||
|
|
d37db67a53 | ||
|
|
f278da9966 | ||
|
|
860ccb8b34 | ||
|
|
e112906aac | ||
|
|
ebce126de1 | ||
|
|
90fdb6e3db | ||
|
|
4a3fbf987e | ||
|
|
06ae91238c | ||
|
|
5a665baa18 | ||
|
|
2ddcd0aae5 | ||
|
|
3871aa776d | ||
|
|
9c461df89e | ||
|
|
0519a437cd | ||
|
|
1ba7626853 | ||
|
|
a38f3ab5ab | ||
|
|
d2ce75c51d | ||
|
|
847afec06f | ||
|
|
c274817669 | ||
|
|
880a51a0d7 | ||
|
|
5d28fe921b | ||
|
|
c172e24b7d | ||
|
|
5387d5abd7 | ||
|
|
d4394128cb | ||
|
|
4ca84e93c6 | ||
|
|
5d5fa27aee | ||
|
|
8d58e27d2b | ||
|
|
80283497f0 | ||
|
|
d5dc9ff6e1 | ||
|
|
ab9971c67b | ||
|
|
807fe75522 | ||
|
|
db03fbf4f3 | ||
|
|
fc6f4f2fc1 | ||
|
|
2579c01b82 | ||
|
|
f5a66e0f70 | ||
|
|
107df7ce69 | ||
|
|
a18aaeb0b9 | ||
|
|
1607de86fd | ||
|
|
e5aa4764c2 | ||
|
|
60895b0f06 | ||
|
|
722c237c17 | ||
|
|
8a0149a03d | ||
|
|
b286765b4f | ||
|
|
c8e0dd8aaa | ||
|
|
752c7f5826 | ||
|
|
c98991f7d9 | ||
|
|
6d4b8c3411 | ||
|
|
4341326ef4 | ||
|
|
56a5fca4ea | ||
|
|
ceb99b237f | ||
|
|
5377ebdea8 | ||
|
|
dec17db9e2 | ||
|
|
02c10d948a | ||
|
|
6d9d89b5de | ||
|
|
78300b53dc | ||
|
|
06598ae83e | ||
|
|
6d17d339e4 | ||
|
|
60aa35dd24 | ||
|
|
6c7e079638 | ||
|
|
740a12a67b | ||
|
|
cca46cf095 | ||
|
|
bca9abbeda | ||
|
|
3ee59c3e3b | ||
|
|
c718ed97f9 | ||
|
|
1f07d788eb | ||
|
|
f857acecd4 | ||
|
|
bac0341f1d | ||
|
|
fbe88e6504 | ||
|
|
db0dc5b3c1 | ||
|
|
1eb3e40724 | ||
|
|
f10132e682 | ||
|
|
308a0243aa | ||
|
|
5bf87469fd | ||
|
|
c4abb0434a | ||
|
|
c210a3ec43 | ||
|
|
abfa5f2d67 | ||
|
|
078568c201 | ||
|
|
a9c7adf8ce | ||
|
|
1aeed8d11e | ||
|
|
20741b8586 | ||
|
|
b785a26b0a | ||
|
|
17563e175a | ||
|
|
4695efe278 | ||
|
|
1581ad665e | ||
|
|
f5e612ce2f | ||
|
|
88e7ad86b5 | ||
|
|
a834674942 | ||
|
|
53633a4eae | ||
|
|
e6b8074d4e | ||
|
|
071ff7bed5 | ||
|
|
5a91e6e10a | ||
|
|
89121804ff | ||
|
|
9beb27f64c | ||
|
|
de5cf7de79 | ||
|
|
6582d8b4f9 | ||
|
|
ba7be96cbb | ||
|
|
fd1d1357db | ||
|
|
1449161be0 | ||
|
|
5455049d1f | ||
|
|
9f0d27491e | ||
|
|
5ebe577cad | ||
|
|
e373ea9586 | ||
|
|
8c3cec979a | ||
|
|
55bfc3dfe1 | ||
|
|
c3cd40a03d | ||
|
|
535ab52072 | ||
|
|
1f2f92626a | ||
|
|
28a50d4618 | ||
|
|
a1b6476723 | ||
|
|
43169028f9 | ||
|
|
5968b4765b | ||
|
|
c9ff7569ee | ||
|
|
4f840c3573 | ||
|
|
8c907be393 | ||
|
|
64cd086b4e | ||
|
|
9977348a3d | ||
|
|
9fed7948b0 | ||
|
|
b9285d9327 | ||
|
|
e3ae8328f3 | ||
|
|
f8b225a30d | ||
|
|
8c80a91e55 | ||
|
|
af589250e2 | ||
|
|
d3d34b70b0 | ||
|
|
1b09b95c17 | ||
|
|
34c434b2cf | ||
|
|
b93d1f46fc | ||
|
|
a22a304673 | ||
|
|
5d7f64ce0b | ||
|
|
2eaa1cb143 | ||
|
|
3132200b6b | ||
|
|
62280206de | ||
|
|
7c6993ea3a | ||
|
|
c76f2051bd | ||
|
|
4362b9b650 | ||
|
|
1ef21c1927 | ||
|
|
9ab8d1728a | ||
|
|
d37f9ef601 | ||
|
|
e8ec4dfbba | ||
|
|
b25e4be24c | ||
|
|
4faca1ae22 | ||
|
|
5ef4de9db7 | ||
|
|
1f34b436a5 | ||
|
|
61ec699ddb | ||
|
|
8a4e70b97f | ||
|
|
bbbfef92bf | ||
|
|
6837cc69bd | ||
|
|
8b634f27c8 | ||
|
|
b06c892a20 | ||
|
|
ad65ad72a4 | ||
|
|
0d45225d77 | ||
|
|
57db10d55b | ||
|
|
2c28b95f05 | ||
|
|
697a6b5ade | ||
|
|
7805a0e390 | ||
|
|
d93742acd3 | ||
|
|
a92404479b | ||
|
|
67fcd627a5 | ||
|
|
47dbb49f6a | ||
|
|
5397e4750e | ||
|
|
99cf8567e9 | ||
|
|
e4904f2ddf | ||
|
|
605c2c07eb | ||
|
|
e7701a4f07 | ||
|
|
292e86c3dd | ||
|
|
67c0504330 | ||
|
|
716e981979 | ||
|
|
99606bcb7d | ||
|
|
d1097c803c | ||
|
|
58df60018c | ||
|
|
1c5a533798 | ||
|
|
e9260deb0f | ||
|
|
07b3aeec3e | ||
|
|
3800794af9 | ||
|
|
0d9374d747 | ||
|
|
bf6517eadc | ||
|
|
d33758be36 | ||
|
|
c364bab257 | ||
|
|
63aff94a31 | ||
|
|
dbef7f99ba | ||
|
|
a9d56d320f | ||
|
|
1a7715f45b | ||
|
|
5e920bb964 | ||
|
|
adad288983 | ||
|
|
af86e9f409 | ||
|
|
a77d6a348a | ||
|
|
a915845978 | ||
|
|
c0ef1db7eb | ||
|
|
88c80fcd25 | ||
|
|
64c080e708 | ||
|
|
537b28d413 | ||
|
|
1bae7697f3 | ||
|
|
422ddc41ee | ||
|
|
210d583aa2 | ||
|
|
fb48028b27 | ||
|
|
4ca9ef2eea | ||
|
|
915214d241 | ||
|
|
3e2fc3f001 | ||
|
|
de3bfc3ed5 | ||
|
|
c496039c2e | ||
|
|
da033fa614 | ||
|
|
77f687bb5d | ||
|
|
6e055bfbf7 | ||
|
|
1c2d4f456e | ||
|
|
a60790f86c | ||
|
|
1baf259552 | ||
|
|
bff600bc3f | ||
|
|
78019ab5b6 | ||
|
|
88833ac4e9 | ||
|
|
82fceb85d3 | ||
|
|
4348299e94 | ||
|
|
921495363c | ||
|
|
678c875109 | ||
|
|
7b96918d6e | ||
|
|
89e6132658 | ||
|
|
e369b01490 | ||
|
|
07bee3eb41 | ||
|
|
fddaf4aeda | ||
|
|
285c25a13e | ||
|
|
6a42a14f72 | ||
|
|
87d6fe404b | ||
|
|
51fb5cc6b6 | ||
|
|
cbfa97d69b | ||
|
|
ed010e32b8 | ||
|
|
c6ca744ddd | ||
|
|
38c5ca5403 | ||
|
|
95fc0f6f14 | ||
|
|
f6f7371bcd | ||
|
|
5505161df6 | ||
|
|
2dbf0d0b39 | ||
|
|
cfa74f7b0c | ||
|
|
49e2a302ef | ||
|
|
04b8119dbf | ||
|
|
65fe38bd7a | ||
|
|
1f14fdbf03 | ||
|
|
7494fba344 | ||
|
|
b70785e02b | ||
|
|
c62b24b506 | ||
|
|
9a8f60cf9e | ||
|
|
3f9e984507 | ||
|
|
665ff23b1d | ||
|
|
868a5f054c | ||
|
|
276f643418 | ||
|
|
a7bcace080 | ||
|
|
7af035a69d | ||
|
|
8cc930d521 | ||
|
|
e966b92b95 | ||
|
|
2cb4ce7679 | ||
|
|
76e07b70fb | ||
|
|
1a35e3c209 | ||
|
|
f0011a1546 | ||
|
|
cf386caabe | ||
|
|
e76bd0c3c1 | ||
|
|
73865d3b91 | ||
|
|
37d864bc01 | ||
|
|
4c58e3d1d8 | ||
|
|
cebfd85964 | ||
|
|
56d46c1f2c | ||
|
|
102595fcd9 | ||
|
|
8cb84ab943 | ||
|
|
58372c3183 | ||
|
|
d45942f42b | ||
|
|
eae35a983d | ||
|
|
80a468f38c | ||
|
|
a2d4acfea1 | ||
|
|
9252e79f7d | ||
|
|
2ee25392b3 | ||
|
|
fdcdb54326 | ||
|
|
4931f7bde9 | ||
|
|
9da631e64c | ||
|
|
8c4a232466 | ||
|
|
4b82dfffab | ||
|
|
098c316d23 | ||
|
|
62ecfff5da | ||
|
|
e3c23cad0e | ||
|
|
a52a872ba0 | ||
|
|
f98b82c871 | ||
|
|
42015f4a45 | ||
|
|
4e42861d4a | ||
|
|
d8069b04db | ||
|
|
29aeb0fb6a | ||
|
|
8d9293f709 | ||
|
|
55c1c69648 | ||
|
|
a363dc37c3 | ||
|
|
439be2dde9 | ||
|
|
a0ba1b2fae | ||
|
|
641a09af8c | ||
|
|
adc78c6515 | ||
|
|
a38a2a63c2 | ||
|
|
33c49d9143 | ||
|
|
f910aa1e8b | ||
|
|
5212e25a52 | ||
|
|
7df4b316f8 | ||
|
|
a37ca6d429 | ||
|
|
27af50b1a7 | ||
|
|
3df94627a4 | ||
|
|
186870f028 | ||
|
|
2b53d13163 | ||
|
|
78e84e6836 | ||
|
|
d14117dfe8 | ||
|
|
6d1b2c92ca | ||
|
|
8c5685e51e | ||
|
|
5d81fd88c1 | ||
|
|
8f57f4ebe9 | ||
|
|
e076a21847 | ||
|
|
38294b1e0a | ||
|
|
ba6fe71ccc | ||
|
|
374f85f6f1 | ||
|
|
f6c6701b08 | ||
|
|
d51f6ab011 | ||
|
|
9cc05462d5 | ||
|
|
7482281dee | ||
|
|
9cf7c5a5fc | ||
|
|
11fc8bafe6 | ||
|
|
b7eaabc58c | ||
|
|
6acae2f485 | ||
|
|
ecc9f4f916 | ||
|
|
cc0165c11c | ||
|
|
23c4f86c0f | ||
|
|
1ea2351bd5 | ||
|
|
08badee4a8 | ||
|
|
0bd4b7509c | ||
|
|
cb70c71f61 | ||
|
|
f022f86742 | ||
|
|
f99f1f1825 | ||
|
|
c8483143ad | ||
|
|
2b9f774400 | ||
|
|
4b74758833 | ||
|
|
eda3f587e1 | ||
|
|
7c127508ee | ||
|
|
17fb83237d | ||
|
|
85c40549cb | ||
|
|
24bc22fe14 | ||
|
|
63034233e4 | ||
|
|
33b9f02a45 | ||
|
|
2143514b37 | ||
|
|
73192ae0f5 | ||
|
|
8bbe6747ef | ||
|
|
db4afc138e | ||
|
|
920ca2232d | ||
|
|
7415bbe893 | ||
|
|
34e5a53d06 | ||
|
|
7c7212336e | ||
|
|
1262860472 | ||
|
|
31a923050a | ||
|
|
78801239f4 | ||
|
|
a29fa44634 | ||
|
|
197b35a0b5 | ||
|
|
f557b05110 | ||
|
|
fa21f08db7 | ||
|
|
a515845482 | ||
|
|
7f5769decc | ||
|
|
56620ecaf1 | ||
|
|
8ab55b7392 | ||
|
|
46e52d9e7e | ||
|
|
9f85360cbc | ||
|
|
0a294fc002 | ||
|
|
f48d02cccf | ||
|
|
9904842381 | ||
|
|
a0cda1dc26 | ||
|
|
7527cd9720 | ||
|
|
a5829f2791 | ||
|
|
a86200f2d9 | ||
|
|
1f1e7231fb | ||
|
|
d8bafa5c50 | ||
|
|
7d1d696f52 | ||
|
|
105fe4f81b | ||
|
|
5033c14fa5 | ||
|
|
f23fda9c45 | ||
|
|
d533d6b64a | ||
|
|
17132a3598 | ||
|
|
addb77e373 | ||
|
|
af25256fa4 | ||
|
|
77b77bc5c9 | ||
|
|
d08a9fe09d | ||
|
|
17cb1d8ab7 | ||
|
|
6b81b8b1ff | ||
|
|
d151ef2f79 | ||
|
|
fb51a2df5b | ||
|
|
bd18a771ff | ||
|
|
17582ae7de | ||
|
|
4020c1865b | ||
|
|
fa5945b21d | ||
|
|
ab66dd7752 | ||
|
|
0821c0ad8e | ||
|
|
dba78bf566 | ||
|
|
576757f155 | ||
|
|
178d9c9595 | ||
|
|
ab234c1b9e | ||
|
|
64f4744176 | ||
|
|
0dac3b0b54 | ||
|
|
ea74314ffe | ||
|
|
8efdae1533 | ||
|
|
435433de1c | ||
|
|
7af64f49ef | ||
|
|
907fb412ae | ||
|
|
e6c8df823f | ||
|
|
78cec0025c | ||
|
|
2e099bbdb3 | ||
|
|
73a73407cc | ||
|
|
59ea68234a | ||
|
|
5f77f7a58a | ||
|
|
86328451a6 | ||
|
|
4072413f71 | ||
|
|
ca11348181 | ||
|
|
68e524347a | ||
|
|
d8dbe1f2d0 | ||
|
|
891b5bea1c | ||
|
|
71b0a31a59 | ||
|
|
2b732dc45c | ||
|
|
dd2cf5ca2b | ||
|
|
243c9f3a96 | ||
|
|
3750297062 | ||
|
|
687b94ff65 | ||
|
|
f0ffc7b067 | ||
|
|
451e941a23 | ||
|
|
3b8450b511 | ||
|
|
8731de2fe9 | ||
|
|
43c841d06d | ||
|
|
6bf44ad181 | ||
|
|
e64f9c8ba0 | ||
|
|
4aa3b4b531 | ||
|
|
ea1e3ff86f | ||
|
|
e78d06dd92 | ||
|
|
d600ab67e9 | ||
|
|
1ae5aeca9e | ||
|
|
dc27a22fb6 | ||
|
|
850f72356a | ||
|
|
cea73476ff | ||
|
|
b83b9ec8ad | ||
|
|
b04b0c1c16 | ||
|
|
586c5d41d8 | ||
|
|
f79012eef3 | ||
|
|
68bbfa7e34 | ||
|
|
206051c0e7 | ||
|
|
3b3275987e | ||
|
|
8eb40f5e2b | ||
|
|
9bcb15843b | ||
|
|
87aad70453 | ||
|
|
17a91d1eff | ||
|
|
f1d1af8bad | ||
|
|
e7852e1574 | ||
|
|
78b48b94a6 | ||
|
|
a73c10d7e1 | ||
|
|
8b000ed357 | ||
|
|
188ca75e76 | ||
|
|
c6827c6adb | ||
|
|
38257c2405 | ||
|
|
8079c8624c | ||
|
|
fd5f6a1065 | ||
|
|
c9bcf6735e | ||
|
|
cbe9f14862 | ||
|
|
f535eccc8e | ||
|
|
b284b79357 | ||
|
|
1664f9749a | ||
|
|
019680fe7e | ||
|
|
2d862bd393 | ||
|
|
f0683051c8 | ||
|
|
9c4661e97d | ||
|
|
495f665baa | ||
|
|
3ed3b2ff88 | ||
|
|
63e246df0e | ||
|
|
28e8f85309 | ||
|
|
18fd148303 | ||
|
|
d22c29162f | ||
|
|
866d101e59 | ||
|
|
96974a9da4 | ||
|
|
ea8acbc01c | ||
|
|
0fb80f8fbb | ||
|
|
5237d06306 | ||
|
|
490d8cc52e | ||
|
|
c2f93fd8d3 | ||
|
|
e191c422d9 | ||
|
|
768e5cabcf | ||
|
|
403be84b54 | ||
|
|
efae58c5ae | ||
|
|
f01081de2d | ||
|
|
7461b6934f | ||
|
|
02c981296d | ||
|
|
fef712eced | ||
|
|
5bac2746aa | ||
|
|
a7a1b90509 | ||
|
|
caee05e270 | ||
|
|
8ec0ffe69a | ||
|
|
7c2022dc32 | ||
|
|
ee87791baf | ||
|
|
b0e5e179b1 | ||
|
|
f5b9ebf9b3 | ||
|
|
767614a76e | ||
|
|
484b5c23d8 | ||
|
|
9bb121615c | ||
|
|
9c4fc9bb0f | ||
|
|
0ced7dbdf0 | ||
|
|
1c2bd7b245 | ||
|
|
4c5cd193d7 | ||
|
|
51bd8a30f9 | ||
|
|
ed5c09b09c | ||
|
|
8b7e99677f | ||
|
|
b8111503d7 | ||
|
|
94dcc80bee | ||
|
|
e8b18e86a6 | ||
|
|
e702c8ba52 | ||
|
|
d69a86613b | ||
|
|
0cea84a3d0 | ||
|
|
d5153ccc10 | ||
|
|
13c131ca21 | ||
|
|
a5272b4f70 | ||
|
|
0bc5b13542 | ||
|
|
600c7d04a4 | ||
|
|
ad834619fe | ||
|
|
415eb197d8 | ||
|
|
c4d043d470 | ||
|
|
5763a74bc6 | ||
|
|
f41a79a495 | ||
|
|
40b191f226 | ||
|
|
e21a064e33 | ||
|
|
58c795b984 | ||
|
|
e2031c26ba | ||
|
|
a908e3833c | ||
|
|
087da919b0 | ||
|
|
3282d32c99 | ||
|
|
4de54b5f20 | ||
|
|
7b76be14b2 | ||
|
|
e557c2564a | ||
|
|
2311f9eb2b | ||
|
|
900e52ffbe | ||
|
|
af41e832f6 | ||
|
|
74c9fed21f | ||
|
|
1f752a7cc1 | ||
|
|
141f180710 | ||
|
|
c90e722195 | ||
|
|
ee89664b81 | ||
|
|
4d9c882b95 | ||
|
|
e10114cda3 | ||
|
|
3be55f59cd | ||
|
|
54d4f6807c | ||
|
|
39357fe461 | ||
|
|
a19bc614b4 | ||
|
|
8669e95c2b | ||
|
|
4b1c1110af | ||
|
|
16dfef1d5d | ||
|
|
435beabab3 | ||
|
|
df1f7f1a55 | ||
|
|
bd3a731b2c | ||
|
|
c56943c7b7 | ||
|
|
c82e3e07ed | ||
|
|
fe26aad290 | ||
|
|
1ee9da5e94 | ||
|
|
89bb614f74 | ||
|
|
a4bbf91ad9 | ||
|
|
64e2db8908 | ||
|
|
ff645f2c12 | ||
|
|
441d17e865 | ||
|
|
2674f559fa | ||
|
|
c3e31f76c3 | ||
|
|
c1996452da | ||
|
|
9bf20bd0c2 | ||
|
|
3834660d1a | ||
|
|
f5f97bfe7c | ||
|
|
9b09f591eb | ||
|
|
a4ee4c6189 | ||
|
|
c0d3255485 | ||
|
|
0938c3f4f0 | ||
|
|
eab35c7fc0 | ||
|
|
19ea8191f4 | ||
|
|
798e658b41 | ||
|
|
16da9b1f41 | ||
|
|
7eac0bfdac | ||
|
|
bf79d12156 | ||
|
|
f79aa8ce77 | ||
|
|
bf2b0e13d0 | ||
|
|
d3e223d8b6 | ||
|
|
1cf449a4c4 | ||
|
|
9be7c2eb5f | ||
|
|
15398112f6 | ||
|
|
2290dc000a | ||
|
|
0acad8cefd | ||
|
|
dd9f5e45fc | ||
|
|
0b024eba67 | ||
|
|
5d0b0fb52e | ||
|
|
fd27ea05ce | ||
|
|
a50c10eccf | ||
|
|
da2c95a934 | ||
|
|
5cfe3d4eb7 | ||
|
|
25fb7ecd13 | ||
|
|
159ca99483 | ||
|
|
0503c60f2c | ||
|
|
1724ce9738 | ||
|
|
61c528f629 | ||
|
|
4fc2331228 | ||
|
|
9da5ac7045 | ||
|
|
30fcc5e327 | ||
|
|
616d0ebb63 | ||
|
|
0308b61c32 | ||
|
|
65974f5086 | ||
|
|
6e80818402 | ||
|
|
7aff193fb2 | ||
|
|
f9c9b76aa6 | ||
|
|
fc16ce65d7 | ||
|
|
a47efe515d | ||
|
|
785a91cb80 | ||
|
|
e9106742a3 | ||
|
|
bbc0bf61a9 | ||
|
|
021a851e00 | ||
|
|
b00d6175f9 | ||
|
|
900da7d7bf | ||
|
|
80f1fa3170 | ||
|
|
20f9f2ada0 | ||
|
|
b392af0777 | ||
|
|
45eadbd609 | ||
|
|
5c9f54d6fa | ||
|
|
21583553d5 | ||
|
|
e9584f137a | ||
|
|
9dd48af52e | ||
|
|
d96a585530 | ||
|
|
4182b80068 | ||
|
|
1465c1ea8c | ||
|
|
a7d74f8cc6 | ||
|
|
afe5d3fcb2 | ||
|
|
261f3660bc | ||
|
|
9402cfce2c | ||
|
|
43810cc9dd | ||
|
|
1143a7d6da | ||
|
|
a870562949 | ||
|
|
0cac7ec55d | ||
|
|
de1d2d0f7f | ||
|
|
04b3a18fa9 | ||
|
|
a5b24e3122 | ||
|
|
24dc879e22 | ||
|
|
55e9f6a19d | ||
|
|
a630d5010e | ||
|
|
46a085738a | ||
|
|
6f7eb3d5f4 | ||
|
|
03ce3c488e | ||
|
|
b841237f04 | ||
|
|
410245d9c9 | ||
|
|
5c43702c1a | ||
|
|
645fc600af | ||
|
|
8853f7e697 | ||
|
|
21185789eb | ||
|
|
758e338c94 | ||
|
|
ea93aeaed8 | ||
|
|
4c5a9df663 | ||
|
|
3427acfaf4 | ||
|
|
276e76e959 | ||
|
|
3f1dd32657 | ||
|
|
d19a616951 | ||
|
|
c08765cf66 | ||
|
|
a919ddc65e | ||
|
|
825a955cf6 | ||
|
|
401757a253 | ||
|
|
971a5378de | ||
|
|
8d6dff5003 | ||
|
|
35c54850af | ||
|
|
a54d63b69f | ||
|
|
0e6ba073d6 | ||
|
|
8f2f0ece8a | ||
|
|
3831bf98d5 | ||
|
|
5f491ff820 | ||
|
|
657b6cc157 | ||
|
|
972fdcfd77 | ||
|
|
62662fd601 | ||
|
|
f5afb8bcb4 | ||
|
|
ecce3f68e3 | ||
|
|
1094bbfc62 | ||
|
|
1f28471085 | ||
|
|
19c004bc33 | ||
|
|
edae47c804 | ||
|
|
2832ba164e | ||
|
|
b91b3cb2d5 | ||
|
|
98aaec70ef | ||
|
|
3388b59014 | ||
|
|
c99190b224 | ||
|
|
f234b9d8da | ||
|
|
f61c2da239 | ||
|
|
52eb848af9 | ||
|
|
9c2d9abe68 | ||
|
|
959419a5dc | ||
|
|
e36b6c8d7f | ||
|
|
e6d0bdcfb8 | ||
|
|
0fe4cfe496 | ||
|
|
04bc6f853f | ||
|
|
6704e7d531 | ||
|
|
316523feef | ||
|
|
d4a78dc325 | ||
|
|
1bad763353 | ||
|
|
245c74634f | ||
|
|
24650b9378 | ||
|
|
1a5aca39ee | ||
|
|
3a2cfadc61 | ||
|
|
7a1f51163c | ||
|
|
42c7b6e79f | ||
|
|
78ccc9bab1 | ||
|
|
ce18c9d686 | ||
|
|
6baee6145d | ||
|
|
2b7136b4b7 | ||
|
|
9b94d90eca | ||
|
|
cae2faa839 | ||
|
|
439691029e | ||
|
|
67328bc930 | ||
|
|
6796d080ab | ||
|
|
7b5bbd8c57 | ||
|
|
a6cd5428be | ||
|
|
6976204834 | ||
|
|
316f030593 | ||
|
|
777dbb325d | ||
|
|
597390284a | ||
|
|
1af14a8a8d | ||
|
|
1db1439f26 | ||
|
|
ea20d275db | ||
|
|
f5c72c7ee3 | ||
|
|
a0c05dcfa4 | ||
|
|
3377016e58 | ||
|
|
8d3f61e3ab | ||
|
|
a738d0ced8 | ||
|
|
5c97f51f8e | ||
|
|
a91fa34c33 | ||
|
|
b53c67c4da | ||
|
|
373f454837 | ||
|
|
1a84c2242a | ||
|
|
017dc6f116 | ||
|
|
18c2c409a4 | ||
|
|
7dec1e0b00 | ||
|
|
d33943c13b | ||
|
|
5cb01b63fc | ||
|
|
70b47dedc6 | ||
|
|
d280ea2fa3 | ||
|
|
42942a6501 | ||
|
|
f3d387c3e8 | ||
|
|
51dce78d05 | ||
|
|
655a69e6ba | ||
|
|
4040cf15ce | ||
|
|
fd81e0baf9 | ||
|
|
4a16ee4af9 | ||
|
|
3eb99ad5e9 | ||
|
|
cdab24e124 | ||
|
|
a74837fd01 | ||
|
|
5f40f50f80 | ||
|
|
03c1c646a2 | ||
|
|
b71a02dd2c | ||
|
|
1529be322d | ||
|
|
0a4f762689 | ||
|
|
09cba4e0fd | ||
|
|
1f2dc12a8e | ||
|
|
59628ebaa7 | ||
|
|
02f7f7fe9f | ||
|
|
98d3667d0d | ||
|
|
344f351c38 | ||
|
|
c446d724e8 | ||
|
|
9b0250bbbe | ||
|
|
233be11345 | ||
|
|
9a67de3b3b | ||
|
|
5e1e651ec3 | ||
|
|
8c4f04d2f1 | ||
|
|
b699559c9c | ||
|
|
b8943d030a | ||
|
|
cdf7f130f2 | ||
|
|
b25b289a93 | ||
|
|
048c08f8a0 | ||
|
|
b5e3e00b52 | ||
|
|
de0426f574 | ||
|
|
fc5d6ce90b | ||
|
|
023c4787b4 | ||
|
|
383b90e206 | ||
|
|
a31855bef6 | ||
|
|
0139444535 | ||
|
|
63f046a38e | ||
|
|
af68a75891 | ||
|
|
007000962c | ||
|
|
377be07e09 | ||
|
|
c88b3467ef | ||
|
|
fa9ab071be | ||
|
|
515fccd46a | ||
|
|
c656ccfa1d | ||
|
|
250e6f2dc9 | ||
|
|
680bfd8e92 | ||
|
|
8a95424c44 | ||
|
|
9132e4aeb3 | ||
|
|
75f55bbc32 | ||
|
|
dedb0a861b | ||
|
|
914507e698 | ||
|
|
b48dca7cec | ||
|
|
766c1c52b8 | ||
|
|
e89d08f8df | ||
|
|
8aad8aafe6 | ||
|
|
faaea0cb09 | ||
|
|
8ccd2c9870 | ||
|
|
a1893d3501 | ||
|
|
8693440d91 | ||
|
|
7e81e40bf7 | ||
|
|
c2e9744557 | ||
|
|
d7ae588afc | ||
|
|
d1810dc5f6 | ||
|
|
39020bc5b7 | ||
|
|
7230c61711 | ||
|
|
e7bfd07afd | ||
|
|
ba1aa5767d | ||
|
|
f5670b3a00 | ||
|
|
d56873e49a | ||
|
|
169698a260 | ||
|
|
fd7f64ffab | ||
|
|
6810e5d3d6 | ||
|
|
cb41010640 | ||
|
|
2b8037895e | ||
|
|
79b39f86c9 | ||
|
|
63ef7ee5c6 | ||
|
|
fb021adc4a | ||
|
|
42b5afb8b0 | ||
|
|
199c229ba3 | ||
|
|
7abff9be9b | ||
|
|
49373d9d48 | ||
|
|
e2a44faaf3 | ||
|
|
700737ffbe | ||
|
|
3a0fba66de | ||
|
|
214e438015 | ||
|
|
c93817715c | ||
|
|
870556b705 | ||
|
|
2b2c1d0f7c | ||
|
|
c60a24416a | ||
|
|
8dc2b2c491 | ||
|
|
5d8504ddc6 | ||
|
|
4f1f66b39a | ||
|
|
cf6fad9414 | ||
|
|
1e3bd4d855 | ||
|
|
628c7c4c53 | ||
|
|
864086668f | ||
|
|
0127f5a5b8 | ||
|
|
2834447c49 | ||
|
|
1184dba161 | ||
|
|
09621339cd | ||
|
|
4769f4ed9f | ||
|
|
0f25c0e2fd | ||
|
|
6d9d3c85c4 | ||
|
|
3f145d3dcc | ||
|
|
7faca11f33 | ||
|
|
1c0aacd028 | ||
|
|
769534c943 | ||
|
|
d6c1880df0 | ||
|
|
415902bd10 | ||
|
|
4e2d3181a2 | ||
|
|
3039b56681 | ||
|
|
2a85878803 | ||
|
|
bab7cabdaf | ||
|
|
d1cae73c52 | ||
|
|
5ca1634a4f | ||
|
|
3bd5da255c | ||
|
|
c0ed029036 | ||
|
|
f9133c97e8 | ||
|
|
9feb48edf3 | ||
|
|
603b4013e3 | ||
|
|
eb0d2daa7e | ||
|
|
a5e3d80369 | ||
|
|
e8b72d2289 | ||
|
|
acd3c39d6b | ||
|
|
6b67547955 | ||
|
|
463bba0b61 | ||
|
|
6ae061e2aa | ||
|
|
3847b443ca | ||
|
|
ee09a7ae7a | ||
|
|
982a1ee908 | ||
|
|
30de4ae748 | ||
|
|
34fcb9def9 | ||
|
|
7b2f4c649c | ||
|
|
478b06a76b | ||
|
|
f189c3d804 | ||
|
|
6e8507905e | ||
|
|
0d5766018c | ||
|
|
1cc0f19cb7 | ||
|
|
31701a1151 | ||
|
|
d4143501ca | ||
|
|
f5b3e91eb2 | ||
|
|
3d22089622 | ||
|
|
f2f80c5973 | ||
|
|
90bec832fd | ||
|
|
59dc161081 | ||
|
|
e25e2b0762 | ||
|
|
d6a879b766 | ||
|
|
2ff37a6646 | ||
|
|
e9897123d3 | ||
|
|
d022499d52 | ||
|
|
b4c96d5b82 | ||
|
|
7b44c1ed64 | ||
|
|
af556e9173 | ||
|
|
9ec704b72f | ||
|
|
5e503390a1 | ||
|
|
612a7e66b8 | ||
|
|
6a930c6a40 | ||
|
|
2fc9e622cf | ||
|
|
e8f77bc7cd | ||
|
|
b99526dfbb | ||
|
|
590829240e | ||
|
|
9cc6947214 | ||
|
|
6e006d63ea | ||
|
|
1ebd6fd1be | ||
|
|
153828e990 | ||
|
|
0ae5282505 | ||
|
|
20210efbde | ||
|
|
0c85a290ef | ||
|
|
141b2ee43d | ||
|
|
0c4c83e60e | ||
|
|
91958a5028 | ||
|
|
2e34d13dbf | ||
|
|
84d23710e9 | ||
|
|
59c5e14f3a | ||
|
|
9d40b2d0da | ||
|
|
65c201a259 | ||
|
|
62f772cb7b | ||
|
|
4cde933916 | ||
|
|
d9b95f11c1 | ||
|
|
46c981f3a0 | ||
|
|
89c84ffbf6 | ||
|
|
a8429e9374 | ||
|
|
1c6e6e88a1 | ||
|
|
5b7e92b84d | ||
|
|
aa8449482e | ||
|
|
b73b3d94c1 | ||
|
|
7bdf6e2c14 | ||
|
|
b78ff88d4e | ||
|
|
1d780b327d | ||
|
|
5f807008d6 | ||
|
|
0c0e7341ef | ||
|
|
12f69944f4 | ||
|
|
49d1c3d821 | ||
|
|
fd70b163fa | ||
|
|
30fe8ba751 | ||
|
|
f4402032d4 | ||
|
|
e372290bb4 | ||
|
|
419e35b066 | ||
|
|
cc400964fa | ||
|
|
599c292c94 | ||
|
|
377c0b4ee8 | ||
|
|
db076dcb00 | ||
|
|
40727f404b | ||
|
|
0ad7be3cb8 | ||
|
|
ec4bfbef44 | ||
|
|
6a564862be | ||
|
|
039e0051cf | ||
|
|
bc52ba4678 | ||
|
|
e01b6671a1 | ||
|
|
bc29f82bbb | ||
|
|
06749a4471 | ||
|
|
3dc6f3ec61 | ||
|
|
74ca811e83 | ||
|
|
a11d6d1880 | ||
|
|
42adeed6a7 | ||
|
|
d7fce242a3 | ||
|
|
6635abfd9a | ||
|
|
9d96689b75 | ||
|
|
26b0390922 | ||
|
|
b519e7590e | ||
|
|
bef7dd501e | ||
|
|
49228fb0af | ||
|
|
0dbf7155a8 | ||
|
|
26bdcd45be | ||
|
|
7e647ddb9d | ||
|
|
cd356bc27e | ||
|
|
6d8c13b75d | ||
|
|
34a324a827 | ||
|
|
2650c8148d | ||
|
|
add9d08e27 | ||
|
|
840850d6af | ||
|
|
a772f805cd | ||
|
|
504061f9f5 | ||
|
|
0f4bd530c5 | ||
|
|
355e72d632 | ||
|
|
999f279f03 | ||
|
|
5e0a3061d0 | ||
|
|
529844045a | ||
|
|
332e700598 | ||
|
|
345cf022f8 | ||
|
|
2ace49bea4 | ||
|
|
0e5e64e79d | ||
|
|
a285a5c984 | ||
|
|
3d73ad1a59 | ||
|
|
96fd8bbebe | ||
|
|
6201c85ae3 | ||
|
|
54869d3fb6 | ||
|
|
00f8d8614f | ||
|
|
5a27630275 | ||
|
|
7c26bd90f5 | ||
|
|
d62a69de3c | ||
|
|
8674ae2b1c | ||
|
|
54cd9ac8db | ||
|
|
2a0fe8f7ae | ||
|
|
ff63394ad3 | ||
|
|
f96f246d76 | ||
|
|
3a2c5dab40 | ||
|
|
5c7f29b898 | ||
|
|
0f3ebfecae | ||
|
|
a09bfd72e1 | ||
|
|
2f8770d562 | ||
|
|
e7290b1b56 | ||
|
|
5b3d19ee63 | ||
|
|
931ec67fb2 | ||
|
|
982b9a6b49 | ||
|
|
7cd9153865 | ||
|
|
eef70acbcd | ||
|
|
e5172e64c4 | ||
|
|
6bec50c9d7 | ||
|
|
082fcd1838 | ||
|
|
1bf34c11eb | ||
|
|
98c2ef3acc | ||
|
|
16f9284c0e | ||
|
|
679b3025ae | ||
|
|
557c249643 | ||
|
|
f28e3e4139 | ||
|
|
128812b271 | ||
|
|
8720d10f81 | ||
|
|
5767fea1c2 | ||
|
|
80b381b2fb | ||
|
|
3e3af38e98 | ||
|
|
59e5ec855b | ||
|
|
3fcbc9e5a5 | ||
|
|
22d8cb3e59 | ||
|
|
c15b4671e2 | ||
|
|
54f0032c94 | ||
|
|
14ab08a8c0 | ||
|
|
9114d55f91 | ||
|
|
b51636a5a6 | ||
|
|
9f185f2e65 | ||
|
|
9f87c5d98a | ||
|
|
6c927fbaea | ||
|
|
2a8fb8402d | ||
|
|
86a4ef438d | ||
|
|
cbf6d101c2 | ||
|
|
aa7252df55 | ||
|
|
47c9aa9a2f | ||
|
|
73efd633b7 | ||
|
|
dcd143edf3 | ||
|
|
d188bf56ad | ||
|
|
c8d5139b8e | ||
|
|
ca559d3fdb | ||
|
|
6682416805 | ||
|
|
8bc093e8e2 | ||
|
|
4fde6a01fa | ||
|
|
5a2946eacf | ||
|
|
52393d10d5 | ||
|
|
e3ec535a8f | ||
|
|
361e97bb7a | ||
|
|
afb6aafabc | ||
|
|
add47d2e83 | ||
|
|
e3fbcae900 | ||
|
|
8d56d6cc3c | ||
|
|
f296734c02 | ||
|
|
4908e00095 | ||
|
|
d2b277a624 | ||
|
|
fab0aaa2cb | ||
|
|
9c0f60d63a | ||
|
|
894b6b95ba | ||
|
|
8349810cb8 | ||
|
|
950d054946 | ||
|
|
e44efe2be7 | ||
|
|
8d229a5a6e | ||
|
|
7013cde6b8 | ||
|
|
effed693be | ||
|
|
f7730500f8 | ||
|
|
341298f9e8 | ||
|
|
2f92cab9c9 | ||
|
|
a035d18976 | ||
|
|
a377c1f3a3 | ||
|
|
998b16b969 | ||
|
|
27c06f1cd0 | ||
|
|
21686eca15 | ||
|
|
28ab23b3c8 | ||
|
|
4af1230f05 | ||
|
|
69c68ff50f | ||
|
|
551891377c | ||
|
|
5654ab2b30 | ||
|
|
4e157f4183 | ||
|
|
1b4059094b | ||
|
|
31361a78d0 | ||
|
|
039d692684 | ||
|
|
4486571061 | ||
|
|
e8755f7471 | ||
|
|
48c90e8167 | ||
|
|
3d33759927 | ||
|
|
8dd7bb2efd | ||
|
|
5ae966a47b | ||
|
|
a7c8885a86 | ||
|
|
7d803aaedd | ||
|
|
aa0f94398c | ||
|
|
6b810bf31d | ||
|
|
c4e91102b0 | ||
|
|
8a333e014d | ||
|
|
9cc4047100 | ||
|
|
dbf9441ea1 | ||
|
|
c464bea451 | ||
|
|
4efdbecf72 | ||
|
|
efa1dde27d | ||
|
|
e7b9dd730e | ||
|
|
4b4994d255 | ||
|
|
c0b3e1fb5a | ||
|
|
f34368eb6a | ||
|
|
08a576b7dc | ||
|
|
2d8ee39707 | ||
|
|
c1117c47db | ||
|
|
194d9f3a48 | ||
|
|
e47ccc415b | ||
|
|
c64125cb32 | ||
|
|
564f6b97d8 | ||
|
|
b6ec3a6450 | ||
|
|
cdf708174f | ||
|
|
9cf94d314b | ||
|
|
d09c4a01e4 | ||
|
|
973e769864 | ||
|
|
d5ffdf24fe | ||
|
|
5c11554cef | ||
|
|
f35512299b | ||
|
|
487b69be96 | ||
|
|
6494f143f9 | ||
|
|
60d87886da | ||
|
|
3573cd6a6a | ||
|
|
6bf24eee8e | ||
|
|
414858d8e8 | ||
|
|
5c2bb7fdc6 | ||
|
|
97462690f6 | ||
|
|
e8d5d6f05d | ||
|
|
784b153508 | ||
|
|
7cd8b2a49d | ||
|
|
74febbdf92 | ||
|
|
2fbb21a5f0 | ||
|
|
34f4d1198e | ||
|
|
16653a269a | ||
|
|
3c05de4713 | ||
|
|
5807949b88 | ||
|
|
5324f744e6 | ||
|
|
11448daeb1 | ||
|
|
97f42bd09f | ||
|
|
098ffb5bfa | ||
|
|
46fbd47212 | ||
|
|
45d2cd99d5 | ||
|
|
f1617557ac | ||
|
|
d4c55cfc35 | ||
|
|
cc455f7e52 | ||
|
|
f9389463bb | ||
|
|
be32dfbcc4 | ||
|
|
4aaac00988 | ||
|
|
d4861241b8 | ||
|
|
43f79c5880 | ||
|
|
ad7699672b | ||
|
|
a0cc8381c3 | ||
|
|
445ae993ad | ||
|
|
f90a6c8656 | ||
|
|
8026395a26 | ||
|
|
191acee8d0 | ||
|
|
446f29bffe | ||
|
|
563a20a8f5 | ||
|
|
006e394f93 | ||
|
|
0a4ce1b600 | ||
|
|
ae2d56cabc | ||
|
|
5e8d2d6415 | ||
|
|
d09199c9f8 | ||
|
|
51957b7f8f | ||
|
|
386e7b39df | ||
|
|
dfee384cdd | ||
|
|
cc2b0a1cf8 | ||
|
|
f316e65b76 | ||
|
|
70a8128e14 | ||
|
|
fa13ca7bfd | ||
|
|
3aec276c63 | ||
|
|
4cab2fc81b | ||
|
|
a2804d24b5 | ||
|
|
f7b9865a2e | ||
|
|
26abd44281 | ||
|
|
6aaf8fa7da | ||
|
|
f76bab1497 | ||
|
|
c1cbae5646 | ||
|
|
046d358f03 | ||
|
|
67dd35cbe9 | ||
|
|
0db2849d84 | ||
|
|
06b17102af | ||
|
|
7cda5258ba | ||
|
|
f780ed3335 | ||
|
|
391708a77c | ||
|
|
7974321fff | ||
|
|
e726c44723 | ||
|
|
10411b6036 | ||
|
|
4b56adf362 | ||
|
|
703b38ab21 | ||
|
|
6beaa547d6 | ||
|
|
84501778aa | ||
|
|
49b247a64d | ||
|
|
3e2105525b | ||
|
|
e43f0e122c | ||
|
|
966b872fec | ||
|
|
cd7a6e5c31 | ||
|
|
2a6880e526 | ||
|
|
0a83117a07 | ||
|
|
0740c45e9d | ||
|
|
f5c05399de | ||
|
|
bd52764a22 | ||
|
|
c51f486001 | ||
|
|
60913d7647 | ||
|
|
607fbc6afc | ||
|
|
b7913bd532 | ||
|
|
a2b4be9279 | ||
|
|
1181ba7080 | ||
|
|
b5597b73c2 | ||
|
|
c4e831c8b9 | ||
|
|
8a95a1cd77 | ||
|
|
2f10b69f3e | ||
|
|
37085171b5 | ||
|
|
5fe4f60324 | ||
|
|
66dc92cb7c | ||
|
|
4cbd36c8b5 | ||
|
|
01045ca981 | ||
|
|
b8edcf36ae | ||
|
|
ebfe14a0ec | ||
|
|
0a657e68b8 | ||
|
|
ae2f333e6a | ||
|
|
a4c746853f | ||
|
|
346151d956 | ||
|
|
0fddd3d47e | ||
|
|
640c268911 | ||
|
|
2074a3776d | ||
|
|
18aa694bf9 | ||
|
|
c6f38c4110 | ||
|
|
07b0dfd19b | ||
|
|
c904abb332 | ||
|
|
4d5d3f2423 | ||
|
|
ac234bca1a | ||
|
|
8e06d1108f | ||
|
|
1c65627670 | ||
|
|
b63ef940fd | ||
|
|
22c1640fcd | ||
|
|
0c00c9f654 | ||
|
|
78d84133d6 | ||
|
|
2989001a44 | ||
|
|
64eef7f67d | ||
|
|
7bb7e3e740 | ||
|
|
0c7eaf3285 | ||
|
|
f4a511c71e | ||
|
|
0afb47919d | ||
|
|
0ed6d23983 | ||
|
|
139f62b7fb | ||
|
|
820a06594c | ||
|
|
a390956176 | ||
|
|
ee5328d780 | ||
|
|
e68d1e3642 | ||
|
|
1b787aeb7f | ||
|
|
136d23f238 | ||
|
|
e61e5700e9 | ||
|
|
5f94fb22be | ||
|
|
a29226d213 | ||
|
|
8ba7042512 | ||
|
|
0a736ba31f | ||
|
|
29a67aadb5 | ||
|
|
8ade4321f2 | ||
|
|
d2a134fb41 | ||
|
|
aec668d182 | ||
|
|
2bdb85f976 | ||
|
|
556f680fca | ||
|
|
43e6ab37a3 | ||
|
|
4cd6f2440e | ||
|
|
32ad3a5b70 | ||
|
|
025ab65ab4 | ||
|
|
bf40dfa99c | ||
|
|
d841166270 | ||
|
|
eca85e9227 | ||
|
|
a194f12bdf | ||
|
|
3209460837 | ||
|
|
3e71b6dcdd | ||
|
|
36c08de126 | ||
|
|
1b437667c0 | ||
|
|
5ca67ee54b | ||
|
|
bcf18bfa01 | ||
|
|
5774a72d30 | ||
|
|
c071ae3970 | ||
|
|
43ad2f22d6 | ||
|
|
6a972ef04e | ||
|
|
23a99f1248 | ||
|
|
1669c00013 | ||
|
|
9a9aaead6d | ||
|
|
b6f7b11a56 | ||
|
|
8c70f80362 | ||
|
|
6005513c3c | ||
|
|
e9a6a7c042 | ||
|
|
745bd85555 | ||
|
|
369b38ae1e | ||
|
|
11fc680fe3 | ||
|
|
cee7486dc6 | ||
|
|
f2395f2993 | ||
|
|
97e632a2d8 | ||
|
|
661e6070da | ||
|
|
ed77d583c6 | ||
|
|
3332bd0528 | ||
|
|
702526c746 | ||
|
|
fa8a146369 | ||
|
|
bcec7d7c3f | ||
|
|
02997b3c4d | ||
|
|
4cca9446d0 | ||
|
|
27152055ea | ||
|
|
8f7c44f6eb | ||
|
|
a909e40cf9 | ||
|
|
171cbed41d | ||
|
|
d955cfca51 | ||
|
|
dbba3fe731 | ||
|
|
59a95935d3 | ||
|
|
c4b5c7c1a9 | ||
|
|
321b7ee962 | ||
|
|
855761697c | ||
|
|
50fd6c1e43 | ||
|
|
a80dae1416 | ||
|
|
7f3510ee2e | ||
|
|
298fcbcf3e | ||
|
|
ad717f51e1 | ||
|
|
63bec11667 | ||
|
|
0de7f63f89 | ||
|
|
d79b129f5c | ||
|
|
c5cf8a4efb | ||
|
|
d0b353bec8 | ||
|
|
37fc6e5910 | ||
|
|
45c17f9410 | ||
|
|
63784f2ba1 | ||
|
|
42f6400525 | ||
|
|
0b9521b1af | ||
|
|
7931aee9d9 | ||
|
|
ba8a2e2955 | ||
|
|
46ec8b4111 | ||
|
|
20b526f9fa | ||
|
|
90737b279a | ||
|
|
88c4fba289 | ||
|
|
b7d77ef368 | ||
|
|
353feb2fe6 | ||
|
|
ea90ff591e | ||
|
|
0069eda5c1 | ||
|
|
e4b452cfd7 | ||
|
|
2af99d82b0 | ||
|
|
1a15e340d9 | ||
|
|
edf8a1125e | ||
|
|
be78567e8a | ||
|
|
3bfb6cd196 | ||
|
|
87ef5856b8 | ||
|
|
88c6e0ec95 | ||
|
|
5edd44880b | ||
|
|
4bb8a8ed37 | ||
|
|
4fa777855a | ||
|
|
82072391aa | ||
|
|
8f967ade31 | ||
|
|
725ac59f56 | ||
|
|
277450790d | ||
|
|
c1c25bfbf7 | ||
|
|
69512faa8f | ||
|
|
afeb248e3d | ||
|
|
5f53ac2b57 | ||
|
|
9040db951d | ||
|
|
cd4e898fad | ||
|
|
9446da27fe | ||
|
|
4cea6cdb22 | ||
|
|
8e2160e6db | ||
|
|
5d20ffe429 | ||
|
|
3eefd2153b | ||
|
|
71efef1ee4 | ||
|
|
647c79cbaf | ||
|
|
a18a35cc4f | ||
|
|
8a980ec5ee | ||
|
|
5b0a290d9e | ||
|
|
2f52f16b2b | ||
|
|
f8406870d2 | ||
|
|
8673b40ed5 | ||
|
|
90fba2953e | ||
|
|
9faf57d773 | ||
|
|
9337a6d773 | ||
|
|
bb5e1eca75 | ||
|
|
6fa4714901 | ||
|
|
24df681107 | ||
|
|
7bc4aa3916 | ||
|
|
a5295b280e | ||
|
|
3bcbd67a5a | ||
|
|
c45150ede3 | ||
|
|
d11f4399bc | ||
|
|
22e2ded2a8 | ||
|
|
da6504bc4c | ||
|
|
3c195f0ff8 | ||
|
|
73439c4818 | ||
|
|
ee877121c9 | ||
|
|
d01f564c80 | ||
|
|
678d6e579e | ||
|
|
e05239f07c | ||
|
|
dc118c3bbb | ||
|
|
ba293acaeb | ||
|
|
918d9669f9 | ||
|
|
719d4641d0 | ||
|
|
8ba4677348 | ||
|
|
a67e0ef2aa | ||
|
|
28f1107062 | ||
|
|
c1945f0c69 | ||
|
|
d98292211a | ||
|
|
e6336bfaee | ||
|
|
4dd4f2823f | ||
|
|
6bd298bbe0 | ||
|
|
cea5b8a6ec | ||
|
|
979f4bccb3 | ||
|
|
8526f999cd | ||
|
|
38c5cbb164 | ||
|
|
50defacc4d | ||
|
|
0bf5ab8b0f | ||
|
|
b64ec41425 | ||
|
|
0608e3fd78 | ||
|
|
20d458c395 | ||
|
|
dfdea96b6d | ||
|
|
c119975970 | ||
|
|
7a16a8a9c6 | ||
|
|
7526772863 | ||
|
|
06d57ca345 | ||
|
|
24741b9973 | ||
|
|
076d53dd27 | ||
|
|
be49e1baf4 | ||
|
|
fb2abb314f | ||
|
|
6cd03c57b9 | ||
|
|
ce650a3936 | ||
|
|
d4753fee99 | ||
|
|
0c9c5041c3 | ||
|
|
d28dcec76e | ||
|
|
7461840b06 | ||
|
|
a8251d5e68 | ||
|
|
fa7548bafd | ||
|
|
422ab7fe0f | ||
|
|
5c4056bbea | ||
|
|
cc95aca1bc | ||
|
|
7afc87f449 | ||
|
|
adc4d0083e | ||
|
|
8039a94c6a | ||
|
|
d56bd3fec6 | ||
|
|
09b9d476ef | ||
|
|
430b53b9e4 | ||
|
|
3787e9848b | ||
|
|
80cbe1eecc | ||
|
|
004c7abb79 | ||
|
|
6c07d1e6f4 | ||
|
|
e4cf2baf78 | ||
|
|
2feeb0375b | ||
|
|
52e4df93eb | ||
|
|
cb76e927cf | ||
|
|
34170d0ad5 | ||
|
|
1de0d0e996 | ||
|
|
db24360778 | ||
|
|
f8aedd9a4c | ||
|
|
8619f6dfcc | ||
|
|
3e8e5f4f7e | ||
|
|
a98743ef50 | ||
|
|
4a845227e2 | ||
|
|
0487d6f8e0 | ||
|
|
1e1931c9f5 | ||
|
|
da168af872 | ||
|
|
d2ab45317d | ||
|
|
f7091ec331 | ||
|
|
7225c36093 | ||
|
|
1d2b4fc990 | ||
|
|
6697ab47de | ||
|
|
38029dc0ad | ||
|
|
fdb56c6f63 | ||
|
|
bba6403a16 | ||
|
|
b1e81f16d9 | ||
|
|
8c909c2738 | ||
|
|
02e822d3bc | ||
|
|
4fc22b4fc7 | ||
|
|
004a69c80c | ||
|
|
0e14d5b2fa | ||
|
|
6b5cf5e240 | ||
|
|
238a3242ed | ||
|
|
cdb3424e64 | ||
|
|
9499876f5c | ||
|
|
6072a45816 | ||
|
|
82480418fa | ||
|
|
48e20a157a | ||
|
|
faed7fd133 | ||
|
|
d8061bc83e | ||
|
|
9e48820e1e | ||
|
|
2318cb3fa3 | ||
|
|
abeee03606 | ||
|
|
43c01aad71 | ||
|
|
e149fac3a4 | ||
|
|
f3a593464f | ||
|
|
998d0a9865 | ||
|
|
09c3da1b92 | ||
|
|
d763585f82 | ||
|
|
145d5f65c1 | ||
|
|
2b0e455357 | ||
|
|
9596756b89 | ||
|
|
826f56ec53 | ||
|
|
01e9b6890c | ||
|
|
225e1b2cb4 | ||
|
|
3a4a8e7217 | ||
|
|
92ec0851aa | ||
|
|
803b2253ce | ||
|
|
c613528fc5 | ||
|
|
647a672694 | ||
|
|
a3518e5690 | ||
|
|
34d304090c | ||
|
|
326152568e | ||
|
|
79b9bd88b2 | ||
|
|
01993cd6e1 | ||
|
|
916de29ee4 | ||
|
|
b4607052d2 | ||
|
|
e4d173eef8 | ||
|
|
685f033647 | ||
|
|
d7c97208e8 | ||
|
|
3322333c7d | ||
|
|
cbce85cf02 | ||
|
|
376d6feeba | ||
|
|
21d3525b26 | ||
|
|
e592c4b9fd | ||
|
|
558109f391 | ||
|
|
8279500d2f | ||
|
|
6dec4084ff | ||
|
|
9cab6028bc | ||
|
|
74ab511457 | ||
|
|
a670622534 | ||
|
|
d81d62f835 | ||
|
|
8f3cae2366 | ||
|
|
f5245c1966 | ||
|
|
d72cbff971 | ||
|
|
d66ad63461 | ||
|
|
2dac0fce6e | ||
|
|
eeef033d32 | ||
|
|
d4ad203ca1 | ||
|
|
f2e7b9f28d | ||
|
|
fc6f5d428f | ||
|
|
e2b0aa940c | ||
|
|
6b2934e06f | ||
|
|
2731820910 | ||
|
|
82426e2926 | ||
|
|
90cbfd4db8 | ||
|
|
f5847039d8 | ||
|
|
6d78dfcafa | ||
|
|
ff7a8c8a7e | ||
|
|
283c2c2a9c | ||
|
|
d1409f23fa | ||
|
|
f3918106e8 | ||
|
|
63e37513dd | ||
|
|
8d67666fe5 | ||
|
|
427cec04c9 | ||
|
|
060696ebcd | ||
|
|
eb6509d939 | ||
|
|
32e7febdab | ||
|
|
c8d8550d35 | ||
|
|
bf118b3d3d | ||
|
|
8f5d66c624 | ||
|
|
32bdffd1b0 | ||
|
|
a8c02ff8ad | ||
|
|
c6aad7fa64 | ||
|
|
ca38b8546f | ||
|
|
32ede4839b | ||
|
|
c706bf9b24 | ||
|
|
d0c8f23dbc | ||
|
|
1524945a4b | ||
|
|
0bca4e931e | ||
|
|
ed3165f8cc | ||
|
|
23894090e4 | ||
|
|
d01d831960 | ||
|
|
1530a9b3df | ||
|
|
4862b6113f | ||
|
|
bb6e9bfbd9 | ||
|
|
ee405299d7 | ||
|
|
a750ddf2ea | ||
|
|
02582a5d11 | ||
|
|
0c6461d468 | ||
|
|
769ce4cff2 | ||
|
|
691dfa71eb | ||
|
|
7f4d9acaeb | ||
|
|
4a2e9a7966 | ||
|
|
b8d1e851dd | ||
|
|
77f908d781 | ||
|
|
39523b600e | ||
|
|
bbc3e473b7 | ||
|
|
7b0dbb4932 | ||
|
|
9bda26caf9 | ||
|
|
5d24c277c9 | ||
|
|
dc73b41e94 | ||
|
|
2845e43acc | ||
|
|
1ff3503847 | ||
|
|
39dc7e01c5 | ||
|
|
97fe271a46 | ||
|
|
da9754e0a3 | ||
|
|
7ba26a9d15 | ||
|
|
9536efd914 | ||
|
|
cb0dad87de | ||
|
|
e5b7068791 | ||
|
|
90a096689a | ||
|
|
005e45fa59 | ||
|
|
da5741d35d | ||
|
|
70590f0a2a | ||
|
|
1ab1258079 | ||
|
|
8db0346764 | ||
|
|
201d6cafda | ||
|
|
dbab632bf4 | ||
|
|
437157a453 | ||
|
|
6169849f2e | ||
|
|
590b42958c | ||
|
|
9766a1b60c | ||
|
|
9a9d2d401d | ||
|
|
4046dc8f39 | ||
|
|
de647fe34d | ||
|
|
c8c5bd886a | ||
|
|
fcf6ebb325 | ||
|
|
82c24af034 | ||
|
|
c04615a2c8 | ||
|
|
e3271696e2 | ||
|
|
48fc7dd684 | ||
|
|
0c5cda0630 | ||
|
|
55664594c2 | ||
|
|
55be47f4b9 | ||
|
|
ec7bff8ef9 | ||
|
|
be6891db14 | ||
|
|
1182fd5611 | ||
|
|
63d4ed7613 | ||
|
|
b7141cc833 | ||
|
|
a36626c6b7 | ||
|
|
394241f708 | ||
|
|
92d1f8dbfc | ||
|
|
c8f993367d | ||
|
|
1b6dcf963b | ||
|
|
6a3fdcf92b | ||
|
|
15a65a6da1 | ||
|
|
66c7934273 | ||
|
|
729e100574 | ||
|
|
1aa599717a | ||
|
|
cddd352fe4 | ||
|
|
c43a7fc0eb | ||
|
|
681f028c40 | ||
|
|
9fab93c0d3 | ||
|
|
80554f1b46 | ||
|
|
fb31c68e28 | ||
|
|
fb8add8fab | ||
|
|
b7358826c8 | ||
|
|
b6ecc473ac | ||
|
|
07d650b35f | ||
|
|
e2934b277d | ||
|
|
41b4acb09b | ||
|
|
b5c9c71f16 | ||
|
|
d92ddd9be2 | ||
|
|
b86ce5eb47 | ||
|
|
ad2a89277e | ||
|
|
7e4368016a | ||
|
|
037f575ef2 | ||
|
|
a9b08a59ee | ||
|
|
8dd8360df1 | ||
|
|
3a8f1c97b7 | ||
|
|
278d3c31db | ||
|
|
79eda77222 | ||
|
|
95d9362a90 | ||
|
|
43c60ab967 | ||
|
|
8276a767de | ||
|
|
1386512ee7 | ||
|
|
52fe0546c9 | ||
|
|
e3dc03c00d | ||
|
|
c5c7024db2 | ||
|
|
0f8f315f7b | ||
|
|
fde3223be8 | ||
|
|
d670e0e0a8 | ||
|
|
b0bdb9e357 | ||
|
|
b60923ad33 | ||
|
|
9d4f222984 | ||
|
|
7bedfe4f94 | ||
|
|
c3f4681a93 | ||
|
|
fa7106b147 | ||
|
|
78de9ecbcc | ||
|
|
7e1d05c8e7 | ||
|
|
03d031e481 | ||
|
|
d6fb21a0ed | ||
|
|
133deb962e | ||
|
|
0cc33c826e | ||
|
|
84892de9bb | ||
|
|
1b2552d97a | ||
|
|
9dad554faf | ||
|
|
8a3c9ecf3d | ||
|
|
4dc47505d5 | ||
|
|
5580f46827 | ||
|
|
1cd966972f | ||
|
|
b9e18a4de2 | ||
|
|
85642b9189 | ||
|
|
d5ec2468cc | ||
|
|
d440707c51 | ||
|
|
8d1509f20c | ||
|
|
873b42bab8 | ||
|
|
2abf0e6c62 | ||
|
|
28b7bca233 | ||
|
|
8cc219ef2a | ||
|
|
11a6d6003a | ||
|
|
ffe4c93b9c | ||
|
|
d9c5508b3d | ||
|
|
6a903efb38 | ||
|
|
89adfdbbe4 | ||
|
|
521eac7fdf | ||
|
|
752499e0be | ||
|
|
ab310b46a0 | ||
|
|
3f1e9d981d | ||
|
|
5f37fc94d7 | ||
|
|
2ee95ba6e1 | ||
|
|
0bbea4a406 | ||
|
|
aabefb01c6 | ||
|
|
49a55eb55e | ||
|
|
3107ffa7bd | ||
|
|
85fa7333b6 | ||
|
|
0452c5d0d8 | ||
|
|
c878b932b0 | ||
|
|
d2df7b2380 | ||
|
|
44d5557928 | ||
|
|
edc8218b01 | ||
|
|
65a64892ea | ||
|
|
59c46e5471 | ||
|
|
6d3c8c3245 | ||
|
|
6ab448b5ac | ||
|
|
a08fa2244d | ||
|
|
22e6878541 | ||
|
|
776c60206d | ||
|
|
4e20f650e6 | ||
|
|
90becafe72 | ||
|
|
54d2e9932f | ||
|
|
8e56243356 | ||
|
|
4c83957aaa | ||
|
|
ae218ef314 | ||
|
|
ada1dee2b0 | ||
|
|
b17920e27e | ||
|
|
2646330d9e | ||
|
|
a6cd82d8fa | ||
|
|
a279be7c89 | ||
|
|
d409292d6e | ||
|
|
71760eac75 | ||
|
|
22ce87e890 | ||
|
|
51cd10b5a9 | ||
|
|
21960f2897 | ||
|
|
d156d485ce | ||
|
|
ea3cae2a29 | ||
|
|
4688f0e06e | ||
|
|
1938753e23 | ||
|
|
7609d1d6bc | ||
|
|
576429899f | ||
|
|
de85d9e164 | ||
|
|
4a1c1f1011 | ||
|
|
4a658933f1 | ||
|
|
3435dc668b | ||
|
|
892dd2f1aa | ||
|
|
6f6bc9a46b | ||
|
|
c8c3a3a102 | ||
|
|
9f4d3b87f6 | ||
|
|
c8e4c168d6 | ||
|
|
c81d4ecd99 | ||
|
|
adf1a3ab65 | ||
|
|
fc54758da9 | ||
|
|
e1bee63656 | ||
|
|
d59e07a06e | ||
|
|
44ef09dc26 | ||
|
|
db497426f5 | ||
|
|
a0b23975e0 | ||
|
|
fb52d0e62d | ||
|
|
bf1dbdd67e | ||
|
|
89cee3c002 | ||
|
|
8e62bce178 | ||
|
|
f6aaa1dadb | ||
|
|
44a2bd0758 | ||
|
|
2ed4fe8e98 | ||
|
|
19a0b04a4d | ||
|
|
5426185681 | ||
|
|
012ffdbd4b | ||
|
|
45b1862fe8 | ||
|
|
69ff0aa488 | ||
|
|
09df69244e | ||
|
|
adcf99e250 | ||
|
|
69565eea61 | ||
|
|
f0a488a96d | ||
|
|
ff64549bac | ||
|
|
402408abd7 | ||
|
|
67c6327950 | ||
|
|
882df377a4 | ||
|
|
dbc1a1f79d | ||
|
|
594d246987 | ||
|
|
7ebf8f628a | ||
|
|
94027acd31 | ||
|
|
f8e5880591 | ||
|
|
9dc6f1d1c7 | ||
|
|
32a8aa7179 | ||
|
|
d80e0cf9a7 | ||
|
|
435c373c8d | ||
|
|
1ce4b0ca1a | ||
|
|
64d4e5e4c5 | ||
|
|
fd4da3a3ed | ||
|
|
9ec1729d6e | ||
|
|
afc18ecdb3 | ||
|
|
60dfee6281 | ||
|
|
e9417fee4e | ||
|
|
486a0b2450 | ||
|
|
e792ef87b8 | ||
|
|
4590c3ac53 | ||
|
|
b4e70e6d93 | ||
|
|
7c54e19b31 | ||
|
|
edf8a94dff | ||
|
|
b8062b30c0 | ||
|
|
3e5ef8c6ca | ||
|
|
632858d72b | ||
|
|
ef14f3a242 | ||
|
|
a1eec07558 | ||
|
|
91ec47226f | ||
|
|
f78b4d45b2 | ||
|
|
7592a1906a | ||
|
|
6c08578bd3 | ||
|
|
c6e9f05f58 | ||
|
|
bcde5a0626 | ||
|
|
6cc6f7d1ad | ||
|
|
d001449914 | ||
|
|
a880832886 | ||
|
|
c2b43ff523 | ||
|
|
a857bd291e | ||
|
|
9195e9e667 | ||
|
|
a0f03120c9 | ||
|
|
8f46a864ae | ||
|
|
5467b9e959 | ||
|
|
7c6a2c1807 | ||
|
|
c7a76453a7 | ||
|
|
ca40730cd5 | ||
|
|
bfacca5f3e | ||
|
|
720b1e9105 | ||
|
|
9d3a83abde | ||
|
|
877577c907 | ||
|
|
7585eafb04 | ||
|
|
0a8de7e776 | ||
|
|
bbf3f0cec1 | ||
|
|
6c3f0127af | ||
|
|
ccdc105a09 | ||
|
|
18656de471 | ||
|
|
5533746860 | ||
|
|
90b6b18b95 | ||
|
|
a7129e5059 | ||
|
|
4733fd7870 | ||
|
|
b879804470 | ||
|
|
e2354d7665 | ||
|
|
dc7d7e8bb8 | ||
|
|
48a1e6651f | ||
|
|
b7ae7d273c | ||
|
|
04d572db49 | ||
|
|
9ceaa121f9 | ||
|
|
a80395bfae | ||
|
|
b5674d4ead | ||
|
|
2562ac522c | ||
|
|
65c8c4221c | ||
|
|
4c2353f325 | ||
|
|
bc8b34ee53 | ||
|
|
eaede0c25c | ||
|
|
4cc8bcc30b | ||
|
|
a8113ea35f | ||
|
|
f6f9317f35 | ||
|
|
c42025ef8e | ||
|
|
0dcece846a | ||
|
|
1c8e695487 | ||
|
|
81e63bacbf | ||
|
|
3ef224a9c3 | ||
|
|
fc377d03a9 | ||
|
|
7ef43433a0 | ||
|
|
3b67ca459e | ||
|
|
9af02680e2 | ||
|
|
548da2dd1a | ||
|
|
68ffaede91 | ||
|
|
496a27d449 | ||
|
|
d3ba34faaa | ||
|
|
5373f0e6e1 | ||
|
|
c726ceaa90 | ||
|
|
245ca0fe2e | ||
|
|
4d9468d373 | ||
|
|
8b2676b6e1 | ||
|
|
f66f963cdc | ||
|
|
f2d34bbd14 | ||
|
|
dc8b9e5f19 | ||
|
|
e9715906c0 | ||
|
|
5a21d40ab8 | ||
|
|
c3a01c701d | ||
|
|
7bf0b48df2 | ||
|
|
d7345f60a2 | ||
|
|
836d0903d2 | ||
|
|
a0544cb5e0 | ||
|
|
77bdb3d163 | ||
|
|
c01e583336 | ||
|
|
203638c58f | ||
|
|
3b655468fd | ||
|
|
a93fb2a92b | ||
|
|
dc64faa66e | ||
|
|
4643c44d68 | ||
|
|
a93f248631 | ||
|
|
345fb3eadb | ||
|
|
58f88ff535 | ||
|
|
1efbd33f60 | ||
|
|
dbeba878ff | ||
|
|
f5bf4b3144 | ||
|
|
2a8f50f5c9 | ||
|
|
37346ef741 | ||
|
|
119964e429 | ||
|
|
2d9cca2eec | ||
|
|
3cb9c195d8 | ||
|
|
ce59d8aee1 | ||
|
|
5ca568de4c | ||
|
|
f6757ceb72 | ||
|
|
4d978924ca | ||
|
|
3c593fd2f0 | ||
|
|
9287d6504d | ||
|
|
4579eec269 | ||
|
|
9230756830 | ||
|
|
d688a6f0a0 | ||
|
|
981afce29a | ||
|
|
035bbf7fb2 | ||
|
|
e0251b80be | ||
|
|
e09369c1f8 | ||
|
|
faf12721d1 | ||
|
|
50d0c06aec | ||
|
|
948f6f521c | ||
|
|
d2925651e3 | ||
|
|
e4f07b9064 | ||
|
|
c77e51c99a | ||
|
|
1f6655d43a | ||
|
|
bb4142abf3 | ||
|
|
ec7ed76d4d | ||
|
|
2d9c07e281 | ||
|
|
beb5a39f8e | ||
|
|
aa7254cf82 | ||
|
|
436c4b73a5 | ||
|
|
893604c431 | ||
|
|
04aa3caab1 | ||
|
|
8304001d60 | ||
|
|
5473c9c1b2 | ||
|
|
bd037db210 | ||
|
|
eef1a274fc | ||
|
|
75906a59fc | ||
|
|
f5924ec122 | ||
|
|
52a78fbd8b | ||
|
|
31d14a596b | ||
|
|
6ef6ddecb3 | ||
|
|
b663d9987b | ||
|
|
ad34d6eb08 | ||
|
|
9d2a2b65f3 | ||
|
|
c21d038d36 | ||
|
|
a9f87890d8 | ||
|
|
14e48ad656 | ||
|
|
41d9ea989b | ||
|
|
860f5caafc | ||
|
|
6132966f1a | ||
|
|
16a9f6d08b | ||
|
|
eeb3fe6af9 | ||
|
|
6bdea53350 | ||
|
|
8174b8a00a | ||
|
|
763d43f255 | ||
|
|
7cbc1b44d2 | ||
|
|
f271c3be83 | ||
|
|
cc5aacfa27 | ||
|
|
f974dd8c58 | ||
|
|
06ca545ef4 | ||
|
|
10e6bcc931 | ||
|
|
fe1de1631a | ||
|
|
26f6ed9085 | ||
|
|
a62294de07 | ||
|
|
532b0e2b0c | ||
|
|
ef7eb77867 | ||
|
|
d41ec0e2a0 | ||
|
|
7f5217ff50 | ||
|
|
258852664b | ||
|
|
ac6725e002 | ||
|
|
0f0198865f | ||
|
|
6185ea9c37 | ||
|
|
3c2d58ed0a | ||
|
|
bafbc69717 | ||
|
|
06e0f20ba6 | ||
|
|
50b4d75ff1 | ||
|
|
385f043bcb | ||
|
|
66af3da999 | ||
|
|
bf8fc9bf2b | ||
|
|
3563fa3d18 | ||
|
|
6096872983 | ||
|
|
fc6080da78 | ||
|
|
39f64e949e | ||
|
|
ff8d76d433 | ||
|
|
38981d3af7 | ||
|
|
446ae68865 | ||
|
|
60f12ef2ba | ||
|
|
1c8d847337 | ||
|
|
49ff8f66c4 | ||
|
|
55be84b8dd | ||
|
|
2451e78bb4 | ||
|
|
4f1f18498b | ||
|
|
ef5fc736c3 | ||
|
|
80189a3a87 | ||
|
|
9e43daf824 | ||
|
|
a1c09d0a73 | ||
|
|
250e947a34 | ||
|
|
a7a093b79f | ||
|
|
adef5c738a | ||
|
|
3b967286ad | ||
|
|
6adb1c959c | ||
|
|
2bb9a8a545 | ||
|
|
68b263feca | ||
|
|
3c169b7d04 | ||
|
|
27a216e69c | ||
|
|
e97fd467cd | ||
|
|
faefa14a3b | ||
|
|
16f90c3fe0 | ||
|
|
419db3f0eb | ||
|
|
cb7774c7db | ||
|
|
26458fe839 | ||
|
|
795f769d5e | ||
|
|
53e0d6f4ad | ||
|
|
a5a3cc3c2c | ||
|
|
4ae2383f99 | ||
|
|
074e2ccc6f | ||
|
|
bc20d943c1 | ||
|
|
6647fe02ad | ||
|
|
282257332e | ||
|
|
6a52b74171 | ||
|
|
4a9593e1f6 | ||
|
|
8d8e8d1a47 | ||
|
|
8c8bbed687 | ||
|
|
916f525269 | ||
|
|
05141d34c2 | ||
|
|
54d328117f | ||
|
|
9095fa6e03 | ||
|
|
68c7e3cf27 | ||
|
|
bed315ee6c | ||
|
|
854414df4f | ||
|
|
82f15807dd | ||
|
|
250269edd6 | ||
|
|
d2d2c6ff59 | ||
|
|
04a5b3b832 | ||
|
|
93e167fada | ||
|
|
3f06fb0a0a | ||
|
|
4eba509d38 | ||
|
|
79c3cd8a7a | ||
|
|
458aaa4768 | ||
|
|
72ded9346c | ||
|
|
84d1794148 | ||
|
|
84cf5785b0 | ||
|
|
52bb52faa0 | ||
|
|
2bf19c7d8f | ||
|
|
24c7cf4a57 | ||
|
|
8b10125355 | ||
|
|
4fb6e7c47b | ||
|
|
aefa48de5b | ||
|
|
29aabfaa4c | ||
|
|
0fb575b027 | ||
|
|
41ba60ca7e | ||
|
|
12f4c1a56e | ||
|
|
c7b9024d78 | ||
|
|
32fd78b726 | ||
|
|
3bd21ad849 | ||
|
|
0c4d375986 | ||
|
|
9f26899c8c | ||
|
|
82f6d6f453 | ||
|
|
0c4b855072 | ||
|
|
4e6631611f | ||
|
|
0470f135c4 | ||
|
|
85c7d18ae3 | ||
|
|
3b6c53da74 | ||
|
|
512857d619 | ||
|
|
6dc2d7e4d2 | ||
|
|
d9e727b8ba | ||
|
|
555da3f7a1 | ||
|
|
dc7639086f | ||
|
|
4541f18760 | ||
|
|
b4549fd4bb | ||
|
|
2f043c9e30 | ||
|
|
4ed88cebba | ||
|
|
b8329612af | ||
|
|
172fff617c | ||
|
|
83c8cc1fae | ||
|
|
6e7f4e1670 | ||
|
|
10b6617c48 | ||
|
|
fff296425d | ||
|
|
8005dd0043 | ||
|
|
feed565fc3 | ||
|
|
b678988c90 | ||
|
|
c2d8209d5c | ||
|
|
f8b196a533 | ||
|
|
6fda7b24bf | ||
|
|
987394103f | ||
|
|
0b3cf3ff18 | ||
|
|
d9c70e46f0 | ||
|
|
f4f2970d0a | ||
|
|
13af87effd | ||
|
|
dba7583631 | ||
|
|
2c5daf4cc9 | ||
|
|
7f26f3101e | ||
|
|
4e069097cb | ||
|
|
5200561a75 | ||
|
|
757204162b | ||
|
|
8189d75efa | ||
|
|
847a52c2f3 | ||
|
|
9fa0b92dd3 | ||
|
|
6c49d37ebf | ||
|
|
d5c5ee4080 | ||
|
|
1d00b6c9c9 | ||
|
|
cb4c019521 | ||
|
|
261f51617b | ||
|
|
67d0ec8374 | ||
|
|
b1b127a551 | ||
|
|
f4bf910c8a | ||
|
|
921e6a3882 | ||
|
|
9fd5f78185 | ||
|
|
4ea3729f29 | ||
|
|
2a7a771146 | ||
|
|
051cf3669f | ||
|
|
c55576e6df | ||
|
|
4ede8ac839 | ||
|
|
3199411b18 | ||
|
|
2470c9051f | ||
|
|
e889dde9a5 | ||
|
|
8f17bab161 | ||
|
|
9a8c4bdbe9 | ||
|
|
566ec7b92f | ||
|
|
60d2cf5d1d | ||
|
|
5795cd1fe0 | ||
|
|
fb061b8d52 | ||
|
|
42e08c860c | ||
|
|
43fff83d63 | ||
|
|
057684cbd7 | ||
|
|
758261d32e | ||
|
|
de9c7c9f85 | ||
|
|
d6d35c2e0c | ||
|
|
3881a8e7ff | ||
|
|
f9b0b72f25 | ||
|
|
aba4ece1da | ||
|
|
0e8c997df5 | ||
|
|
656ff915d3 | ||
|
|
bc25cacb74 | ||
|
|
f549fa7a38 | ||
|
|
90fce3eb74 | ||
|
|
8908f97b41 | ||
|
|
67b7716d4d | ||
|
|
9393d087ea | ||
|
|
d323240c96 | ||
|
|
f7e694d878 | ||
|
|
61c60b3eb8 | ||
|
|
1135eee803 | ||
|
|
40a934496f | ||
|
|
592eefc568 | ||
|
|
a82bc29604 | ||
|
|
3aa8cb7842 | ||
|
|
b844b790f1 | ||
|
|
d087d7347a | ||
|
|
d55a65eb6b | ||
|
|
6acfcc498d | ||
|
|
d609e79f3c | ||
|
|
3058cbf555 | ||
|
|
aa492b455d | ||
|
|
a3080e873f | ||
|
|
abad008765 | ||
|
|
697080e7ab | ||
|
|
b19ab88fef | ||
|
|
c5af2f108c | ||
|
|
5ae5ce5081 | ||
|
|
02f5980d91 | ||
|
|
5c46f0b4a4 | ||
|
|
b7587ffc10 | ||
|
|
b3b4a8c2c3 | ||
|
|
30417a0709 | ||
|
|
7758150121 | ||
|
|
72786e028d | ||
|
|
9f52b981fe | ||
|
|
98245fe0d9 | ||
|
|
509191a3f7 | ||
|
|
fd4a52eaad | ||
|
|
833ee5f0d5 | ||
|
|
ec0f060783 | ||
|
|
17375f82e9 | ||
|
|
0f5f3dad67 | ||
|
|
e4f3cf32cd | ||
|
|
e704f6fd02 | ||
|
|
da872f430b | ||
|
|
bcb7a51ecb | ||
|
|
d692b45ef9 | ||
|
|
36e090e4f2 | ||
|
|
c22092efe0 | ||
|
|
b93acd208b | ||
|
|
835c0822af | ||
|
|
a55ce54bb1 | ||
|
|
dad8efe8bd | ||
|
|
a006e5dfd3 | ||
|
|
b945f26976 | ||
|
|
526d344aad | ||
|
|
e08ee4cc26 | ||
|
|
d3f5c5243c | ||
|
|
e63ed115af | ||
|
|
70e16e24c6 | ||
|
|
2d16ebc092 | ||
|
|
86ad096869 | ||
|
|
c97827f9d1 | ||
|
|
1e404fa6c0 | ||
|
|
1f0fa5c437 | ||
|
|
9f507487e2 | ||
|
|
fd10278074 | ||
|
|
9685925ebc | ||
|
|
fe3e1e70ce | ||
|
|
1eb826e1fa | ||
|
|
9f2aae11bb | ||
|
|
4e1f178389 | ||
|
|
8d91096b15 | ||
|
|
7c46498749 | ||
|
|
c0154ce534 | ||
|
|
2ffc303f9b | ||
|
|
b67f00df07 | ||
|
|
6b3b4ad6ca | ||
|
|
5b77f89a4f | ||
|
|
6185326760 | ||
|
|
cd8f11ec85 | ||
|
|
f0ab82d859 | ||
|
|
d61d9c4575 | ||
|
|
6a7c053dd0 | ||
|
|
d406d1f9c9 | ||
|
|
4e00a8e94a | ||
|
|
cd57b240f5 | ||
|
|
bca0cbbde5 | ||
|
|
396baa380e | ||
|
|
9a36fcd388 | ||
|
|
488cc4562f | ||
|
|
33324eac4f | ||
|
|
ee940a4b44 | ||
|
|
12ece32c94 | ||
|
|
ce50d36a6c | ||
|
|
40c9ee9aaa | ||
|
|
cd1fc89bea | ||
|
|
cd5f53280c | ||
|
|
0051acb625 | ||
|
|
a7194cbcf7 | ||
|
|
26a69078c9 | ||
|
|
b968139da0 | ||
|
|
cab0809536 | ||
|
|
c0daadaa20 | ||
|
|
5bde2697ba | ||
|
|
2db5860769 | ||
|
|
766161cc44 | ||
|
|
9e1c876e58 | ||
|
|
d081c01058 | ||
|
|
fe6b790a23 | ||
|
|
adfc66903c | ||
|
|
f75908c03b | ||
|
|
906fdf619c | ||
|
|
3b534f76f8 | ||
|
|
4d5a191c8b | ||
|
|
02280d597b | ||
|
|
9481d98451 | ||
|
|
449c40a89d | ||
|
|
0782be9f08 | ||
|
|
97918d4e10 | ||
|
|
4d371c0d95 | ||
|
|
a445aaa66a | ||
|
|
8105e6a166 | ||
|
|
efc54c518a | ||
|
|
ec0bf10c03 | ||
|
|
624c7671ee | ||
|
|
14caf39fd4 | ||
|
|
e621d4348a | ||
|
|
620f9317ad | ||
|
|
eea9ddc5af | ||
|
|
79ca86c7de | ||
|
|
0c4b9521d5 | ||
|
|
ee9e8bb28a | ||
|
|
4af961e25a | ||
|
|
c3765026b1 | ||
|
|
8a40ae10c1 | ||
|
|
59e74e9373 | ||
|
|
a5b1f502b6 | ||
|
|
0247d3a198 | ||
|
|
6ea82397a3 | ||
|
|
e0896531eb | ||
|
|
16bd46f732 | ||
|
|
44cb0fff3d | ||
|
|
a4892e98bf | ||
|
|
fcb837aa66 | ||
|
|
5867a55bdc | ||
|
|
b63175db20 | ||
|
|
294f5ecf41 | ||
|
|
3318a39861 | ||
|
|
d78cf05d04 | ||
|
|
0970218907 | ||
|
|
c33b41f8cc | ||
|
|
a65d91f309 | ||
|
|
442ef3d21b | ||
|
|
51035da4ff | ||
|
|
283e5bb163 | ||
|
|
1adaca9cae | ||
|
|
ab0a6e6dd0 | ||
|
|
0ef705b4ba | ||
|
|
b2413c6722 | ||
|
|
4a2003b48a | ||
|
|
91f2930140 | ||
|
|
df8781f1c9 | ||
|
|
d67b4d3f6b | ||
|
|
042141318b | ||
|
|
328e79a007 | ||
|
|
5c62edba3a | ||
|
|
4e1c527b82 | ||
|
|
6eff3c1884 | ||
|
|
116624b1b0 | ||
|
|
3c618c7265 | ||
|
|
e0eaf7f00b | ||
|
|
176e8c5451 | ||
|
|
78ea06c997 | ||
|
|
3e45e0fcd8 | ||
|
|
0236e06fda | ||
|
|
ba9d85891c | ||
|
|
d87f9d1060 | ||
|
|
596e7c0a01 | ||
|
|
8957ccb149 | ||
|
|
e382cf5f41 | ||
|
|
9857b1a59e | ||
|
|
5d50ddb72d | ||
|
|
400154027a | ||
|
|
949e30c64f | ||
|
|
4fb1136a6c | ||
|
|
148d6b590e | ||
|
|
79727e94d8 | ||
|
|
f97d444d8f | ||
|
|
74584ed8b6 | ||
|
|
5e856a67d9 | ||
|
|
c63cdad1a0 | ||
|
|
22be840209 | ||
|
|
b06ce42e18 | ||
|
|
bb7136efe1 | ||
|
|
e325a433cd | ||
|
|
b651be006c | ||
|
|
c669313675 | ||
|
|
1ac77c94fe | ||
|
|
74114cf984 | ||
|
|
056cdd590e | ||
|
|
2f8cb685c4 | ||
|
|
9f7e6c5e8a | ||
|
|
1558689e2b | ||
|
|
3ef73042ff | ||
|
|
b49b48f521 | ||
|
|
0fba81dc0a | ||
|
|
0f24b39bdf | ||
|
|
67af347c93 | ||
|
|
44aa69ed84 | ||
|
|
5d51b8377f | ||
|
|
1894fc9484 | ||
|
|
78e0c6e329 | ||
|
|
fe233fddf4 | ||
|
|
d6c0c53360 | ||
|
|
0cf8a140a9 | ||
|
|
710729e972 | ||
|
|
f0b2db257c | ||
|
|
87ac646444 | ||
|
|
698f313f61 | ||
|
|
5d665f2238 | ||
|
|
874cb1072c | ||
|
|
f9928a5225 | ||
|
|
1b47ada470 | ||
|
|
8684bc6d2a | ||
|
|
c759fe4fbd | ||
|
|
c0384026c1 | ||
|
|
0c2451e92b | ||
|
|
5dd2f359cc | ||
|
|
c9dfe90303 | ||
|
|
04671136ea | ||
|
|
7b7ccadd57 | ||
|
|
5f08bf111e | ||
|
|
d06c6009ae | ||
|
|
d12da9f536 | ||
|
|
0c04e27eb1 | ||
|
|
f69e90bfdb | ||
|
|
9206fd904c | ||
|
|
71bc545ac6 | ||
|
|
3820e80eb0 | ||
|
|
ea84a1fe8e | ||
|
|
dfee645789 | ||
|
|
623a1739b0 | ||
|
|
a35e03ab51 | ||
|
|
30fe903120 | ||
|
|
93979e7a13 | ||
|
|
4976336cd7 | ||
|
|
293dc6ae2d | ||
|
|
2722c6abf9 | ||
|
|
8458f73950 | ||
|
|
c5e8af16d8 | ||
|
|
fb7f0ca845 | ||
|
|
f2fe16c9ca | ||
|
|
d56cfbd643 | ||
|
|
79d217f984 | ||
|
|
1a09b34777 | ||
|
|
c96ec32790 | ||
|
|
a90938b7fe | ||
|
|
ff2e648658 | ||
|
|
824c376c99 | ||
|
|
b7c785dbb9 | ||
|
|
201747cf09 | ||
|
|
3b3150a851 | ||
|
|
5e7c6cadbe | ||
|
|
a629c89a47 | ||
|
|
e12d74e626 | ||
|
|
74460cc8e8 | ||
|
|
211c01a1e7 | ||
|
|
81585718f4 | ||
|
|
82eb7aec56 | ||
|
|
f92bc6705a | ||
|
|
1e5e004c86 | ||
|
|
9d8f9aaffa | ||
|
|
3ab02b9896 | ||
|
|
e2c7517492 | ||
|
|
f49ffdeb17 | ||
|
|
4688f4a267 | ||
|
|
392496f910 | ||
|
|
429035b95e | ||
|
|
60e776c0b1 | ||
|
|
3c90229bd1 | ||
|
|
e8824a34c4 | ||
|
|
5e56e0d9f0 | ||
|
|
ce87194f82 | ||
|
|
8b0ea79b27 | ||
|
|
c93a7af987 | ||
|
|
5b61252657 | ||
|
|
1ad612fe04 | ||
|
|
e82ae91d3b | ||
|
|
89a7ea308b | ||
|
|
baef3ff491 | ||
|
|
bacc204129 | ||
|
|
ad616e2ae7 | ||
|
|
11e8e272dc | ||
|
|
6049d54d57 | ||
|
|
1bce069dc7 | ||
|
|
020c0b0f7f | ||
|
|
7d0b7c66d6 | ||
|
|
91f063881e | ||
|
|
b67d47c22e | ||
|
|
02fcf730c2 | ||
|
|
85c80d8532 | ||
|
|
d3076a4587 | ||
|
|
2928e184e7 | ||
|
|
21ba3d6cb8 | ||
|
|
136fdedb42 | ||
|
|
351bb2c436 | ||
|
|
e2497544f4 | ||
|
|
83a23b5f1c | ||
|
|
108d88aa73 | ||
|
|
d4508c551c | ||
|
|
96eae3899d | ||
|
|
4ab5d272a8 | ||
|
|
ec872fb07e | ||
|
|
0fb3e85ef4 | ||
|
|
99f0b0e6ed | ||
|
|
24a97a12ef | ||
|
|
6c5d2d1f76 | ||
|
|
e75a82953c | ||
|
|
4659274e32 | ||
|
|
e759a9f0ec | ||
|
|
0448460aa8 | ||
|
|
63d006d51c | ||
|
|
8aa191848a | ||
|
|
34c2fcfcff | ||
|
|
86c01f03ff | ||
|
|
7d1f9f8984 | ||
|
|
a4b652fb6e | ||
|
|
7f284fbf17 | ||
|
|
0309575105 | ||
|
|
b1ce1292cd | ||
|
|
b56da5283c | ||
|
|
bb94402f82 | ||
|
|
f4e66ce9d5 | ||
|
|
88a72b7e1b | ||
|
|
fbb3a02aba | ||
|
|
d9d2d87c22 | ||
|
|
8a3070e4d1 | ||
|
|
795c474aa2 | ||
|
|
6acb44cc6b | ||
|
|
44348b0ffc | ||
|
|
ba637881d0 | ||
|
|
f252f64f26 | ||
|
|
f4175f9d93 | ||
|
|
c4d121b673 | ||
|
|
2305c46add | ||
|
|
cdf03c828e | ||
|
|
415018ddda | ||
|
|
1dafb61497 | ||
|
|
b90a717fb1 | ||
|
|
5853f77a56 | ||
|
|
e94feb1a94 | ||
|
|
8189f39979 | ||
|
|
12a9d81b7f | ||
|
|
36609ca04c | ||
|
|
e04e2ec644 | ||
|
|
2bfc8c424b | ||
|
|
5f974b4509 | ||
|
|
f175f1713d | ||
|
|
55d0da1124 | ||
|
|
7a4a69ccea | ||
|
|
6187415172 | ||
|
|
538780b53b | ||
|
|
7191ecc710 | ||
|
|
219619ac4d | ||
|
|
e978f4bd52 | ||
|
|
d511d6f7cf | ||
|
|
80e54a7d35 | ||
|
|
0d56597e86 | ||
|
|
3c6f0accb0 | ||
|
|
828b802387 | ||
|
|
40a84ecba5 | ||
|
|
91bc17ca27 | ||
|
|
f85feaca03 | ||
|
|
3862b13620 | ||
|
|
90c7bcd9de | ||
|
|
7c684bbb7c | ||
|
|
e9662bac89 | ||
|
|
7c2909f337 | ||
|
|
652229634f | ||
|
|
5b597d4bc6 | ||
|
|
d7badd5a07 | ||
|
|
43f634963b | ||
|
|
79472d0bf2 | ||
|
|
50a0d285a1 | ||
|
|
497b238e4c | ||
|
|
65ab40f772 | ||
|
|
53c7e57bc9 | ||
|
|
f9c2c2bcd2 | ||
|
|
cb74fa0564 | ||
|
|
41f723e37a | ||
|
|
947b11003e | ||
|
|
6d2f9e6924 | ||
|
|
458facb9aa | ||
|
|
b884486032 | ||
|
|
36caf9e033 | ||
|
|
ac435378f8 | ||
|
|
420116584d | ||
|
|
66997919f6 | ||
|
|
f5e5c0a6f4 | ||
|
|
367299ddef | ||
|
|
368872de77 | ||
|
|
5e61c45025 | ||
|
|
0f30acf71c | ||
|
|
4757c8e0e4 | ||
|
|
4049071b62 | ||
|
|
eaecbf611e | ||
|
|
5946788239 | ||
|
|
dacbe3641b | ||
|
|
91139eba00 | ||
|
|
f5b78d1114 | ||
|
|
91df78a054 | ||
|
|
454d0090b2 | ||
|
|
ab12796192 | ||
|
|
1b0fc032b5 | ||
|
|
a90118cc0c | ||
|
|
c728b9f01f | ||
|
|
c053a8b481 | ||
|
|
0e107c4842 | ||
|
|
07befae09b | ||
|
|
ac4e93b3e5 | ||
|
|
dbbef7396e | ||
|
|
df4d7336c5 | ||
|
|
22106bc014 | ||
|
|
cbd43bb108 | ||
|
|
db0b7bc7d0 | ||
|
|
7160be3fdb | ||
|
|
55df62eda3 | ||
|
|
196d4e0d9a | ||
|
|
d0a8fe62ca | ||
|
|
945b841d48 | ||
|
|
c4ef934afe | ||
|
|
9d076721e8 | ||
|
|
62fd8be727 | ||
|
|
ae9593fa10 | ||
|
|
78ab560f17 | ||
|
|
e486040111 | ||
|
|
f7dea89c7a | ||
|
|
8b5a2b428e | ||
|
|
944cace649 | ||
|
|
08f111dd0c | ||
|
|
c849307960 | ||
|
|
c846a918fc | ||
|
|
04645c7a9d | ||
|
|
7847db06f7 | ||
|
|
52ff426581 | ||
|
|
38a53f8448 | ||
|
|
e3ce6f3f30 | ||
|
|
d5701c2435 | ||
|
|
779f5ad78d | ||
|
|
306ba98b1e | ||
|
|
db39744a08 | ||
|
|
51e2313515 | ||
|
|
51d9b43023 | ||
|
|
97b5c848d9 | ||
|
|
3bf64af6a4 | ||
|
|
f62051d76f | ||
|
|
de6c30b510 | ||
|
|
4bf9e70937 | ||
|
|
bf0f71d504 | ||
|
|
23c40b5c0f | ||
|
|
93682bb687 | ||
|
|
fa2f9817cc | ||
|
|
f9cd004867 | ||
|
|
1d8ede9301 | ||
|
|
a5b7868cf3 | ||
|
|
0b1647e004 | ||
|
|
3e79243700 | ||
|
|
498b0dfae9 | ||
|
|
67c07c175d | ||
|
|
93854c4c6b | ||
|
|
b6a185a70e | ||
|
|
0485308878 | ||
|
|
952f75d830 | ||
|
|
8f8f7701f0 | ||
|
|
67b43e8565 | ||
|
|
e3b01c7595 | ||
|
|
e85e9626d1 | ||
|
|
586c0aca07 | ||
|
|
5cfb45537b | ||
|
|
245cbae5b2 | ||
|
|
f14fd1ee00 | ||
|
|
40b4bf37e7 | ||
|
|
3dc5150cef | ||
|
|
52061f624e | ||
|
|
0ac14e35b2 | ||
|
|
059f0b427f | ||
|
|
3615d64e55 | ||
|
|
ce6c987c8c | ||
|
|
372b246ae4 | ||
|
|
d7cef5dc99 | ||
|
|
47fb9492d2 | ||
|
|
807f7d7725 | ||
|
|
c1b6656939 | ||
|
|
3a33b18b34 | ||
|
|
70889d7b15 | ||
|
|
5412c22c77 | ||
|
|
241c21b75a | ||
|
|
6ea484d1f5 | ||
|
|
413fab33e5 | ||
|
|
30b0eff13f | ||
|
|
a2db8495bc | ||
|
|
48f6f9d56b | ||
|
|
3fbe1524e4 | ||
|
|
018bd46884 | ||
|
|
6d2ba575bd | ||
|
|
bbcb9cc63c | ||
|
|
e9214b000b | ||
|
|
b88451df35 | ||
|
|
38ce488bd0 | ||
|
|
35c87b9bc6 | ||
|
|
4f7c26fb59 | ||
|
|
2c188de044 | ||
|
|
227c173869 | ||
|
|
34ac502065 | ||
|
|
86035599fe | ||
|
|
745aee0c4c | ||
|
|
e39b3b0498 | ||
|
|
b4b6440297 | ||
|
|
72917f8f44 | ||
|
|
cf434cfd08 | ||
|
|
507cb508d7 | ||
|
|
bc5eaf1b20 | ||
|
|
0398940b8e | ||
|
|
b1bd236e79 | ||
|
|
f22d94b95a | ||
|
|
ce6f7d8d9f | ||
|
|
e41858a470 | ||
|
|
720db7820e | ||
|
|
58d40d97e6 | ||
|
|
560e1d1ec1 | ||
|
|
bc2d3f5307 | ||
|
|
6e086b553a | ||
|
|
47c94bbe3c | ||
|
|
ba1fadc3f7 | ||
|
|
9668f3bd42 | ||
|
|
37bfaf7023 | ||
|
|
a1fd716f3b | ||
|
|
ca034ab855 | ||
|
|
df0413f361 | ||
|
|
859eb894bc | ||
|
|
3b3e4fc761 | ||
|
|
3dd1960b2a | ||
|
|
9069de4eea | ||
|
|
4d72d837be | ||
|
|
70d9be09cc | ||
|
|
8f441bb341 | ||
|
|
f59b95da76 | ||
|
|
35c4e01d18 | ||
|
|
18f85f8dd0 | ||
|
|
a693e71f28 | ||
|
|
c9939d1fd3 | ||
|
|
b36957e25d | ||
|
|
9e8f848074 | ||
|
|
5516bd4ec8 | ||
|
|
2d724b771e | ||
|
|
5f5d8230ea | ||
|
|
642ad8797c | ||
|
|
9f90098dfb | ||
|
|
95101e1958 | ||
|
|
a20cd83e5d | ||
|
|
314b8f7958 | ||
|
|
93c3e23672 | ||
|
|
76b3e558b9 | ||
|
|
ab78e4bef0 | ||
|
|
f3e136fff6 | ||
|
|
18a14d6bf5 | ||
|
|
8be3e5f2e2 | ||
|
|
71379d00bf | ||
|
|
33f1662279 | ||
|
|
5d8f30356a | ||
|
|
60b166ac4d | ||
|
|
f01c807873 | ||
|
|
24d3f55a34 | ||
|
|
ade96f441e | ||
|
|
df22a923c4 | ||
|
|
a0b25e82f5 | ||
|
|
953feea5d3 | ||
|
|
4785e69585 | ||
|
|
4bfcd968a7 | ||
|
|
fd4b78e95d | ||
|
|
86867b76dd | ||
|
|
3584b2144e | ||
|
|
7165b8b1c8 | ||
|
|
1cdde3c8d0 | ||
|
|
d0bc5df348 | ||
|
|
802e907ae5 | ||
|
|
31019c1652 | ||
|
|
a21756dedc | ||
|
|
976d4ef267 | ||
|
|
05b2cbb310 | ||
|
|
9a8a2fb72b | ||
|
|
b355f7ea0e | ||
|
|
791b3309c8 | ||
|
|
5bc4554a6e | ||
|
|
1400e8fb8b | ||
|
|
f039948f09 | ||
|
|
112983b87d | ||
|
|
e46aa34185 | ||
|
|
211f718d25 | ||
|
|
0d77d2ea11 | ||
|
|
b52be5a0e7 | ||
|
|
1d4b7fca78 | ||
|
|
da31012521 | ||
|
|
c343611bf2 | ||
|
|
e0f3d96f9a | ||
|
|
bb3b7c2ff1 | ||
|
|
bed2259ede | ||
|
|
8208dea9e2 | ||
|
|
94729cf355 | ||
|
|
795aee180d | ||
|
|
083c21c7c6 | ||
|
|
c3aa33f7e2 | ||
|
|
ae6d9a5466 | ||
|
|
00780a8a6f | ||
|
|
097307a8f0 | ||
|
|
5d49bab0b1 | ||
|
|
6514a7cdee | ||
|
|
69cd9ff712 | ||
|
|
4682b73269 | ||
|
|
62f9808ce8 | ||
|
|
acbcec3004 | ||
|
|
417b9730b3 | ||
|
|
9a3269d91b | ||
|
|
5b2c2e76fb | ||
|
|
2d3f594b08 | ||
|
|
eed8c3afc6 | ||
|
|
512995a690 | ||
|
|
b983a196aa | ||
|
|
3717641c6c | ||
|
|
39b855dfd3 | ||
|
|
77361183d1 | ||
|
|
d2023dac41 | ||
|
|
24789aba9f | ||
|
|
9628820de0 | ||
|
|
728fea362d | ||
|
|
f0699eac56 | ||
|
|
6fe10b9054 | ||
|
|
899ed70268 | ||
|
|
968d59a50f | ||
|
|
4853d699d7 | ||
|
|
b413a9ba42 | ||
|
|
de39922342 | ||
|
|
443c21dc15 | ||
|
|
e29bad58eb | ||
|
|
c39cd1d7a2 | ||
|
|
3c22121f48 | ||
|
|
7f08256f2f | ||
|
|
c8fc80fb77 | ||
|
|
1c891d2dd6 | ||
|
|
8151679e48 | ||
|
|
a0783a4a5a | ||
|
|
a75c02b0f1 | ||
|
|
af61e4b99f | ||
|
|
9a826752e8 | ||
|
|
5a6d57899a | ||
|
|
6aa7d36e69 | ||
|
|
1e31df0004 | ||
|
|
de4253f385 | ||
|
|
68a912b36d | ||
|
|
651e6b46d0 | ||
|
|
f5e2a5ce2f | ||
|
|
179b369fde | ||
|
|
815859a7bb | ||
|
|
d9185a5a7e | ||
|
|
d1c09d04ff | ||
|
|
87de70d7ac | ||
|
|
08dcf151a6 | ||
|
|
96ef1297af | ||
|
|
9a7b48eb26 | ||
|
|
e8732ba214 | ||
|
|
c985cb4b0e | ||
|
|
51b30845c1 | ||
|
|
c1f3f02117 | ||
|
|
364b725c28 | ||
|
|
3799ccc7b8 | ||
|
|
b1a6f655d7 | ||
|
|
18df3a3df2 | ||
|
|
7df5e2ec9a | ||
|
|
8aafdcac95 | ||
|
|
c918d7df77 | ||
|
|
53df78b377 | ||
|
|
65e3dacb58 | ||
|
|
9db59e2782 | ||
|
|
3f2149f1d8 | ||
|
|
fc0025b59b | ||
|
|
ad49532330 | ||
|
|
b562308535 | ||
|
|
baba7c683c | ||
|
|
8a29b1f0b1 | ||
|
|
c9567944e7 | ||
|
|
4215e79a8b | ||
|
|
6342a98244 | ||
|
|
03a634f27d | ||
|
|
fa2721bd60 | ||
|
|
803782c140 | ||
|
|
37d6196690 | ||
|
|
5db8e09c17 | ||
|
|
6b27df86ca | ||
|
|
bfa28a9e3a | ||
|
|
20de3f4004 | ||
|
|
8695c64724 | ||
|
|
67e772ba10 | ||
|
|
f1b39ff147 | ||
|
|
978e4f71bb | ||
|
|
c36a681815 | ||
|
|
bdceeef8ff | ||
|
|
ffd0bfbf4a | ||
|
|
c59042bc00 | ||
|
|
137860a951 | ||
|
|
db81b82093 | ||
|
|
291759bd6f | ||
|
|
b1712051f1 | ||
|
|
a1fc084b4f | ||
|
|
4146681d02 | ||
|
|
ded4aa73f8 | ||
|
|
4f6a05c971 | ||
|
|
ad98d60489 | ||
|
|
99d378c03f | ||
|
|
b04526e650 | ||
|
|
09183e892f | ||
|
|
5274fdddfe | ||
|
|
061a6cb718 | ||
|
|
c46c240ec5 | ||
|
|
e7f07b3856 | ||
|
|
324119b646 | ||
|
|
e753d19e38 | ||
|
|
5da415cc22 | ||
|
|
ceda89bcfc | ||
|
|
4ed0ab4604 | ||
|
|
9b0743f19a | ||
|
|
c285c5e211 | ||
|
|
5c26a357cc | ||
|
|
c1e4733c3b | ||
|
|
60f33a4ff1 | ||
|
|
4c10477c7c | ||
|
|
61a871690c | ||
|
|
f4f7396cb9 | ||
|
|
48058fdd77 | ||
|
|
704c2ac772 | ||
|
|
9ff39fd8a4 | ||
|
|
6a5da9f5b6 | ||
|
|
cdc1c65a3d | ||
|
|
65f20a2d5a | ||
|
|
7c2b2d86a6 | ||
|
|
ed5c09e2ca | ||
|
|
a19b11738f | ||
|
|
ea7ccf3372 | ||
|
|
03e3476df4 | ||
|
|
80669eb600 | ||
|
|
17c6dc528b | ||
|
|
4fadfde870 | ||
|
|
6ba7c9234f | ||
|
|
dafe049ebd | ||
|
|
ca9ef3c2e8 | ||
|
|
034db9db1f | ||
|
|
9bee1c7ae6 | ||
|
|
bb5aa010d4 | ||
|
|
be1460ac84 | ||
|
|
f0d2463f35 | ||
|
|
dd8e829ab2 | ||
|
|
2a60b87633 | ||
|
|
45912ca0ac | ||
|
|
2be4d8d00a | ||
|
|
0ec2537a01 | ||
|
|
f6180ffc6f | ||
|
|
c90e52b4c2 | ||
|
|
94082b87b8 | ||
|
|
04398eaf11 | ||
|
|
5e494d6339 | ||
|
|
d2416e1378 | ||
|
|
119a854357 | ||
|
|
d5e7ca614a | ||
|
|
badc0769db | ||
|
|
566557a3f0 | ||
|
|
05aeccd5ca | ||
|
|
6332596a4d | ||
|
|
76b95ee227 | ||
|
|
9478439139 | ||
|
|
d49946e886 | ||
|
|
d11dbb57ab | ||
|
|
08357fe683 | ||
|
|
1f401e1f45 | ||
|
|
f5ddf2b63e | ||
|
|
c3aa4dba38 | ||
|
|
1b05ddb812 | ||
|
|
05b008edf1 | ||
|
|
110fe5a836 | ||
|
|
8b1f3d52f9 | ||
|
|
acef905cbe | ||
|
|
d4db10c832 | ||
|
|
eba879a8ca | ||
|
|
14d930dc6d | ||
|
|
f86d88868b | ||
|
|
e1725a42b9 | ||
|
|
593aba4abe | ||
|
|
9a65fa5b1b | ||
|
|
11f76bfa6b | ||
|
|
76268b0341 | ||
|
|
96501b1fca | ||
|
|
c20beab072 | ||
|
|
71712134bd | ||
|
|
2214a2a3e7 | ||
|
|
d9a4819ca7 | ||
|
|
7b045fdab6 | ||
|
|
3263b3a8ac | ||
|
|
85648460a7 | ||
|
|
767b0ee7b1 | ||
|
|
fb40581e50 | ||
|
|
61cec2f531 | ||
|
|
b34a4917dc | ||
|
|
828552e105 | ||
|
|
887b5a178a | ||
|
|
8c86df56bf | ||
|
|
b257b57e1b | ||
|
|
4e5e360aa2 | ||
|
|
4c0e52f3e9 | ||
|
|
b43dcc8fd2 | ||
|
|
abcc2d45a0 | ||
|
|
186be1466f | ||
|
|
3c3fb4e000 | ||
|
|
a1a2c8e6de | ||
|
|
4835fef626 | ||
|
|
fd1035a222 | ||
|
|
f4db6709de | ||
|
|
ed5f2fad9f | ||
|
|
9eb23637ff | ||
|
|
ad009e1438 | ||
|
|
dcc313a3b7 | ||
|
|
d1fff060c6 | ||
|
|
5db3c8ded9 | ||
|
|
3f4b2f7d99 | ||
|
|
c4f158b374 | ||
|
|
61e70e439f | ||
|
|
c66827cc8b | ||
|
|
f217d60eb4 | ||
|
|
edb5d85d3c | ||
|
|
bcc969ba8d | ||
|
|
f774effd17 | ||
|
|
b55d68ba95 | ||
|
|
d40148503c | ||
|
|
7ec8f8f604 | ||
|
|
4444e89bbc | ||
|
|
d7f0325595 | ||
|
|
f79492b78c | ||
|
|
925fbc076c | ||
|
|
6d66f71fcf | ||
|
|
4543df6c4b | ||
|
|
4e885a8ae1 | ||
|
|
de53dbf358 | ||
|
|
1e8647294a | ||
|
|
25d3af84a1 | ||
|
|
72367ff251 | ||
|
|
8b8a2d4790 | ||
|
|
eb8ec7d6d1 | ||
|
|
00bff720d0 | ||
|
|
39c80534b0 | ||
|
|
5cf0cf98f7 | ||
|
|
1a13e6103c | ||
|
|
b1f6a2ce4b | ||
|
|
8252421f26 | ||
|
|
51c3eedb87 | ||
|
|
ad73b379e6 | ||
|
|
0440512d07 | ||
|
|
865baefe82 | ||
|
|
1732adfa07 | ||
|
|
fcf05717c4 | ||
|
|
6a09708500 | ||
|
|
d3527a8a0b | ||
|
|
2f90c9532f | ||
|
|
937ce00468 | ||
|
|
8f61f8eb54 | ||
|
|
29bafb193c | ||
|
|
f2de337030 | ||
|
|
bcae082904 | ||
|
|
887320a8d2 | ||
|
|
bfcb0c92bc | ||
|
|
9a73352750 | ||
|
|
8fe9b5e86a | ||
|
|
a716f18685 | ||
|
|
2e717f67f3 | ||
|
|
ade8b21e54 | ||
|
|
a1599a84e2 | ||
|
|
0435e1c021 | ||
|
|
7528331669 | ||
|
|
42e5816d97 | ||
|
|
77788c00a0 | ||
|
|
663af9cca3 | ||
|
|
2e03ecb2b3 | ||
|
|
752f4aefc8 | ||
|
|
0dbb7eb2fd | ||
|
|
b6420f1ff6 | ||
|
|
cead6ec411 | ||
|
|
f3c665324e | ||
|
|
15cbb4eeb5 | ||
|
|
1892f9e030 | ||
|
|
716b9901a9 | ||
|
|
50516e8f79 | ||
|
|
31a4d80bf5 | ||
|
|
6e43d75756 | ||
|
|
7998ef60b2 | ||
|
|
d623edaca1 | ||
|
|
59dcb2a7df | ||
|
|
7730de5796 | ||
|
|
8fc72c0a4b | ||
|
|
226ae1a7bb | ||
|
|
324484e756 | ||
|
|
78dddd29b1 | ||
|
|
c2d6c41bed | ||
|
|
da4ceaa4fd | ||
|
|
99cc319bb3 | ||
|
|
ef858a1b5a | ||
|
|
62c0a73a69 | ||
|
|
24b7d5e489 | ||
|
|
6f46cc2695 | ||
|
|
1a58709bfd | ||
|
|
711e1f40e4 | ||
|
|
e25b1dc5b6 | ||
|
|
ce8cf140f2 | ||
|
|
005646cae3 | ||
|
|
1dd4359338 | ||
|
|
c3c997183a | ||
|
|
1e3714bd28 | ||
|
|
e413d25e7d | ||
|
|
5e8902c242 | ||
|
|
35560b569a | ||
|
|
34f95bbbdd | ||
|
|
3c890f1602 | ||
|
|
cf548d3884 | ||
|
|
8c7e275201 | ||
|
|
31ccae0cec | ||
|
|
f8fe2acdde | ||
|
|
f0e842dc4a | ||
|
|
726f629ae1 | ||
|
|
19a361f674 | ||
|
|
cb664f26da | ||
|
|
afe1ba95d3 | ||
|
|
145536c5fa | ||
|
|
da880edc7c | ||
|
|
1ce76af0e9 | ||
|
|
72cd4eeaee | ||
|
|
721a9a478f | ||
|
|
d5529afe80 | ||
|
|
44eb3af0f3 | ||
|
|
08848b2e92 | ||
|
|
142620bced | ||
|
|
d599cef011 | ||
|
|
5bba47b39c | ||
|
|
bc26d54909 | ||
|
|
6efc1700b6 | ||
|
|
fe9e562295 | ||
|
|
fe08b8a496 | ||
|
|
a71e2703a2 | ||
|
|
255014182e | ||
|
|
e209c98eab | ||
|
|
6a4a0f9c36 | ||
|
|
5c7786f39f | ||
|
|
2fd7cc20b7 | ||
|
|
a7b4e24cf4 | ||
|
|
4470edff4a | ||
|
|
b33d20d927 | ||
|
|
85b4a44fb1 | ||
|
|
8843e8b87e | ||
|
|
fcf525416f | ||
|
|
768c0e1048 | ||
|
|
a7b8207a95 | ||
|
|
1cf03b53f5 | ||
|
|
d4a8ee886c | ||
|
|
e02c67ff07 | ||
|
|
a10067bd62 | ||
|
|
0aee1faed1 | ||
|
|
e365a381c6 | ||
|
|
2c89e09d03 | ||
|
|
fd0d7ccb59 | ||
|
|
e72a6e6400 | ||
|
|
7c4dc96e03 | ||
|
|
0c4eb3452c | ||
|
|
9787972139 | ||
|
|
2b8a3458a8 | ||
|
|
ea58f0d336 | ||
|
|
e03f574b38 | ||
|
|
115715a1d8 | ||
|
|
fbfaab83ad | ||
|
|
ba2b3e9469 | ||
|
|
4768c7b5e1 | ||
|
|
66e6aa031c | ||
|
|
5dcb038fa0 | ||
|
|
6d2505f53f | ||
|
|
4f44efb156 | ||
|
|
1ad2e68e4b | ||
|
|
e2077b95a4 | ||
|
|
c18bed5a9b | ||
|
|
bdaf9a8ddf | ||
|
|
4a37c272a1 | ||
|
|
6f9015b67e | ||
|
|
664ce07f1a | ||
|
|
54c474764c | ||
|
|
29e64a354f | ||
|
|
96b63db44c | ||
|
|
8a06d2f5c0 | ||
|
|
07289be70e | ||
|
|
04d51e2437 | ||
|
|
a236f89786 | ||
|
|
91269b50d0 | ||
|
|
bc1fcf5d5a | ||
|
|
6e313c1a0a | ||
|
|
311bf3dfb6 | ||
|
|
f48912ead3 | ||
|
|
791769f2e4 | ||
|
|
e61cbfd632 | ||
|
|
f267a054e1 | ||
|
|
58743f3d5d | ||
|
|
cf4fa97a21 | ||
|
|
09107f3813 | ||
|
|
6b0996df7c | ||
|
|
9923f54f7f | ||
|
|
d9a9d0c30c | ||
|
|
d20f81781c | ||
|
|
9c9dabf8b6 | ||
|
|
b23a134de1 | ||
|
|
d68daf37b3 | ||
|
|
d44a503526 | ||
|
|
64ec20b0cd | ||
|
|
a025e7517b | ||
|
|
fa7b263033 | ||
|
|
0e6478e9bb | ||
|
|
4c85e1db08 | ||
|
|
4fdac61f25 | ||
|
|
e247d39ff4 | ||
|
|
1ab259806c | ||
|
|
65bdc27683 | ||
|
|
8a8bb3d77e | ||
|
|
4eb3df0d29 | ||
|
|
5f49f22fb7 | ||
|
|
8e2e51702b | ||
|
|
c3bc213bef | ||
|
|
1568e2814d | ||
|
|
6edcfe6a82 | ||
|
|
1a33421fe1 | ||
|
|
9f2fefb606 | ||
|
|
8d0f6d433f | ||
|
|
5ac9b15456 | ||
|
|
2ae960ccbd | ||
|
|
2ab76ffdb1 | ||
|
|
f3a8b74f77 | ||
|
|
25ac0a5f73 | ||
|
|
e106f26073 | ||
|
|
77e993115e | ||
|
|
9dd07e6ba0 | ||
|
|
22e2a9d2bf | ||
|
|
eb64550ea4 | ||
|
|
ac4f37b0a5 | ||
|
|
354837520c | ||
|
|
a7a3a142df | ||
|
|
63b976aae5 | ||
|
|
7879e50a84 | ||
|
|
16c17cd55c | ||
|
|
e9a056744d | ||
|
|
9aa5b62699 | ||
|
|
72c4d2a866 | ||
|
|
b540c7a2e7 | ||
|
|
9f84fe1bf0 | ||
|
|
a0270fc060 | ||
|
|
9c9e082f74 | ||
|
|
83d75c3fa0 | ||
|
|
dce19ba23f | ||
|
|
44d2a050e0 | ||
|
|
e0da233ad3 | ||
|
|
457a57d4bc | ||
|
|
27a5a65695 | ||
|
|
dfe6b9472a | ||
|
|
a2b0c41087 | ||
|
|
948d0b54b0 | ||
|
|
575b985fb8 | ||
|
|
3f8cc11cae | ||
|
|
9da3e5c9c9 | ||
|
|
78dd60c020 | ||
|
|
5bcda3f0f2 | ||
|
|
d6fc11d98a | ||
|
|
e23a0b6401 | ||
|
|
57b7fafb37 | ||
|
|
9f4a9bc9a2 | ||
|
|
a877826048 | ||
|
|
7876a9e765 | ||
|
|
31ab835636 | ||
|
|
7a3853ed06 | ||
|
|
7f80acda40 | ||
|
|
eb3d75865f | ||
|
|
43c5f4b46f | ||
|
|
6890fabd3c | ||
|
|
e44c8223ff | ||
|
|
dd7e62a93c | ||
|
|
20a62cdd6c | ||
|
|
3958cd059f | ||
|
|
53c9fd8dcb | ||
|
|
be05c26268 | ||
|
|
8e70f7c6b3 | ||
|
|
f7238017b5 | ||
|
|
064ec3f07b | ||
|
|
53b92f890a | ||
|
|
9b4a75a2f8 | ||
|
|
25fa2a9395 | ||
|
|
516bef3e06 | ||
|
|
74735ce7ed | ||
|
|
a7f2ec4561 | ||
|
|
5faec3d6ed | ||
|
|
9db2998134 | ||
|
|
326cdd5d93 | ||
|
|
d777ef9189 | ||
|
|
90439d8478 | ||
|
|
86bed95f8a | ||
|
|
29d4a0272c | ||
|
|
52524023bc | ||
|
|
69abb91cd8 | ||
|
|
22faac0a08 | ||
|
|
3817dceba6 | ||
|
|
9423ca5271 | ||
|
|
1dab6ce3ed | ||
|
|
143a4edd02 | ||
|
|
adec4ac54a | ||
|
|
db20bc1720 | ||
|
|
8d96945b15 | ||
|
|
a012be6a6d | ||
|
|
0c8b07b665 | ||
|
|
3434b35d86 | ||
|
|
ffd571769e | ||
|
|
c54323a1f8 | ||
|
|
b248dd0fc8 | ||
|
|
207c272479 | ||
|
|
f7c264af72 | ||
|
|
c55c619ff7 | ||
|
|
85c33a05a7 | ||
|
|
4d1d70ca76 | ||
|
|
04dcdb28d2 | ||
|
|
0a30b35651 | ||
|
|
59a413497e | ||
|
|
e24cdf321b | ||
|
|
ccf2f2da9b | ||
|
|
d4260119a8 | ||
|
|
e9e900374e | ||
|
|
7b65e1900d | ||
|
|
92b0d35986 | ||
|
|
43ea3d3f41 | ||
|
|
65433b951d | ||
|
|
6702cf7961 | ||
|
|
7b063335be | ||
|
|
b69cf1e950 | ||
|
|
1b64af0c9b | ||
|
|
cdc8077956 | ||
|
|
c9c414f1c0 | ||
|
|
d1419737b5 | ||
|
|
a230da72a6 | ||
|
|
a2271263d0 | ||
|
|
dc657f64cd | ||
|
|
c9a229357c | ||
|
|
fbb1f40d77 | ||
|
|
cded20b7b6 | ||
|
|
0e8ef25cee | ||
|
|
0be3f7f951 | ||
|
|
4fb9e17b43 | ||
|
|
d96f914fc1 | ||
|
|
1d4ec605a7 | ||
|
|
eb362e45da | ||
|
|
993b43f31c | ||
|
|
8711902173 | ||
|
|
2f43037e94 | ||
|
|
15c93f90c2 | ||
|
|
6d97cac430 | ||
|
|
ce4befff05 | ||
|
|
555a919ddd | ||
|
|
5847c66bb7 | ||
|
|
349def3a94 | ||
|
|
f4f16f6856 | ||
|
|
bdcafcea64 | ||
|
|
8ee4b70edd | ||
|
|
917cd408ec | ||
|
|
ef190fe835 | ||
|
|
26782f0ba7 | ||
|
|
9c277134e0 | ||
|
|
ad7971ffd1 | ||
|
|
049f316091 | ||
|
|
8ef5bef118 | ||
|
|
d85b33f31d | ||
|
|
6a3942478b | ||
|
|
6ec83383e2 | ||
|
|
b10aaddcd7 | ||
|
|
abea434d80 | ||
|
|
ee0e8ac41f | ||
|
|
64c2293952 | ||
|
|
c900d89367 | ||
|
|
656bd9c3e8 | ||
|
|
16915211df | ||
|
|
0343f30ff3 | ||
|
|
519fb35777 | ||
|
|
29ae90ea2b | ||
|
|
6d5ab64685 | ||
|
|
c37f617b06 | ||
|
|
08b3a23aa0 | ||
|
|
b816bd348e | ||
|
|
754bbcabc4 | ||
|
|
9583aa7936 | ||
|
|
6ffe0079d6 | ||
|
|
36dc0329f9 | ||
|
|
ce98b2dc7d | ||
|
|
d3fa62c6e9 | ||
|
|
d90e450524 | ||
|
|
0a02093753 | ||
|
|
c0a315bbec | ||
|
|
ce187b5865 | ||
|
|
9e813ee681 | ||
|
|
e0dadcef2d | ||
|
|
9b69df4fe2 | ||
|
|
f6d9f7194c | ||
|
|
a59d815420 | ||
|
|
3574dedce6 | ||
|
|
164839f6fb | ||
|
|
89e50ae71e | ||
|
|
917fc12442 | ||
|
|
0f715858f6 | ||
|
|
903f2bc165 | ||
|
|
50594d5ee2 | ||
|
|
0e484541ef | ||
|
|
3a6cdd1b67 | ||
|
|
9b42ea4cb1 | ||
|
|
7ddcb2ecb1 | ||
|
|
2d833c1592 | ||
|
|
59188b9ffd | ||
|
|
044185b9c7 | ||
|
|
541a9954be | ||
|
|
863cdb6dda | ||
|
|
2512a98a4d | ||
|
|
b27c2c0f07 | ||
|
|
b3ace934f1 | ||
|
|
6655d27071 | ||
|
|
6a79a8665f | ||
|
|
25d65b9397 | ||
|
|
2a62f344d7 | ||
|
|
6a2a44c8c2 | ||
|
|
fbcc465682 | ||
|
|
bc4211d1ed | ||
|
|
bf5ece7e7a | ||
|
|
16725b12a1 | ||
|
|
edecfc5a4c | ||
|
|
c85bf386f6 | ||
|
|
173d73ff3c | ||
|
|
f329c08189 | ||
|
|
a2915eebfa | ||
|
|
f5d79b0ece | ||
|
|
16523d1fdc | ||
|
|
d5d47cefc1 | ||
|
|
816b75fd0b | ||
|
|
fce77d4a7b | ||
|
|
70ff2bd9be | ||
|
|
f1886e2f6b | ||
|
|
c2826b34ce | ||
|
|
5704816c0b | ||
|
|
a6e15c2d3c | ||
|
|
7d0b388dfa | ||
|
|
95ddf7bfd9 | ||
|
|
d3b1cdd2e4 | ||
|
|
04599c8a68 | ||
|
|
91fea0ae34 | ||
|
|
280d940b0a | ||
|
|
094a26a86b | ||
|
|
f2557c4d40 | ||
|
|
c6b1a0acee | ||
|
|
56715faccc | ||
|
|
dac30eb9e4 | ||
|
|
b8dc6ccf8e | ||
|
|
aba751fdab | ||
|
|
215bbb6978 | ||
|
|
66ab409858 | ||
|
|
09c7594e49 | ||
|
|
0ba7886e77 | ||
|
|
e12ca36c15 | ||
|
|
02ad7fd44b | ||
|
|
764e512976 | ||
|
|
8cc794caff | ||
|
|
b6e496388d | ||
|
|
608220c2a7 | ||
|
|
3805b9c59e | ||
|
|
c15c254fa0 | ||
|
|
0a32d2eefa | ||
|
|
30412e1a6d |
5
mozilla/js/jsd/MANIFEST
Normal file
5
mozilla/js/jsd/MANIFEST
Normal file
@@ -0,0 +1,5 @@
|
||||
#
|
||||
# This is a list of local files which get copied to the mozilla:dist directory
|
||||
#
|
||||
|
||||
jsdebug.h
|
||||
73
mozilla/js/jsd/Makefile
Normal file
73
mozilla/js/jsd/Makefile
Normal file
@@ -0,0 +1,73 @@
|
||||
#!gmake
|
||||
#
|
||||
# The contents of this file are subject to the Netscape Public License
|
||||
# Version 1.0 (the "NPL"); you may not use this file except in
|
||||
# compliance with the NPL. You may obtain a copy of the NPL at
|
||||
# http://www.mozilla.org/NPL/
|
||||
#
|
||||
# Software distributed under the NPL is distributed on an "AS IS" basis,
|
||||
# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
|
||||
# for the specific language governing rights and limitations under the
|
||||
# NPL.
|
||||
#
|
||||
# The Initial Developer of this code under the NPL is Netscape
|
||||
# Communications Corporation. Portions created by Netscape are
|
||||
# Copyright (C) 1998 Netscape Communications Corporation. All Rights
|
||||
# Reserved.
|
||||
|
||||
|
||||
|
||||
DEPTH = ../..
|
||||
|
||||
MODULE = jsdebug
|
||||
LIBRARY_NAME = jsd
|
||||
|
||||
# Switching on MOZ_JAVA is a short-term hack. This is really for no Java/IFC
|
||||
ifdef MOZ_JAVA
|
||||
JAVA_OR_OJI = 1
|
||||
endif
|
||||
ifdef MOZ_OJI
|
||||
JAVA_OR_OJI = 1
|
||||
endif
|
||||
|
||||
ifdef JAVA_OR_OJI
|
||||
DIRS = classes
|
||||
endif
|
||||
|
||||
REQUIRES = java js nspr
|
||||
|
||||
EXPORTS = jsdebug.h
|
||||
|
||||
CSRCS = \
|
||||
jsdebug.c \
|
||||
jsd_high.c \
|
||||
jsd_hook.c \
|
||||
jsd_scpt.c \
|
||||
jsd_stak.c \
|
||||
jsd_text.c \
|
||||
jsd_lock.c \
|
||||
$(NULL)
|
||||
|
||||
ifndef MOZ_JSD
|
||||
CSRCS += jsdstubs.c jsd_java.c
|
||||
|
||||
JDK_GEN = \
|
||||
netscape.jsdebug.Script \
|
||||
netscape.jsdebug.DebugController \
|
||||
netscape.jsdebug.JSThreadState \
|
||||
netscape.jsdebug.JSStackFrameInfo \
|
||||
netscape.jsdebug.JSPC \
|
||||
netscape.jsdebug.JSSourceTextProvider \
|
||||
netscape.jsdebug.JSErrorReporter \
|
||||
$(NULL)
|
||||
endif
|
||||
|
||||
include $(DEPTH)/config/rules.mk
|
||||
|
||||
$(OBJDIR)\jsdstubs.o: \
|
||||
$(JDK_STUB_DIR)\netscape_jsdebug_Script.c \
|
||||
$(JDK_STUB_DIR)\netscape_jsdebug_DebugController.c \
|
||||
$(JDK_STUB_DIR)\netscape_jsdebug_JSThreadState.c \
|
||||
$(JDK_STUB_DIR)\netscape_jsdebug_JSStackFrameInfo.c \
|
||||
$(JDK_STUB_DIR)\netscape_jsdebug_JSPC.c \
|
||||
$(JDK_STUB_DIR)\netscape_jsdebug_JSSourceTextProvider.c
|
||||
78
mozilla/js/jsd/Makefile.in
Normal file
78
mozilla/js/jsd/Makefile.in
Normal file
@@ -0,0 +1,78 @@
|
||||
#!gmake
|
||||
#
|
||||
# The contents of this file are subject to the Netscape Public License
|
||||
# Version 1.0 (the "NPL"); you may not use this file except in
|
||||
# compliance with the NPL. You may obtain a copy of the NPL at
|
||||
# http://www.mozilla.org/NPL/
|
||||
#
|
||||
# Software distributed under the NPL is distributed on an "AS IS" basis,
|
||||
# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
|
||||
# for the specific language governing rights and limitations under the
|
||||
# NPL.
|
||||
#
|
||||
# The Initial Developer of this code under the NPL is Netscape
|
||||
# Communications Corporation. Portions created by Netscape are
|
||||
# Copyright (C) 1998 Netscape Communications Corporation. All Rights
|
||||
# Reserved.
|
||||
|
||||
|
||||
|
||||
DEPTH = ../..
|
||||
topsrcdir = @top_srcdir@
|
||||
VPATH = @srcdir@
|
||||
srcdir = @srcdir@
|
||||
|
||||
include $(DEPTH)/config/autoconf.mk
|
||||
|
||||
MODULE = jsdebug
|
||||
LIBRARY_NAME = jsd
|
||||
|
||||
# Switching on MOZ_JAVA is a short-term hack. This is really for no Java/IFC
|
||||
ifdef MOZ_JAVA
|
||||
JAVA_OR_OJI = 1
|
||||
endif
|
||||
ifdef MOZ_OJI
|
||||
JAVA_OR_OJI = 1
|
||||
endif
|
||||
|
||||
ifdef JAVA_OR_OJI
|
||||
DIRS = classes
|
||||
endif
|
||||
|
||||
REQUIRES = java js
|
||||
|
||||
EXPORTS = $(srcdir)/jsdebug.h
|
||||
|
||||
CSRCS = \
|
||||
jsdebug.c \
|
||||
jsd_high.c \
|
||||
jsd_hook.c \
|
||||
jsd_scpt.c \
|
||||
jsd_stak.c \
|
||||
jsd_text.c \
|
||||
jsd_lock.c \
|
||||
$(NULL)
|
||||
|
||||
ifndef MOZ_JSD
|
||||
CSRCS += jsdstubs.c jsd_java.c
|
||||
|
||||
JDK_GEN = \
|
||||
netscape.jsdebug.Script \
|
||||
netscape.jsdebug.DebugController \
|
||||
netscape.jsdebug.JSThreadState \
|
||||
netscape.jsdebug.JSStackFrameInfo \
|
||||
netscape.jsdebug.JSPC \
|
||||
netscape.jsdebug.JSSourceTextProvider \
|
||||
netscape.jsdebug.JSErrorReporter \
|
||||
$(NULL)
|
||||
endif
|
||||
|
||||
include $(topsrcdir)/config/rules.mk
|
||||
|
||||
$(OBJDIR)\jsdstubs.o: \
|
||||
$(JDK_STUB_DIR)\netscape_jsdebug_Script.c \
|
||||
$(JDK_STUB_DIR)\netscape_jsdebug_DebugController.c \
|
||||
$(JDK_STUB_DIR)\netscape_jsdebug_JSThreadState.c \
|
||||
$(JDK_STUB_DIR)\netscape_jsdebug_JSStackFrameInfo.c \
|
||||
$(JDK_STUB_DIR)\netscape_jsdebug_JSPC.c \
|
||||
$(JDK_STUB_DIR)\netscape_jsdebug_JSSourceTextProvider.c
|
||||
18
mozilla/js/jsd/README
Normal file
18
mozilla/js/jsd/README
Normal file
@@ -0,0 +1,18 @@
|
||||
/* jband - 10/26/98 - */
|
||||
|
||||
js/jsd contains code for debugging support for the C-based JavaScript engine
|
||||
in js/src.
|
||||
|
||||
Currently the makefiles are for Win32 only (using MS nmake.exe from MSDEV 4.2).
|
||||
jsd.mak will build a standalone dll. jsdshell.mak will build the dll and also
|
||||
a version of the js/src/js.c shell which will launch a Java VM and run the
|
||||
JavaSript Debugger (built in js/jsdj). This version assumes that you have a
|
||||
JRE compatible JVM installed. Only Windows is supported for this Java-based
|
||||
debugging.
|
||||
|
||||
Though only Windows makefiles are supplied, the basic code in js/jsd should
|
||||
compile for other platforms -- it is a newer version of code that builds and
|
||||
ships with Communicator 4.x on many platforms.
|
||||
|
||||
js/jsd/jsdb is a console debugger using only native code (see README in that
|
||||
directory)
|
||||
59
mozilla/js/jsd/classes/Makefile
Normal file
59
mozilla/js/jsd/classes/Makefile
Normal file
@@ -0,0 +1,59 @@
|
||||
#!gmake
|
||||
#
|
||||
# The contents of this file are subject to the Netscape Public License
|
||||
# Version 1.0 (the "NPL"); you may not use this file except in
|
||||
# compliance with the NPL. You may obtain a copy of the NPL at
|
||||
# http://www.mozilla.org/NPL/
|
||||
#
|
||||
# Software distributed under the NPL is distributed on an "AS IS" basis,
|
||||
# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
|
||||
# for the specific language governing rights and limitations under the
|
||||
# NPL.
|
||||
#
|
||||
# The Initial Developer of this code under the NPL is Netscape
|
||||
# Communications Corporation. Portions created by Netscape are
|
||||
# Copyright (C) 1998 Netscape Communications Corporation. All Rights
|
||||
# Reserved.
|
||||
|
||||
|
||||
|
||||
DEPTH = ../../..
|
||||
|
||||
MODULE = java
|
||||
|
||||
JJSD = netscape/jsdebug
|
||||
|
||||
#
|
||||
# JDIRS is dependant on JAVA_DESTPATH in config/rules.m[a]k.
|
||||
# Be sure to touch that directory if you add a new directory to
|
||||
# JDIRS, or else it will not build. XXX
|
||||
#
|
||||
JDIRS = $(JJSD)
|
||||
|
||||
JAR_JSD = jsd10.jar
|
||||
JAR_JSD_CLASSES = $(JJSD)
|
||||
|
||||
#
|
||||
# jars to build at install time
|
||||
#
|
||||
JARS = $(JAR_JSD)
|
||||
|
||||
include $(DEPTH)/config/rules.mk
|
||||
|
||||
JAVA_SOURCEPATH = $(DEPTH)/js/jsd/classes
|
||||
|
||||
doc::
|
||||
$(JAVADOC) -d $(DIST)/doc netscape.jsdebug
|
||||
|
||||
natives_list:: FORCE
|
||||
rm -rf $@
|
||||
find . -name "*.class" -print | sed 's@\./\(.*\)\.class$$@\1@' | \
|
||||
sed 's@/@.@g' | xargs $(JVH) -natives | sort > $@
|
||||
|
||||
check_natives:: natives_list
|
||||
rm -f found_natives
|
||||
nm -B ../$(OBJDIR)/*.o \
|
||||
| egrep "Java.*_stub" | awk '{ print $$3; }' | sort > found_natives
|
||||
diff found_natives natives_list
|
||||
|
||||
FORCE:
|
||||
64
mozilla/js/jsd/classes/Makefile.in
Normal file
64
mozilla/js/jsd/classes/Makefile.in
Normal file
@@ -0,0 +1,64 @@
|
||||
#!gmake
|
||||
#
|
||||
# The contents of this file are subject to the Netscape Public License
|
||||
# Version 1.0 (the "NPL"); you may not use this file except in
|
||||
# compliance with the NPL. You may obtain a copy of the NPL at
|
||||
# http://www.mozilla.org/NPL/
|
||||
#
|
||||
# Software distributed under the NPL is distributed on an "AS IS" basis,
|
||||
# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
|
||||
# for the specific language governing rights and limitations under the
|
||||
# NPL.
|
||||
#
|
||||
# The Initial Developer of this code under the NPL is Netscape
|
||||
# Communications Corporation. Portions created by Netscape are
|
||||
# Copyright (C) 1998 Netscape Communications Corporation. All Rights
|
||||
# Reserved.
|
||||
|
||||
|
||||
|
||||
DEPTH = ../../..
|
||||
topsrcdir = @top_srcdir@
|
||||
VPATH = @srcdir@
|
||||
srcdir = @srcdir@
|
||||
|
||||
include $(DEPTH)/config/autoconf.mk
|
||||
|
||||
MODULE = java
|
||||
|
||||
JJSD = netscape/jsdebug
|
||||
|
||||
#
|
||||
# JDIRS is dependant on JAVA_DESTPATH in config/rules.m[a]k.
|
||||
# Be sure to touch that directory if you add a new directory to
|
||||
# JDIRS, or else it will not build. XXX
|
||||
#
|
||||
JDIRS = $(JJSD)
|
||||
|
||||
JAR_JSD = jsd10.jar
|
||||
JAR_JSD_CLASSES = $(JJSD)
|
||||
|
||||
#
|
||||
# jars to build at install time
|
||||
#
|
||||
JARS = $(JAR_JSD)
|
||||
|
||||
include $(topsrcdir)/config/rules.mk
|
||||
|
||||
JAVA_SOURCEPATH = $(DEPTH)/js/jsd/classes
|
||||
|
||||
doc::
|
||||
$(JAVADOC) -d $(DIST)/doc netscape.jsdebug
|
||||
|
||||
natives_list:: FORCE
|
||||
rm -rf $@
|
||||
find . -name "*.class" -print | sed 's@\./\(.*\)\.class$$@\1@' | \
|
||||
sed 's@/@.@g' | xargs $(JVH) -natives | sort > $@
|
||||
|
||||
check_natives:: natives_list
|
||||
rm -f found_natives
|
||||
nm -B ../$(OBJDIR)/*.o \
|
||||
| egrep "Java.*_stub" | awk '{ print $$3; }' | sort > found_natives
|
||||
diff found_natives natives_list
|
||||
|
||||
FORCE:
|
||||
64
mozilla/js/jsd/classes/makefile.win
Normal file
64
mozilla/js/jsd/classes/makefile.win
Normal file
@@ -0,0 +1,64 @@
|
||||
#!gmake
|
||||
#
|
||||
# The contents of this file are subject to the Netscape Public License
|
||||
# Version 1.0 (the "NPL"); you may not use this file except in
|
||||
# compliance with the NPL. You may obtain a copy of the NPL at
|
||||
# http://www.mozilla.org/NPL/
|
||||
#
|
||||
# Software distributed under the NPL is distributed on an "AS IS" basis,
|
||||
# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
|
||||
# for the specific language governing rights and limitations under the
|
||||
# NPL.
|
||||
#
|
||||
# The Initial Developer of this code under the NPL is Netscape
|
||||
# Communications Corporation. Portions created by Netscape are
|
||||
# Copyright (C) 1998 Netscape Communications Corporation. All Rights
|
||||
# Reserved.
|
||||
|
||||
IGNORE_MANIFEST=1
|
||||
#
|
||||
#//------------------------------------------------------------------------
|
||||
#//
|
||||
#// Makefile to build the JavaScriptDebug tree
|
||||
#//
|
||||
#//------------------------------------------------------------------------
|
||||
|
||||
DEPTH = ..\..\..
|
||||
JAVA_SOURCEPATH=$(DEPTH)\js\jsd\classes
|
||||
|
||||
#//------------------------------------------------------------------------
|
||||
#//
|
||||
#// Define the files necessary to build the target (ie. OBJS)
|
||||
#//
|
||||
#//------------------------------------------------------------------------
|
||||
include <$(DEPTH)\config\config.mak>
|
||||
|
||||
all::
|
||||
|
||||
MODULE=java
|
||||
JJSD=netscape/jsdebug
|
||||
JDIRS=$(JJSD)
|
||||
JAR_JSD=jsd10.jar
|
||||
JAR_JSD_CLASSES=$(JJSD)
|
||||
JARS=$(JAR_JSD)
|
||||
|
||||
include <$(DEPTH)\config\rules.mak>
|
||||
|
||||
!if "$(MOZ_BITS)" == "32"
|
||||
$(JAR_JSD):
|
||||
cd $(JAVA_DESTPATH)
|
||||
@echo +++ building/updating $@
|
||||
$(ZIP_PROG) -$(COMP_LEVEL)qu $@ META-INF\build
|
||||
-for %i in ($(JAR_JSD_CLASSES:/=\)) do @$(ZIP_PROG) -$(COMP_LEVEL)qu $@ %i\*.class
|
||||
cd $(MAKEDIR)
|
||||
!endif
|
||||
|
||||
jars: $(JARS)
|
||||
|
||||
install:: jars
|
||||
|
||||
|
||||
javadoc:
|
||||
-mkdir $(XPDIST)\javadoc 2> NUL
|
||||
echo $(JAVADOC) -sourcepath . -d $(XPDIST)\javadoc $(JDIRS:/=.)
|
||||
$(JAVADOC) -sourcepath . -d $(XPDIST)\javadoc $(JDIRS:/=.)
|
||||
41
mozilla/js/jsd/classes/netscape/jsdebug/DebugBreakHook.java
Normal file
41
mozilla/js/jsd/classes/netscape/jsdebug/DebugBreakHook.java
Normal file
@@ -0,0 +1,41 @@
|
||||
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
|
||||
*
|
||||
* The contents of this file are subject to the Netscape Public License
|
||||
* Version 1.0 (the "NPL"); you may not use this file except in
|
||||
* compliance with the NPL. You may obtain a copy of the NPL at
|
||||
* http://www.mozilla.org/NPL/
|
||||
*
|
||||
* Software distributed under the NPL is distributed on an "AS IS" basis,
|
||||
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
|
||||
* for the specific language governing rights and limitations under the
|
||||
* NPL.
|
||||
*
|
||||
* The Initial Developer of this code under the NPL is Netscape
|
||||
* Communications Corporation. Portions created by Netscape are
|
||||
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
|
||||
* Reserved.
|
||||
*/
|
||||
|
||||
package netscape.jsdebug;
|
||||
|
||||
/**
|
||||
* DebugBreakHook must be subclassed to respond when a debug break is
|
||||
* requested
|
||||
*
|
||||
* @author John Bandhauer
|
||||
* @version 1.0
|
||||
* @since 1.0
|
||||
*/
|
||||
public class DebugBreakHook extends Hook {
|
||||
|
||||
/**
|
||||
* Override this method to respond just before a thread
|
||||
* reaches a particular instruction.
|
||||
* <p>
|
||||
* @param debug ThreadState representing the current state
|
||||
* @param pc the location of the instruction about to be executed
|
||||
*/
|
||||
public void aboutToExecute(ThreadStateBase debug, PC pc) {
|
||||
// defaults to no action
|
||||
}
|
||||
}
|
||||
374
mozilla/js/jsd/classes/netscape/jsdebug/DebugController.java
Normal file
374
mozilla/js/jsd/classes/netscape/jsdebug/DebugController.java
Normal file
@@ -0,0 +1,374 @@
|
||||
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
|
||||
*
|
||||
* The contents of this file are subject to the Netscape Public License
|
||||
* Version 1.0 (the "NPL"); you may not use this file except in
|
||||
* compliance with the NPL. You may obtain a copy of the NPL at
|
||||
* http://www.mozilla.org/NPL/
|
||||
*
|
||||
* Software distributed under the NPL is distributed on an "AS IS" basis,
|
||||
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
|
||||
* for the specific language governing rights and limitations under the
|
||||
* NPL.
|
||||
*
|
||||
* The Initial Developer of this code under the NPL is Netscape
|
||||
* Communications Corporation. Portions created by Netscape are
|
||||
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
|
||||
* Reserved.
|
||||
*/
|
||||
|
||||
package netscape.jsdebug;
|
||||
|
||||
import netscape.util.Hashtable;
|
||||
import netscape.security.PrivilegeManager;
|
||||
import netscape.security.ForbiddenTargetException;
|
||||
|
||||
/**
|
||||
* This is the master control panel for observing events in the VM.
|
||||
* Each method setXHook() must be passed an object that extends
|
||||
* the class XHook. When an event of the specified type
|
||||
* occurs, a well-known method on XHook will be called (see the
|
||||
* various XHook classes for details). The method call takes place
|
||||
* on the same thread that triggered the event in the first place,
|
||||
* so that any monitors held by the thread which triggered the hook
|
||||
* will still be owned in the hook method.
|
||||
* <p>
|
||||
* This class is meant to be a singleton and has a private constructor.
|
||||
* Call the static <code>getDebugController()</code> to get this object.
|
||||
* <p>
|
||||
* Note that all functions use netscape.security.PrivilegeManager to verify
|
||||
* that the caller has the "Debugger" privilege. The exception
|
||||
* netscape.security.ForbiddenTargetException will be throw if this is
|
||||
* not enabled.
|
||||
*
|
||||
* @author John Bandhauer
|
||||
* @author Nick Thompson
|
||||
* @version 1.0
|
||||
* @since 1.0
|
||||
* @see netscape.security.PrivilegeManager
|
||||
* @see netscape.security.ForbiddenTargetException
|
||||
*/
|
||||
public final class DebugController {
|
||||
|
||||
private static final int majorVersion = 1;
|
||||
private static final int minorVersion = 0;
|
||||
|
||||
private static DebugController controller;
|
||||
private ScriptHook scriptHook;
|
||||
private Hashtable instructionHookTable;
|
||||
private InterruptHook interruptHook;
|
||||
private DebugBreakHook debugBreakHook;
|
||||
private JSErrorReporter errorReporter;
|
||||
|
||||
/**
|
||||
* Get the DebugController object for the current VM.
|
||||
* <p>
|
||||
* @return the singleton DebugController
|
||||
*/
|
||||
public static synchronized DebugController getDebugController()
|
||||
throws ForbiddenTargetException
|
||||
{
|
||||
try {
|
||||
PrivilegeManager.checkPrivilegeEnabled("Debugger");
|
||||
if (controller == null)
|
||||
controller = new DebugController();
|
||||
return controller;
|
||||
} catch (ForbiddenTargetException e) {
|
||||
System.out.println("failed in check Priv in DebugController.getDebugController()");
|
||||
e.printStackTrace(System.out);
|
||||
throw e;
|
||||
}
|
||||
}
|
||||
|
||||
private DebugController()
|
||||
{
|
||||
scriptTable = new Hashtable();
|
||||
_setController(true);
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Request notification of Script loading events.
|
||||
* <p>
|
||||
* Whenever a Script is loaded into or unloaded from the VM
|
||||
* the appropriate method of the ScriptHook argument will be called.
|
||||
* Callers are responsible for chaining hooks if chaining is required.
|
||||
*
|
||||
* @param h new script hook
|
||||
* @return the previous hook object (null if none)
|
||||
*/
|
||||
public synchronized ScriptHook setScriptHook(ScriptHook h)
|
||||
throws ForbiddenTargetException
|
||||
{
|
||||
PrivilegeManager.checkPrivilegeEnabled("Debugger");
|
||||
ScriptHook oldHook = scriptHook;
|
||||
scriptHook = h;
|
||||
return oldHook;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the current observer of Script events.
|
||||
* <p>
|
||||
* @return the current script hook (null if none)
|
||||
*/
|
||||
public ScriptHook getScriptHook()
|
||||
throws ForbiddenTargetException
|
||||
{
|
||||
PrivilegeManager.checkPrivilegeEnabled("Debugger");
|
||||
return scriptHook;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set a hook at the given program counter value.
|
||||
* <p>
|
||||
* When a thread reaches that instruction, a ThreadState
|
||||
* object will be created and the appropriate method
|
||||
* of the hook object will be called. Callers are responsible
|
||||
* for chaining hooks if chaining is required.
|
||||
*
|
||||
* @param pc pc at which hook should be set
|
||||
* @param h new hook for this pc
|
||||
* @return the previous hook object (null if none)
|
||||
*/
|
||||
public synchronized InstructionHook setInstructionHook(
|
||||
PC pc,
|
||||
InstructionHook h)
|
||||
throws ForbiddenTargetException
|
||||
{
|
||||
PrivilegeManager.checkPrivilegeEnabled("Debugger");
|
||||
InstructionHook oldHook;
|
||||
if (instructionHookTable == null) {
|
||||
instructionHookTable = new Hashtable();
|
||||
}
|
||||
oldHook = (InstructionHook) instructionHookTable.get(pc);
|
||||
instructionHookTable.put(pc, h);
|
||||
setInstructionHook0(pc);
|
||||
return oldHook;
|
||||
}
|
||||
|
||||
private native void setInstructionHook0(PC pc);
|
||||
|
||||
/**
|
||||
* Get the hook at the given program counter value.
|
||||
* <p>
|
||||
* @param pc pc for which hook should be found
|
||||
* @return the hook (null if none)
|
||||
*/
|
||||
public InstructionHook getInstructionHook(PC pc)
|
||||
throws ForbiddenTargetException
|
||||
{
|
||||
PrivilegeManager.checkPrivilegeEnabled("Debugger");
|
||||
return getInstructionHook0(pc);
|
||||
}
|
||||
|
||||
// called by native function
|
||||
private InstructionHook getInstructionHook0(PC pc)
|
||||
{
|
||||
if (instructionHookTable == null)
|
||||
return null;
|
||||
else
|
||||
return (InstructionHook) instructionHookTable.get(pc);
|
||||
}
|
||||
|
||||
/**************************************************************/
|
||||
|
||||
/**
|
||||
* Set the hook at to be called when interrupts occur.
|
||||
* <p>
|
||||
* The next instruction which starts to execute after
|
||||
* <code>sendInterrupt()</code> has been called will
|
||||
* trigger a call to this hook. A ThreadState
|
||||
* object will be created and the appropriate method
|
||||
* of the hook object will be called. Callers are responsible
|
||||
* for chaining hooks if chaining is required.
|
||||
*
|
||||
* @param h new hook
|
||||
* @return the previous hook object (null if none)
|
||||
* @see netscape.jsdebug.DebugController#sendInterrupt
|
||||
*/
|
||||
public synchronized InterruptHook setInterruptHook( InterruptHook h )
|
||||
throws ForbiddenTargetException
|
||||
{
|
||||
PrivilegeManager.checkPrivilegeEnabled("Debugger");
|
||||
InterruptHook oldHook = interruptHook;
|
||||
interruptHook = h;
|
||||
return oldHook;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the current hook to be called on interrupt
|
||||
* <p>
|
||||
* @return the hook (null if none)
|
||||
*/
|
||||
public InterruptHook getInterruptHook()
|
||||
throws ForbiddenTargetException
|
||||
{
|
||||
PrivilegeManager.checkPrivilegeEnabled("Debugger");
|
||||
return interruptHook;
|
||||
}
|
||||
|
||||
/**
|
||||
* Cause the interrupt hook to be called when the next
|
||||
* JavaScript instruction starts to execute.
|
||||
* <p>
|
||||
* The interrupt is self clearing
|
||||
* @see netscape.jsdebug.DebugController#setInterruptHook
|
||||
*/
|
||||
public void sendInterrupt()
|
||||
throws ForbiddenTargetException
|
||||
{
|
||||
PrivilegeManager.checkPrivilegeEnabled("Debugger");
|
||||
sendInterrupt0();
|
||||
}
|
||||
|
||||
private native void sendInterrupt0();
|
||||
|
||||
|
||||
/**************************************************************/
|
||||
|
||||
/**
|
||||
* Set the hook at to be called when a <i>debug break</i> is requested
|
||||
* <p>
|
||||
* Set the hook to be called when <i>JSErrorReporter.DEBUG</i> is returned
|
||||
* by the <i>error reporter</i> hook. When that happens a ThreadState
|
||||
* object will be created and the appropriate method
|
||||
* of the hook object will be called. Callers are responsible
|
||||
* for chaining hooks if chaining is required.
|
||||
*
|
||||
* @param h new hook
|
||||
* @return the previous hook object (null if none)
|
||||
* @see netscape.jsdebug.DebugController#setErrorReporter
|
||||
* @see netscape.jsdebug.JSErrorReporter
|
||||
*/
|
||||
public synchronized DebugBreakHook setDebugBreakHook( DebugBreakHook h )
|
||||
throws ForbiddenTargetException
|
||||
{
|
||||
PrivilegeManager.checkPrivilegeEnabled("Debugger");
|
||||
DebugBreakHook oldHook = debugBreakHook;
|
||||
debugBreakHook = h;
|
||||
return oldHook;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the current hook to be called on debug break
|
||||
* <p>
|
||||
* @return the hook (null if none)
|
||||
*/
|
||||
public DebugBreakHook getDebugBreakHook()
|
||||
throws ForbiddenTargetException
|
||||
{
|
||||
PrivilegeManager.checkPrivilegeEnabled("Debugger");
|
||||
return debugBreakHook;
|
||||
}
|
||||
|
||||
|
||||
/**************************************************************/
|
||||
/**
|
||||
* Get the 'handle' which cooresponds to the native code representing the
|
||||
* instance of the underlying JavaScript Debugger context.
|
||||
* <p>
|
||||
* This would not normally be useful in java. Some of the other classes
|
||||
* in this package need this. It remains public mostly for historical
|
||||
* reasons. It serves as a check to see that the native classes have been
|
||||
* loaded and the built-in native JavaScript Debugger support has been
|
||||
* initialized. This DebugController is not valid (or useful) when it is
|
||||
* in a state where this native context equals 0.
|
||||
*
|
||||
* @return the native context (0 if none)
|
||||
*/
|
||||
public int getNativeContext()
|
||||
throws ForbiddenTargetException
|
||||
{
|
||||
PrivilegeManager.checkPrivilegeEnabled("Debugger");
|
||||
// System.out.println( "nativecontext = " + _nativeContext + "\n" );
|
||||
return _nativeContext;
|
||||
}
|
||||
|
||||
private native void _setController( boolean set );
|
||||
private Hashtable scriptTable;
|
||||
private int _nativeContext;
|
||||
|
||||
/**
|
||||
* Execute a string as a JavaScript script within a stack frame
|
||||
* <p>
|
||||
* This method can be used to execute arbitrary sets of statements on a
|
||||
* stopped thread. It is useful for inspecting and modifying data.
|
||||
* <p>
|
||||
* This method can only be called while the JavaScript thread is stopped
|
||||
* - i.e. as part of the code responding to a hook. Thgis method
|
||||
* <b>must</b> be called on the same thread as was executing when the
|
||||
* hook was called.
|
||||
* <p>
|
||||
* If an error occurs while execuing this code, then the error
|
||||
* reporter hook will be called if present.
|
||||
*
|
||||
* @param frame the frame context in which to evaluate this script
|
||||
* @param text the script text
|
||||
* @param filename where to tell the JavaScript engine this code came
|
||||
* from (it is usually best to make this the same as the filename of
|
||||
* code represented by the frame)
|
||||
* @param lineno the line number to pass to JS ( >=1 )
|
||||
* @return The result of the script execution converted to a string.
|
||||
* (null if the result was null or void)
|
||||
*/
|
||||
public String executeScriptInStackFrame( JSStackFrameInfo frame,
|
||||
String text,
|
||||
String filename,
|
||||
int lineno )
|
||||
throws ForbiddenTargetException
|
||||
{
|
||||
PrivilegeManager.checkPrivilegeEnabled("Debugger");
|
||||
return executeScriptInStackFrame0( frame, text, filename, lineno );
|
||||
}
|
||||
|
||||
private native String executeScriptInStackFrame0( JSStackFrameInfo frame,
|
||||
String text,
|
||||
String filename,
|
||||
int lineno );
|
||||
|
||||
|
||||
/**
|
||||
* Set the hook at to be called when a JavaScript error occurs
|
||||
* <p>
|
||||
* @param er new error reporter hook
|
||||
* @return the previous hook object (null if none)
|
||||
* @see netscape.jsdebug.JSErrorReporter
|
||||
*/
|
||||
public JSErrorReporter setErrorReporter(JSErrorReporter er)
|
||||
throws ForbiddenTargetException
|
||||
{
|
||||
PrivilegeManager.checkPrivilegeEnabled("Debugger");
|
||||
JSErrorReporter old = errorReporter;
|
||||
errorReporter = er;
|
||||
return old;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the hook at to be called when a JavaScript error occurs
|
||||
* <p>
|
||||
* @return the hook object (null if none)
|
||||
* @see netscape.jsdebug.JSErrorReporter
|
||||
*/
|
||||
public JSErrorReporter getErrorReporter()
|
||||
throws ForbiddenTargetException
|
||||
{
|
||||
PrivilegeManager.checkPrivilegeEnabled("Debugger");
|
||||
return errorReporter;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the major version number of this module
|
||||
* <p>
|
||||
* @return the version number
|
||||
*/
|
||||
public static int getMajorVersion() {return majorVersion;}
|
||||
/**
|
||||
* Get the minor version number of this module
|
||||
* <p>
|
||||
* @return the version number
|
||||
*/
|
||||
public static int getMinorVersion() {return minorVersion;}
|
||||
|
||||
private static native int getNativeMajorVersion();
|
||||
private static native int getNativeMinorVersion();
|
||||
}
|
||||
32
mozilla/js/jsd/classes/netscape/jsdebug/Hook.java
Normal file
32
mozilla/js/jsd/classes/netscape/jsdebug/Hook.java
Normal file
@@ -0,0 +1,32 @@
|
||||
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
|
||||
*
|
||||
* The contents of this file are subject to the Netscape Public License
|
||||
* Version 1.0 (the "NPL"); you may not use this file except in
|
||||
* compliance with the NPL. You may obtain a copy of the NPL at
|
||||
* http://www.mozilla.org/NPL/
|
||||
*
|
||||
* Software distributed under the NPL is distributed on an "AS IS" basis,
|
||||
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
|
||||
* for the specific language governing rights and limitations under the
|
||||
* NPL.
|
||||
*
|
||||
* The Initial Developer of this code under the NPL is Netscape
|
||||
* Communications Corporation. Portions created by Netscape are
|
||||
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
|
||||
* Reserved.
|
||||
*/
|
||||
|
||||
package netscape.jsdebug;
|
||||
|
||||
|
||||
/**
|
||||
* An instance of this class is returned for each hook set by
|
||||
* the debugger as a handle for removing the hook later.
|
||||
*
|
||||
* @author John Bandhauer
|
||||
* @author Nick Thompson
|
||||
* @version 1.0
|
||||
* @since 1.0
|
||||
*/
|
||||
public abstract class Hook {
|
||||
}
|
||||
55
mozilla/js/jsd/classes/netscape/jsdebug/InstructionHook.java
Normal file
55
mozilla/js/jsd/classes/netscape/jsdebug/InstructionHook.java
Normal file
@@ -0,0 +1,55 @@
|
||||
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
|
||||
*
|
||||
* The contents of this file are subject to the Netscape Public License
|
||||
* Version 1.0 (the "NPL"); you may not use this file except in
|
||||
* compliance with the NPL. You may obtain a copy of the NPL at
|
||||
* http://www.mozilla.org/NPL/
|
||||
*
|
||||
* Software distributed under the NPL is distributed on an "AS IS" basis,
|
||||
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
|
||||
* for the specific language governing rights and limitations under the
|
||||
* NPL.
|
||||
*
|
||||
* The Initial Developer of this code under the NPL is Netscape
|
||||
* Communications Corporation. Portions created by Netscape are
|
||||
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
|
||||
* Reserved.
|
||||
*/
|
||||
|
||||
package netscape.jsdebug;
|
||||
|
||||
/**
|
||||
* InstructionHook must be subclassed to respond to hooks
|
||||
* at a particular program instruction.
|
||||
*
|
||||
* @author John Bandhauer
|
||||
* @author Nick Thompson
|
||||
* @version 1.0
|
||||
* @since 1.0
|
||||
*/
|
||||
public class InstructionHook extends Hook {
|
||||
private PC pc;
|
||||
|
||||
/**
|
||||
* Create an InstructionHook at the given PC value.
|
||||
*/
|
||||
public InstructionHook(PC pc) {
|
||||
this.pc = pc;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the instruction that the hook is set at.
|
||||
*/
|
||||
public PC getPC() {
|
||||
return pc;
|
||||
}
|
||||
|
||||
/**
|
||||
* Override this method to respond just before a thread
|
||||
* reaches a particular instruction.
|
||||
*/
|
||||
/* jband - 03/31/97 - I made this public to allow chaining */
|
||||
public void aboutToExecute(ThreadStateBase debug) {
|
||||
// defaults to no action
|
||||
}
|
||||
}
|
||||
39
mozilla/js/jsd/classes/netscape/jsdebug/InterruptHook.java
Normal file
39
mozilla/js/jsd/classes/netscape/jsdebug/InterruptHook.java
Normal file
@@ -0,0 +1,39 @@
|
||||
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
|
||||
*
|
||||
* The contents of this file are subject to the Netscape Public License
|
||||
* Version 1.0 (the "NPL"); you may not use this file except in
|
||||
* compliance with the NPL. You may obtain a copy of the NPL at
|
||||
* http://www.mozilla.org/NPL/
|
||||
*
|
||||
* Software distributed under the NPL is distributed on an "AS IS" basis,
|
||||
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
|
||||
* for the specific language governing rights and limitations under the
|
||||
* NPL.
|
||||
*
|
||||
* The Initial Developer of this code under the NPL is Netscape
|
||||
* Communications Corporation. Portions created by Netscape are
|
||||
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
|
||||
* Reserved.
|
||||
*/
|
||||
|
||||
package netscape.jsdebug;
|
||||
|
||||
/**
|
||||
* InterruptHook must be subclassed to respond when interrupts occur
|
||||
*
|
||||
* @author John Bandhauer
|
||||
* @author Nick Thompson
|
||||
* @version 1.0
|
||||
* @since 1.0
|
||||
*/
|
||||
public class InterruptHook extends Hook {
|
||||
|
||||
/**
|
||||
* Override this method to respond when interrupts occur
|
||||
* @param debug the state of this thread
|
||||
* @param pc the pc of the instruction about to execute
|
||||
*/
|
||||
public void aboutToExecute(ThreadStateBase debug, PC pc) {
|
||||
// defaults to no action
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,46 @@
|
||||
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
|
||||
*
|
||||
* The contents of this file are subject to the Netscape Public License
|
||||
* Version 1.0 (the "NPL"); you may not use this file except in
|
||||
* compliance with the NPL. You may obtain a copy of the NPL at
|
||||
* http://www.mozilla.org/NPL/
|
||||
*
|
||||
* Software distributed under the NPL is distributed on an "AS IS" basis,
|
||||
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
|
||||
* for the specific language governing rights and limitations under the
|
||||
* NPL.
|
||||
*
|
||||
* The Initial Developer of this code under the NPL is Netscape
|
||||
* Communications Corporation. Portions created by Netscape are
|
||||
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
|
||||
* Reserved.
|
||||
*/
|
||||
|
||||
package netscape.jsdebug;
|
||||
|
||||
/**
|
||||
* Exception to indicate bad thread state etc...
|
||||
*
|
||||
* @author John Bandhauer
|
||||
* @author Nick Thompson
|
||||
* @version 1.0
|
||||
* @since 1.0
|
||||
*/
|
||||
public class InvalidInfoException extends Exception {
|
||||
/**
|
||||
* Constructs a InvalidInfoException without a detail message.
|
||||
* A detail message is a String that describes this particular exception.
|
||||
*/
|
||||
public InvalidInfoException() {
|
||||
super();
|
||||
}
|
||||
|
||||
/**
|
||||
* Constructs a InvalidInfoException with a detail message.
|
||||
* A detail message is a String that describes this particular exception.
|
||||
* @param s the detail message
|
||||
*/
|
||||
public InvalidInfoException(String s) {
|
||||
super(s);
|
||||
}
|
||||
}
|
||||
70
mozilla/js/jsd/classes/netscape/jsdebug/JSErrorReporter.java
Normal file
70
mozilla/js/jsd/classes/netscape/jsdebug/JSErrorReporter.java
Normal file
@@ -0,0 +1,70 @@
|
||||
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
|
||||
*
|
||||
* The contents of this file are subject to the Netscape Public License
|
||||
* Version 1.0 (the "NPL"); you may not use this file except in
|
||||
* compliance with the NPL. You may obtain a copy of the NPL at
|
||||
* http://www.mozilla.org/NPL/
|
||||
*
|
||||
* Software distributed under the NPL is distributed on an "AS IS" basis,
|
||||
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
|
||||
* for the specific language governing rights and limitations under the
|
||||
* NPL.
|
||||
*
|
||||
* The Initial Developer of this code under the NPL is Netscape
|
||||
* Communications Corporation. Portions created by Netscape are
|
||||
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
|
||||
* Reserved.
|
||||
*/
|
||||
|
||||
package netscape.jsdebug;
|
||||
|
||||
/**
|
||||
* This is a special kind of hook to respond to JavaScript errors
|
||||
*
|
||||
* @author John Bandhauer
|
||||
* @version 1.0
|
||||
* @since 1.0
|
||||
*/
|
||||
public interface JSErrorReporter
|
||||
{
|
||||
/* keep these in sync with the numbers in jsdebug.h */
|
||||
|
||||
/**
|
||||
* returned by <code>reportError()</code> to indicate that the error
|
||||
* should be passed along to the error reporter that would have been
|
||||
* called had the debugger not been running
|
||||
*/
|
||||
public static final int PASS_ALONG = 0;
|
||||
/**
|
||||
* returned by <code>reportError()</code> to indicate that the
|
||||
* normal error reporter should not be called and that the JavaScript
|
||||
* engine should do whatever it would normally do after calling the
|
||||
* error reporter.
|
||||
*/
|
||||
public static final int RETURN = 1;
|
||||
/**
|
||||
* returned by <code>reportError()</code> to indicate that the
|
||||
* 'debug break' hook should be called to allow the debugger to
|
||||
* investigate the state of the process when the error occured
|
||||
*/
|
||||
public static final int DEBUG = 2;
|
||||
|
||||
/**
|
||||
* This hook is called when a JavaScript error (compile or runtime) occurs
|
||||
* <p>
|
||||
* One of the codes above should be returned to tell the engine how to
|
||||
* proceed.
|
||||
* @param msg error message passed through from the JavaScript engine
|
||||
* @param filename filename (or url) of the code with the error
|
||||
* @param lineno line number where error was detected
|
||||
* @param linebuf a copy of the line where the error was detected
|
||||
* @param tokenOffset the offset into <i>linebuf</i> where the error
|
||||
* was detected
|
||||
* @returns one of the codes above
|
||||
*/
|
||||
public int reportError( String msg,
|
||||
String filename,
|
||||
int lineno,
|
||||
String linebuf,
|
||||
int tokenOffset );
|
||||
}
|
||||
76
mozilla/js/jsd/classes/netscape/jsdebug/JSPC.java
Normal file
76
mozilla/js/jsd/classes/netscape/jsdebug/JSPC.java
Normal file
@@ -0,0 +1,76 @@
|
||||
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
|
||||
*
|
||||
* The contents of this file are subject to the Netscape Public License
|
||||
* Version 1.0 (the "NPL"); you may not use this file except in
|
||||
* compliance with the NPL. You may obtain a copy of the NPL at
|
||||
* http://www.mozilla.org/NPL/
|
||||
*
|
||||
* Software distributed under the NPL is distributed on an "AS IS" basis,
|
||||
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
|
||||
* for the specific language governing rights and limitations under the
|
||||
* NPL.
|
||||
*
|
||||
* The Initial Developer of this code under the NPL is Netscape
|
||||
* Communications Corporation. Portions created by Netscape are
|
||||
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
|
||||
* Reserved.
|
||||
*/
|
||||
|
||||
package netscape.jsdebug;
|
||||
|
||||
/**
|
||||
* This subclass of PC provides JavaScript-specific information.
|
||||
*
|
||||
* @author John Bandhauer
|
||||
* @version 1.0
|
||||
* @since 1.0
|
||||
*/
|
||||
public final class JSPC extends PC {
|
||||
private Script script;
|
||||
private int pc;
|
||||
|
||||
public JSPC(Script script, int pc) {
|
||||
this.script = script;
|
||||
this.pc = pc;
|
||||
}
|
||||
|
||||
public Script getScript() {
|
||||
return script;
|
||||
}
|
||||
|
||||
public int getPC() {
|
||||
return pc;
|
||||
}
|
||||
|
||||
public boolean isValid()
|
||||
{
|
||||
return script.isValid();
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Get the SourceLocation associated with this PC value.
|
||||
* returns null if the source location is unavailable.
|
||||
*/
|
||||
public native SourceLocation getSourceLocation();
|
||||
|
||||
/**
|
||||
* Ask whether two program counter values are equal.
|
||||
*/
|
||||
public boolean equals(Object obj) {
|
||||
if (this == obj)
|
||||
return true;
|
||||
if (!(obj instanceof JSPC))
|
||||
return false;
|
||||
JSPC jspc = (JSPC) obj;
|
||||
return (jspc.script == script && jspc.pc == pc);
|
||||
}
|
||||
|
||||
public int hashCode() {
|
||||
return script.hashCode() + pc;
|
||||
}
|
||||
|
||||
public String toString() {
|
||||
return "<PC "+script+"+"+pc+">";
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,63 @@
|
||||
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
|
||||
*
|
||||
* The contents of this file are subject to the Netscape Public License
|
||||
* Version 1.0 (the "NPL"); you may not use this file except in
|
||||
* compliance with the NPL. You may obtain a copy of the NPL at
|
||||
* http://www.mozilla.org/NPL/
|
||||
*
|
||||
* Software distributed under the NPL is distributed on an "AS IS" basis,
|
||||
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
|
||||
* for the specific language governing rights and limitations under the
|
||||
* NPL.
|
||||
*
|
||||
* The Initial Developer of this code under the NPL is Netscape
|
||||
* Communications Corporation. Portions created by Netscape are
|
||||
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
|
||||
* Reserved.
|
||||
*/
|
||||
|
||||
package netscape.jsdebug;
|
||||
|
||||
/**
|
||||
* JAvaScript specific SourceLocation
|
||||
*
|
||||
* @author John Bandhauer
|
||||
* @version 1.0
|
||||
* @since 1.0
|
||||
*/
|
||||
public class JSSourceLocation extends SourceLocation
|
||||
{
|
||||
public JSSourceLocation( JSPC pc, int line )
|
||||
{
|
||||
_pc = pc;
|
||||
_line = line;
|
||||
_url = pc.getScript().getURL();
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the first line number associated with this SourceLocation.
|
||||
* This is the lowest common denominator information that will be
|
||||
* available: some implementations may choose to include more
|
||||
* specific location information in a subclass of SourceLocation.
|
||||
*/
|
||||
public int getLine() {return _line;}
|
||||
|
||||
public String getURL() {return _url;}
|
||||
|
||||
/**
|
||||
* Get the first PC associated with a given SourceLocation.
|
||||
* This is the place to set a breakpoint at that location.
|
||||
* returns null if there is no code corresponding to that source
|
||||
* location.
|
||||
*/
|
||||
public PC getPC() {return _pc;}
|
||||
|
||||
public String toString()
|
||||
{
|
||||
return "<SourceLocation "+_url+"#"+_line+">";
|
||||
}
|
||||
|
||||
private JSPC _pc;
|
||||
private int _line;
|
||||
private String _url;
|
||||
}
|
||||
@@ -0,0 +1,130 @@
|
||||
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
|
||||
*
|
||||
* The contents of this file are subject to the Netscape Public License
|
||||
* Version 1.0 (the "NPL"); you may not use this file except in
|
||||
* compliance with the NPL. You may obtain a copy of the NPL at
|
||||
* http://www.mozilla.org/NPL/
|
||||
*
|
||||
* Software distributed under the NPL is distributed on an "AS IS" basis,
|
||||
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
|
||||
* for the specific language governing rights and limitations under the
|
||||
* NPL.
|
||||
*
|
||||
* The Initial Developer of this code under the NPL is Netscape
|
||||
* Communications Corporation. Portions created by Netscape are
|
||||
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
|
||||
* Reserved.
|
||||
*/
|
||||
|
||||
package netscape.jsdebug;
|
||||
|
||||
import netscape.util.Vector;
|
||||
import netscape.security.PrivilegeManager;
|
||||
import netscape.security.ForbiddenTargetException;
|
||||
|
||||
/**
|
||||
* This class provides access to SourceText items.
|
||||
* <p>
|
||||
* This class is meant to be a singleton and has a private constructor.
|
||||
* Call the static <code>getSourceTextProvider()</code> to get this object.
|
||||
* <p>
|
||||
* Note that all functions use netscape.security.PrivilegeManager to verify
|
||||
* that the caller has the "Debugger" privilege. The exception
|
||||
* netscape.security.ForbiddenTargetException will be throw if this is
|
||||
* not enabled.
|
||||
*
|
||||
* @author John Bandhauer
|
||||
* @version 1.0
|
||||
* @since 1.0
|
||||
* @see netscape.security.PrivilegeManager
|
||||
* @see netscape.security.ForbiddenTargetException
|
||||
*/
|
||||
public final class JSSourceTextProvider extends SourceTextProvider
|
||||
{
|
||||
private JSSourceTextProvider( long nativeContext )
|
||||
{
|
||||
_sourceTextVector = new Vector();
|
||||
_nativeContext = nativeContext;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Get the SourceTextProvider object for the current VM.
|
||||
* <p>
|
||||
* @return the singleton SourceTextProvider
|
||||
*/
|
||||
public static synchronized SourceTextProvider getSourceTextProvider()
|
||||
throws ForbiddenTargetException
|
||||
{
|
||||
PrivilegeManager.checkPrivilegeEnabled("Debugger");
|
||||
if( null == _sourceTextProvider )
|
||||
{
|
||||
long nativeContext = DebugController.getDebugController().getNativeContext();
|
||||
if( 0 != nativeContext )
|
||||
_sourceTextProvider = new JSSourceTextProvider(nativeContext);
|
||||
}
|
||||
return _sourceTextProvider;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the SourceText item for the given URL
|
||||
*/
|
||||
public SourceTextItem findSourceTextItem( String url )
|
||||
throws ForbiddenTargetException
|
||||
{
|
||||
PrivilegeManager.checkPrivilegeEnabled("Debugger");
|
||||
return findSourceTextItem0(url);
|
||||
}
|
||||
|
||||
// also called from native code...
|
||||
private SourceTextItem findSourceTextItem0( String url )
|
||||
{
|
||||
synchronized( _sourceTextVector )
|
||||
{
|
||||
for (int i = 0; i < _sourceTextVector.size(); i++)
|
||||
{
|
||||
SourceTextItem src = (SourceTextItem) _sourceTextVector.elementAt(i);
|
||||
|
||||
if( src.getURL().equals(url) )
|
||||
return src;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Return the vector of SourceTextItems.
|
||||
* <p>
|
||||
* This is NOT a copy. nor is it necessarily current
|
||||
*/
|
||||
public Vector getSourceTextVector()
|
||||
throws ForbiddenTargetException
|
||||
{
|
||||
PrivilegeManager.checkPrivilegeEnabled("Debugger");
|
||||
return _sourceTextVector;
|
||||
}
|
||||
|
||||
/**
|
||||
* Load the SourceText item for the given URL
|
||||
* <p>
|
||||
* <B>This is not guaranteed to be implemented</B>
|
||||
*/
|
||||
public synchronized SourceTextItem loadSourceTextItem( String url )
|
||||
throws ForbiddenTargetException
|
||||
{
|
||||
PrivilegeManager.checkPrivilegeEnabled("Debugger");
|
||||
return loadSourceTextItem0( url );
|
||||
}
|
||||
|
||||
private native SourceTextItem loadSourceTextItem0( String url );
|
||||
|
||||
/**
|
||||
* Refresh the vector to reflect any changes made in the
|
||||
* underlying native system
|
||||
*/
|
||||
public synchronized native void refreshSourceTextVector();
|
||||
|
||||
private static SourceTextProvider _sourceTextProvider = null;
|
||||
private Vector _sourceTextVector;
|
||||
private long _nativeContext;
|
||||
}
|
||||
@@ -0,0 +1,51 @@
|
||||
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
|
||||
*
|
||||
* The contents of this file are subject to the Netscape Public License
|
||||
* Version 1.0 (the "NPL"); you may not use this file except in
|
||||
* compliance with the NPL. You may obtain a copy of the NPL at
|
||||
* http://www.mozilla.org/NPL/
|
||||
*
|
||||
* Software distributed under the NPL is distributed on an "AS IS" basis,
|
||||
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
|
||||
* for the specific language governing rights and limitations under the
|
||||
* NPL.
|
||||
*
|
||||
* The Initial Developer of this code under the NPL is Netscape
|
||||
* Communications Corporation. Portions created by Netscape are
|
||||
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
|
||||
* Reserved.
|
||||
*/
|
||||
|
||||
package netscape.jsdebug;
|
||||
|
||||
/**
|
||||
* This interface provides access to the execution stack of a thread.
|
||||
* It has several subclasses to distinguish between different kinds of
|
||||
* stack frames: these currently include activations of Java methods
|
||||
* or JavaScript functions.
|
||||
* It is possible that synchronize blocks and try blocks deserve their own
|
||||
* stack frames - to allow for later extensions a debugger should skip over
|
||||
* stack frames it doesn't understand.
|
||||
* Note that this appears very Java-specific. However, multiple threads and
|
||||
* exceptions are relevant to JavaScript as well because of its
|
||||
* interoperation with Java.
|
||||
*
|
||||
* @author John Bandhauer
|
||||
* @version 1.0
|
||||
* @since 1.0
|
||||
*/
|
||||
public final class JSStackFrameInfo extends StackFrameInfo
|
||||
{
|
||||
public JSStackFrameInfo(JSThreadState threadState) {
|
||||
super(threadState);
|
||||
}
|
||||
|
||||
protected native StackFrameInfo getCaller0()
|
||||
throws InvalidInfoException;
|
||||
|
||||
public native PC getPC()
|
||||
throws InvalidInfoException;
|
||||
|
||||
private int _nativePtr; // used internally
|
||||
}
|
||||
|
||||
80
mozilla/js/jsd/classes/netscape/jsdebug/JSThreadState.java
Normal file
80
mozilla/js/jsd/classes/netscape/jsdebug/JSThreadState.java
Normal file
@@ -0,0 +1,80 @@
|
||||
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
|
||||
*
|
||||
* The contents of this file are subject to the Netscape Public License
|
||||
* Version 1.0 (the "NPL"); you may not use this file except in
|
||||
* compliance with the NPL. You may obtain a copy of the NPL at
|
||||
* http://www.mozilla.org/NPL/
|
||||
*
|
||||
* Software distributed under the NPL is distributed on an "AS IS" basis,
|
||||
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
|
||||
* for the specific language governing rights and limitations under the
|
||||
* NPL.
|
||||
*
|
||||
* The Initial Developer of this code under the NPL is Netscape
|
||||
* Communications Corporation. Portions created by Netscape are
|
||||
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
|
||||
* Reserved.
|
||||
*/
|
||||
|
||||
package netscape.jsdebug;
|
||||
|
||||
/**
|
||||
* This is the JavaScript specific implementation of the thread state
|
||||
*
|
||||
* @author John Bandhauer
|
||||
* @version 1.0
|
||||
* @since 1.0
|
||||
*/
|
||||
public final class JSThreadState extends ThreadStateBase
|
||||
{
|
||||
/**
|
||||
* <B><font color="red">Not Implemented.</font></B>
|
||||
* Always throws <code>InternalError("unimplemented")</code>
|
||||
*/
|
||||
public static ThreadStateBase getThreadState(Thread t)
|
||||
throws InvalidInfoException
|
||||
{
|
||||
throw new InternalError("unimplemented");
|
||||
}
|
||||
|
||||
/**
|
||||
* get the count of frames
|
||||
*/
|
||||
public native int countStackFrames()
|
||||
throws InvalidInfoException;
|
||||
|
||||
/**
|
||||
* get the 'top' frame
|
||||
*/
|
||||
public native StackFrameInfo getCurrentFrame()
|
||||
throws InvalidInfoException;
|
||||
|
||||
/**
|
||||
* <B><font color="red">Not Implemented.</font></B>
|
||||
* Always throws <code>InternalError("unimplemented")</code>
|
||||
*/
|
||||
public Thread getThread()
|
||||
{
|
||||
throw new InternalError("unimplemented");
|
||||
}
|
||||
|
||||
/**
|
||||
* <B><font color="red">Not Implemented.</font></B>
|
||||
* Always throws <code>InternalError("unimplemented")</code>
|
||||
*/
|
||||
public void leaveSuspended()
|
||||
{
|
||||
throw new InternalError("unimplemented");
|
||||
}
|
||||
|
||||
/**
|
||||
* <B><font color="red">Not Implemented.</font></B>
|
||||
* Always throws <code>InternalError("unimplemented")</code>
|
||||
*/
|
||||
protected void resume0()
|
||||
{
|
||||
throw new InternalError("unimplemented");
|
||||
}
|
||||
|
||||
protected int nativeThreadState; /* used internally */
|
||||
}
|
||||
42
mozilla/js/jsd/classes/netscape/jsdebug/PC.java
Normal file
42
mozilla/js/jsd/classes/netscape/jsdebug/PC.java
Normal file
@@ -0,0 +1,42 @@
|
||||
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
|
||||
*
|
||||
* The contents of this file are subject to the Netscape Public License
|
||||
* Version 1.0 (the "NPL"); you may not use this file except in
|
||||
* compliance with the NPL. You may obtain a copy of the NPL at
|
||||
* http://www.mozilla.org/NPL/
|
||||
*
|
||||
* Software distributed under the NPL is distributed on an "AS IS" basis,
|
||||
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
|
||||
* for the specific language governing rights and limitations under the
|
||||
* NPL.
|
||||
*
|
||||
* The Initial Developer of this code under the NPL is Netscape
|
||||
* Communications Corporation. Portions created by Netscape are
|
||||
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
|
||||
* Reserved.
|
||||
*/
|
||||
|
||||
package netscape.jsdebug;
|
||||
|
||||
/**
|
||||
* The PC class is an opaque representation of a program counter. It
|
||||
* may have different implementations for interpreted Java methods,
|
||||
* methods compiled by the JIT, JavaScript methods, etc.
|
||||
*
|
||||
* @author John Bandhauer
|
||||
* @author Nick Thompson
|
||||
* @version 1.0
|
||||
* @since 1.0
|
||||
*/
|
||||
public abstract class PC {
|
||||
/**
|
||||
* Get the SourceLocation associated with this PC value.
|
||||
* returns null if the source location is unavailable.
|
||||
*/
|
||||
public abstract SourceLocation getSourceLocation();
|
||||
|
||||
/**
|
||||
* Ask whether two program counter values are equal.
|
||||
*/
|
||||
public abstract boolean equals(Object obj);
|
||||
}
|
||||
82
mozilla/js/jsd/classes/netscape/jsdebug/Script.java
Normal file
82
mozilla/js/jsd/classes/netscape/jsdebug/Script.java
Normal file
@@ -0,0 +1,82 @@
|
||||
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
|
||||
*
|
||||
* The contents of this file are subject to the Netscape Public License
|
||||
* Version 1.0 (the "NPL"); you may not use this file except in
|
||||
* compliance with the NPL. You may obtain a copy of the NPL at
|
||||
* http://www.mozilla.org/NPL/
|
||||
*
|
||||
* Software distributed under the NPL is distributed on an "AS IS" basis,
|
||||
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
|
||||
* for the specific language governing rights and limitations under the
|
||||
* NPL.
|
||||
*
|
||||
* The Initial Developer of this code under the NPL is Netscape
|
||||
* Communications Corporation. Portions created by Netscape are
|
||||
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
|
||||
* Reserved.
|
||||
*/
|
||||
|
||||
package netscape.jsdebug;
|
||||
|
||||
/**
|
||||
* This instances of this class represent the JavaScript string object. This
|
||||
* class is intended to only be constructed by the underlying native code.
|
||||
* The DebugController will construct an instance of this class when scripts
|
||||
* are created and that instance will always be used to reference the underlying
|
||||
* script throughout the lifetime of that script.
|
||||
*
|
||||
* @author John Bandhauer
|
||||
* @version 1.0
|
||||
* @since 1.0
|
||||
*/
|
||||
public final class Script
|
||||
{
|
||||
public String getURL() {return _url; }
|
||||
public String getFunction() {return _function; }
|
||||
public int getBaseLineNumber() {return _baseLineNumber;}
|
||||
public int getLineExtent() {return _lineExtent; }
|
||||
public boolean isValid() {return 0 != _nativePtr;}
|
||||
|
||||
/**
|
||||
* Get the PC of the first executable code on or after the given
|
||||
* line in this script. returns null if none
|
||||
*/
|
||||
public native JSPC getClosestPC(int line);
|
||||
|
||||
public String toString()
|
||||
{
|
||||
int end = _baseLineNumber+_lineExtent-1;
|
||||
if( null == _function )
|
||||
return "<Script "+_url+"["+_baseLineNumber+","+end+"]>";
|
||||
else
|
||||
return "<Script "+_url+"#"+_function+"()["+_baseLineNumber+","+end+"]>";
|
||||
}
|
||||
|
||||
public int hashCode()
|
||||
{
|
||||
return _nativePtr;
|
||||
}
|
||||
|
||||
public boolean equals(Object obj)
|
||||
{
|
||||
if( obj == this )
|
||||
return true;
|
||||
|
||||
// In our system the native code is the only code that generates
|
||||
// these objects. They are never duplicated
|
||||
return false;
|
||||
/*
|
||||
if( !(obj instanceof Script) )
|
||||
return false;
|
||||
return 0 != _nativePtr && _nativePtr == ((Script)obj)._nativePtr;
|
||||
*/
|
||||
}
|
||||
|
||||
private synchronized void _setInvalid() {_nativePtr = 0;}
|
||||
|
||||
private String _url;
|
||||
private String _function;
|
||||
private int _baseLineNumber;
|
||||
private int _lineExtent;
|
||||
private int _nativePtr; // used internally
|
||||
}
|
||||
57
mozilla/js/jsd/classes/netscape/jsdebug/ScriptHook.java
Normal file
57
mozilla/js/jsd/classes/netscape/jsdebug/ScriptHook.java
Normal file
@@ -0,0 +1,57 @@
|
||||
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
|
||||
*
|
||||
* The contents of this file are subject to the Netscape Public License
|
||||
* Version 1.0 (the "NPL"); you may not use this file except in
|
||||
* compliance with the NPL. You may obtain a copy of the NPL at
|
||||
* http://www.mozilla.org/NPL/
|
||||
*
|
||||
* Software distributed under the NPL is distributed on an "AS IS" basis,
|
||||
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
|
||||
* for the specific language governing rights and limitations under the
|
||||
* NPL.
|
||||
*
|
||||
* The Initial Developer of this code under the NPL is Netscape
|
||||
* Communications Corporation. Portions created by Netscape are
|
||||
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
|
||||
* Reserved.
|
||||
*/
|
||||
|
||||
package netscape.jsdebug;
|
||||
|
||||
/**
|
||||
* ScriptHook must be subclassed to respond to loading and
|
||||
* unloading of scripts
|
||||
*
|
||||
* @author John Bandhauer
|
||||
* @version 1.0
|
||||
* @since 1.0
|
||||
*/
|
||||
public class ScriptHook extends Hook
|
||||
{
|
||||
/**
|
||||
* Create a ScriptHook for current the current VM.
|
||||
*/
|
||||
public ScriptHook() {}
|
||||
|
||||
/**
|
||||
* Override this method to respond when a new script is
|
||||
* loaded into the VM.
|
||||
*
|
||||
* @param script a script object created by the controller to
|
||||
* represent this script. This exact same object will be used
|
||||
* in all further references to the script.
|
||||
*/
|
||||
public void justLoadedScript(Script script) {
|
||||
// defaults to no action
|
||||
}
|
||||
|
||||
/**
|
||||
* Override this method to respond when a class is
|
||||
* about to be unloaded from the VM.
|
||||
*
|
||||
* @param script which will be unloaded
|
||||
*/
|
||||
public void aboutToUnloadScript(Script script) {
|
||||
// defaults to no action
|
||||
}
|
||||
}
|
||||
53
mozilla/js/jsd/classes/netscape/jsdebug/SourceLocation.java
Normal file
53
mozilla/js/jsd/classes/netscape/jsdebug/SourceLocation.java
Normal file
@@ -0,0 +1,53 @@
|
||||
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
|
||||
*
|
||||
* The contents of this file are subject to the Netscape Public License
|
||||
* Version 1.0 (the "NPL"); you may not use this file except in
|
||||
* compliance with the NPL. You may obtain a copy of the NPL at
|
||||
* http://www.mozilla.org/NPL/
|
||||
*
|
||||
* Software distributed under the NPL is distributed on an "AS IS" basis,
|
||||
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
|
||||
* for the specific language governing rights and limitations under the
|
||||
* NPL.
|
||||
*
|
||||
* The Initial Developer of this code under the NPL is Netscape
|
||||
* Communications Corporation. Portions created by Netscape are
|
||||
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
|
||||
* Reserved.
|
||||
*/
|
||||
|
||||
package netscape.jsdebug;
|
||||
|
||||
/**
|
||||
* An implementation of the SourceLocation interface is used to represent
|
||||
* a location in a source file. Java classfiles only make source locations
|
||||
* available at the line-by-line granularity, but other languages may
|
||||
* include finer-grain information. At this time only line number
|
||||
* information is included.
|
||||
*
|
||||
* @author John Bandhauer
|
||||
* @author Nick Thompson
|
||||
* @version 1.0
|
||||
* @since 1.0
|
||||
*/
|
||||
/* XXX must source locations be contiguous? */
|
||||
public abstract class SourceLocation {
|
||||
/**
|
||||
* Gets the first line number associated with this SourceLocation.
|
||||
* This is the lowest common denominator information that will be
|
||||
* available: some implementations may choose to include more
|
||||
* specific location information in a subclass of SourceLocation.
|
||||
*
|
||||
* @returns source line number cooresponding to this location
|
||||
*/
|
||||
public abstract int getLine();
|
||||
|
||||
/**
|
||||
* Get the first PC associated with a given SourceLocation.
|
||||
* This is the place to set a breakpoint at that location.
|
||||
*
|
||||
* @returns pc object or null if there is no code corresponding
|
||||
* to this source location.
|
||||
*/
|
||||
public abstract PC getPC();
|
||||
}
|
||||
107
mozilla/js/jsd/classes/netscape/jsdebug/SourceTextItem.java
Normal file
107
mozilla/js/jsd/classes/netscape/jsdebug/SourceTextItem.java
Normal file
@@ -0,0 +1,107 @@
|
||||
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
|
||||
*
|
||||
* The contents of this file are subject to the Netscape Public License
|
||||
* Version 1.0 (the "NPL"); you may not use this file except in
|
||||
* compliance with the NPL. You may obtain a copy of the NPL at
|
||||
* http://www.mozilla.org/NPL/
|
||||
*
|
||||
* Software distributed under the NPL is distributed on an "AS IS" basis,
|
||||
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
|
||||
* for the specific language governing rights and limitations under the
|
||||
* NPL.
|
||||
*
|
||||
* The Initial Developer of this code under the NPL is Netscape
|
||||
* Communications Corporation. Portions created by Netscape are
|
||||
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
|
||||
* Reserved.
|
||||
*/
|
||||
|
||||
package netscape.jsdebug;
|
||||
|
||||
/**
|
||||
* This class is used to represent a file or url which contains
|
||||
* JavaScript source text. The actual JavaScript source may be intermixed
|
||||
* with other text (as in an html file) or raw. The debugger uses this
|
||||
* interface to access the source. The file of the actual source need
|
||||
* not physially exist anywhere; i.e. the underlying engine might synthesize
|
||||
* it as needed.
|
||||
* <p>
|
||||
* The <i>url</i> of this class is immutable -- it represents a key in
|
||||
* collections of these objects
|
||||
*
|
||||
* @author John Bandhauer
|
||||
* @version 1.0
|
||||
* @since 1.0
|
||||
*/
|
||||
public class SourceTextItem
|
||||
{
|
||||
/* these coorespond to jsdebug.h values - change in both places if anywhere */
|
||||
|
||||
/**
|
||||
* This object is initialized, but contains no text
|
||||
*/
|
||||
public static final int INITED = 0;
|
||||
/**
|
||||
* This object contains the full text
|
||||
*/
|
||||
public static final int FULL = 1;
|
||||
/**
|
||||
* This object contains the partial text (valid , but more may come later)
|
||||
*/
|
||||
public static final int PARTIAL = 2;
|
||||
/**
|
||||
* This object may contain partial text, but loading was aborted (by user?)
|
||||
*/
|
||||
public static final int ABORTED = 3;
|
||||
/**
|
||||
* This object may contain partial text, but loading failed (or the
|
||||
* underlying debugger support was unable to capture it; e.g.
|
||||
* not enough memory...)
|
||||
*/
|
||||
public static final int FAILED = 4;
|
||||
/**
|
||||
* This object contains no text because the debugger has signaled that
|
||||
* the text is no longer needed
|
||||
*/
|
||||
public static final int CLEARED = 5;
|
||||
|
||||
/**
|
||||
* Constuct for url (which is immutable during the lifetime of the object)
|
||||
* <p>
|
||||
* Presumably, text will be added later
|
||||
* @param url url or filename by which this object will be known
|
||||
*/
|
||||
public SourceTextItem( String url )
|
||||
{
|
||||
this( url, (String)null, INITED );
|
||||
}
|
||||
|
||||
/**
|
||||
* Constuct for url with text and status
|
||||
* <p>
|
||||
* @param url url or filename by which this object will be known
|
||||
* @param text source text this object should start with
|
||||
* @param status status this object should start with
|
||||
*/
|
||||
public SourceTextItem( String url, String text, int status )
|
||||
{
|
||||
_url = url;
|
||||
_text = text;
|
||||
_status = status;
|
||||
_dirty = true;
|
||||
}
|
||||
|
||||
public String getURL() {return _url; }
|
||||
public String getText() {return _text; }
|
||||
public int getStatus() {return _status;}
|
||||
public boolean getDirty() {return _dirty; }
|
||||
|
||||
public void setText(String text) {_text = text;}
|
||||
public void setStatus(int status) {_status = status;}
|
||||
public void setDirty(boolean b) {_dirty = b; }
|
||||
|
||||
private String _url;
|
||||
private String _text;
|
||||
private int _status;
|
||||
private boolean _dirty;
|
||||
}
|
||||
@@ -0,0 +1,58 @@
|
||||
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
|
||||
*
|
||||
* The contents of this file are subject to the Netscape Public License
|
||||
* Version 1.0 (the "NPL"); you may not use this file except in
|
||||
* compliance with the NPL. You may obtain a copy of the NPL at
|
||||
* http://www.mozilla.org/NPL/
|
||||
*
|
||||
* Software distributed under the NPL is distributed on an "AS IS" basis,
|
||||
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
|
||||
* for the specific language governing rights and limitations under the
|
||||
* NPL.
|
||||
*
|
||||
* The Initial Developer of this code under the NPL is Netscape
|
||||
* Communications Corporation. Portions created by Netscape are
|
||||
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
|
||||
* Reserved.
|
||||
*/
|
||||
|
||||
package netscape.jsdebug;
|
||||
|
||||
import netscape.util.Vector;
|
||||
import netscape.security.ForbiddenTargetException;
|
||||
|
||||
/**
|
||||
* Abstract class to represent entity capable of providing access to source text
|
||||
*
|
||||
* @author John Bandhauer
|
||||
* @version 1.0
|
||||
* @since 1.0
|
||||
*/
|
||||
public abstract class SourceTextProvider
|
||||
{
|
||||
public static SourceTextProvider getSourceTextProvider() throws Exception
|
||||
{
|
||||
return null;
|
||||
}
|
||||
/**
|
||||
* Return the vector of SourceTextItems.
|
||||
* <p>
|
||||
* This is not liekly to be a copy. nor is it necessarily current
|
||||
*/
|
||||
public abstract Vector getSourceTextVector() throws ForbiddenTargetException;
|
||||
/**
|
||||
* Refresh the vector by whatever means to reflect any changes made in the
|
||||
* underlying native system
|
||||
*/
|
||||
public abstract void refreshSourceTextVector();
|
||||
/**
|
||||
* Get the SourceText item for the given URL
|
||||
*/
|
||||
public abstract SourceTextItem findSourceTextItem( String url ) throws ForbiddenTargetException;
|
||||
/**
|
||||
* Load the SourceText item for the given URL
|
||||
* <p>
|
||||
* <B>This is not guaranteed to be implemented</B>
|
||||
*/
|
||||
public abstract SourceTextItem loadSourceTextItem( String url ) throws ForbiddenTargetException;
|
||||
}
|
||||
94
mozilla/js/jsd/classes/netscape/jsdebug/StackFrameInfo.java
Normal file
94
mozilla/js/jsd/classes/netscape/jsdebug/StackFrameInfo.java
Normal file
@@ -0,0 +1,94 @@
|
||||
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
|
||||
*
|
||||
* The contents of this file are subject to the Netscape Public License
|
||||
* Version 1.0 (the "NPL"); you may not use this file except in
|
||||
* compliance with the NPL. You may obtain a copy of the NPL at
|
||||
* http://www.mozilla.org/NPL/
|
||||
*
|
||||
* Software distributed under the NPL is distributed on an "AS IS" basis,
|
||||
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
|
||||
* for the specific language governing rights and limitations under the
|
||||
* NPL.
|
||||
*
|
||||
* The Initial Developer of this code under the NPL is Netscape
|
||||
* Communications Corporation. Portions created by Netscape are
|
||||
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
|
||||
* Reserved.
|
||||
*/
|
||||
|
||||
package netscape.jsdebug;
|
||||
|
||||
/**
|
||||
* This interface provides access to the execution stack of a thread.
|
||||
* It has several subclasses to distinguish between different kinds of
|
||||
* stack frames: these currently include activations of Java methods
|
||||
* or JavaScript functions.
|
||||
* It is possible that synchronize blocks and try blocks deserve their own
|
||||
* stack frames - to allow for later extensions a debugger should skip over
|
||||
* stack frames it doesn't understand.
|
||||
* Note that this appears very Java-specific. However, multiple threads and
|
||||
* exceptions are relevant to JavaScript as well because of its
|
||||
* interoperation with Java.
|
||||
*
|
||||
* @author John Bandhauer
|
||||
* @author Nick Thompson
|
||||
* @version 1.0
|
||||
* @since 1.0
|
||||
*/
|
||||
public abstract class StackFrameInfo {
|
||||
ThreadStateBase threadState;
|
||||
StackFrameInfo caller;
|
||||
|
||||
protected StackFrameInfo(ThreadStateBase threadState) {
|
||||
this.threadState = threadState;
|
||||
}
|
||||
|
||||
/**
|
||||
* Return true if this stack frame is still valid. Stack frames
|
||||
* may become invalid when the thread is resumed (this is more
|
||||
* conservative than invalidating the frame only when it actually
|
||||
* returns).
|
||||
*/
|
||||
public boolean isValid() {
|
||||
return threadState.isValid();
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the stack frame where this one was built, or null for the
|
||||
* start of the stack.
|
||||
*/
|
||||
public synchronized StackFrameInfo getCaller()
|
||||
throws InvalidInfoException {
|
||||
if (caller == null)
|
||||
caller = getCaller0();
|
||||
if (!isValid())
|
||||
throw new InvalidInfoException("invalid StackFrameInfo");
|
||||
return caller;
|
||||
}
|
||||
|
||||
protected abstract StackFrameInfo getCaller0()
|
||||
throws InvalidInfoException;
|
||||
|
||||
/**
|
||||
* Get the thread that this stack frame is a part of.
|
||||
*/
|
||||
public Thread getThread() {
|
||||
return threadState.getThread();
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the 'enclosing' thread state
|
||||
*/
|
||||
public ThreadStateBase getThreadState() {
|
||||
return threadState;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Get the current program counter value. Note that the
|
||||
* class JavaPC supports the getMethod() operation.
|
||||
*/
|
||||
public abstract PC getPC()
|
||||
throws InvalidInfoException;
|
||||
}
|
||||
|
||||
241
mozilla/js/jsd/classes/netscape/jsdebug/ThreadStateBase.java
Normal file
241
mozilla/js/jsd/classes/netscape/jsdebug/ThreadStateBase.java
Normal file
@@ -0,0 +1,241 @@
|
||||
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
|
||||
*
|
||||
* The contents of this file are subject to the Netscape Public License
|
||||
* Version 1.0 (the "NPL"); you may not use this file except in
|
||||
* compliance with the NPL. You may obtain a copy of the NPL at
|
||||
* http://www.mozilla.org/NPL/
|
||||
*
|
||||
* Software distributed under the NPL is distributed on an "AS IS" basis,
|
||||
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
|
||||
* for the specific language governing rights and limitations under the
|
||||
* NPL.
|
||||
*
|
||||
* The Initial Developer of this code under the NPL is Netscape
|
||||
* Communications Corporation. Portions created by Netscape are
|
||||
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
|
||||
* Reserved.
|
||||
*/
|
||||
|
||||
package netscape.jsdebug;
|
||||
|
||||
/*
|
||||
* jband - 03/19/97
|
||||
*
|
||||
* This is an 'abstracted version of netscape.debug.ThreadState
|
||||
*
|
||||
* The methods that were 'native' there are 'abstract' here.
|
||||
* Changed 'private' data to 'protected' (though native access is immune)
|
||||
* Changed 'private' resume0() to 'protected'
|
||||
* Removed ThreadHook referneces
|
||||
*
|
||||
*/
|
||||
|
||||
/**
|
||||
* When a hook is hit, the debugger records the state of the
|
||||
* thread before the hook in a ThreadState object. This object
|
||||
* is then passed to any hook methods that are called, and can
|
||||
* be used to change the state of the thread when it resumes from the
|
||||
* hook.
|
||||
*
|
||||
* @author John Bandhauer
|
||||
* @author Nick Thompson
|
||||
* @version 1.0
|
||||
* @since 1.0
|
||||
*/
|
||||
public abstract class ThreadStateBase {
|
||||
protected Thread thread;
|
||||
protected boolean valid;
|
||||
protected boolean runningHook;
|
||||
protected boolean resumeWhenDone;
|
||||
protected int status;
|
||||
protected int continueState;
|
||||
protected StackFrameInfo[] stack; /* jband - 03/19/97 - had no access modifier */
|
||||
protected Object returnValue;
|
||||
protected Throwable currentException;
|
||||
protected int currentFramePtr; /* used internally */
|
||||
protected ThreadStateBase previous;
|
||||
|
||||
/**
|
||||
* <B><font color="red">Not Implemented.</font></B>
|
||||
* Always throws <code>InternalError("unimplemented")</code>
|
||||
*/
|
||||
public static ThreadStateBase getThreadState(Thread t)
|
||||
throws InvalidInfoException
|
||||
{
|
||||
throw new InternalError("unimplemented");
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the Thread that this ThreadState came from.
|
||||
*/
|
||||
public Thread getThread() {
|
||||
return thread;
|
||||
}
|
||||
|
||||
/**
|
||||
* Return true if the Thread hasn't been resumed since this ThreadState
|
||||
* was made.
|
||||
*/
|
||||
public boolean isValid() {
|
||||
return valid;
|
||||
}
|
||||
|
||||
/**
|
||||
* Return true if the thread is currently running a hook
|
||||
* for this ThreadState
|
||||
*/
|
||||
public boolean isRunningHook() {
|
||||
return runningHook;
|
||||
}
|
||||
|
||||
/**
|
||||
* partial list of thread states from sun.debug.ThreadInfo.
|
||||
* XXX some of these don't apply.
|
||||
*/
|
||||
public final static int THR_STATUS_UNKNOWN = 0x01;
|
||||
public final static int THR_STATUS_ZOMBIE = 0x02;
|
||||
public final static int THR_STATUS_RUNNING = 0x03;
|
||||
public final static int THR_STATUS_SLEEPING = 0x04;
|
||||
public final static int THR_STATUS_MONWAIT = 0x05;
|
||||
public final static int THR_STATUS_CONDWAIT = 0x06;
|
||||
public final static int THR_STATUS_SUSPENDED = 0x07;
|
||||
public final static int THR_STATUS_BREAK = 0x08;
|
||||
|
||||
/**
|
||||
* Get the state of the thread at the time it entered debug mode.
|
||||
* This can't be modified directly.
|
||||
*/
|
||||
public int getStatus() {
|
||||
return status;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the count of the stackframes
|
||||
*/
|
||||
public abstract int countStackFrames()
|
||||
throws InvalidInfoException;
|
||||
/**
|
||||
* Get the 'top' stackframe; i.e. the one with the current instruction
|
||||
*/
|
||||
public abstract StackFrameInfo getCurrentFrame()
|
||||
throws InvalidInfoException;
|
||||
|
||||
/**
|
||||
* Get the thread's stack as an array. stack[stack.length-1] is the
|
||||
* current frame, and stack[0] is the beginning of the stack.
|
||||
*/
|
||||
public synchronized StackFrameInfo[] getStack()
|
||||
throws InvalidInfoException {
|
||||
// XXX check valid?
|
||||
if (stack == null) {
|
||||
stack = new StackFrameInfo[countStackFrames()];
|
||||
}
|
||||
|
||||
if (stack.length == 0)
|
||||
return stack;
|
||||
|
||||
StackFrameInfo frame = getCurrentFrame();
|
||||
stack[stack.length - 1] = frame;
|
||||
for (int i = stack.length - 2; i >= 0; i--) {
|
||||
frame = frame.getCaller();
|
||||
stack[i] = frame;
|
||||
}
|
||||
|
||||
// should really be read-only for safety
|
||||
return stack;
|
||||
}
|
||||
|
||||
/**
|
||||
* Leave the thread in a suspended state when the hook method(s)
|
||||
* finish. This can be undone by calling resume(). This is the
|
||||
* default only if the break was the result of
|
||||
* DebugController.sendInterrupt().
|
||||
*/
|
||||
public void leaveSuspended() {
|
||||
resumeWhenDone = false;
|
||||
}
|
||||
|
||||
/**
|
||||
* Resume the thread. This is the default unless the break was the result
|
||||
* of DebugController.sendInterrupt(). This method may be called from a
|
||||
* hook method, in which case the thread will resume when the
|
||||
* method returns.
|
||||
* Alternatively, if there is no active hook method and
|
||||
* the thread is suspended around in the DebugFrame, this resumes it
|
||||
* immediately.
|
||||
*/
|
||||
public synchronized void resume() {
|
||||
if (runningHook)
|
||||
resumeWhenDone = true;
|
||||
else
|
||||
resume0();
|
||||
}
|
||||
|
||||
protected abstract void resume0();
|
||||
|
||||
/**
|
||||
* if the continueState is DEAD, the thread cannot
|
||||
* be restarted.
|
||||
*/
|
||||
public final static int DEBUG_STATE_DEAD = 0x01;
|
||||
|
||||
/**
|
||||
* if the continueState is RUN, the thread will
|
||||
* proceed to the next program counter value when it resumes.
|
||||
*/
|
||||
public final static int DEBUG_STATE_RUN = 0x02;
|
||||
|
||||
/**
|
||||
* if the continueState is RETURN, the thread will
|
||||
* return from the current method with the value in getReturnValue()
|
||||
* when it resumes.
|
||||
*/
|
||||
public final static int DEBUG_STATE_RETURN = 0x03;
|
||||
|
||||
/**
|
||||
* if the continueState is THROW, the thread will
|
||||
* throw an exception (accessible with getException()) when it
|
||||
* resumes.
|
||||
*/
|
||||
public final static int DEBUG_STATE_THROW = 0x04;
|
||||
|
||||
/**
|
||||
* This gets the current continue state of the debug frame, which
|
||||
* will be one of the DEBUG_STATE_* values above.
|
||||
*/
|
||||
public int getContinueState() {
|
||||
return continueState;
|
||||
}
|
||||
|
||||
public int setContinueState(int state) {
|
||||
int old = continueState;
|
||||
continueState = state;
|
||||
return old;
|
||||
}
|
||||
|
||||
/**
|
||||
* If the thread was stopped while in the process of returning
|
||||
* a value, this call returns an object representing that value.
|
||||
* non-Object values are wrapped as in the java.lang.reflect api.
|
||||
* This is only relevant if the continue state is RETURN, and the
|
||||
* method throws an IllegalStateException otherwise.
|
||||
*/
|
||||
public Object getReturnValue() throws IllegalStateException {
|
||||
if (continueState != DEBUG_STATE_RETURN)
|
||||
throw new IllegalStateException("no value being returned");
|
||||
return returnValue;
|
||||
}
|
||||
|
||||
/**
|
||||
* If the thread was stopped while in the process of throwing an
|
||||
* exception, this call returns that exception.
|
||||
* This is only relevant if the continue state is THROW, and it
|
||||
* throws an IllegalStateException otherwise.
|
||||
*/
|
||||
public Throwable getException() throws IllegalStateException {
|
||||
if (continueState != DEBUG_STATE_THROW)
|
||||
throw new IllegalStateException("no exception throw in progress");
|
||||
return currentException;
|
||||
}
|
||||
}
|
||||
|
||||
190
mozilla/js/jsd/corba/idl/ifaces.idl
Normal file
190
mozilla/js/jsd/corba/idl/ifaces.idl
Normal file
@@ -0,0 +1,190 @@
|
||||
struct Thing {
|
||||
string s;
|
||||
long i;
|
||||
};
|
||||
interface StringReciever {
|
||||
void recieveString(
|
||||
in string arg0
|
||||
);
|
||||
void bounce(
|
||||
in long arg0
|
||||
);
|
||||
};
|
||||
interface TestInterface {
|
||||
string getFirstAppInList();
|
||||
void getAppNames(
|
||||
in ::StringReciever arg0
|
||||
);
|
||||
typedef sequence<::Thing> sequence_of_Thing;
|
||||
::TestInterface::sequence_of_Thing getThings();
|
||||
void callBounce(
|
||||
in ::StringReciever arg0,
|
||||
in long arg1
|
||||
);
|
||||
};
|
||||
interface ISourceTextProvider {
|
||||
typedef sequence<string> sequence_of_string;
|
||||
::ISourceTextProvider::sequence_of_string getAllPages();
|
||||
void refreshAllPages();
|
||||
boolean hasPage(
|
||||
in string arg0
|
||||
);
|
||||
boolean loadPage(
|
||||
in string arg0
|
||||
);
|
||||
void refreshPage(
|
||||
in string arg0
|
||||
);
|
||||
string getPageText(
|
||||
in string arg0
|
||||
);
|
||||
long getPageStatus(
|
||||
in string arg0
|
||||
);
|
||||
long getPageAlterCount(
|
||||
in string arg0
|
||||
);
|
||||
};
|
||||
struct IScriptSection {
|
||||
long base;
|
||||
long extent;
|
||||
};
|
||||
typedef sequence<::IScriptSection> sequence_of_IScriptSection;
|
||||
struct IScript {
|
||||
string url;
|
||||
string funname;
|
||||
long base;
|
||||
long extent;
|
||||
long jsdscript;
|
||||
::sequence_of_IScriptSection sections;
|
||||
};
|
||||
struct IJSPC {
|
||||
::IScript script;
|
||||
long offset;
|
||||
};
|
||||
struct IJSSourceLocation {
|
||||
long line;
|
||||
::IJSPC pc;
|
||||
};
|
||||
interface IJSErrorReporter {
|
||||
long reportError(
|
||||
in string arg0,
|
||||
in string arg1,
|
||||
in long arg2,
|
||||
in string arg3,
|
||||
in long arg4
|
||||
);
|
||||
};
|
||||
interface IScriptHook {
|
||||
void justLoadedScript(
|
||||
in ::IScript arg0
|
||||
);
|
||||
void aboutToUnloadScript(
|
||||
in ::IScript arg0
|
||||
);
|
||||
};
|
||||
struct IJSStackFrameInfo {
|
||||
::IJSPC pc;
|
||||
long jsdframe;
|
||||
};
|
||||
typedef sequence<::IJSStackFrameInfo> sequence_of_IJSStackFrameInfo;
|
||||
struct IJSThreadState {
|
||||
::sequence_of_IJSStackFrameInfo stack;
|
||||
long continueState;
|
||||
string returnValue;
|
||||
long status;
|
||||
long jsdthreadstate;
|
||||
long id;
|
||||
};
|
||||
interface IJSExecutionHook {
|
||||
void aboutToExecute(
|
||||
in ::IJSThreadState arg0,
|
||||
in ::IJSPC arg1
|
||||
);
|
||||
};
|
||||
struct IExecResult {
|
||||
string result;
|
||||
boolean errorOccured;
|
||||
string errorMessage;
|
||||
string errorFilename;
|
||||
long errorLineNumber;
|
||||
string errorLineBuffer;
|
||||
long errorTokenOffset;
|
||||
};
|
||||
interface IDebugController {
|
||||
long getMajorVersion();
|
||||
long getMinorVersion();
|
||||
::IJSErrorReporter setErrorReporter(
|
||||
in ::IJSErrorReporter arg0
|
||||
);
|
||||
::IJSErrorReporter getErrorReporter();
|
||||
::IScriptHook setScriptHook(
|
||||
in ::IScriptHook arg0
|
||||
);
|
||||
::IScriptHook getScriptHook();
|
||||
::IJSPC getClosestPC(
|
||||
in ::IScript arg0,
|
||||
in long arg1
|
||||
);
|
||||
::IJSSourceLocation getSourceLocation(
|
||||
in ::IJSPC arg0
|
||||
);
|
||||
::IJSExecutionHook setInterruptHook(
|
||||
in ::IJSExecutionHook arg0
|
||||
);
|
||||
::IJSExecutionHook getInterruptHook();
|
||||
::IJSExecutionHook setDebugBreakHook(
|
||||
in ::IJSExecutionHook arg0
|
||||
);
|
||||
::IJSExecutionHook getDebugBreakHook();
|
||||
::IJSExecutionHook setInstructionHook(
|
||||
in ::IJSExecutionHook arg0,
|
||||
in ::IJSPC arg1
|
||||
);
|
||||
::IJSExecutionHook getInstructionHook(
|
||||
in ::IJSPC arg0
|
||||
);
|
||||
void setThreadContinueState(
|
||||
in long arg0,
|
||||
in long arg1
|
||||
);
|
||||
void setThreadReturnValue(
|
||||
in long arg0,
|
||||
in string arg1
|
||||
);
|
||||
void sendInterrupt();
|
||||
void sendInterruptStepInto(
|
||||
in long arg0
|
||||
);
|
||||
void sendInterruptStepOver(
|
||||
in long arg0
|
||||
);
|
||||
void sendInterruptStepOut(
|
||||
in long arg0
|
||||
);
|
||||
void reinstateStepper(
|
||||
in long arg0
|
||||
);
|
||||
::IExecResult executeScriptInStackFrame(
|
||||
in long arg0,
|
||||
in ::IJSStackFrameInfo arg1,
|
||||
in string arg2,
|
||||
in string arg3,
|
||||
in long arg4
|
||||
);
|
||||
boolean isRunningHook(
|
||||
in long arg0
|
||||
);
|
||||
boolean isWaitingForResume(
|
||||
in long arg0
|
||||
);
|
||||
void leaveThreadSuspended(
|
||||
in long arg0
|
||||
);
|
||||
void resumeThread(
|
||||
in long arg0
|
||||
);
|
||||
void iterateScripts(
|
||||
in ::IScriptHook arg0
|
||||
);
|
||||
};
|
||||
2554
mozilla/js/jsd/corba/ifaces_c.cpp
Normal file
2554
mozilla/js/jsd/corba/ifaces_c.cpp
Normal file
File diff suppressed because it is too large
Load Diff
1920
mozilla/js/jsd/corba/ifaces_c.hh
Normal file
1920
mozilla/js/jsd/corba/ifaces_c.hh
Normal file
File diff suppressed because it is too large
Load Diff
1041
mozilla/js/jsd/corba/ifaces_s.cpp
Normal file
1041
mozilla/js/jsd/corba/ifaces_s.cpp
Normal file
File diff suppressed because it is too large
Load Diff
777
mozilla/js/jsd/corba/ifaces_s.hh
Normal file
777
mozilla/js/jsd/corba/ifaces_s.hh
Normal file
@@ -0,0 +1,777 @@
|
||||
#ifndef _ifaces_s_hh
|
||||
#define _ifaces_s_hh
|
||||
|
||||
#include "ifaces_c.hh"
|
||||
|
||||
/************************************************************************/
|
||||
/* */
|
||||
/* This file is automatically generated by ORBeline IDL compiler */
|
||||
/* Do not modify this file. */
|
||||
/* */
|
||||
/* ORBeline (c) is copyrighted by PostModern Computing, Inc. */
|
||||
/* */
|
||||
/* The generated code conforms to OMG's IDL C++ mapping as */
|
||||
/* specified in OMG Document Number: 94-9-14. */
|
||||
/* */
|
||||
/************************************************************************/
|
||||
|
||||
class _sk_StringReciever : public StringReciever
|
||||
{
|
||||
protected:
|
||||
_sk_StringReciever(const char *object_name = (const char *)NULL);
|
||||
_sk_StringReciever(const char *service_name, const CORBA::ReferenceData& data);
|
||||
virtual ~_sk_StringReciever() {}
|
||||
public:
|
||||
static const CORBA::TypeInfo _skel_info;
|
||||
|
||||
// The following operations need to be implemented by the server.
|
||||
virtual void recieveString(const char * arg0) = 0;
|
||||
virtual void bounce(CORBA::Long arg0) = 0;
|
||||
|
||||
// Skeleton Operations implemented automatically
|
||||
|
||||
static void _recieveString(void *obj,
|
||||
CORBA::MarshalStream &strm,
|
||||
CORBA::Principal_ptr principal,
|
||||
const char *oper,
|
||||
void *priv_data);
|
||||
|
||||
static void _bounce(void *obj,
|
||||
CORBA::MarshalStream &strm,
|
||||
CORBA::Principal_ptr principal,
|
||||
const char *oper,
|
||||
void *priv_data);
|
||||
|
||||
};
|
||||
template <class T>
|
||||
class _tie_StringReciever : public StringReciever
|
||||
{
|
||||
public:
|
||||
_tie_StringReciever(T& t, const char *obj_name=(char*)NULL) :
|
||||
StringReciever(obj_name),
|
||||
_ref(t) {
|
||||
_object_name(obj_name);
|
||||
}
|
||||
_tie_StringReciever(T& t, const char *service_name,
|
||||
const CORBA::ReferenceData& id)
|
||||
:_ref(t) {
|
||||
_service(service_name, id);
|
||||
}
|
||||
~_tie_StringReciever() {}
|
||||
void recieveString(const char * arg0) {
|
||||
_ref.recieveString(
|
||||
arg0);
|
||||
}
|
||||
void bounce(CORBA::Long arg0) {
|
||||
_ref.bounce(
|
||||
arg0);
|
||||
}
|
||||
|
||||
private:
|
||||
T& _ref;
|
||||
};
|
||||
class _sk_TestInterface : public TestInterface
|
||||
{
|
||||
protected:
|
||||
_sk_TestInterface(const char *object_name = (const char *)NULL);
|
||||
_sk_TestInterface(const char *service_name, const CORBA::ReferenceData& data);
|
||||
virtual ~_sk_TestInterface() {}
|
||||
public:
|
||||
static const CORBA::TypeInfo _skel_info;
|
||||
|
||||
// The following operations need to be implemented by the server.
|
||||
virtual char * getFirstAppInList() = 0;
|
||||
virtual void getAppNames(StringReciever_ptr arg0) = 0;
|
||||
virtual TestInterface::sequence_of_Thing * getThings() = 0;
|
||||
virtual void callBounce(StringReciever_ptr arg0,
|
||||
CORBA::Long arg1) = 0;
|
||||
|
||||
// Skeleton Operations implemented automatically
|
||||
|
||||
static void _getFirstAppInList(void *obj,
|
||||
CORBA::MarshalStream &strm,
|
||||
CORBA::Principal_ptr principal,
|
||||
const char *oper,
|
||||
void *priv_data);
|
||||
|
||||
static void _getAppNames(void *obj,
|
||||
CORBA::MarshalStream &strm,
|
||||
CORBA::Principal_ptr principal,
|
||||
const char *oper,
|
||||
void *priv_data);
|
||||
|
||||
static void _getThings(void *obj,
|
||||
CORBA::MarshalStream &strm,
|
||||
CORBA::Principal_ptr principal,
|
||||
const char *oper,
|
||||
void *priv_data);
|
||||
|
||||
static void _callBounce(void *obj,
|
||||
CORBA::MarshalStream &strm,
|
||||
CORBA::Principal_ptr principal,
|
||||
const char *oper,
|
||||
void *priv_data);
|
||||
|
||||
};
|
||||
template <class T>
|
||||
class _tie_TestInterface : public TestInterface
|
||||
{
|
||||
public:
|
||||
_tie_TestInterface(T& t, const char *obj_name=(char*)NULL) :
|
||||
TestInterface(obj_name),
|
||||
_ref(t) {
|
||||
_object_name(obj_name);
|
||||
}
|
||||
_tie_TestInterface(T& t, const char *service_name,
|
||||
const CORBA::ReferenceData& id)
|
||||
:_ref(t) {
|
||||
_service(service_name, id);
|
||||
}
|
||||
~_tie_TestInterface() {}
|
||||
char * getFirstAppInList() {
|
||||
return _ref.getFirstAppInList();
|
||||
}
|
||||
void getAppNames(StringReciever_ptr arg0) {
|
||||
_ref.getAppNames(
|
||||
arg0);
|
||||
}
|
||||
TestInterface::sequence_of_Thing * getThings() {
|
||||
return _ref.getThings();
|
||||
}
|
||||
void callBounce(StringReciever_ptr arg0,
|
||||
CORBA::Long arg1) {
|
||||
_ref.callBounce(
|
||||
arg0,
|
||||
arg1);
|
||||
}
|
||||
|
||||
private:
|
||||
T& _ref;
|
||||
};
|
||||
class _sk_ISourceTextProvider : public ISourceTextProvider
|
||||
{
|
||||
protected:
|
||||
_sk_ISourceTextProvider(const char *object_name = (const char *)NULL);
|
||||
_sk_ISourceTextProvider(const char *service_name, const CORBA::ReferenceData& data);
|
||||
virtual ~_sk_ISourceTextProvider() {}
|
||||
public:
|
||||
static const CORBA::TypeInfo _skel_info;
|
||||
|
||||
// The following operations need to be implemented by the server.
|
||||
virtual ISourceTextProvider::sequence_of_string * getAllPages() = 0;
|
||||
virtual void refreshAllPages() = 0;
|
||||
virtual CORBA::Boolean hasPage(const char * arg0) = 0;
|
||||
virtual CORBA::Boolean loadPage(const char * arg0) = 0;
|
||||
virtual void refreshPage(const char * arg0) = 0;
|
||||
virtual char * getPageText(const char * arg0) = 0;
|
||||
virtual CORBA::Long getPageStatus(const char * arg0) = 0;
|
||||
virtual CORBA::Long getPageAlterCount(const char * arg0) = 0;
|
||||
|
||||
// Skeleton Operations implemented automatically
|
||||
|
||||
static void _getAllPages(void *obj,
|
||||
CORBA::MarshalStream &strm,
|
||||
CORBA::Principal_ptr principal,
|
||||
const char *oper,
|
||||
void *priv_data);
|
||||
|
||||
static void _refreshAllPages(void *obj,
|
||||
CORBA::MarshalStream &strm,
|
||||
CORBA::Principal_ptr principal,
|
||||
const char *oper,
|
||||
void *priv_data);
|
||||
|
||||
static void _hasPage(void *obj,
|
||||
CORBA::MarshalStream &strm,
|
||||
CORBA::Principal_ptr principal,
|
||||
const char *oper,
|
||||
void *priv_data);
|
||||
|
||||
static void _loadPage(void *obj,
|
||||
CORBA::MarshalStream &strm,
|
||||
CORBA::Principal_ptr principal,
|
||||
const char *oper,
|
||||
void *priv_data);
|
||||
|
||||
static void _refreshPage(void *obj,
|
||||
CORBA::MarshalStream &strm,
|
||||
CORBA::Principal_ptr principal,
|
||||
const char *oper,
|
||||
void *priv_data);
|
||||
|
||||
static void _getPageText(void *obj,
|
||||
CORBA::MarshalStream &strm,
|
||||
CORBA::Principal_ptr principal,
|
||||
const char *oper,
|
||||
void *priv_data);
|
||||
|
||||
static void _getPageStatus(void *obj,
|
||||
CORBA::MarshalStream &strm,
|
||||
CORBA::Principal_ptr principal,
|
||||
const char *oper,
|
||||
void *priv_data);
|
||||
|
||||
static void _getPageAlterCount(void *obj,
|
||||
CORBA::MarshalStream &strm,
|
||||
CORBA::Principal_ptr principal,
|
||||
const char *oper,
|
||||
void *priv_data);
|
||||
|
||||
};
|
||||
template <class T>
|
||||
class _tie_ISourceTextProvider : public ISourceTextProvider
|
||||
{
|
||||
public:
|
||||
_tie_ISourceTextProvider(T& t, const char *obj_name=(char*)NULL) :
|
||||
ISourceTextProvider(obj_name),
|
||||
_ref(t) {
|
||||
_object_name(obj_name);
|
||||
}
|
||||
_tie_ISourceTextProvider(T& t, const char *service_name,
|
||||
const CORBA::ReferenceData& id)
|
||||
:_ref(t) {
|
||||
_service(service_name, id);
|
||||
}
|
||||
~_tie_ISourceTextProvider() {}
|
||||
ISourceTextProvider::sequence_of_string * getAllPages() {
|
||||
return _ref.getAllPages();
|
||||
}
|
||||
void refreshAllPages() {
|
||||
_ref.refreshAllPages();
|
||||
}
|
||||
CORBA::Boolean hasPage(const char * arg0) {
|
||||
return _ref.hasPage(
|
||||
arg0);
|
||||
}
|
||||
CORBA::Boolean loadPage(const char * arg0) {
|
||||
return _ref.loadPage(
|
||||
arg0);
|
||||
}
|
||||
void refreshPage(const char * arg0) {
|
||||
_ref.refreshPage(
|
||||
arg0);
|
||||
}
|
||||
char * getPageText(const char * arg0) {
|
||||
return _ref.getPageText(
|
||||
arg0);
|
||||
}
|
||||
CORBA::Long getPageStatus(const char * arg0) {
|
||||
return _ref.getPageStatus(
|
||||
arg0);
|
||||
}
|
||||
CORBA::Long getPageAlterCount(const char * arg0) {
|
||||
return _ref.getPageAlterCount(
|
||||
arg0);
|
||||
}
|
||||
|
||||
private:
|
||||
T& _ref;
|
||||
};
|
||||
class _sk_IJSErrorReporter : public IJSErrorReporter
|
||||
{
|
||||
protected:
|
||||
_sk_IJSErrorReporter(const char *object_name = (const char *)NULL);
|
||||
_sk_IJSErrorReporter(const char *service_name, const CORBA::ReferenceData& data);
|
||||
virtual ~_sk_IJSErrorReporter() {}
|
||||
public:
|
||||
static const CORBA::TypeInfo _skel_info;
|
||||
|
||||
// The following operations need to be implemented by the server.
|
||||
virtual CORBA::Long reportError(const char * arg0,
|
||||
const char * arg1,
|
||||
CORBA::Long arg2,
|
||||
const char * arg3,
|
||||
CORBA::Long arg4) = 0;
|
||||
|
||||
// Skeleton Operations implemented automatically
|
||||
|
||||
static void _reportError(void *obj,
|
||||
CORBA::MarshalStream &strm,
|
||||
CORBA::Principal_ptr principal,
|
||||
const char *oper,
|
||||
void *priv_data);
|
||||
|
||||
};
|
||||
template <class T>
|
||||
class _tie_IJSErrorReporter : public IJSErrorReporter
|
||||
{
|
||||
public:
|
||||
_tie_IJSErrorReporter(T& t, const char *obj_name=(char*)NULL) :
|
||||
IJSErrorReporter(obj_name),
|
||||
_ref(t) {
|
||||
_object_name(obj_name);
|
||||
}
|
||||
_tie_IJSErrorReporter(T& t, const char *service_name,
|
||||
const CORBA::ReferenceData& id)
|
||||
:_ref(t) {
|
||||
_service(service_name, id);
|
||||
}
|
||||
~_tie_IJSErrorReporter() {}
|
||||
CORBA::Long reportError(const char * arg0,
|
||||
const char * arg1,
|
||||
CORBA::Long arg2,
|
||||
const char * arg3,
|
||||
CORBA::Long arg4) {
|
||||
return _ref.reportError(
|
||||
arg0,
|
||||
arg1,
|
||||
arg2,
|
||||
arg3,
|
||||
arg4);
|
||||
}
|
||||
|
||||
private:
|
||||
T& _ref;
|
||||
};
|
||||
class _sk_IScriptHook : public IScriptHook
|
||||
{
|
||||
protected:
|
||||
_sk_IScriptHook(const char *object_name = (const char *)NULL);
|
||||
_sk_IScriptHook(const char *service_name, const CORBA::ReferenceData& data);
|
||||
virtual ~_sk_IScriptHook() {}
|
||||
public:
|
||||
static const CORBA::TypeInfo _skel_info;
|
||||
|
||||
// The following operations need to be implemented by the server.
|
||||
virtual void justLoadedScript(const IScript& arg0) = 0;
|
||||
virtual void aboutToUnloadScript(const IScript& arg0) = 0;
|
||||
|
||||
// Skeleton Operations implemented automatically
|
||||
|
||||
static void _justLoadedScript(void *obj,
|
||||
CORBA::MarshalStream &strm,
|
||||
CORBA::Principal_ptr principal,
|
||||
const char *oper,
|
||||
void *priv_data);
|
||||
|
||||
static void _aboutToUnloadScript(void *obj,
|
||||
CORBA::MarshalStream &strm,
|
||||
CORBA::Principal_ptr principal,
|
||||
const char *oper,
|
||||
void *priv_data);
|
||||
|
||||
};
|
||||
template <class T>
|
||||
class _tie_IScriptHook : public IScriptHook
|
||||
{
|
||||
public:
|
||||
_tie_IScriptHook(T& t, const char *obj_name=(char*)NULL) :
|
||||
IScriptHook(obj_name),
|
||||
_ref(t) {
|
||||
_object_name(obj_name);
|
||||
}
|
||||
_tie_IScriptHook(T& t, const char *service_name,
|
||||
const CORBA::ReferenceData& id)
|
||||
:_ref(t) {
|
||||
_service(service_name, id);
|
||||
}
|
||||
~_tie_IScriptHook() {}
|
||||
void justLoadedScript(const IScript& arg0) {
|
||||
_ref.justLoadedScript(
|
||||
arg0);
|
||||
}
|
||||
void aboutToUnloadScript(const IScript& arg0) {
|
||||
_ref.aboutToUnloadScript(
|
||||
arg0);
|
||||
}
|
||||
|
||||
private:
|
||||
T& _ref;
|
||||
};
|
||||
class _sk_IJSExecutionHook : public IJSExecutionHook
|
||||
{
|
||||
protected:
|
||||
_sk_IJSExecutionHook(const char *object_name = (const char *)NULL);
|
||||
_sk_IJSExecutionHook(const char *service_name, const CORBA::ReferenceData& data);
|
||||
virtual ~_sk_IJSExecutionHook() {}
|
||||
public:
|
||||
static const CORBA::TypeInfo _skel_info;
|
||||
|
||||
// The following operations need to be implemented by the server.
|
||||
virtual void aboutToExecute(const IJSThreadState& arg0,
|
||||
const IJSPC& arg1) = 0;
|
||||
|
||||
// Skeleton Operations implemented automatically
|
||||
|
||||
static void _aboutToExecute(void *obj,
|
||||
CORBA::MarshalStream &strm,
|
||||
CORBA::Principal_ptr principal,
|
||||
const char *oper,
|
||||
void *priv_data);
|
||||
|
||||
};
|
||||
template <class T>
|
||||
class _tie_IJSExecutionHook : public IJSExecutionHook
|
||||
{
|
||||
public:
|
||||
_tie_IJSExecutionHook(T& t, const char *obj_name=(char*)NULL) :
|
||||
IJSExecutionHook(obj_name),
|
||||
_ref(t) {
|
||||
_object_name(obj_name);
|
||||
}
|
||||
_tie_IJSExecutionHook(T& t, const char *service_name,
|
||||
const CORBA::ReferenceData& id)
|
||||
:_ref(t) {
|
||||
_service(service_name, id);
|
||||
}
|
||||
~_tie_IJSExecutionHook() {}
|
||||
void aboutToExecute(const IJSThreadState& arg0,
|
||||
const IJSPC& arg1) {
|
||||
_ref.aboutToExecute(
|
||||
arg0,
|
||||
arg1);
|
||||
}
|
||||
|
||||
private:
|
||||
T& _ref;
|
||||
};
|
||||
class _sk_IDebugController : public IDebugController
|
||||
{
|
||||
protected:
|
||||
_sk_IDebugController(const char *object_name = (const char *)NULL);
|
||||
_sk_IDebugController(const char *service_name, const CORBA::ReferenceData& data);
|
||||
virtual ~_sk_IDebugController() {}
|
||||
public:
|
||||
static const CORBA::TypeInfo _skel_info;
|
||||
|
||||
// The following operations need to be implemented by the server.
|
||||
virtual CORBA::Long getMajorVersion() = 0;
|
||||
virtual CORBA::Long getMinorVersion() = 0;
|
||||
virtual IJSErrorReporter_ptr setErrorReporter(IJSErrorReporter_ptr arg0) = 0;
|
||||
virtual IJSErrorReporter_ptr getErrorReporter() = 0;
|
||||
virtual IScriptHook_ptr setScriptHook(IScriptHook_ptr arg0) = 0;
|
||||
virtual IScriptHook_ptr getScriptHook() = 0;
|
||||
virtual IJSPC * getClosestPC(const IScript& arg0,
|
||||
CORBA::Long arg1) = 0;
|
||||
virtual IJSSourceLocation * getSourceLocation(const IJSPC& arg0) = 0;
|
||||
virtual IJSExecutionHook_ptr setInterruptHook(IJSExecutionHook_ptr arg0) = 0;
|
||||
virtual IJSExecutionHook_ptr getInterruptHook() = 0;
|
||||
virtual IJSExecutionHook_ptr setDebugBreakHook(IJSExecutionHook_ptr arg0) = 0;
|
||||
virtual IJSExecutionHook_ptr getDebugBreakHook() = 0;
|
||||
virtual IJSExecutionHook_ptr setInstructionHook(IJSExecutionHook_ptr arg0,
|
||||
const IJSPC& arg1) = 0;
|
||||
virtual IJSExecutionHook_ptr getInstructionHook(const IJSPC& arg0) = 0;
|
||||
virtual void setThreadContinueState(CORBA::Long arg0,
|
||||
CORBA::Long arg1) = 0;
|
||||
virtual void setThreadReturnValue(CORBA::Long arg0,
|
||||
const char * arg1) = 0;
|
||||
virtual void sendInterrupt() = 0;
|
||||
virtual void sendInterruptStepInto(CORBA::Long arg0) = 0;
|
||||
virtual void sendInterruptStepOver(CORBA::Long arg0) = 0;
|
||||
virtual void sendInterruptStepOut(CORBA::Long arg0) = 0;
|
||||
virtual void reinstateStepper(CORBA::Long arg0) = 0;
|
||||
virtual IExecResult * executeScriptInStackFrame(CORBA::Long arg0,
|
||||
const IJSStackFrameInfo& arg1,
|
||||
const char * arg2,
|
||||
const char * arg3,
|
||||
CORBA::Long arg4) = 0;
|
||||
virtual CORBA::Boolean isRunningHook(CORBA::Long arg0) = 0;
|
||||
virtual CORBA::Boolean isWaitingForResume(CORBA::Long arg0) = 0;
|
||||
virtual void leaveThreadSuspended(CORBA::Long arg0) = 0;
|
||||
virtual void resumeThread(CORBA::Long arg0) = 0;
|
||||
virtual void iterateScripts(IScriptHook_ptr arg0) = 0;
|
||||
|
||||
// Skeleton Operations implemented automatically
|
||||
|
||||
static void _getMajorVersion(void *obj,
|
||||
CORBA::MarshalStream &strm,
|
||||
CORBA::Principal_ptr principal,
|
||||
const char *oper,
|
||||
void *priv_data);
|
||||
|
||||
static void _getMinorVersion(void *obj,
|
||||
CORBA::MarshalStream &strm,
|
||||
CORBA::Principal_ptr principal,
|
||||
const char *oper,
|
||||
void *priv_data);
|
||||
|
||||
static void _setErrorReporter(void *obj,
|
||||
CORBA::MarshalStream &strm,
|
||||
CORBA::Principal_ptr principal,
|
||||
const char *oper,
|
||||
void *priv_data);
|
||||
|
||||
static void _getErrorReporter(void *obj,
|
||||
CORBA::MarshalStream &strm,
|
||||
CORBA::Principal_ptr principal,
|
||||
const char *oper,
|
||||
void *priv_data);
|
||||
|
||||
static void _setScriptHook(void *obj,
|
||||
CORBA::MarshalStream &strm,
|
||||
CORBA::Principal_ptr principal,
|
||||
const char *oper,
|
||||
void *priv_data);
|
||||
|
||||
static void _getScriptHook(void *obj,
|
||||
CORBA::MarshalStream &strm,
|
||||
CORBA::Principal_ptr principal,
|
||||
const char *oper,
|
||||
void *priv_data);
|
||||
|
||||
static void _getClosestPC(void *obj,
|
||||
CORBA::MarshalStream &strm,
|
||||
CORBA::Principal_ptr principal,
|
||||
const char *oper,
|
||||
void *priv_data);
|
||||
|
||||
static void _getSourceLocation(void *obj,
|
||||
CORBA::MarshalStream &strm,
|
||||
CORBA::Principal_ptr principal,
|
||||
const char *oper,
|
||||
void *priv_data);
|
||||
|
||||
static void _setInterruptHook(void *obj,
|
||||
CORBA::MarshalStream &strm,
|
||||
CORBA::Principal_ptr principal,
|
||||
const char *oper,
|
||||
void *priv_data);
|
||||
|
||||
static void _getInterruptHook(void *obj,
|
||||
CORBA::MarshalStream &strm,
|
||||
CORBA::Principal_ptr principal,
|
||||
const char *oper,
|
||||
void *priv_data);
|
||||
|
||||
static void _setDebugBreakHook(void *obj,
|
||||
CORBA::MarshalStream &strm,
|
||||
CORBA::Principal_ptr principal,
|
||||
const char *oper,
|
||||
void *priv_data);
|
||||
|
||||
static void _getDebugBreakHook(void *obj,
|
||||
CORBA::MarshalStream &strm,
|
||||
CORBA::Principal_ptr principal,
|
||||
const char *oper,
|
||||
void *priv_data);
|
||||
|
||||
static void _setInstructionHook(void *obj,
|
||||
CORBA::MarshalStream &strm,
|
||||
CORBA::Principal_ptr principal,
|
||||
const char *oper,
|
||||
void *priv_data);
|
||||
|
||||
static void _getInstructionHook(void *obj,
|
||||
CORBA::MarshalStream &strm,
|
||||
CORBA::Principal_ptr principal,
|
||||
const char *oper,
|
||||
void *priv_data);
|
||||
|
||||
static void _setThreadContinueState(void *obj,
|
||||
CORBA::MarshalStream &strm,
|
||||
CORBA::Principal_ptr principal,
|
||||
const char *oper,
|
||||
void *priv_data);
|
||||
|
||||
static void _setThreadReturnValue(void *obj,
|
||||
CORBA::MarshalStream &strm,
|
||||
CORBA::Principal_ptr principal,
|
||||
const char *oper,
|
||||
void *priv_data);
|
||||
|
||||
static void _sendInterrupt(void *obj,
|
||||
CORBA::MarshalStream &strm,
|
||||
CORBA::Principal_ptr principal,
|
||||
const char *oper,
|
||||
void *priv_data);
|
||||
|
||||
static void _sendInterruptStepInto(void *obj,
|
||||
CORBA::MarshalStream &strm,
|
||||
CORBA::Principal_ptr principal,
|
||||
const char *oper,
|
||||
void *priv_data);
|
||||
|
||||
static void _sendInterruptStepOver(void *obj,
|
||||
CORBA::MarshalStream &strm,
|
||||
CORBA::Principal_ptr principal,
|
||||
const char *oper,
|
||||
void *priv_data);
|
||||
|
||||
static void _sendInterruptStepOut(void *obj,
|
||||
CORBA::MarshalStream &strm,
|
||||
CORBA::Principal_ptr principal,
|
||||
const char *oper,
|
||||
void *priv_data);
|
||||
|
||||
static void _reinstateStepper(void *obj,
|
||||
CORBA::MarshalStream &strm,
|
||||
CORBA::Principal_ptr principal,
|
||||
const char *oper,
|
||||
void *priv_data);
|
||||
|
||||
static void _executeScriptInStackFrame(void *obj,
|
||||
CORBA::MarshalStream &strm,
|
||||
CORBA::Principal_ptr principal,
|
||||
const char *oper,
|
||||
void *priv_data);
|
||||
|
||||
static void _isRunningHook(void *obj,
|
||||
CORBA::MarshalStream &strm,
|
||||
CORBA::Principal_ptr principal,
|
||||
const char *oper,
|
||||
void *priv_data);
|
||||
|
||||
static void _isWaitingForResume(void *obj,
|
||||
CORBA::MarshalStream &strm,
|
||||
CORBA::Principal_ptr principal,
|
||||
const char *oper,
|
||||
void *priv_data);
|
||||
|
||||
static void _leaveThreadSuspended(void *obj,
|
||||
CORBA::MarshalStream &strm,
|
||||
CORBA::Principal_ptr principal,
|
||||
const char *oper,
|
||||
void *priv_data);
|
||||
|
||||
static void _resumeThread(void *obj,
|
||||
CORBA::MarshalStream &strm,
|
||||
CORBA::Principal_ptr principal,
|
||||
const char *oper,
|
||||
void *priv_data);
|
||||
|
||||
static void _iterateScripts(void *obj,
|
||||
CORBA::MarshalStream &strm,
|
||||
CORBA::Principal_ptr principal,
|
||||
const char *oper,
|
||||
void *priv_data);
|
||||
|
||||
};
|
||||
template <class T>
|
||||
class _tie_IDebugController : public IDebugController
|
||||
{
|
||||
public:
|
||||
_tie_IDebugController(T& t, const char *obj_name=(char*)NULL) :
|
||||
IDebugController(obj_name),
|
||||
_ref(t) {
|
||||
_object_name(obj_name);
|
||||
}
|
||||
_tie_IDebugController(T& t, const char *service_name,
|
||||
const CORBA::ReferenceData& id)
|
||||
:_ref(t) {
|
||||
_service(service_name, id);
|
||||
}
|
||||
~_tie_IDebugController() {}
|
||||
CORBA::Long getMajorVersion() {
|
||||
return _ref.getMajorVersion();
|
||||
}
|
||||
CORBA::Long getMinorVersion() {
|
||||
return _ref.getMinorVersion();
|
||||
}
|
||||
IJSErrorReporter_ptr setErrorReporter(IJSErrorReporter_ptr arg0) {
|
||||
return _ref.setErrorReporter(
|
||||
arg0);
|
||||
}
|
||||
IJSErrorReporter_ptr getErrorReporter() {
|
||||
return _ref.getErrorReporter();
|
||||
}
|
||||
IScriptHook_ptr setScriptHook(IScriptHook_ptr arg0) {
|
||||
return _ref.setScriptHook(
|
||||
arg0);
|
||||
}
|
||||
IScriptHook_ptr getScriptHook() {
|
||||
return _ref.getScriptHook();
|
||||
}
|
||||
IJSPC * getClosestPC(const IScript& arg0,
|
||||
CORBA::Long arg1) {
|
||||
return _ref.getClosestPC(
|
||||
arg0,
|
||||
arg1);
|
||||
}
|
||||
IJSSourceLocation * getSourceLocation(const IJSPC& arg0) {
|
||||
return _ref.getSourceLocation(
|
||||
arg0);
|
||||
}
|
||||
IJSExecutionHook_ptr setInterruptHook(IJSExecutionHook_ptr arg0) {
|
||||
return _ref.setInterruptHook(
|
||||
arg0);
|
||||
}
|
||||
IJSExecutionHook_ptr getInterruptHook() {
|
||||
return _ref.getInterruptHook();
|
||||
}
|
||||
IJSExecutionHook_ptr setDebugBreakHook(IJSExecutionHook_ptr arg0) {
|
||||
return _ref.setDebugBreakHook(
|
||||
arg0);
|
||||
}
|
||||
IJSExecutionHook_ptr getDebugBreakHook() {
|
||||
return _ref.getDebugBreakHook();
|
||||
}
|
||||
IJSExecutionHook_ptr setInstructionHook(IJSExecutionHook_ptr arg0,
|
||||
const IJSPC& arg1) {
|
||||
return _ref.setInstructionHook(
|
||||
arg0,
|
||||
arg1);
|
||||
}
|
||||
IJSExecutionHook_ptr getInstructionHook(const IJSPC& arg0) {
|
||||
return _ref.getInstructionHook(
|
||||
arg0);
|
||||
}
|
||||
void setThreadContinueState(CORBA::Long arg0,
|
||||
CORBA::Long arg1) {
|
||||
_ref.setThreadContinueState(
|
||||
arg0,
|
||||
arg1);
|
||||
}
|
||||
void setThreadReturnValue(CORBA::Long arg0,
|
||||
const char * arg1) {
|
||||
_ref.setThreadReturnValue(
|
||||
arg0,
|
||||
arg1);
|
||||
}
|
||||
void sendInterrupt() {
|
||||
_ref.sendInterrupt();
|
||||
}
|
||||
void sendInterruptStepInto(CORBA::Long arg0) {
|
||||
_ref.sendInterruptStepInto(
|
||||
arg0);
|
||||
}
|
||||
void sendInterruptStepOver(CORBA::Long arg0) {
|
||||
_ref.sendInterruptStepOver(
|
||||
arg0);
|
||||
}
|
||||
void sendInterruptStepOut(CORBA::Long arg0) {
|
||||
_ref.sendInterruptStepOut(
|
||||
arg0);
|
||||
}
|
||||
void reinstateStepper(CORBA::Long arg0) {
|
||||
_ref.reinstateStepper(
|
||||
arg0);
|
||||
}
|
||||
IExecResult * executeScriptInStackFrame(CORBA::Long arg0,
|
||||
const IJSStackFrameInfo& arg1,
|
||||
const char * arg2,
|
||||
const char * arg3,
|
||||
CORBA::Long arg4) {
|
||||
return _ref.executeScriptInStackFrame(
|
||||
arg0,
|
||||
arg1,
|
||||
arg2,
|
||||
arg3,
|
||||
arg4);
|
||||
}
|
||||
CORBA::Boolean isRunningHook(CORBA::Long arg0) {
|
||||
return _ref.isRunningHook(
|
||||
arg0);
|
||||
}
|
||||
CORBA::Boolean isWaitingForResume(CORBA::Long arg0) {
|
||||
return _ref.isWaitingForResume(
|
||||
arg0);
|
||||
}
|
||||
void leaveThreadSuspended(CORBA::Long arg0) {
|
||||
_ref.leaveThreadSuspended(
|
||||
arg0);
|
||||
}
|
||||
void resumeThread(CORBA::Long arg0) {
|
||||
_ref.resumeThread(
|
||||
arg0);
|
||||
}
|
||||
void iterateScripts(IScriptHook_ptr arg0) {
|
||||
_ref.iterateScripts(
|
||||
arg0);
|
||||
}
|
||||
|
||||
private:
|
||||
T& _ref;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
2766
mozilla/js/jsd/corba/jsd_iiop.cpp
Normal file
2766
mozilla/js/jsd/corba/jsd_iiop.cpp
Normal file
File diff suppressed because it is too large
Load Diff
68
mozilla/js/jsd/corba/src/IDebugController.java
Normal file
68
mozilla/js/jsd/corba/src/IDebugController.java
Normal file
@@ -0,0 +1,68 @@
|
||||
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
|
||||
*
|
||||
* The contents of this file are subject to the Netscape Public License
|
||||
* Version 1.0 (the "NPL"); you may not use this file except in
|
||||
* compliance with the NPL. You may obtain a copy of the NPL at
|
||||
* http://www.mozilla.org/NPL/
|
||||
*
|
||||
* Software distributed under the NPL is distributed on an "AS IS" basis,
|
||||
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
|
||||
* for the specific language governing rights and limitations under the
|
||||
* NPL.
|
||||
*
|
||||
* The Initial Developer of this code under the NPL is Netscape
|
||||
* Communications Corporation. Portions created by Netscape are
|
||||
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
|
||||
* Reserved.
|
||||
*/
|
||||
|
||||
public interface IDebugController extends org.omg.CORBA.Object
|
||||
{
|
||||
public int getMajorVersion();
|
||||
public int getMinorVersion();
|
||||
|
||||
public IJSErrorReporter setErrorReporter(IJSErrorReporter er);
|
||||
public IJSErrorReporter getErrorReporter();
|
||||
|
||||
public IScriptHook setScriptHook(IScriptHook h);
|
||||
public IScriptHook getScriptHook();
|
||||
|
||||
public IJSPC getClosestPC(IScript script, int line);
|
||||
|
||||
public IJSSourceLocation getSourceLocation(IJSPC pc);
|
||||
|
||||
public IJSExecutionHook setInterruptHook(IJSExecutionHook hook);
|
||||
public IJSExecutionHook getInterruptHook();
|
||||
|
||||
public IJSExecutionHook setDebugBreakHook(IJSExecutionHook hook);
|
||||
public IJSExecutionHook getDebugBreakHook();
|
||||
|
||||
public IJSExecutionHook setInstructionHook(IJSExecutionHook hook, IJSPC pc);
|
||||
public IJSExecutionHook getInstructionHook(IJSPC pc);
|
||||
|
||||
public void setThreadContinueState(int threadID, int state);
|
||||
public void setThreadReturnValue(int threadID, String value);
|
||||
|
||||
public void sendInterrupt();
|
||||
|
||||
public void sendInterruptStepInto(int threadID);
|
||||
public void sendInterruptStepOver(int threadID);
|
||||
public void sendInterruptStepOut(int threadID);
|
||||
|
||||
public void reinstateStepper(int threadID);
|
||||
|
||||
|
||||
public IExecResult executeScriptInStackFrame(int threadID,
|
||||
IJSStackFrameInfo frame,
|
||||
String text,
|
||||
String filename,
|
||||
int lineno);
|
||||
|
||||
public boolean isRunningHook(int threadID);
|
||||
public boolean isWaitingForResume(int threadID);
|
||||
public void leaveThreadSuspended(int threadID);
|
||||
public void resumeThread(int threadID);
|
||||
|
||||
public void iterateScripts(IScriptHook h);
|
||||
}
|
||||
|
||||
29
mozilla/js/jsd/corba/src/IExecResult.java
Normal file
29
mozilla/js/jsd/corba/src/IExecResult.java
Normal file
@@ -0,0 +1,29 @@
|
||||
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
|
||||
*
|
||||
* The contents of this file are subject to the Netscape Public License
|
||||
* Version 1.0 (the "NPL"); you may not use this file except in
|
||||
* compliance with the NPL. You may obtain a copy of the NPL at
|
||||
* http://www.mozilla.org/NPL/
|
||||
*
|
||||
* Software distributed under the NPL is distributed on an "AS IS" basis,
|
||||
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
|
||||
* for the specific language governing rights and limitations under the
|
||||
* NPL.
|
||||
*
|
||||
* The Initial Developer of this code under the NPL is Netscape
|
||||
* Communications Corporation. Portions created by Netscape are
|
||||
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
|
||||
* Reserved.
|
||||
*/
|
||||
|
||||
public final class IExecResult
|
||||
{
|
||||
public String result;
|
||||
public boolean errorOccured;
|
||||
public String errorMessage;
|
||||
public String errorFilename;
|
||||
public int errorLineNumber;
|
||||
public String errorLineBuffer;
|
||||
public int errorTokenOffset;
|
||||
}
|
||||
|
||||
32
mozilla/js/jsd/corba/src/IJSErrorReporter.java
Normal file
32
mozilla/js/jsd/corba/src/IJSErrorReporter.java
Normal file
@@ -0,0 +1,32 @@
|
||||
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
|
||||
*
|
||||
* The contents of this file are subject to the Netscape Public License
|
||||
* Version 1.0 (the "NPL"); you may not use this file except in
|
||||
* compliance with the NPL. You may obtain a copy of the NPL at
|
||||
* http://www.mozilla.org/NPL/
|
||||
*
|
||||
* Software distributed under the NPL is distributed on an "AS IS" basis,
|
||||
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
|
||||
* for the specific language governing rights and limitations under the
|
||||
* NPL.
|
||||
*
|
||||
* The Initial Developer of this code under the NPL is Netscape
|
||||
* Communications Corporation. Portions created by Netscape are
|
||||
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
|
||||
* Reserved.
|
||||
*/
|
||||
|
||||
public interface IJSErrorReporter extends org.omg.CORBA.Object
|
||||
{
|
||||
/* keep these in sync with the numbers in jsdebug.h */
|
||||
public static final int PASS_ALONG = 0;
|
||||
public static final int RETURN = 1;
|
||||
public static final int DEBUG = 2;
|
||||
|
||||
public int reportError( String msg,
|
||||
String filename,
|
||||
int lineno,
|
||||
String linebuf,
|
||||
int tokenOffset );
|
||||
}
|
||||
|
||||
22
mozilla/js/jsd/corba/src/IJSExecutionHook.java
Normal file
22
mozilla/js/jsd/corba/src/IJSExecutionHook.java
Normal file
@@ -0,0 +1,22 @@
|
||||
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
|
||||
*
|
||||
* The contents of this file are subject to the Netscape Public License
|
||||
* Version 1.0 (the "NPL"); you may not use this file except in
|
||||
* compliance with the NPL. You may obtain a copy of the NPL at
|
||||
* http://www.mozilla.org/NPL/
|
||||
*
|
||||
* Software distributed under the NPL is distributed on an "AS IS" basis,
|
||||
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
|
||||
* for the specific language governing rights and limitations under the
|
||||
* NPL.
|
||||
*
|
||||
* The Initial Developer of this code under the NPL is Netscape
|
||||
* Communications Corporation. Portions created by Netscape are
|
||||
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
|
||||
* Reserved.
|
||||
*/
|
||||
|
||||
public interface IJSExecutionHook extends org.omg.CORBA.Object
|
||||
{
|
||||
public void aboutToExecute(IJSThreadState debug, IJSPC pc);
|
||||
}
|
||||
24
mozilla/js/jsd/corba/src/IJSPC.java
Normal file
24
mozilla/js/jsd/corba/src/IJSPC.java
Normal file
@@ -0,0 +1,24 @@
|
||||
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
|
||||
*
|
||||
* The contents of this file are subject to the Netscape Public License
|
||||
* Version 1.0 (the "NPL"); you may not use this file except in
|
||||
* compliance with the NPL. You may obtain a copy of the NPL at
|
||||
* http://www.mozilla.org/NPL/
|
||||
*
|
||||
* Software distributed under the NPL is distributed on an "AS IS" basis,
|
||||
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
|
||||
* for the specific language governing rights and limitations under the
|
||||
* NPL.
|
||||
*
|
||||
* The Initial Developer of this code under the NPL is Netscape
|
||||
* Communications Corporation. Portions created by Netscape are
|
||||
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
|
||||
* Reserved.
|
||||
*/
|
||||
|
||||
public final class IJSPC
|
||||
{
|
||||
public IScript script;
|
||||
public int offset;
|
||||
}
|
||||
|
||||
23
mozilla/js/jsd/corba/src/IJSSourceLocation.java
Normal file
23
mozilla/js/jsd/corba/src/IJSSourceLocation.java
Normal file
@@ -0,0 +1,23 @@
|
||||
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
|
||||
*
|
||||
* The contents of this file are subject to the Netscape Public License
|
||||
* Version 1.0 (the "NPL"); you may not use this file except in
|
||||
* compliance with the NPL. You may obtain a copy of the NPL at
|
||||
* http://www.mozilla.org/NPL/
|
||||
*
|
||||
* Software distributed under the NPL is distributed on an "AS IS" basis,
|
||||
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
|
||||
* for the specific language governing rights and limitations under the
|
||||
* NPL.
|
||||
*
|
||||
* The Initial Developer of this code under the NPL is Netscape
|
||||
* Communications Corporation. Portions created by Netscape are
|
||||
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
|
||||
* Reserved.
|
||||
*/
|
||||
|
||||
public final class IJSSourceLocation
|
||||
{
|
||||
public int line;
|
||||
public IJSPC pc;
|
||||
}
|
||||
23
mozilla/js/jsd/corba/src/IJSStackFrameInfo.java
Normal file
23
mozilla/js/jsd/corba/src/IJSStackFrameInfo.java
Normal file
@@ -0,0 +1,23 @@
|
||||
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
|
||||
*
|
||||
* The contents of this file are subject to the Netscape Public License
|
||||
* Version 1.0 (the "NPL"); you may not use this file except in
|
||||
* compliance with the NPL. You may obtain a copy of the NPL at
|
||||
* http://www.mozilla.org/NPL/
|
||||
*
|
||||
* Software distributed under the NPL is distributed on an "AS IS" basis,
|
||||
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
|
||||
* for the specific language governing rights and limitations under the
|
||||
* NPL.
|
||||
*
|
||||
* The Initial Developer of this code under the NPL is Netscape
|
||||
* Communications Corporation. Portions created by Netscape are
|
||||
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
|
||||
* Reserved.
|
||||
*/
|
||||
|
||||
public final class IJSStackFrameInfo
|
||||
{
|
||||
public IJSPC pc;
|
||||
public int jsdframe;
|
||||
}
|
||||
65
mozilla/js/jsd/corba/src/IJSThreadState.java
Normal file
65
mozilla/js/jsd/corba/src/IJSThreadState.java
Normal file
@@ -0,0 +1,65 @@
|
||||
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
|
||||
*
|
||||
* The contents of this file are subject to the Netscape Public License
|
||||
* Version 1.0 (the "NPL"); you may not use this file except in
|
||||
* compliance with the NPL. You may obtain a copy of the NPL at
|
||||
* http://www.mozilla.org/NPL/
|
||||
*
|
||||
* Software distributed under the NPL is distributed on an "AS IS" basis,
|
||||
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
|
||||
* for the specific language governing rights and limitations under the
|
||||
* NPL.
|
||||
*
|
||||
* The Initial Developer of this code under the NPL is Netscape
|
||||
* Communications Corporation. Portions created by Netscape are
|
||||
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
|
||||
* Reserved.
|
||||
*/
|
||||
|
||||
public final class IJSThreadState
|
||||
{
|
||||
/**
|
||||
* partial list of thread states from sun.debug.ThreadInfo.
|
||||
* XXX some of these don't apply.
|
||||
*/
|
||||
public final static int THR_STATUS_UNKNOWN = 0x01;
|
||||
public final static int THR_STATUS_ZOMBIE = 0x02;
|
||||
public final static int THR_STATUS_RUNNING = 0x03;
|
||||
public final static int THR_STATUS_SLEEPING = 0x04;
|
||||
public final static int THR_STATUS_MONWAIT = 0x05;
|
||||
public final static int THR_STATUS_CONDWAIT = 0x06;
|
||||
public final static int THR_STATUS_SUSPENDED = 0x07;
|
||||
public final static int THR_STATUS_BREAK = 0x08;
|
||||
|
||||
|
||||
public final static int DEBUG_STATE_DEAD = 0x01;
|
||||
|
||||
/**
|
||||
* if the continueState is RUN, the thread will
|
||||
* proceed to the next program counter value when it resumes.
|
||||
*/
|
||||
public final static int DEBUG_STATE_RUN = 0x02;
|
||||
|
||||
/**
|
||||
* if the continueState is RETURN, the thread will
|
||||
* return from the current method with the value in getReturnValue()
|
||||
* when it resumes.
|
||||
*/
|
||||
public final static int DEBUG_STATE_RETURN = 0x03;
|
||||
|
||||
/**
|
||||
* if the continueState is THROW, the thread will
|
||||
* throw an exception (accessible with getException()) when it
|
||||
* resumes.
|
||||
*/
|
||||
public final static int DEBUG_STATE_THROW = 0x04;
|
||||
|
||||
|
||||
public IJSStackFrameInfo[] stack;
|
||||
public int continueState;
|
||||
public String returnValue;
|
||||
public int status;
|
||||
public int jsdthreadstate;
|
||||
public int id; // used for referencing this object
|
||||
}
|
||||
|
||||
28
mozilla/js/jsd/corba/src/IScript.java
Normal file
28
mozilla/js/jsd/corba/src/IScript.java
Normal file
@@ -0,0 +1,28 @@
|
||||
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
|
||||
*
|
||||
* The contents of this file are subject to the Netscape Public License
|
||||
* Version 1.0 (the "NPL"); you may not use this file except in
|
||||
* compliance with the NPL. You may obtain a copy of the NPL at
|
||||
* http://www.mozilla.org/NPL/
|
||||
*
|
||||
* Software distributed under the NPL is distributed on an "AS IS" basis,
|
||||
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
|
||||
* for the specific language governing rights and limitations under the
|
||||
* NPL.
|
||||
*
|
||||
* The Initial Developer of this code under the NPL is Netscape
|
||||
* Communications Corporation. Portions created by Netscape are
|
||||
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
|
||||
* Reserved.
|
||||
*/
|
||||
|
||||
public final class IScript
|
||||
{
|
||||
public String url;
|
||||
public String funname;
|
||||
public int base;
|
||||
public int extent;
|
||||
public int jsdscript;
|
||||
public IScriptSection[] sections;
|
||||
}
|
||||
|
||||
24
mozilla/js/jsd/corba/src/IScriptHook.java
Normal file
24
mozilla/js/jsd/corba/src/IScriptHook.java
Normal file
@@ -0,0 +1,24 @@
|
||||
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
|
||||
*
|
||||
* The contents of this file are subject to the Netscape Public License
|
||||
* Version 1.0 (the "NPL"); you may not use this file except in
|
||||
* compliance with the NPL. You may obtain a copy of the NPL at
|
||||
* http://www.mozilla.org/NPL/
|
||||
*
|
||||
* Software distributed under the NPL is distributed on an "AS IS" basis,
|
||||
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
|
||||
* for the specific language governing rights and limitations under the
|
||||
* NPL.
|
||||
*
|
||||
* The Initial Developer of this code under the NPL is Netscape
|
||||
* Communications Corporation. Portions created by Netscape are
|
||||
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
|
||||
* Reserved.
|
||||
*/
|
||||
|
||||
public interface IScriptHook extends org.omg.CORBA.Object
|
||||
{
|
||||
public void justLoadedScript(IScript script);
|
||||
public void aboutToUnloadScript(IScript script);
|
||||
}
|
||||
|
||||
23
mozilla/js/jsd/corba/src/IScriptSection.java
Normal file
23
mozilla/js/jsd/corba/src/IScriptSection.java
Normal file
@@ -0,0 +1,23 @@
|
||||
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
|
||||
*
|
||||
* The contents of this file are subject to the Netscape Public License
|
||||
* Version 1.0 (the "NPL"); you may not use this file except in
|
||||
* compliance with the NPL. You may obtain a copy of the NPL at
|
||||
* http://www.mozilla.org/NPL/
|
||||
*
|
||||
* Software distributed under the NPL is distributed on an "AS IS" basis,
|
||||
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
|
||||
* for the specific language governing rights and limitations under the
|
||||
* NPL.
|
||||
*
|
||||
* The Initial Developer of this code under the NPL is Netscape
|
||||
* Communications Corporation. Portions created by Netscape are
|
||||
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
|
||||
* Reserved.
|
||||
*/
|
||||
|
||||
public final class IScriptSection
|
||||
{
|
||||
public int base;
|
||||
public int extent;
|
||||
}
|
||||
37
mozilla/js/jsd/corba/src/ISourceTextProvider.java
Normal file
37
mozilla/js/jsd/corba/src/ISourceTextProvider.java
Normal file
@@ -0,0 +1,37 @@
|
||||
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
|
||||
*
|
||||
* The contents of this file are subject to the Netscape Public License
|
||||
* Version 1.0 (the "NPL"); you may not use this file except in
|
||||
* compliance with the NPL. You may obtain a copy of the NPL at
|
||||
* http://www.mozilla.org/NPL/
|
||||
*
|
||||
* Software distributed under the NPL is distributed on an "AS IS" basis,
|
||||
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
|
||||
* for the specific language governing rights and limitations under the
|
||||
* NPL.
|
||||
*
|
||||
* The Initial Developer of this code under the NPL is Netscape
|
||||
* Communications Corporation. Portions created by Netscape are
|
||||
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
|
||||
* Reserved.
|
||||
*/
|
||||
|
||||
public interface ISourceTextProvider extends org.omg.CORBA.Object
|
||||
{
|
||||
/* these coorespond to jsdebug.h values - change in both places if anywhere */
|
||||
public static final int INITED = 0;
|
||||
public static final int FULL = 1;
|
||||
public static final int PARTIAL = 2;
|
||||
public static final int ABORTED = 3;
|
||||
public static final int FAILED = 4;
|
||||
public static final int CLEARED = 5;
|
||||
|
||||
public String[] getAllPages();
|
||||
public void refreshAllPages();
|
||||
public boolean hasPage(String url);
|
||||
public boolean loadPage(String url);
|
||||
public void refreshPage(String url);
|
||||
public String getPageText(String url);
|
||||
public int getPageStatus(String url);
|
||||
public int getPageAlterCount(String url);
|
||||
}
|
||||
25
mozilla/js/jsd/corba/src/README
Normal file
25
mozilla/js/jsd/corba/src/README
Normal file
@@ -0,0 +1,25 @@
|
||||
/* jband - 09/09/97 - readme for the dreaded js/jsd/corba system */
|
||||
|
||||
This stuff in js/jsd/corba/src is used to generate corba source in IDL, Java,
|
||||
and C++. The raw source is all Java. The 'makefile' is mk.bat which is currently
|
||||
expected to run only on jband's NT box. All of the important output of this
|
||||
process should be checked in to cvs. mk.bat is only needed to regenerate new
|
||||
sources as the interfaces change. Those new sources should then be committed to
|
||||
cvs.
|
||||
|
||||
The main scheme here is to use the Java code in js/jsd/corba/src as idl.
|
||||
mk.bat uses java2idl, orbeline, and idl2java to generate IDL and stubs and
|
||||
skeletons in C++ and Java. There are a few hacks to deal with limitations of
|
||||
these tools.
|
||||
|
||||
The C++ output is copied to js/jsd/corba.
|
||||
The Java output is copied to
|
||||
js/jsdj/classes/com/netscape/jsdebugging/remote/corba.
|
||||
|
||||
Note that the files:
|
||||
|
||||
StringReciever.java
|
||||
TestInterface.java
|
||||
Thing.java
|
||||
|
||||
are used only in test programs and are not part of the product
|
||||
24
mozilla/js/jsd/corba/src/StringReciever.java
Normal file
24
mozilla/js/jsd/corba/src/StringReciever.java
Normal file
@@ -0,0 +1,24 @@
|
||||
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
|
||||
*
|
||||
* The contents of this file are subject to the Netscape Public License
|
||||
* Version 1.0 (the "NPL"); you may not use this file except in
|
||||
* compliance with the NPL. You may obtain a copy of the NPL at
|
||||
* http://www.mozilla.org/NPL/
|
||||
*
|
||||
* Software distributed under the NPL is distributed on an "AS IS" basis,
|
||||
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
|
||||
* for the specific language governing rights and limitations under the
|
||||
* NPL.
|
||||
*
|
||||
* The Initial Developer of this code under the NPL is Netscape
|
||||
* Communications Corporation. Portions created by Netscape are
|
||||
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
|
||||
* Reserved.
|
||||
*/
|
||||
|
||||
public interface StringReciever extends org.omg.CORBA.Object
|
||||
{
|
||||
public void recieveString(String s);
|
||||
public void bounce(int count);
|
||||
}
|
||||
|
||||
26
mozilla/js/jsd/corba/src/TestInterface.java
Normal file
26
mozilla/js/jsd/corba/src/TestInterface.java
Normal file
@@ -0,0 +1,26 @@
|
||||
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
|
||||
*
|
||||
* The contents of this file are subject to the Netscape Public License
|
||||
* Version 1.0 (the "NPL"); you may not use this file except in
|
||||
* compliance with the NPL. You may obtain a copy of the NPL at
|
||||
* http://www.mozilla.org/NPL/
|
||||
*
|
||||
* Software distributed under the NPL is distributed on an "AS IS" basis,
|
||||
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
|
||||
* for the specific language governing rights and limitations under the
|
||||
* NPL.
|
||||
*
|
||||
* The Initial Developer of this code under the NPL is Netscape
|
||||
* Communications Corporation. Portions created by Netscape are
|
||||
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
|
||||
* Reserved.
|
||||
*/
|
||||
|
||||
public interface TestInterface extends org.omg.CORBA.Object
|
||||
{
|
||||
public String getFirstAppInList();
|
||||
public void getAppNames( StringReciever sr );
|
||||
public Thing[] getThings();
|
||||
public void callBounce( StringReciever sr, int count );
|
||||
}
|
||||
|
||||
24
mozilla/js/jsd/corba/src/Thing.java
Normal file
24
mozilla/js/jsd/corba/src/Thing.java
Normal file
@@ -0,0 +1,24 @@
|
||||
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
|
||||
*
|
||||
* The contents of this file are subject to the Netscape Public License
|
||||
* Version 1.0 (the "NPL"); you may not use this file except in
|
||||
* compliance with the NPL. You may obtain a copy of the NPL at
|
||||
* http://www.mozilla.org/NPL/
|
||||
*
|
||||
* Software distributed under the NPL is distributed on an "AS IS" basis,
|
||||
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
|
||||
* for the specific language governing rights and limitations under the
|
||||
* NPL.
|
||||
*
|
||||
* The Initial Developer of this code under the NPL is Netscape
|
||||
* Communications Corporation. Portions created by Netscape are
|
||||
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
|
||||
* Reserved.
|
||||
*/
|
||||
|
||||
public final class Thing
|
||||
{
|
||||
public String s;
|
||||
public int i;
|
||||
}
|
||||
|
||||
BIN
mozilla/js/jsd/corba/src/WAIT.COM
Executable file
BIN
mozilla/js/jsd/corba/src/WAIT.COM
Executable file
Binary file not shown.
31
mozilla/js/jsd/corba/src/bogus0.java
Normal file
31
mozilla/js/jsd/corba/src/bogus0.java
Normal file
@@ -0,0 +1,31 @@
|
||||
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
|
||||
*
|
||||
* The contents of this file are subject to the Netscape Public License
|
||||
* Version 1.0 (the "NPL"); you may not use this file except in
|
||||
* compliance with the NPL. You may obtain a copy of the NPL at
|
||||
* http://www.mozilla.org/NPL/
|
||||
*
|
||||
* Software distributed under the NPL is distributed on an "AS IS" basis,
|
||||
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
|
||||
* for the specific language governing rights and limitations under the
|
||||
* NPL.
|
||||
*
|
||||
* The Initial Developer of this code under the NPL is Netscape
|
||||
* Communications Corporation. Portions created by Netscape are
|
||||
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
|
||||
* Reserved.
|
||||
*/
|
||||
|
||||
//
|
||||
// This class only exist to force a forward declaration in the outputed
|
||||
// idl file.
|
||||
//
|
||||
// It should be handed to java2idl after IScriptSection.class but before
|
||||
// IScript.class
|
||||
//
|
||||
|
||||
public final class bogus0
|
||||
{
|
||||
public IScriptSection[] bogus;
|
||||
}
|
||||
|
||||
31
mozilla/js/jsd/corba/src/bogus1.java
Normal file
31
mozilla/js/jsd/corba/src/bogus1.java
Normal file
@@ -0,0 +1,31 @@
|
||||
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
|
||||
*
|
||||
* The contents of this file are subject to the Netscape Public License
|
||||
* Version 1.0 (the "NPL"); you may not use this file except in
|
||||
* compliance with the NPL. You may obtain a copy of the NPL at
|
||||
* http://www.mozilla.org/NPL/
|
||||
*
|
||||
* Software distributed under the NPL is distributed on an "AS IS" basis,
|
||||
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
|
||||
* for the specific language governing rights and limitations under the
|
||||
* NPL.
|
||||
*
|
||||
* The Initial Developer of this code under the NPL is Netscape
|
||||
* Communications Corporation. Portions created by Netscape are
|
||||
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
|
||||
* Reserved.
|
||||
*/
|
||||
|
||||
//
|
||||
// This class only exist to force a forward declaration in the outputed
|
||||
// idl file.
|
||||
//
|
||||
// It should be handed to java2idl after IJSStackFrameInfo.class but before
|
||||
// IJSThreadState.class
|
||||
//
|
||||
|
||||
public final class bogus1
|
||||
{
|
||||
public IJSStackFrameInfo[] bogus;
|
||||
}
|
||||
|
||||
43
mozilla/js/jsd/corba/src/cutlines.awk
Normal file
43
mozilla/js/jsd/corba/src/cutlines.awk
Normal file
@@ -0,0 +1,43 @@
|
||||
# -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
|
||||
#
|
||||
# The contents of this file are subject to the Netscape Public License
|
||||
# Version 1.0 (the "NPL"); you may not use this file except in
|
||||
# compliance with the NPL. You may obtain a copy of the NPL at
|
||||
# http://www.mozilla.org/NPL/
|
||||
#
|
||||
# Software distributed under the NPL is distributed on an "AS IS" basis,
|
||||
# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
|
||||
# for the specific language governing rights and limitations under the
|
||||
# NPL.
|
||||
#
|
||||
# The Initial Developer of this code under the NPL is Netscape
|
||||
# Communications Corporation. Portions created by Netscape are
|
||||
# Copyright (C) 1998 Netscape Communications Corporation. All Rights
|
||||
# Reserved.
|
||||
|
||||
#
|
||||
# see usage...
|
||||
#
|
||||
|
||||
BEGIN {
|
||||
skiplines_left = 0
|
||||
if( 0 == lines || 0 == pat )
|
||||
{
|
||||
# show usage...
|
||||
print "\n"
|
||||
print "strips some lines when first line contains pattern\n"
|
||||
print "\tusage -v pat=\"pattern\" -v lines=3"
|
||||
}
|
||||
}
|
||||
|
||||
{
|
||||
if( skiplines_left )
|
||||
skiplines_left--;
|
||||
else
|
||||
{
|
||||
if( match($0, pat) != 0 )
|
||||
skiplines_left = lines-1;
|
||||
else
|
||||
print $0;
|
||||
}
|
||||
}
|
||||
143
mozilla/js/jsd/corba/src/mk.bat
Executable file
143
mozilla/js/jsd/corba/src/mk.bat
Executable file
@@ -0,0 +1,143 @@
|
||||
@echo off
|
||||
REM
|
||||
REM This needs to be run from the src dir. It generates sibling dirs and their
|
||||
REM contents.
|
||||
REM
|
||||
|
||||
set base_package=com.netscape.jsdebugging.remote.corba
|
||||
set base_packslash=com\netscape\jsdebugging\remote\corba
|
||||
set jsdj_classes_dir=..\..\..\jsdj\classes
|
||||
set DELAY=6
|
||||
|
||||
rem -------------------------------------------------------------------------
|
||||
rem -- show settings
|
||||
echo.
|
||||
echo commandline: %0 %1 %2 %3 %4 %5 %6 %7 %8 %9
|
||||
echo.
|
||||
echo ES3_ROOT = %ES3_ROOT%
|
||||
echo base_package = %base_package% // set in this file
|
||||
echo jsdj_classes_dir = %jsdj_classes_dir% // set in this file
|
||||
echo.
|
||||
rem -------------------------------------------------------------------------
|
||||
|
||||
rem -- check for environment settings
|
||||
if "%ES3_ROOT%" == "" goto usage
|
||||
|
||||
set jc=sj.exe
|
||||
set cp=.;%ES3_ROOT%\wai\java\nisb.zip;%ES3_ROOT%\wai\java\WAI.zip;%ES3_ROOT%\plugins\Java\classes\serv3_0.zip
|
||||
set old_classpath=%CLASSPATH%
|
||||
set CLASSPATH=%CLASSPATH%;%ES3_ROOT%\wai\java\nisb.zip;%ES3_ROOT%\wai\java\WAI.zip
|
||||
echo.
|
||||
echo creating output dirs
|
||||
if not exist ..\class\NUL mkdir ..\class
|
||||
if not exist ..\idl\NUL mkdir ..\idl
|
||||
if not exist ..\java\NUL mkdir ..\java
|
||||
if not exist ..\cpp\NUL mkdir ..\cpp
|
||||
|
||||
echo.
|
||||
echo compiling raw Java interfaces
|
||||
%jc% -classpath %cp% *.java -d ..\class
|
||||
|
||||
|
||||
..\src\wait %DELAY%
|
||||
cd ..\class
|
||||
echo.
|
||||
echo.
|
||||
echo generating idl
|
||||
echo.
|
||||
REM
|
||||
REM THESE ARE HAND ORDERED TO DEAL WITH DEPENDENCIES
|
||||
REM
|
||||
%ES3_ROOT%\wai\bin\java2idl Thing.class StringReciever.class TestInterface.class ISourceTextProvider.class IScriptSection.class bogus0.class IScript.class IJSPC.class IJSSourceLocation.class IJSErrorReporter.class IScriptHook.class IJSStackFrameInfo.class bogus1.class IJSThreadState.class IJSExecutionHook.class IExecResult.class IDebugController.class > ..\idl\ifaces.idl
|
||||
|
||||
|
||||
..\src\wait %DELAY%
|
||||
cd ..\idl
|
||||
echo.
|
||||
echo.
|
||||
echo stripping lines from idl which were added to correctly order declarations
|
||||
echo.
|
||||
copy ifaces.idl ifaces_original.idl
|
||||
REM
|
||||
REM since we currenly have 2 of these, we can avoid the copy
|
||||
REM
|
||||
gawk -v pat="struct bogus0" -v lines=3 -f ..\src\cutlines.awk < ifaces.idl > temp.idl
|
||||
gawk -v pat="struct bogus1" -v lines=3 -f ..\src\cutlines.awk < temp.idl > ifaces.idl
|
||||
REM copy temp.idl ifaces.idl
|
||||
|
||||
REM ..\src\wait %DELAY%
|
||||
cd ..\cpp
|
||||
echo.
|
||||
echo.
|
||||
echo generating cpp
|
||||
echo.
|
||||
%ES3_ROOT%\wai\bin\orbeline ..\idl\ifaces.idl
|
||||
|
||||
|
||||
..\src\wait %DELAY%
|
||||
cd ..\java
|
||||
echo.
|
||||
echo.
|
||||
echo generating java
|
||||
echo.
|
||||
%ES3_ROOT%\wai\bin\idl2java ..\idl\ifaces.idl -package %base_package% -no_examples -no_tie -no_comments
|
||||
|
||||
|
||||
..\src\wait %DELAY%
|
||||
cd ..\src
|
||||
echo.
|
||||
echo. copying generated files
|
||||
echo.
|
||||
REM
|
||||
REM preserve generated java, but put ours in the outdir
|
||||
REM
|
||||
xcopy /Q ..\java\%base_packslash%\*.java ..\java\%base_packslash%\_unused\*.jav
|
||||
REM
|
||||
REM *****CUSTOMIZE HERE AS NEW INTERFACES WITH static ints ARE ADDED*****
|
||||
REM
|
||||
copy ..\src\package_header.h+..\src\ISourceTextProvider.java ..\java\%base_packslash%\ISourceTextProvider.java
|
||||
copy ..\src\package_header.h+..\src\IJSErrorReporter.java ..\java\%base_packslash%\IJSErrorReporter.java
|
||||
copy ..\src\package_header.h+..\src\IJSThreadState.java ..\java\%base_packslash%\IJSThreadState.java
|
||||
copy ..\src\package_header.h+..\src\IDebugController.java ..\java\%base_packslash%\IDebugController.java
|
||||
REM
|
||||
REM
|
||||
xcopy /Q ..\cpp\ifaces_c.hh ..\
|
||||
xcopy /Q ..\cpp\ifaces_s.hh ..\
|
||||
xcopy /Q ..\cpp\ifaces_c.cc ..\ifaces_c.cpp
|
||||
xcopy /Q ..\cpp\ifaces_s.cc ..\ifaces_s.cpp
|
||||
|
||||
if "%jsdj_classes_dir%" == "" goto done
|
||||
if not exist %jsdj_classes_dir%\NUL goto done
|
||||
xcopy /Q /S ..\java\*.java %jsdj_classes_dir%
|
||||
|
||||
goto done
|
||||
|
||||
:usage
|
||||
echo.
|
||||
echo usage:
|
||||
echo mk
|
||||
echo.
|
||||
echo See "readme.txt" for details...
|
||||
echo.
|
||||
echo Rules:
|
||||
echo.
|
||||
echo These must be defined in environment:
|
||||
echo ES3_ROOT // location of Enterprise Server (e.g. e:\Netscape\SuiteSpot)
|
||||
echo.
|
||||
|
||||
:done
|
||||
..\src\wait %DELAY%
|
||||
cd ..\src
|
||||
|
||||
set base_package=
|
||||
set base_packslash=
|
||||
set jsdj_classes_dir=
|
||||
set cp=
|
||||
set jc=
|
||||
set DELAY=
|
||||
set CLASSPATH=%old_classpath%
|
||||
set old_classpath=
|
||||
echo.
|
||||
echo.
|
||||
echo done
|
||||
echo.
|
||||
3
mozilla/js/jsd/corba/src/package_header.h
Normal file
3
mozilla/js/jsd/corba/src/package_header.h
Normal file
@@ -0,0 +1,3 @@
|
||||
|
||||
package com.netscape.jsdebugging.remote.corba;
|
||||
|
||||
35
mozilla/js/jsd/java/jni_stubs.c
Normal file
35
mozilla/js/jsd/java/jni_stubs.c
Normal file
@@ -0,0 +1,35 @@
|
||||
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
|
||||
*
|
||||
* The contents of this file are subject to the Netscape Public License
|
||||
* Version 1.0 (the "NPL"); you may not use this file except in
|
||||
* compliance with the NPL. You may obtain a copy of the NPL at
|
||||
* http://www.mozilla.org/NPL/
|
||||
*
|
||||
* Software distributed under the NPL is distributed on an "AS IS" basis,
|
||||
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
|
||||
* for the specific language governing rights and limitations under the
|
||||
* NPL.
|
||||
*
|
||||
* The Initial Developer of this code under the NPL is Netscape
|
||||
* Communications Corporation. Portions created by Netscape are
|
||||
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
|
||||
* Reserved.
|
||||
*/
|
||||
|
||||
/*
|
||||
* This supplies non-functional stubs for a couple of JNI functions we need
|
||||
* in order to link LiveConnect
|
||||
*/
|
||||
|
||||
#include "jni.h"
|
||||
|
||||
jint JNICALL JNI_GetDefaultJavaVMInitArgs(void * ignored)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
jint JNICALL JNI_CreateJavaVM(JavaVM ** vm, JNIEnv ** env, void * ignored)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
33
mozilla/js/jsd/java/jniheadr.mak
Normal file
33
mozilla/js/jsd/java/jniheadr.mak
Normal file
@@ -0,0 +1,33 @@
|
||||
|
||||
JSDJNI = .
|
||||
#CLASS_DIR_BASE = $(JSDJNI)\..\..\..\jsdj\dist\classes
|
||||
# until jsdj moves to mozilla...
|
||||
CLASS_DIR_BASE = $(JSDJNI)\..\..\..\..\..\ns\js\jsdj\dist\classes
|
||||
GEN = $(JSDJNI)\_jni
|
||||
HEADER_FILE = $(GEN)\jsdjnih.h
|
||||
|
||||
PACKAGE_SLASH = netscape\jsdebug
|
||||
PACKAGE_DOT = netscape.jsdebug
|
||||
|
||||
STD_CLASSPATH = -classpath $(CLASS_DIR_BASE);$(CLASSPATH)
|
||||
|
||||
CLASSES_WITH_NATIVES = \
|
||||
$(PACKAGE_DOT).DebugController \
|
||||
$(PACKAGE_DOT).JSPC \
|
||||
$(PACKAGE_DOT).JSSourceTextProvider \
|
||||
$(PACKAGE_DOT).JSStackFrameInfo \
|
||||
$(PACKAGE_DOT).JSThreadState \
|
||||
$(PACKAGE_DOT).Script \
|
||||
$(PACKAGE_DOT).SourceTextProvider \
|
||||
$(PACKAGE_DOT).ThreadStateBase \
|
||||
$(PACKAGE_DOT).Value
|
||||
|
||||
all: $(GEN)
|
||||
@echo generating JNI headers
|
||||
@javah -jni -o "$(HEADER_FILE)" $(STD_CLASSPATH) $(CLASSES_WITH_NATIVES)
|
||||
|
||||
$(GEN) :
|
||||
@mkdir $(GEN)
|
||||
|
||||
clean:
|
||||
@if exist $(HEADER_FILE) @del $(HEADER_FILE) > NUL
|
||||
134
mozilla/js/jsd/java/jre/jre.c
Normal file
134
mozilla/js/jsd/java/jre/jre.c
Normal file
@@ -0,0 +1,134 @@
|
||||
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
|
||||
*
|
||||
* The contents of this file are subject to the Netscape Public License
|
||||
* Version 1.0 (the "NPL"); you may not use this file except in
|
||||
* compliance with the NPL. You may obtain a copy of the NPL at
|
||||
* http://www.mozilla.org/NPL/
|
||||
*
|
||||
* Software distributed under the NPL is distributed on an "AS IS" basis,
|
||||
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
|
||||
* for the specific language governing rights and limitations under the
|
||||
* NPL.
|
||||
*
|
||||
* The Initial Developer of this code under the NPL is Sun Microsystems, Inc.
|
||||
* Portions created by Netscape are
|
||||
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
|
||||
* Reserved.
|
||||
*
|
||||
* Copyright (c) 1997 Sun Microsystems, Inc. All Rights Reserved.
|
||||
*
|
||||
* Sun grants you ("Licensee") a non-exclusive, royalty free, license to use,
|
||||
* modify and redistribute this software in source and binary code form,
|
||||
* provided that i) this copyright notice and license appear on all copies of
|
||||
* the software; and ii) Licensee does not utilize the software in a manner
|
||||
* which is disparaging to Sun.
|
||||
*
|
||||
* This software is provided "AS IS," without a warranty of any kind. ALL
|
||||
* EXPRESS OR IMPLIED CONDITIONS, REPRESENTATIONS AND WARRANTIES, INCLUDING ANY
|
||||
* IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR
|
||||
* NON-INFRINGEMENT, ARE HEREBY EXCLUDED. SUN AND ITS LICENSORS SHALL NOT BE
|
||||
* LIABLE FOR ANY DAMAGES SUFFERED BY LICENSEE AS A RESULT OF USING, MODIFYING
|
||||
* OR DISTRIBUTING THE SOFTWARE OR ITS DERIVATIVES. IN NO EVENT WILL SUN OR ITS
|
||||
* LICENSORS BE LIABLE FOR ANY LOST REVENUE, PROFIT OR DATA, OR FOR DIRECT,
|
||||
* INDIRECT, SPECIAL, CONSEQUENTIAL, INCIDENTAL OR PUNITIVE DAMAGES, HOWEVER
|
||||
* CAUSED AND REGARDLESS OF THE THEORY OF LIABILITY, ARISING OUT OF THE USE OF
|
||||
* OR INABILITY TO USE SOFTWARE, EVEN IF SUN HAS BEEN ADVISED OF THE
|
||||
* POSSIBILITY OF SUCH DAMAGES.
|
||||
*
|
||||
* This software is not designed or intended for use in on-line control of
|
||||
* aircraft, air traffic, aircraft navigation or aircraft communications; or in
|
||||
* the design, construction, operation or maintenance of any nuclear
|
||||
* facility. Licensee represents and warrants that it will not use or
|
||||
* redistribute the Software for such purposes.
|
||||
*/
|
||||
|
||||
/*
|
||||
* Portable JRE support functions - pared this down to minimal set I need
|
||||
*/
|
||||
|
||||
#include <string.h>
|
||||
#include <stdlib.h>
|
||||
#include <jni.h>
|
||||
#include "jre.h"
|
||||
|
||||
/*
|
||||
* Exits the runtime with the specified error message.
|
||||
*/
|
||||
void
|
||||
JRE_FatalError(JNIEnv *env, const char *msg)
|
||||
{
|
||||
if ((*env)->ExceptionOccurred(env)) {
|
||||
(*env)->ExceptionDescribe(env);
|
||||
}
|
||||
(*env)->FatalError(env, msg);
|
||||
}
|
||||
|
||||
/*
|
||||
* Parses a runtime version string. Returns 0 if the successful, otherwise
|
||||
* returns -1 if the format of the version string was invalid.
|
||||
*/
|
||||
jint
|
||||
JRE_ParseVersion(const char *ver, char **majorp, char **minorp, char **microp)
|
||||
{
|
||||
int n1 = 0, n2 = 0, n3 = 0;
|
||||
|
||||
sscanf(ver, "%*[0-9]%n.%*[0-9]%n.%*[0-9a-zA-Z]%n", &n1, &n2, &n3);
|
||||
if (n1 == 0 || n2 == 0) {
|
||||
return -1;
|
||||
}
|
||||
if (n3 != 0) {
|
||||
if (n3 != (int)strlen(ver)) {
|
||||
return -1;
|
||||
}
|
||||
} else if (n2 != (int)strlen(ver)) {
|
||||
return -1;
|
||||
}
|
||||
*majorp = JRE_Malloc(n1 + 1);
|
||||
strncpy(*majorp, ver, n1);
|
||||
(*majorp)[n1] = 0;
|
||||
*minorp = JRE_Malloc(n2 - n1);
|
||||
strncpy(*minorp, ver + n1 + 1, n2 - n1 - 1);
|
||||
(*minorp)[n2 - n1 - 1] = 0;
|
||||
if (n3 != 0) {
|
||||
*microp = JRE_Malloc(n3 - n2);
|
||||
strncpy(*microp, ver + n2 + 1, n3 - n2 - 1);
|
||||
(*microp)[n3 - n2 - 1] = 0;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
/*
|
||||
* Creates a version number string from the specified major, minor, and
|
||||
* micro version numbers.
|
||||
*/
|
||||
char *
|
||||
JRE_MakeVersion(const char *major, const char *minor, const char *micro)
|
||||
{
|
||||
char *ver = 0;
|
||||
|
||||
if (major != 0 && minor != 0) {
|
||||
int len = strlen(major) + strlen(minor);
|
||||
if (micro != 0) {
|
||||
ver = JRE_Malloc(len + strlen(micro) + 3);
|
||||
sprintf(ver, "%s.%s.%s", major, minor, micro);
|
||||
} else {
|
||||
ver = JRE_Malloc(len + 2);
|
||||
sprintf(ver, "%s.%s", major, minor);
|
||||
}
|
||||
}
|
||||
return ver;
|
||||
}
|
||||
|
||||
/*
|
||||
* Allocate memory or die.
|
||||
*/
|
||||
void *
|
||||
JRE_Malloc(size_t size)
|
||||
{
|
||||
void *p = malloc(size);
|
||||
if (p == 0) {
|
||||
perror("malloc");
|
||||
exit(1);
|
||||
}
|
||||
return p;
|
||||
}
|
||||
85
mozilla/js/jsd/java/jre/jre.h
Normal file
85
mozilla/js/jsd/java/jre/jre.h
Normal file
@@ -0,0 +1,85 @@
|
||||
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
|
||||
*
|
||||
* The contents of this file are subject to the Netscape Public License
|
||||
* Version 1.0 (the "NPL"); you may not use this file except in
|
||||
* compliance with the NPL. You may obtain a copy of the NPL at
|
||||
* http://www.mozilla.org/NPL/
|
||||
*
|
||||
* Software distributed under the NPL is distributed on an "AS IS" basis,
|
||||
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
|
||||
* for the specific language governing rights and limitations under the
|
||||
* NPL.
|
||||
*
|
||||
* The Initial Developer of this code under the NPL is Sun Microsystems, Inc.
|
||||
* Portions created by Netscape are
|
||||
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
|
||||
* Reserved.
|
||||
*
|
||||
* Copyright (c) 1997 Sun Microsystems, Inc. All Rights Reserved.
|
||||
*
|
||||
* Sun grants you ("Licensee") a non-exclusive, royalty free, license to use,
|
||||
* modify and redistribute this software in source and binary code form,
|
||||
* provided that i) this copyright notice and license appear on all copies of
|
||||
* the software; and ii) Licensee does not utilize the software in a manner
|
||||
* which is disparaging to Sun.
|
||||
*
|
||||
* This software is provided "AS IS," without a warranty of any kind. ALL
|
||||
* EXPRESS OR IMPLIED CONDITIONS, REPRESENTATIONS AND WARRANTIES, INCLUDING ANY
|
||||
* IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR
|
||||
* NON-INFRINGEMENT, ARE HEREBY EXCLUDED. SUN AND ITS LICENSORS SHALL NOT BE
|
||||
* LIABLE FOR ANY DAMAGES SUFFERED BY LICENSEE AS A RESULT OF USING, MODIFYING
|
||||
* OR DISTRIBUTING THE SOFTWARE OR ITS DERIVATIVES. IN NO EVENT WILL SUN OR ITS
|
||||
* LICENSORS BE LIABLE FOR ANY LOST REVENUE, PROFIT OR DATA, OR FOR DIRECT,
|
||||
* INDIRECT, SPECIAL, CONSEQUENTIAL, INCIDENTAL OR PUNITIVE DAMAGES, HOWEVER
|
||||
* CAUSED AND REGARDLESS OF THE THEORY OF LIABILITY, ARISING OUT OF THE USE OF
|
||||
* OR INABILITY TO USE SOFTWARE, EVEN IF SUN HAS BEEN ADVISED OF THE
|
||||
* POSSIBILITY OF SUCH DAMAGES.
|
||||
*
|
||||
* This software is not designed or intended for use in on-line control of
|
||||
* aircraft, air traffic, aircraft navigation or aircraft communications; or in
|
||||
* the design, construction, operation or maintenance of any nuclear
|
||||
* facility. Licensee represents and warrants that it will not use or
|
||||
* redistribute the Software for such purposes.
|
||||
*/
|
||||
|
||||
/*
|
||||
* Portable JRE support functions - pared this down to minimal set I need
|
||||
*/
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <jni.h>
|
||||
|
||||
#include "jre_md.h"
|
||||
|
||||
/*
|
||||
* Java runtime settings.
|
||||
*/
|
||||
typedef struct JRESettings {
|
||||
char *javaHome; /* Java home directory */
|
||||
char *runtimeLib; /* Runtime shared library or DLL */
|
||||
char *classPath; /* Default class path */
|
||||
char *compiler; /* Just-in-time (JIT) compiler */
|
||||
char *majorVersion; /* Major version of runtime */
|
||||
char *minorVersion; /* Minor version of runtime */
|
||||
char *microVersion; /* Micro version of runtime */
|
||||
} JRESettings;
|
||||
|
||||
/*
|
||||
* JRE functions.
|
||||
*/
|
||||
void *JRE_LoadLibrary(const char *path);
|
||||
void JRE_UnloadLibrary(void *handle);
|
||||
jint JRE_GetDefaultJavaVMInitArgs(void *handle, void *vmargsp);
|
||||
jint JRE_CreateJavaVM(void *handle, JavaVM **vmp, JNIEnv **envp,
|
||||
void *vmargsp);
|
||||
jint JRE_GetCurrentSettings(JRESettings *set);
|
||||
jint JRE_GetSettings(JRESettings *set, const char *ver);
|
||||
jint JRE_GetDefaultSettings(JRESettings *set);
|
||||
jint JRE_ParseVersion(const char *version,
|
||||
char **majorp, char **minorp, char **microp);
|
||||
char *JRE_MakeVersion(const char *major, const char *minor, const char *micro);
|
||||
void *JRE_Malloc(size_t size);
|
||||
void JRE_FatalError(JNIEnv *env, const char *msg);
|
||||
char *JRE_GetDefaultRuntimeLib(const char *dir);
|
||||
char *JRE_GetDefaultClassPath(const char *dir);
|
||||
290
mozilla/js/jsd/java/jre/win32/jre_md.c
Normal file
290
mozilla/js/jsd/java/jre/win32/jre_md.c
Normal file
@@ -0,0 +1,290 @@
|
||||
/*
|
||||
* @(#)jre_md.c 1.6 97/05/15 David Connelly
|
||||
*
|
||||
* Copyright (c) 1997 Sun Microsystems, Inc. All Rights Reserved.
|
||||
*
|
||||
* Sun grants you ("Licensee") a non-exclusive, royalty free, license to use,
|
||||
* modify and redistribute this software in source and binary code form,
|
||||
* provided that i) this copyright notice and license appear on all copies of
|
||||
* the software; and ii) Licensee does not utilize the software in a manner
|
||||
* which is disparaging to Sun.
|
||||
*
|
||||
* This software is provided "AS IS," without a warranty of any kind. ALL
|
||||
* EXPRESS OR IMPLIED CONDITIONS, REPRESENTATIONS AND WARRANTIES, INCLUDING ANY
|
||||
* IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR
|
||||
* NON-INFRINGEMENT, ARE HEREBY EXCLUDED. SUN AND ITS LICENSORS SHALL NOT BE
|
||||
* LIABLE FOR ANY DAMAGES SUFFERED BY LICENSEE AS A RESULT OF USING, MODIFYING
|
||||
* OR DISTRIBUTING THE SOFTWARE OR ITS DERIVATIVES. IN NO EVENT WILL SUN OR ITS
|
||||
* LICENSORS BE LIABLE FOR ANY LOST REVENUE, PROFIT OR DATA, OR FOR DIRECT,
|
||||
* INDIRECT, SPECIAL, CONSEQUENTIAL, INCIDENTAL OR PUNITIVE DAMAGES, HOWEVER
|
||||
* CAUSED AND REGARDLESS OF THE THEORY OF LIABILITY, ARISING OUT OF THE USE OF
|
||||
* OR INABILITY TO USE SOFTWARE, EVEN IF SUN HAS BEEN ADVISED OF THE
|
||||
* POSSIBILITY OF SUCH DAMAGES.
|
||||
*
|
||||
* This software is not designed or intended for use in on-line control of
|
||||
* aircraft, air traffic, aircraft navigation or aircraft communications; or in
|
||||
* the design, construction, operation or maintenance of any nuclear
|
||||
* facility. Licensee represents and warrants that it will not use or
|
||||
* redistribute the Software for such purposes.
|
||||
*/
|
||||
|
||||
/*
|
||||
* Win32 specific JRE support functions
|
||||
*/
|
||||
|
||||
#include <windows.h>
|
||||
#include <stdlib.h>
|
||||
#include <jni.h>
|
||||
#include "jre.h"
|
||||
|
||||
#define JRE_KEY "Software\\JavaSoft\\Java Runtime Environment"
|
||||
#define JDK_KEY "Software\\JavaSoft\\Java Development Kit"
|
||||
|
||||
#define RUNTIME_LIB "javai.dll"
|
||||
|
||||
/* From jre_main.c */
|
||||
extern jboolean debug;
|
||||
|
||||
/* Forward Declarations */
|
||||
jint LoadSettings(JRESettings *set, HKEY key);
|
||||
jint GetSettings(JRESettings *set, const char *version, const char *keyname);
|
||||
char *GetStringValue(HKEY key, const char *name);
|
||||
|
||||
/*
|
||||
* Retrieve settings from registry for current runtime version. Returns
|
||||
* 0 if successful otherwise returns -1 if no installed runtime was found
|
||||
* or the registry data was invalid.
|
||||
*/
|
||||
jint
|
||||
JRE_GetCurrentSettings(JRESettings *set)
|
||||
{
|
||||
jint r = -1;
|
||||
HKEY key;
|
||||
|
||||
if (RegOpenKeyEx(HKEY_LOCAL_MACHINE, JRE_KEY, 0, KEY_READ, &key) == 0) {
|
||||
char *ver = GetStringValue(key, "CurrentVersion");
|
||||
if (ver != 0) {
|
||||
r = JRE_GetSettings(set, ver);
|
||||
}
|
||||
free(ver);
|
||||
RegCloseKey(key);
|
||||
}
|
||||
return r;
|
||||
}
|
||||
|
||||
/*
|
||||
* Retrieves settings from registry for specified runtime version.
|
||||
* Searches for either installed JRE and JDK runtimes. Returns 0 if
|
||||
* successful otherwise returns -1 if requested version of runtime
|
||||
* could not be found.
|
||||
*/
|
||||
jint
|
||||
JRE_GetSettings(JRESettings *set, const char *version)
|
||||
{
|
||||
if (GetSettings(set, version, JRE_KEY) != 0) {
|
||||
return GetSettings(set, version, JDK_KEY);
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
jint
|
||||
GetSettings(JRESettings *set, const char *version, const char *keyname)
|
||||
{
|
||||
HKEY key;
|
||||
int r = -1;
|
||||
|
||||
if (RegOpenKeyEx(HKEY_LOCAL_MACHINE, keyname, 0, KEY_READ, &key) == 0) {
|
||||
char *major, *minor, *micro = 0;
|
||||
if (JRE_ParseVersion(version, &major, &minor, µ) == 0) {
|
||||
HKEY subkey;
|
||||
char *ver = JRE_MakeVersion(major, minor, 0);
|
||||
set->majorVersion = major;
|
||||
set->minorVersion = minor;
|
||||
if (RegOpenKeyEx(key, ver, 0, KEY_READ, &subkey) == 0) {
|
||||
if ((r = LoadSettings(set, subkey)) == 0) {
|
||||
if (micro != 0) {
|
||||
if (set->microVersion == 0 ||
|
||||
strcmp(micro, set->microVersion) != 0) {
|
||||
r = -1;
|
||||
}
|
||||
}
|
||||
}
|
||||
RegCloseKey(subkey);
|
||||
}
|
||||
free(ver);
|
||||
}
|
||||
RegCloseKey(key);
|
||||
}
|
||||
return r;
|
||||
}
|
||||
|
||||
/*
|
||||
* Load runtime settings from specified registry key. Returns 0 if
|
||||
* successful otherwise -1 if the registry data was invalid.
|
||||
*/
|
||||
static jint
|
||||
LoadSettings(JRESettings *set, HKEY key)
|
||||
{
|
||||
/* Full path name of JRE home directory (required) */
|
||||
set->javaHome = GetStringValue(key, "JavaHome");
|
||||
if (set->javaHome == 0) {
|
||||
return -1;
|
||||
}
|
||||
/* Full path name of JRE runtime DLL */
|
||||
set->runtimeLib = GetStringValue(key, "RuntimeLib");
|
||||
if (set->runtimeLib == 0) {
|
||||
set->runtimeLib = JRE_GetDefaultRuntimeLib(set->javaHome);
|
||||
}
|
||||
/* Class path setting to override default */
|
||||
set->classPath = GetStringValue(key, "ClassPath");
|
||||
if (set->classPath == 0) {
|
||||
set->classPath = JRE_GetDefaultClassPath(set->javaHome);
|
||||
}
|
||||
/* Optional JIT compiler library name */
|
||||
set->compiler = GetStringValue(key, "Compiler");
|
||||
/* Release micro-version */
|
||||
set->microVersion = GetStringValue(key, "MicroVersion");
|
||||
return 0;
|
||||
}
|
||||
|
||||
/*
|
||||
* Returns string data for the specified registry value name, or
|
||||
* NULL if not found.
|
||||
*/
|
||||
static char *
|
||||
GetStringValue(HKEY key, const char *name)
|
||||
{
|
||||
DWORD type, size;
|
||||
char *value = 0;
|
||||
|
||||
if (RegQueryValueEx(key, name, 0, &type, 0, &size) == 0 &&
|
||||
type == REG_SZ ) {
|
||||
value = JRE_Malloc(size);
|
||||
if (RegQueryValueEx(key, name, 0, 0, value, &size) != 0) {
|
||||
free(value);
|
||||
value = 0;
|
||||
}
|
||||
}
|
||||
return value;
|
||||
}
|
||||
|
||||
/*
|
||||
* Returns default runtime settings based on location of this program.
|
||||
* Makes best attempt at determining location of runtime. Returns 0
|
||||
* if successful or -1 if a runtime could not be found.
|
||||
*/
|
||||
jint
|
||||
JRE_GetDefaultSettings(JRESettings *set)
|
||||
{
|
||||
char buf[MAX_PATH], *bp;
|
||||
int n;
|
||||
|
||||
// Try to obtain default value for Java home directory based on
|
||||
// location of this executable.
|
||||
|
||||
if ((n = GetModuleFileName(0, buf, MAX_PATH)) == 0) {
|
||||
return -1;
|
||||
}
|
||||
bp = buf + n;
|
||||
while (*--bp != '\\') ;
|
||||
bp -= 4;
|
||||
if (bp < buf || strnicmp(bp, "\\bin", 4) != 0) {
|
||||
return -1;
|
||||
}
|
||||
*bp = '\0';
|
||||
set->javaHome = strdup(buf);
|
||||
|
||||
// Get default runtime library
|
||||
set->runtimeLib = JRE_GetDefaultRuntimeLib(set->javaHome);
|
||||
|
||||
// Get default class path
|
||||
set->classPath = JRE_GetDefaultClassPath(set->javaHome);
|
||||
|
||||
// Reset other fields since these are unknown
|
||||
set->compiler = 0;
|
||||
set->majorVersion = 0;
|
||||
set->minorVersion = 0;
|
||||
set->microVersion = 0;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
/*
|
||||
* Return default runtime library for specified Java home directory.
|
||||
*/
|
||||
char *
|
||||
JRE_GetDefaultRuntimeLib(const char *dir)
|
||||
{
|
||||
char *cp = JRE_Malloc(strlen(dir) + sizeof(RUNTIME_LIB) + 8);
|
||||
sprintf(cp, "%s\\bin\\" RUNTIME_LIB, dir);
|
||||
return cp;
|
||||
}
|
||||
|
||||
/*
|
||||
* Return default class path for specified Java home directory.
|
||||
*/
|
||||
char *
|
||||
JRE_GetDefaultClassPath(const char *dir)
|
||||
{
|
||||
char *cp = JRE_Malloc(strlen(dir) * 4 + 64);
|
||||
sprintf(cp, "%s\\lib\\rt.jar;%s\\lib\\i18n.jar;%s\\lib\\classes.zip;"
|
||||
"%s\\classes", dir, dir, dir, dir);
|
||||
return cp;
|
||||
}
|
||||
|
||||
/*
|
||||
* Loads the runtime library corresponding to 'libname' and returns
|
||||
* an opaque handle to the library.
|
||||
*/
|
||||
void *
|
||||
JRE_LoadLibrary(const char *path)
|
||||
{
|
||||
return (void *)LoadLibrary(path);
|
||||
}
|
||||
|
||||
/*
|
||||
* Unloads the runtime library associated with handle.
|
||||
*/
|
||||
void
|
||||
JRE_UnloadLibrary(void *handle)
|
||||
{
|
||||
FreeLibrary(handle);
|
||||
}
|
||||
|
||||
/*
|
||||
* Loads default VM args for the specified runtime library handle.
|
||||
*/
|
||||
jint
|
||||
JRE_GetDefaultJavaVMInitArgs(void *handle, void *vmargs)
|
||||
{
|
||||
FARPROC proc = GetProcAddress(handle, "JNI_GetDefaultJavaVMInitArgs");
|
||||
return proc != 0 ? ((*proc)(vmargs), 0) : -1;
|
||||
}
|
||||
|
||||
/*
|
||||
* Creates a Java VM for the specified runtime library handle.
|
||||
*/
|
||||
jint
|
||||
JRE_CreateJavaVM(void *handle, JavaVM **vmp, JNIEnv **envp, void *vmargs)
|
||||
{
|
||||
FARPROC proc = GetProcAddress(handle, "JNI_CreateJavaVM");
|
||||
return proc != 0 ? (*proc)(vmp, envp, vmargs) : -1;
|
||||
}
|
||||
|
||||
/*
|
||||
* Entry point for JREW (Windows-only) version of the runtime loader.
|
||||
* This entry point is called when the '-subsystem:windows' linker
|
||||
* option is used, and will cause the resulting executable to run
|
||||
* detached from the console.
|
||||
*/
|
||||
|
||||
/**
|
||||
* int WINAPI
|
||||
* WinMain(HINSTANCE inst, HINSTANCE prevInst, LPSTR cmdLine, int cmdShow)
|
||||
* {
|
||||
* __declspec(dllimport) char **__initenv;
|
||||
*
|
||||
* __initenv = _environ;
|
||||
* exit(main(__argc, __argv));
|
||||
* }
|
||||
*/
|
||||
36
mozilla/js/jsd/java/jre/win32/jre_md.h
Normal file
36
mozilla/js/jsd/java/jre/win32/jre_md.h
Normal file
@@ -0,0 +1,36 @@
|
||||
/*
|
||||
* @(#)jre_md.h 1.1 97/05/19 David Connelly
|
||||
*
|
||||
* Copyright (c) 1997 Sun Microsystems, Inc. All Rights Reserved.
|
||||
*
|
||||
* Sun grants you ("Licensee") a non-exclusive, royalty free, license to use,
|
||||
* modify and redistribute this software in source and binary code form,
|
||||
* provided that i) this copyright notice and license appear on all copies of
|
||||
* the software; and ii) Licensee does not utilize the software in a manner
|
||||
* which is disparaging to Sun.
|
||||
*
|
||||
* This software is provided "AS IS," without a warranty of any kind. ALL
|
||||
* EXPRESS OR IMPLIED CONDITIONS, REPRESENTATIONS AND WARRANTIES, INCLUDING ANY
|
||||
* IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR
|
||||
* NON-INFRINGEMENT, ARE HEREBY EXCLUDED. SUN AND ITS LICENSORS SHALL NOT BE
|
||||
* LIABLE FOR ANY DAMAGES SUFFERED BY LICENSEE AS A RESULT OF USING, MODIFYING
|
||||
* OR DISTRIBUTING THE SOFTWARE OR ITS DERIVATIVES. IN NO EVENT WILL SUN OR ITS
|
||||
* LICENSORS BE LIABLE FOR ANY LOST REVENUE, PROFIT OR DATA, OR FOR DIRECT,
|
||||
* INDIRECT, SPECIAL, CONSEQUENTIAL, INCIDENTAL OR PUNITIVE DAMAGES, HOWEVER
|
||||
* CAUSED AND REGARDLESS OF THE THEORY OF LIABILITY, ARISING OUT OF THE USE OF
|
||||
* OR INABILITY TO USE SOFTWARE, EVEN IF SUN HAS BEEN ADVISED OF THE
|
||||
* POSSIBILITY OF SUCH DAMAGES.
|
||||
*
|
||||
* This software is not designed or intended for use in on-line control of
|
||||
* aircraft, air traffic, aircraft navigation or aircraft communications; or in
|
||||
* the design, construction, operation or maintenance of any nuclear
|
||||
* facility. Licensee represents and warrants that it will not use or
|
||||
* redistribute the Software for such purposes.
|
||||
*/
|
||||
|
||||
/*
|
||||
* Win32 specific JRE support definitions
|
||||
*/
|
||||
|
||||
#define FILE_SEPARATOR '\\'
|
||||
#define PATH_SEPARATOR ';'
|
||||
2694
mozilla/js/jsd/java/jsd_jntv.c
Normal file
2694
mozilla/js/jsd/java/jsd_jntv.c
Normal file
File diff suppressed because it is too large
Load Diff
349
mozilla/js/jsd/java/jsd_jvm.c
Normal file
349
mozilla/js/jsd/java/jsd_jvm.c
Normal file
@@ -0,0 +1,349 @@
|
||||
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
|
||||
*
|
||||
* The contents of this file are subject to the Netscape Public License
|
||||
* Version 1.0 (the "NPL"); you may not use this file except in
|
||||
* compliance with the NPL. You may obtain a copy of the NPL at
|
||||
* http://www.mozilla.org/NPL/
|
||||
*
|
||||
* Software distributed under the NPL is distributed on an "AS IS" basis,
|
||||
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
|
||||
* for the specific language governing rights and limitations under the
|
||||
* NPL.
|
||||
*
|
||||
* The Initial Developer of this code under the NPL is Sun Microsystems, Inc.
|
||||
* Portions created by Netscape are
|
||||
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
|
||||
* Reserved.
|
||||
*
|
||||
* Copyright (c) 1997 Sun Microsystems, Inc. All Rights Reserved.
|
||||
*
|
||||
* Sun grants you ("Licensee") a non-exclusive, royalty free, license to use,
|
||||
* modify and redistribute this software in source and binary code form,
|
||||
* provided that i) this copyright notice and license appear on all copies of
|
||||
* the software; and ii) Licensee does not utilize the software in a manner
|
||||
* which is disparaging to Sun.
|
||||
*
|
||||
* This software is provided "AS IS," without a warranty of any kind. ALL
|
||||
* EXPRESS OR IMPLIED CONDITIONS, REPRESENTATIONS AND WARRANTIES, INCLUDING ANY
|
||||
* IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR
|
||||
* NON-INFRINGEMENT, ARE HEREBY EXCLUDED. SUN AND ITS LICENSORS SHALL NOT BE
|
||||
* LIABLE FOR ANY DAMAGES SUFFERED BY LICENSEE AS A RESULT OF USING, MODIFYING
|
||||
* OR DISTRIBUTING THE SOFTWARE OR ITS DERIVATIVES. IN NO EVENT WILL SUN OR ITS
|
||||
* LICENSORS BE LIABLE FOR ANY LOST REVENUE, PROFIT OR DATA, OR FOR DIRECT,
|
||||
* INDIRECT, SPECIAL, CONSEQUENTIAL, INCIDENTAL OR PUNITIVE DAMAGES, HOWEVER
|
||||
* CAUSED AND REGARDLESS OF THE THEORY OF LIABILITY, ARISING OUT OF THE USE OF
|
||||
* OR INABILITY TO USE SOFTWARE, EVEN IF SUN HAS BEEN ADVISED OF THE
|
||||
* POSSIBILITY OF SUCH DAMAGES.
|
||||
*
|
||||
* This software is not designed or intended for use in on-line control of
|
||||
* aircraft, air traffic, aircraft navigation or aircraft communications; or in
|
||||
* the design, construction, operation or maintenance of any nuclear
|
||||
* facility. Licensee represents and warrants that it will not use or
|
||||
* redistribute the Software for such purposes.
|
||||
*/
|
||||
|
||||
/*
|
||||
* Code to start a Java VM (*some* code from the JRE)
|
||||
*/
|
||||
|
||||
#include "jsdj.h"
|
||||
|
||||
/***************************************************************************/
|
||||
#ifdef JSD_STANDALONE_JAVA_VM
|
||||
#include "jre.h"
|
||||
|
||||
static char* more_classpath[] =
|
||||
{
|
||||
{"..\\..\\jsdj\\dist\\classes"},
|
||||
{"..\\..\\jsdj\\dist\\classes\\ifc11.jar"},
|
||||
|
||||
/*
|
||||
* {"..\\..\\..\\jsdj\\dist\\classes"},
|
||||
* {"..\\..\\..\\jsdj\\dist\\classes\\ifc12.jar"},
|
||||
*/
|
||||
|
||||
/*
|
||||
* {"..\\..\\samples\\jslogger"},
|
||||
* {"classes"},
|
||||
* {"ifc12.jar"},
|
||||
* {"jsd10.jar"},
|
||||
* {"jsdeb15.jar"}
|
||||
*/
|
||||
};
|
||||
#define MORE_CLASSPATH_COUNT (sizeof(more_classpath)/sizeof(more_classpath[0]))
|
||||
|
||||
/*
|
||||
* static char main_class[] = "callnative";
|
||||
* static char main_class[] = "simpleIFC";
|
||||
* static char* params[] = {"16 Dec 1997"};
|
||||
* #define PARAM_COUNT (sizeof(params)/sizeof(params[0]))
|
||||
*/
|
||||
|
||||
/*
|
||||
* static char main_class[] = "netscape/jslogger/JSLogger";
|
||||
* static char main_class[] = "LaunchJSDebugger";
|
||||
*/
|
||||
static char main_class[] = "com/netscape/jsdebugging/ifcui/launcher/local/LaunchJSDebugger";
|
||||
static char* params[] = {NULL};
|
||||
#define PARAM_COUNT 0
|
||||
|
||||
/* Globals */
|
||||
static char **props; /* User-defined properties */
|
||||
static int numProps, maxProps; /* Current, max number of properties */
|
||||
|
||||
static void *handle;
|
||||
static JavaVM *jvm;
|
||||
static JNIEnv *env;
|
||||
|
||||
/* Check for null value and return */
|
||||
#define NULL_CHECK(e) if ((e) == 0) return 0
|
||||
|
||||
/*
|
||||
* Adds a user-defined system property definition.
|
||||
*/
|
||||
void AddProperty(char *def)
|
||||
{
|
||||
if (numProps >= maxProps) {
|
||||
if (props == 0) {
|
||||
maxProps = 4;
|
||||
props = JRE_Malloc(maxProps * sizeof(char **));
|
||||
} else {
|
||||
char **tmp;
|
||||
maxProps *= 2;
|
||||
tmp = JRE_Malloc(maxProps * sizeof(char **));
|
||||
memcpy(tmp, props, numProps * sizeof(char **));
|
||||
free(props);
|
||||
props = tmp;
|
||||
}
|
||||
}
|
||||
props[numProps++] = def;
|
||||
}
|
||||
|
||||
/*
|
||||
* Deletes a property definition by name.
|
||||
*/
|
||||
void DeleteProperty(const char *name)
|
||||
{
|
||||
int i;
|
||||
|
||||
for (i = 0; i < numProps; ) {
|
||||
char *def = props[i];
|
||||
char *c = strchr(def, '=');
|
||||
int n;
|
||||
if (c != 0) {
|
||||
n = c - def;
|
||||
} else {
|
||||
n = strlen(def);
|
||||
}
|
||||
if (strncmp(name, def, n) == 0) {
|
||||
if (i < --numProps) {
|
||||
memmove(&props[i], &props[i+1], (numProps-i) * sizeof(char **));
|
||||
}
|
||||
} else {
|
||||
i++;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* Creates an array of Java string objects from the specified array of C
|
||||
* strings. Returns 0 if the array could not be created.
|
||||
*/
|
||||
jarray NewStringArray(JNIEnv *env, char **cpp, int count)
|
||||
{
|
||||
jclass cls;
|
||||
jarray ary;
|
||||
int i;
|
||||
|
||||
NULL_CHECK(cls = (*env)->FindClass(env, "java/lang/String"));
|
||||
NULL_CHECK(ary = (*env)->NewObjectArray(env, count, cls, 0));
|
||||
for (i = 0; i < count; i++) {
|
||||
jstring str = (*env)->NewStringUTF(env, *cpp++);
|
||||
NULL_CHECK(str);
|
||||
(*env)->SetObjectArrayElement(env, ary, i, str);
|
||||
(*env)->DeleteLocalRef(env, str);
|
||||
}
|
||||
return ary;
|
||||
}
|
||||
|
||||
/***************************************************************************/
|
||||
|
||||
static JNIEnv*
|
||||
_CreateJavaVM(void)
|
||||
{
|
||||
JNIEnv* env = NULL;
|
||||
JDK1_1InitArgs vmargs;
|
||||
JRESettings set;
|
||||
|
||||
printf("Starting Java...\n");
|
||||
|
||||
if(JRE_GetCurrentSettings(&set) != 0)
|
||||
{
|
||||
if(JRE_GetDefaultSettings(&set) != 0)
|
||||
{
|
||||
fprintf(stderr, "Could not locate Java runtime\n");
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
|
||||
/* Load runtime library */
|
||||
handle = JRE_LoadLibrary(set.runtimeLib);
|
||||
if (handle == 0) {
|
||||
fprintf(stderr, "Could not load runtime library: %s\n",
|
||||
set.runtimeLib);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
/* Add pre-defined system properties */
|
||||
if (set.javaHome != 0) {
|
||||
char *def = JRE_Malloc(strlen(set.javaHome) + 16);
|
||||
sprintf(def, "java.home=%s", set.javaHome);
|
||||
AddProperty(def);
|
||||
}
|
||||
|
||||
if (set.compiler != 0) {
|
||||
char *def = JRE_Malloc(strlen(set.compiler) + 16);
|
||||
sprintf(def, "java.compiler=%s", set.compiler);
|
||||
AddProperty(def);
|
||||
}
|
||||
|
||||
/*
|
||||
* The following is used to specify that we require at least
|
||||
* JNI version 1.1. Currently, this field is not checked but
|
||||
* will be starting with JDK/JRE 1.2. The value returned after
|
||||
* calling JNI_GetDefaultJavaVMInitArgs() is the actual JNI version
|
||||
* supported, and is always higher that the requested version.
|
||||
*/
|
||||
vmargs.version = 0x00010001;
|
||||
|
||||
if (JRE_GetDefaultJavaVMInitArgs(handle, &vmargs) != 0) {
|
||||
fprintf(stderr, "Could not initialize Java VM\n");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
/* Tack on our classpath */
|
||||
if(MORE_CLASSPATH_COUNT)
|
||||
{
|
||||
int i;
|
||||
int size = strlen(set.classPath) + 1;
|
||||
char sep[2];
|
||||
|
||||
sep[0] = PATH_SEPARATOR;
|
||||
sep[1] = 0;
|
||||
|
||||
for(i = 0; i < MORE_CLASSPATH_COUNT; i++)
|
||||
size += strlen(more_classpath[i]) + 1;
|
||||
|
||||
vmargs.classpath = malloc(size);
|
||||
if(vmargs.classpath == 0)
|
||||
{
|
||||
fprintf(stderr, "malloc error\n");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
strcpy(vmargs.classpath, set.classPath);
|
||||
for(i = 0; i < MORE_CLASSPATH_COUNT; i++)
|
||||
{
|
||||
strcat(vmargs.classpath, sep);
|
||||
strcat(vmargs.classpath, more_classpath[i]);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
vmargs.classpath = set.classPath;
|
||||
}
|
||||
|
||||
/*
|
||||
* fprintf(stderr, "classpath: %s\n", vmargs.classpath);
|
||||
*/
|
||||
|
||||
/* Set user-defined system properties for Java VM */
|
||||
if (props != 0) {
|
||||
if (numProps == maxProps) {
|
||||
char **tmp = JRE_Malloc((numProps + 1) * sizeof(char **));
|
||||
memcpy(tmp, props, numProps * sizeof(char **));
|
||||
free(props);
|
||||
props = tmp;
|
||||
}
|
||||
props[numProps] = 0;
|
||||
vmargs.properties = props;
|
||||
}
|
||||
|
||||
|
||||
/* verbose? */
|
||||
/*
|
||||
* vmargs.verbose = JNI_TRUE;
|
||||
*/
|
||||
|
||||
/* Load and initialize Java VM */
|
||||
if (JRE_CreateJavaVM(handle, &jvm, &env, &vmargs) != 0) {
|
||||
fprintf(stderr, "Could not create Java VM\n");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
/* Free properties */
|
||||
if (props != 0) {
|
||||
free(props);
|
||||
}
|
||||
return env;
|
||||
}
|
||||
|
||||
static JSBool
|
||||
_StartDebuggerFE(JNIEnv* env)
|
||||
{
|
||||
jclass clazz;
|
||||
jmethodID mid;
|
||||
jarray args;
|
||||
|
||||
/* Find class */
|
||||
clazz = (*env)->FindClass(env, main_class);
|
||||
if (clazz == 0) {
|
||||
fprintf(stderr, "Class not found: %s\n", main_class);
|
||||
return JS_FALSE;
|
||||
}
|
||||
|
||||
/* Find main method of class */
|
||||
mid = (*env)->GetStaticMethodID(env, clazz, "main",
|
||||
"([Ljava/lang/String;)V");
|
||||
if (mid == 0) {
|
||||
fprintf(stderr, "In class %s: public static void main(String args[])"
|
||||
" is not defined\n");
|
||||
return JS_FALSE;
|
||||
}
|
||||
|
||||
/* Invoke main method */
|
||||
args = NewStringArray(env, params, PARAM_COUNT);
|
||||
|
||||
if (args == 0) {
|
||||
JRE_FatalError(env, "Couldn't build argument list for main\n");
|
||||
}
|
||||
(*env)->CallStaticVoidMethod(env, clazz, mid, args);
|
||||
if ((*env)->ExceptionOccurred(env)) {
|
||||
(*env)->ExceptionDescribe(env);
|
||||
}
|
||||
|
||||
return JS_TRUE;
|
||||
}
|
||||
|
||||
JNIEnv*
|
||||
jsdj_CreateJavaVMAndStartDebugger(JSDJContext* jsdjc)
|
||||
{
|
||||
JNIEnv* env = NULL;
|
||||
|
||||
env = _CreateJavaVM();
|
||||
if( ! env )
|
||||
return NULL;
|
||||
|
||||
jsdj_SetJNIEnvForCurrentThread(jsdjc, env);
|
||||
if( ! jsdj_RegisterNatives(jsdjc) )
|
||||
return NULL;
|
||||
if( ! _StartDebuggerFE(env) )
|
||||
return NULL;
|
||||
|
||||
return env;
|
||||
}
|
||||
|
||||
|
||||
#endif /* JSD_STANDALONE_JAVA_VM */
|
||||
/***************************************************************************/
|
||||
|
||||
147
mozilla/js/jsd/java/jsdj.h
Normal file
147
mozilla/js/jsd/java/jsdj.h
Normal file
@@ -0,0 +1,147 @@
|
||||
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
|
||||
*
|
||||
* The contents of this file are subject to the Netscape Public License
|
||||
* Version 1.0 (the "NPL"); you may not use this file except in
|
||||
* compliance with the NPL. You may obtain a copy of the NPL at
|
||||
* http://www.mozilla.org/NPL/
|
||||
*
|
||||
* Software distributed under the NPL is distributed on an "AS IS" basis,
|
||||
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
|
||||
* for the specific language governing rights and limitations under the
|
||||
* NPL.
|
||||
*
|
||||
* The Initial Developer of this code under the NPL is Netscape
|
||||
* Communications Corporation. Portions created by Netscape are
|
||||
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
|
||||
* Reserved.
|
||||
*/
|
||||
|
||||
/*
|
||||
* Header for JavaScript Debugger JNI support (internal functions)
|
||||
*/
|
||||
|
||||
#ifndef jsdj_h___
|
||||
#define jsdj_h___
|
||||
|
||||
/* Get jstypes.h included first. After that we can use PR macros for doing
|
||||
* this extern "C" stuff!
|
||||
*/
|
||||
#ifdef __cplusplus
|
||||
extern "C"
|
||||
{
|
||||
#endif
|
||||
#include "jstypes.h"
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
JS_BEGIN_EXTERN_C
|
||||
#include "jsutil.h" /* Added by JSIFY */
|
||||
#include "jshash.h" /* Added by JSIFY */
|
||||
#include "jsdjava.h"
|
||||
#include "jsobj.h"
|
||||
#include "jsfun.h"
|
||||
#include "jsdbgapi.h"
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
JS_END_EXTERN_C
|
||||
|
||||
JS_BEGIN_EXTERN_C
|
||||
|
||||
/***************************************************************************/
|
||||
/* defines copied from Java sources.
|
||||
** NOTE: javah used to put these in the h files, but with JNI does not seem
|
||||
** to do this anymore. Be careful with synchronization of these
|
||||
**
|
||||
*/
|
||||
|
||||
/* From: ThreadStateBase.java */
|
||||
|
||||
#define THR_STATUS_UNKNOWN 0x01
|
||||
#define THR_STATUS_ZOMBIE 0x02
|
||||
#define THR_STATUS_RUNNING 0x03
|
||||
#define THR_STATUS_SLEEPING 0x04
|
||||
#define THR_STATUS_MONWAIT 0x05
|
||||
#define THR_STATUS_CONDWAIT 0x06
|
||||
#define THR_STATUS_SUSPENDED 0x07
|
||||
#define THR_STATUS_BREAK 0x08
|
||||
|
||||
#define DEBUG_STATE_DEAD 0x01
|
||||
#define DEBUG_STATE_RUN 0x02
|
||||
#define DEBUG_STATE_RETURN 0x03
|
||||
#define DEBUG_STATE_THROW 0x04
|
||||
|
||||
/***************************************************************************/
|
||||
/* Our structures */
|
||||
|
||||
typedef struct JSDJContext
|
||||
{
|
||||
JSDContext* jsdc;
|
||||
JSHashTable* envTable;
|
||||
jobject controller;
|
||||
JSDJ_UserCallbacks callbacks;
|
||||
void* user;
|
||||
JSBool ownJSDC;
|
||||
} JSDJContext;
|
||||
|
||||
/***************************************************************************/
|
||||
/* Code validation support */
|
||||
|
||||
#ifdef DEBUG
|
||||
extern void JSDJ_ASSERT_VALID_CONTEXT(JSDJContext* jsdjc);
|
||||
#else
|
||||
#define JSDJ_ASSERT_VALID_CONTEXT(x) ((void)0)
|
||||
#endif
|
||||
|
||||
/***************************************************************************/
|
||||
/* higher level functions */
|
||||
|
||||
extern JSDJContext*
|
||||
jsdj_SimpleInitForSingleContextMode(JSDContext* jsdc,
|
||||
JSDJ_GetJNIEnvProc getEnvProc, void* user);
|
||||
extern JSBool
|
||||
jsdj_SetSingleContextMode();
|
||||
|
||||
extern JSDJContext*
|
||||
jsdj_CreateContext();
|
||||
|
||||
extern void
|
||||
jsdj_DestroyContext(JSDJContext* jsdjc);
|
||||
|
||||
extern void
|
||||
jsdj_SetUserCallbacks(JSDJContext* jsdjc, JSDJ_UserCallbacks* callbacks,
|
||||
void* user);
|
||||
extern void
|
||||
jsdj_SetJNIEnvForCurrentThread(JSDJContext* jsdjc, JNIEnv* env);
|
||||
|
||||
extern JNIEnv*
|
||||
jsdj_GetJNIEnvForCurrentThread(JSDJContext* jsdjc);
|
||||
|
||||
extern void
|
||||
jsdj_SetJSDContext(JSDJContext* jsdjc, JSDContext* jsdc);
|
||||
|
||||
extern JSDContext*
|
||||
jsdj_GetJSDContext(JSDJContext* jsdjc);
|
||||
|
||||
extern JSBool
|
||||
jsdj_RegisterNatives(JSDJContext* jsdjc);
|
||||
|
||||
/***************************************************************************/
|
||||
#ifdef JSD_STANDALONE_JAVA_VM
|
||||
|
||||
extern JNIEnv*
|
||||
jsdj_CreateJavaVMAndStartDebugger(JSDJContext* jsdjc);
|
||||
|
||||
/**
|
||||
* extern JNIEnv*
|
||||
* jsdj_CreateJavaVM(JSDContext* jsdc);
|
||||
*/
|
||||
|
||||
#endif /* JSD_STANDALONE_JAVA_VM */
|
||||
/***************************************************************************/
|
||||
|
||||
JS_END_EXTERN_C
|
||||
|
||||
#endif /* jsdj_h___ */
|
||||
|
||||
110
mozilla/js/jsd/java/jsdjava.c
Normal file
110
mozilla/js/jsd/java/jsdjava.c
Normal file
@@ -0,0 +1,110 @@
|
||||
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
|
||||
*
|
||||
* The contents of this file are subject to the Netscape Public License
|
||||
* Version 1.0 (the "NPL"); you may not use this file except in
|
||||
* compliance with the NPL. You may obtain a copy of the NPL at
|
||||
* http://www.mozilla.org/NPL/
|
||||
*
|
||||
* Software distributed under the NPL is distributed on an "AS IS" basis,
|
||||
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
|
||||
* for the specific language governing rights and limitations under the
|
||||
* NPL.
|
||||
*
|
||||
* The Initial Developer of this code under the NPL is Netscape
|
||||
* Communications Corporation. Portions created by Netscape are
|
||||
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
|
||||
* Reserved.
|
||||
*/
|
||||
|
||||
/*
|
||||
* Public functions to reflect JSD into Java
|
||||
*/
|
||||
|
||||
#include "jsdj.h"
|
||||
|
||||
JSDJ_PUBLIC_API(JSDJContext*)
|
||||
JSDJ_SimpleInitForSingleContextMode(JSDContext* jsdc,
|
||||
JSDJ_GetJNIEnvProc getEnvProc, void* user)
|
||||
{
|
||||
return jsdj_SimpleInitForSingleContextMode(jsdc, getEnvProc, user);
|
||||
}
|
||||
|
||||
JSDJ_PUBLIC_API(JSBool)
|
||||
JSDJ_SetSingleContextMode()
|
||||
{
|
||||
return jsdj_SetSingleContextMode();
|
||||
}
|
||||
|
||||
JSDJ_PUBLIC_API(JSDJContext*)
|
||||
JSDJ_CreateContext()
|
||||
{
|
||||
return jsdj_CreateContext();
|
||||
}
|
||||
|
||||
JSDJ_PUBLIC_API(void)
|
||||
JSDJ_DestroyContext(JSDJContext* jsdjc)
|
||||
{
|
||||
JSDJ_ASSERT_VALID_CONTEXT(jsdjc);
|
||||
jsdj_DestroyContext(jsdjc);
|
||||
}
|
||||
|
||||
JSDJ_PUBLIC_API(void)
|
||||
JSDJ_SetUserCallbacks(JSDJContext* jsdjc, JSDJ_UserCallbacks* callbacks,
|
||||
void* user)
|
||||
{
|
||||
JSDJ_ASSERT_VALID_CONTEXT(jsdjc);
|
||||
JS_ASSERT(!callbacks ||
|
||||
(callbacks->size > 0 &&
|
||||
callbacks->size <= sizeof(JSDJ_UserCallbacks)));
|
||||
jsdj_SetUserCallbacks(jsdjc, callbacks, user);
|
||||
}
|
||||
|
||||
JSDJ_PUBLIC_API(void)
|
||||
JSDJ_SetJNIEnvForCurrentThread(JSDJContext* jsdjc, JNIEnv* env)
|
||||
{
|
||||
JSDJ_ASSERT_VALID_CONTEXT(jsdjc);
|
||||
JS_ASSERT(env);
|
||||
jsdj_SetJNIEnvForCurrentThread(jsdjc, env);
|
||||
}
|
||||
|
||||
JSDJ_PUBLIC_API(JNIEnv*)
|
||||
JSDJ_GetJNIEnvForCurrentThread(JSDJContext* jsdjc)
|
||||
{
|
||||
JSDJ_ASSERT_VALID_CONTEXT(jsdjc);
|
||||
return jsdj_GetJNIEnvForCurrentThread(jsdjc);
|
||||
}
|
||||
|
||||
JSDJ_PUBLIC_API(void)
|
||||
JSDJ_SetJSDContext(JSDJContext* jsdjc, JSDContext* jsdc)
|
||||
{
|
||||
JSDJ_ASSERT_VALID_CONTEXT(jsdjc);
|
||||
JS_ASSERT(jsdc);
|
||||
jsdj_SetJSDContext(jsdjc, jsdc);
|
||||
}
|
||||
|
||||
JSDJ_PUBLIC_API(JSDContext*)
|
||||
JSDJ_GetJSDContext(JSDJContext* jsdjc)
|
||||
{
|
||||
JSDJ_ASSERT_VALID_CONTEXT(jsdjc);
|
||||
return jsdj_GetJSDContext(jsdjc);
|
||||
}
|
||||
|
||||
JSDJ_PUBLIC_API(JSBool)
|
||||
JSDJ_RegisterNatives(JSDJContext* jsdjc)
|
||||
{
|
||||
JSDJ_ASSERT_VALID_CONTEXT(jsdjc);
|
||||
return jsdj_RegisterNatives(jsdjc);
|
||||
}
|
||||
|
||||
/***************************************************************************/
|
||||
#ifdef JSD_STANDALONE_JAVA_VM
|
||||
|
||||
JSDJ_PUBLIC_API(JNIEnv*)
|
||||
JSDJ_CreateJavaVMAndStartDebugger(JSDJContext* jsdjc)
|
||||
{
|
||||
JSDJ_ASSERT_VALID_CONTEXT(jsdjc);
|
||||
return jsdj_CreateJavaVMAndStartDebugger(jsdjc);
|
||||
}
|
||||
|
||||
#endif /* JSD_STANDALONE_JAVA_VM */
|
||||
/***************************************************************************/
|
||||
133
mozilla/js/jsd/java/jsdjava.h
Normal file
133
mozilla/js/jsd/java/jsdjava.h
Normal file
@@ -0,0 +1,133 @@
|
||||
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
|
||||
*
|
||||
* The contents of this file are subject to the Netscape Public License
|
||||
* Version 1.0 (the "NPL"); you may not use this file except in
|
||||
* compliance with the NPL. You may obtain a copy of the NPL at
|
||||
* http://www.mozilla.org/NPL/
|
||||
*
|
||||
* Software distributed under the NPL is distributed on an "AS IS" basis,
|
||||
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
|
||||
* for the specific language governing rights and limitations under the
|
||||
* NPL.
|
||||
*
|
||||
* The Initial Developer of this code under the NPL is Netscape
|
||||
* Communications Corporation. Portions created by Netscape are
|
||||
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
|
||||
* Reserved.
|
||||
*/
|
||||
|
||||
/*
|
||||
* Header for JavaScript Debugger JNI interfaces
|
||||
*/
|
||||
|
||||
#ifndef jsdjava_h___
|
||||
#define jsdjava_h___
|
||||
|
||||
/* Get jstypes.h included first. After that we can use PR macros for doing
|
||||
* this extern "C" stuff!
|
||||
*/
|
||||
#ifdef __cplusplus
|
||||
extern "C"
|
||||
{
|
||||
#endif
|
||||
#include "jstypes.h"
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
JS_BEGIN_EXTERN_C
|
||||
#include "jsdebug.h"
|
||||
#include "jni.h"
|
||||
JS_END_EXTERN_C
|
||||
|
||||
|
||||
JS_BEGIN_EXTERN_C
|
||||
|
||||
/*
|
||||
* The linkage of JSDJ API functions differs depending on whether the file is
|
||||
* used within the JSDJ library or not. Any source file within the JSDJ
|
||||
* libraray should define EXPORT_JSDJ_API whereas any client of the library
|
||||
* should not.
|
||||
*/
|
||||
#ifdef EXPORT_JSDJ_API
|
||||
#define JSDJ_PUBLIC_API(t) JS_EXPORT_API(t)
|
||||
#define JSDJ_PUBLIC_DATA(t) JS_EXPORT_DATA(t)
|
||||
#else
|
||||
#define JSDJ_PUBLIC_API(t) JS_IMPORT_API(t)
|
||||
#define JSDJ_PUBLIC_DATA(t) JS_IMPORT_DATA(t)
|
||||
#endif
|
||||
|
||||
#define JSDJ_FRIEND_API(t) JSDJ_PUBLIC_API(t)
|
||||
#define JSDJ_FRIEND_DATA(t) JSDJ_PUBLIC_DATA(t)
|
||||
|
||||
/***************************************************************************/
|
||||
/* Opaque typedefs for handles */
|
||||
|
||||
typedef struct JSDJContext JSDJContext;
|
||||
|
||||
/***************************************************************************/
|
||||
/* High Level functions */
|
||||
|
||||
#define JSDJ_START_SUCCESS 1
|
||||
#define JSDJ_START_FAILURE 2
|
||||
#define JSDJ_STOP 3
|
||||
|
||||
typedef void
|
||||
(*JSDJ_StartStopProc)(JSDJContext* jsdjc, int event, void *user);
|
||||
|
||||
typedef JNIEnv*
|
||||
(*JSDJ_GetJNIEnvProc)(JSDJContext* jsdjc, void* user);
|
||||
|
||||
/* This struct could have more fields in future versions */
|
||||
typedef struct
|
||||
{
|
||||
uintN size; /* size of this struct (init before use)*/
|
||||
JSDJ_StartStopProc startStop;
|
||||
JSDJ_GetJNIEnvProc getJNIEnv;
|
||||
} JSDJ_UserCallbacks;
|
||||
|
||||
extern JSDJ_PUBLIC_API(JSDJContext*)
|
||||
JSDJ_SimpleInitForSingleContextMode(JSDContext* jsdc,
|
||||
JSDJ_GetJNIEnvProc getEnvProc, void* user);
|
||||
|
||||
extern JSDJ_PUBLIC_API(JSBool)
|
||||
JSDJ_SetSingleContextMode();
|
||||
|
||||
extern JSDJ_PUBLIC_API(JSDJContext*)
|
||||
JSDJ_CreateContext();
|
||||
|
||||
extern JSDJ_PUBLIC_API(void)
|
||||
JSDJ_DestroyContext(JSDJContext* jsdjc);
|
||||
|
||||
extern JSDJ_PUBLIC_API(void)
|
||||
JSDJ_SetUserCallbacks(JSDJContext* jsdjc, JSDJ_UserCallbacks* callbacks,
|
||||
void* user);
|
||||
|
||||
extern JSDJ_PUBLIC_API(void)
|
||||
JSDJ_SetJNIEnvForCurrentThread(JSDJContext* jsdjc, JNIEnv* env);
|
||||
|
||||
extern JSDJ_PUBLIC_API(JNIEnv*)
|
||||
JSDJ_GetJNIEnvForCurrentThread(JSDJContext* jsdjc);
|
||||
|
||||
extern JSDJ_PUBLIC_API(void)
|
||||
JSDJ_SetJSDContext(JSDJContext* jsdjc, JSDContext* jsdc);
|
||||
|
||||
extern JSDJ_PUBLIC_API(JSDContext*)
|
||||
JSDJ_GetJSDContext(JSDJContext* jsdjc);
|
||||
|
||||
extern JSDJ_PUBLIC_API(JSBool)
|
||||
JSDJ_RegisterNatives(JSDJContext* jsdjc);
|
||||
|
||||
/***************************************************************************/
|
||||
#ifdef JSD_STANDALONE_JAVA_VM
|
||||
|
||||
extern JSDJ_PUBLIC_API(JNIEnv*)
|
||||
JSDJ_CreateJavaVMAndStartDebugger(JSDJContext* jsdjc);
|
||||
|
||||
#endif /* JSD_STANDALONE_JAVA_VM */
|
||||
/***************************************************************************/
|
||||
|
||||
JS_END_EXTERN_C
|
||||
|
||||
#endif /* jsdjava_h___ */
|
||||
|
||||
78
mozilla/js/jsd/java/jsdjava.mak
Normal file
78
mozilla/js/jsd/java/jsdjava.mak
Normal file
@@ -0,0 +1,78 @@
|
||||
|
||||
PROJ = jsdjava
|
||||
JSDJAVA = .
|
||||
JSD = $(JSDJAVA)\..
|
||||
JS = $(JSD)\..\src
|
||||
JSPROJ = js32
|
||||
JSDPROJ = jsd
|
||||
|
||||
!IF "$(BUILD_OPT)" != ""
|
||||
OBJ = Release
|
||||
CC_FLAGS = /DNDEBUG
|
||||
!ELSE
|
||||
OBJ = Debug
|
||||
CC_FLAGS = /DDEBUG
|
||||
LINK_FLAGS = /DEBUG
|
||||
!ENDIF
|
||||
|
||||
QUIET=@
|
||||
|
||||
CFLAGS = /nologo /MDd /W3 /Gm /GX /Zi /Od\
|
||||
/I $(JS)\
|
||||
/I $(JSD)\
|
||||
/I $(JSDJAVA)\
|
||||
/DDEBUG /DWIN32 /DXP_PC /D_WINDOWS /D_WIN32\
|
||||
/DJSD_THREADSAFE\
|
||||
/DEXPORT_JSDJ_API\
|
||||
/DJSDEBUGGER\
|
||||
!IF "$(JSD_STANDALONE_JAVA_VM)" != ""
|
||||
/I $(JSDJAVA)\jre\
|
||||
/I $(JSDJAVA)\jre\win32\
|
||||
/DJSD_STANDALONE_JAVA_VM\
|
||||
!ENDIF
|
||||
$(CC_FLAGS)\
|
||||
/c /Fp$(OBJ)\$(PROJ).pch /Fd$(OBJ)\$(PROJ).pdb /YX -Fo$@ $<
|
||||
|
||||
LFLAGS = /nologo /subsystem:console /DLL /incremental:no /machine:I386 \
|
||||
$(LINK_FLAGS) /pdb:$(OBJ)\$(PROJ).pdb -out:$(OBJ)\$(PROJ).dll
|
||||
|
||||
LLIBS = kernel32.lib advapi32.lib \
|
||||
$(JS)\$(OBJ)\$(JSPROJ).lib $(JSD)\$(OBJ)\$(JSDPROJ).lib
|
||||
|
||||
CPP=cl.exe
|
||||
LINK32=link.exe
|
||||
|
||||
all: $(OBJ) $(OBJ)\$(PROJ).dll
|
||||
|
||||
|
||||
$(OBJ)\$(PROJ).dll: \
|
||||
!IF "$(JSD_STANDALONE_JAVA_VM)" != ""
|
||||
$(OBJ)\jsd_jvm.obj \
|
||||
$(OBJ)\jre.obj \
|
||||
$(OBJ)\jre_md.obj \
|
||||
!ENDIF
|
||||
$(OBJ)\jsdjava.obj \
|
||||
$(OBJ)\jsd_jntv.obj
|
||||
$(QUIET)$(LINK32) $(LFLAGS) $** $(LLIBS)
|
||||
|
||||
{$(JSDJAVA)}.c{$(OBJ)}.obj :
|
||||
$(QUIET)$(CPP) $(CFLAGS)
|
||||
|
||||
{$(JSDJAVA)\jre}.c{$(OBJ)}.obj :
|
||||
$(QUIET)$(CPP) $(CFLAGS)
|
||||
|
||||
{$(JSDJAVA)\jre\win32}.c{$(OBJ)}.obj :
|
||||
$(QUIET)$(CPP) $(CFLAGS)
|
||||
|
||||
$(OBJ) :
|
||||
$(QUIET)mkdir $(OBJ)
|
||||
|
||||
clean:
|
||||
@echo deleting old output
|
||||
$(QUIET)del $(OBJ)\*.pch >NUL
|
||||
$(QUIET)del $(OBJ)\*.obj >NUL
|
||||
$(QUIET)del $(OBJ)\*.exp >NUL
|
||||
$(QUIET)del $(OBJ)\*.lib >NUL
|
||||
$(QUIET)del $(OBJ)\*.idb >NUL
|
||||
$(QUIET)del $(OBJ)\*.pdb >NUL
|
||||
$(QUIET)del $(OBJ)\*.dll >NUL
|
||||
147
mozilla/js/jsd/javawrap/javawrap.mak
Normal file
147
mozilla/js/jsd/javawrap/javawrap.mak
Normal file
@@ -0,0 +1,147 @@
|
||||
|
||||
PROJ = nativejsengine
|
||||
PACKAGE_DOT = com.netscape.nativejsengine
|
||||
|
||||
NJSE = .
|
||||
TESTS = $(NJSE)\tests
|
||||
GEN = $(NJSE)\_jni
|
||||
JSD = $(NJSE)\..
|
||||
JS = $(JSD)\..\src
|
||||
JSDJAVA = $(JSD)\java
|
||||
|
||||
JSPROJ = js32
|
||||
JSDPROJ = jsd
|
||||
JSDJAVAPROJ = jsdjava
|
||||
|
||||
EXPORT_BIN_BASE_DIR = $(NJSE)\..\..\jsdj\dist\bin
|
||||
EXPORT_CLASSES_BASE_DIR = $(NJSE)\..\..\jsdj\dist\classes
|
||||
|
||||
!IF "$(BUILD_OPT)" != ""
|
||||
OBJ = Release
|
||||
CC_FLAGS = /DNDEBUG
|
||||
!ELSE
|
||||
OBJ = Debug
|
||||
CC_FLAGS = /DDEBUG
|
||||
LINK_FLAGS = /DEBUG
|
||||
!ENDIF
|
||||
|
||||
QUIET=@
|
||||
|
||||
EXPORT_BIN_DIR = $(EXPORT_BIN_BASE_DIR)\$(OBJ)
|
||||
|
||||
STD_CLASSPATH = -classpath $(EXPORT_CLASSES_BASE_DIR);$(CLASSPATH)
|
||||
|
||||
CFLAGS = /nologo /MDd /W3 /Gm /GX /Zi /Od\
|
||||
/DWIN32 /DXP_PC /D_WINDOWS /D_WIN32\
|
||||
/I $(JS)\
|
||||
/I $(JSD)\
|
||||
/I $(JSDJAVA)\
|
||||
/DJSDEBUGGER\
|
||||
/DJSD_THREADSAFE\
|
||||
$(CC_FLAGS)\
|
||||
/c /Fp$(OBJ)\$(PROJ).pch /Fd$(OBJ)\$(PROJ).pdb /YX -Fo$@ $<
|
||||
|
||||
LFLAGS = /nologo /subsystem:console /incremental:no /DLL /machine:I386 \
|
||||
$(LINK_FLAGS) /pdb:$(OBJ)\$(PROJ).pdb -out:$(OBJ)\$(PROJ).dll
|
||||
|
||||
LLIBS = kernel32.lib advapi32.lib \
|
||||
$(JS)\$(OBJ)\$(JSPROJ).lib \
|
||||
$(JSD)\$(OBJ)\$(JSDPROJ).lib \
|
||||
$(JSDJAVA)\$(OBJ)\$(JSDJAVAPROJ).lib
|
||||
|
||||
CPP=cl.exe
|
||||
LINK32=link.exe
|
||||
|
||||
CLASSES_WITH_NATIVES = \
|
||||
$(PACKAGE_DOT).JSRuntime\
|
||||
$(PACKAGE_DOT).JSContext
|
||||
|
||||
|
||||
all: $(GEN) $(OBJ) dlls mkjniheaders $(OBJ)\$(PROJ).dll export_binaries
|
||||
|
||||
$(OBJ)\$(PROJ).dll: \
|
||||
$(OBJ)\nativejsengine.obj
|
||||
$(QUIET)$(LINK32) $(LFLAGS) $** $(LLIBS)
|
||||
|
||||
.c{$(OBJ)}.obj:
|
||||
$(QUIET)$(CPP) $(CFLAGS)
|
||||
|
||||
$(GEN) :
|
||||
@mkdir $(GEN)
|
||||
|
||||
$(OBJ) :
|
||||
@mkdir $(OBJ)
|
||||
|
||||
dlls :
|
||||
$(QUIET)cd ..\..\src
|
||||
!IF "$(BUILD_OPT)" != ""
|
||||
$(QUIET)nmake -f js.mak CFG="js - Win32 Release"
|
||||
!ELSE
|
||||
$(QUIET)nmake -f js.mak CFG="js - Win32 Debug"
|
||||
!ENDIF
|
||||
$(QUIET)cd ..\jsd\javawrap
|
||||
$(QUIET)cd ..
|
||||
$(QUIET)nmake -f jsd.mak JSD_THREADSAFE=1 $(OPT)
|
||||
$(QUIET)cd javawrap
|
||||
$(QUIET)cd ..\java
|
||||
$(QUIET)nmake -f jsdjava.mak $(OPT)
|
||||
$(QUIET)cd ..\javawrap
|
||||
|
||||
|
||||
export_binaries : mk_export_dirs
|
||||
@echo exporting binaries
|
||||
$(QUIET)copy $(JS)\$(OBJ)\$(JSPROJ).dll $(EXPORT_BIN_DIR) >NUL
|
||||
$(QUIET)copy $(JS)\$(OBJ)\$(JSPROJ).pdb $(EXPORT_BIN_DIR) >NUL
|
||||
$(QUIET)copy $(JSD)\$(OBJ)\$(JSDPROJ).dll $(EXPORT_BIN_DIR) >NUL
|
||||
$(QUIET)copy $(JSD)\$(OBJ)\$(JSDPROJ).pdb $(EXPORT_BIN_DIR) >NUL
|
||||
$(QUIET)copy $(JSDJAVA)\$(OBJ)\$(JSDJAVAPROJ).dll $(EXPORT_BIN_DIR) >NUL
|
||||
$(QUIET)copy $(JSDJAVA)\$(OBJ)\$(JSDJAVAPROJ).pdb $(EXPORT_BIN_DIR) >NUL
|
||||
$(QUIET)copy $(OBJ)\$(PROJ).pdb $(EXPORT_BIN_DIR) >NUL
|
||||
$(QUIET)copy $(OBJ)\$(PROJ).dll $(EXPORT_BIN_DIR) >NUL
|
||||
|
||||
mkjniheaders :
|
||||
@echo generating JNI header
|
||||
$(QUIET)javah -jni -d "$(GEN)" $(STD_CLASSPATH) $(CLASSES_WITH_NATIVES)
|
||||
@touch *.c >NUL
|
||||
|
||||
mk_export_dirs:
|
||||
@if not exist $(JS)\..\jsdj\dist\NUL @mkdir $(JS)\..\jsdj\dist
|
||||
@if not exist $(JS)\..\jsdj\dist\bin\NUL @mkdir $(JS)\..\jsdj\dist\bin
|
||||
@if not exist $(EXPORT_BIN_DIR)\NUL @mkdir $(EXPORT_BIN_DIR)
|
||||
|
||||
#mktest :
|
||||
# @echo compiling Java test file
|
||||
# @sj $(JAVAFLAGS) $(TEST_CLASSPATH) $(TESTS)\Main.java
|
||||
# @echo copying js and jsd dlls
|
||||
# @copy $(JS)\$(OBJ)\$(JSPROJ).dll $(OBJ) >NUL
|
||||
# @copy $(JS)\$(OBJ)\$(JSPROJ).pdb $(OBJ) >NUL
|
||||
# @copy $(JSD)\$(OBJ)\$(JSDPROJ).dll $(OBJ) >NUL
|
||||
# @copy $(JSD)\$(OBJ)\$(JSDPROJ).pdb $(OBJ) >NUL
|
||||
# @copy $(TESTS)\*.js $(OBJ) >NUL
|
||||
|
||||
clean:
|
||||
@echo deleting old output
|
||||
$(QUIET)del $(OBJ)\*.pch >NUL
|
||||
$(QUIET)del $(OBJ)\*.obj >NUL
|
||||
$(QUIET)del $(OBJ)\*.exp >NUL
|
||||
$(QUIET)del $(OBJ)\*.lib >NUL
|
||||
$(QUIET)del $(OBJ)\*.idb >NUL
|
||||
$(QUIET)del $(OBJ)\*.pdb >NUL
|
||||
$(QUIET)del $(OBJ)\*.dll >NUL
|
||||
$(QUIET)del $(GEN)\*.h >NUL
|
||||
|
||||
|
||||
deep_clean: clean
|
||||
$(QUIET)cd ..\..\src
|
||||
!IF "$(BUILD_OPT)" != ""
|
||||
$(QUIET)nmake -f js.mak CFG="js - Win32 Release" clean
|
||||
!ELSE
|
||||
$(QUIET)nmake -f js.mak CFG="js - Win32 Debug" clean
|
||||
!ENDIF
|
||||
$(QUIET)cd ..\jsd\javawrap
|
||||
$(QUIET)cd ..
|
||||
$(QUIET)nmake -f jsd.mak clean
|
||||
$(QUIET)cd javawrap
|
||||
$(QUIET)cd ..\java
|
||||
$(QUIET)nmake -f jsdjava.mak clean
|
||||
$(QUIET)cd ..\javawrap
|
||||
1
mozilla/js/jsd/javawrap/mk.bat
Executable file
1
mozilla/js/jsd/javawrap/mk.bat
Executable file
@@ -0,0 +1 @@
|
||||
nmake -f javawrap.mak %1 %2 %3 %4 %5
|
||||
616
mozilla/js/jsd/javawrap/nativejsengine.c
Normal file
616
mozilla/js/jsd/javawrap/nativejsengine.c
Normal file
@@ -0,0 +1,616 @@
|
||||
|
||||
#include <errno.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
#include "_jni/com_netscape_nativejsengine_JSRuntime.h"
|
||||
#include "_jni/com_netscape_nativejsengine_JSContext.h"
|
||||
|
||||
#include "jsapi.h"
|
||||
#include "jstypes.h"
|
||||
#include "jsutil.h" /* Added by JSIFY */
|
||||
|
||||
#ifdef JSDEBUGGER
|
||||
#include "jsdebug.h"
|
||||
#include "jsdjava.h"
|
||||
#endif
|
||||
|
||||
/***************************************************************************/
|
||||
|
||||
#define ASSERT_RETURN_VOID(x) \
|
||||
JS_BEGIN_MACRO \
|
||||
if(!(x)) \
|
||||
{ \
|
||||
JS_ASSERT(0); \
|
||||
return; \
|
||||
} \
|
||||
JS_END_MACRO
|
||||
|
||||
#define ASSERT_RETURN_VALUE(x,v)\
|
||||
JS_BEGIN_MACRO \
|
||||
if(!(x)) \
|
||||
{ \
|
||||
JS_ASSERT(0); \
|
||||
return v; \
|
||||
} \
|
||||
JS_END_MACRO
|
||||
|
||||
#define CHECK_RETURN_VOID(x) \
|
||||
JS_BEGIN_MACRO \
|
||||
if(!(x)) \
|
||||
{ \
|
||||
return; \
|
||||
} \
|
||||
JS_END_MACRO
|
||||
|
||||
#define CHECK_RETURN_VALUE(x,v) \
|
||||
JS_BEGIN_MACRO \
|
||||
if(!(x)) \
|
||||
{ \
|
||||
return v; \
|
||||
} \
|
||||
JS_END_MACRO
|
||||
|
||||
#define ASSERT_GOTO(x,w) \
|
||||
JS_BEGIN_MACRO \
|
||||
if(!(x)) \
|
||||
{ \
|
||||
JS_ASSERT(0); \
|
||||
goto w; \
|
||||
} \
|
||||
JS_END_MACRO
|
||||
|
||||
#define CHECK_GOTO(x,w) \
|
||||
JS_BEGIN_MACRO \
|
||||
if(!(x)) \
|
||||
{ \
|
||||
goto w; \
|
||||
} \
|
||||
JS_END_MACRO
|
||||
|
||||
#ifdef DEBUG
|
||||
#define ASSERT_CLEAR_EXCEPTION(e) \
|
||||
JS_BEGIN_MACRO \
|
||||
if((*e)->ExceptionOccurred(e)) \
|
||||
{ \
|
||||
(*e)->ExceptionDescribe(e); \
|
||||
JS_ASSERT(0); \
|
||||
} \
|
||||
(*e)->ExceptionClear(e); \
|
||||
JS_END_MACRO
|
||||
#else /* ! DEBUG */
|
||||
#define ASSERT_CLEAR_EXCEPTION(e) (*e)->ExceptionClear(e)
|
||||
#endif /* DEBUG */
|
||||
|
||||
#define CHECK_CLEAR_EXCEPTION(e) (*e)->ExceptionClear(e)
|
||||
|
||||
/***************************************************************************/
|
||||
|
||||
typedef struct ContextInfo {
|
||||
JNIEnv* env;
|
||||
jobject contextObject;
|
||||
} ContextInfo;
|
||||
|
||||
/***************************************************************************/
|
||||
|
||||
#ifdef JSDEBUGGER
|
||||
static void
|
||||
_jamSourceIntoJSD(JSContext *cx, const char* src, int len, const char* filename)
|
||||
{
|
||||
jclass clazz_self;
|
||||
jclass clazz;
|
||||
JSDJContext* jsdjc;
|
||||
jobject rtObject;
|
||||
jobject contextObject;
|
||||
jmethodID mid;
|
||||
jfieldID fid;
|
||||
ContextInfo* info;
|
||||
JNIEnv* env;
|
||||
|
||||
info = (ContextInfo*) JS_GetContextPrivate(cx);
|
||||
ASSERT_RETURN_VOID(info);
|
||||
|
||||
env = info->env;
|
||||
ASSERT_RETURN_VOID(env);
|
||||
|
||||
contextObject = info->contextObject;
|
||||
ASSERT_RETURN_VOID(contextObject);
|
||||
|
||||
clazz_self = (*env)->GetObjectClass(env, contextObject);
|
||||
ASSERT_RETURN_VOID(clazz_self);
|
||||
|
||||
fid = (*env)->GetFieldID(env, clazz_self, "_runtime",
|
||||
"Lcom/netscape/nativejsengine/JSRuntime;");
|
||||
ASSERT_RETURN_VOID(fid);
|
||||
|
||||
rtObject = (*env)->GetObjectField(env, contextObject, fid);
|
||||
ASSERT_RETURN_VOID(rtObject);
|
||||
|
||||
clazz = (*env)->GetObjectClass(env, rtObject);
|
||||
ASSERT_RETURN_VOID(clazz);
|
||||
|
||||
mid = (*env)->GetMethodID(env, clazz, "getNativeDebugSupport", "()J");
|
||||
ASSERT_RETURN_VOID(mid);
|
||||
|
||||
jsdjc = (JSDJContext*) (*env)->CallObjectMethod(env, rtObject, mid);
|
||||
if(jsdjc)
|
||||
{
|
||||
JSDContext* jsdc;
|
||||
|
||||
jsdc = JSDJ_GetJSDContext(jsdjc);
|
||||
ASSERT_RETURN_VOID(jsdc);
|
||||
|
||||
JSD_AddFullSourceText(jsdc, src, len, filename);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
static JSBool
|
||||
_loadSingleFile(JSContext *cx, JSObject *obj, const char* filename)
|
||||
{
|
||||
char* buf;
|
||||
FILE* file;
|
||||
int file_len;
|
||||
jsval result;
|
||||
|
||||
errno = 0;
|
||||
file = fopen(filename, "rb");
|
||||
if (!file) {
|
||||
JS_ReportError(cx, "can't open %s: %s", filename, strerror(errno));
|
||||
return JS_FALSE;
|
||||
}
|
||||
|
||||
fseek(file, 0, SEEK_END);
|
||||
file_len = ftell(file);
|
||||
fseek(file, 0, SEEK_SET);
|
||||
|
||||
if(! file_len) {
|
||||
fclose(file);
|
||||
JS_ReportError(cx, "%s is empty", filename);
|
||||
return JS_FALSE;
|
||||
}
|
||||
|
||||
buf = (char*) malloc(file_len);
|
||||
if(! buf) {
|
||||
fclose(file);
|
||||
JS_ReportError(cx, "memory alloc error while trying to read %s", filename);
|
||||
return JS_FALSE;
|
||||
}
|
||||
fread(buf, 1, file_len, file);
|
||||
fclose(file);
|
||||
|
||||
#ifdef JSDEBUGGER
|
||||
_jamSourceIntoJSD(cx, buf, file_len, filename);
|
||||
#endif
|
||||
|
||||
JS_EvaluateScript(cx, obj, buf, file_len, filename, 1, &result);
|
||||
|
||||
free(buf);
|
||||
return JS_TRUE;
|
||||
}
|
||||
|
||||
|
||||
static void _sendPrintStringToJava(JNIEnv* env, jobject contextObject,
|
||||
jmethodID mid, const char* str)
|
||||
{
|
||||
if(! str)
|
||||
return;
|
||||
(*env)->CallObjectMethod(env, contextObject, mid,
|
||||
(*env)->NewStringUTF(env, str));
|
||||
}
|
||||
|
||||
static JSBool
|
||||
Print(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, jsval *rval)
|
||||
{
|
||||
uintN i, n;
|
||||
JSString *str;
|
||||
|
||||
ContextInfo* info;
|
||||
jmethodID mid;
|
||||
jclass clazz;
|
||||
JNIEnv* env;
|
||||
|
||||
info = (ContextInfo*) JS_GetContextPrivate(cx);
|
||||
ASSERT_RETURN_VALUE(info, JS_FALSE);
|
||||
|
||||
env = info->env;
|
||||
ASSERT_RETURN_VALUE(env, JS_FALSE);
|
||||
|
||||
clazz = (*env)->GetObjectClass(env, info->contextObject);
|
||||
ASSERT_RETURN_VALUE(clazz, JS_FALSE);
|
||||
|
||||
mid = (*env)->GetMethodID(env, clazz, "_print", "(Ljava/lang/String;)V");
|
||||
ASSERT_RETURN_VALUE(mid, JS_FALSE);
|
||||
|
||||
for (i = n = 0; i < argc; i++) {
|
||||
str = JS_ValueToString(cx, argv[i]);
|
||||
if (!str)
|
||||
return JS_FALSE;
|
||||
|
||||
if(i)
|
||||
_sendPrintStringToJava(env, info->contextObject, mid, "");
|
||||
_sendPrintStringToJava(env, info->contextObject, mid, JS_GetStringBytes(str));
|
||||
n++;
|
||||
}
|
||||
if (n)
|
||||
_sendPrintStringToJava(env, info->contextObject, mid, "\n");
|
||||
return JS_TRUE;
|
||||
}
|
||||
|
||||
static JSBool
|
||||
Version(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, jsval *rval)
|
||||
{
|
||||
if (argc > 0 && JSVAL_IS_INT(argv[0]))
|
||||
*rval = INT_TO_JSVAL(JS_SetVersion(cx, JSVAL_TO_INT(argv[0])));
|
||||
else
|
||||
*rval = INT_TO_JSVAL(JS_GetVersion(cx));
|
||||
return JS_TRUE;
|
||||
}
|
||||
|
||||
static JSBool
|
||||
Load(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, jsval *rval)
|
||||
{
|
||||
uintN i;
|
||||
JSString *str;
|
||||
const char *filename;
|
||||
|
||||
for (i = 0; i < argc; i++) {
|
||||
str = JS_ValueToString(cx, argv[i]);
|
||||
if (!str)
|
||||
return JS_FALSE;
|
||||
argv[i] = STRING_TO_JSVAL(str);
|
||||
filename = JS_GetStringBytes(str);
|
||||
|
||||
if(! _loadSingleFile(cx, obj, filename))
|
||||
return JS_FALSE;
|
||||
}
|
||||
return JS_TRUE;
|
||||
}
|
||||
|
||||
static JSFunctionSpec shell_functions[] = {
|
||||
{"version", Version, 0},
|
||||
{"load", Load, 1},
|
||||
{"print", Print, 0},
|
||||
{0}
|
||||
};
|
||||
|
||||
static void
|
||||
my_ErrorReporter(JSContext *cx, const char *message, JSErrorReport *report)
|
||||
{
|
||||
ContextInfo* info;
|
||||
jmethodID mid;
|
||||
jclass clazz;
|
||||
JNIEnv* env;
|
||||
|
||||
jobject msg = NULL;
|
||||
jobject filename = NULL;
|
||||
jobject lineBuf = NULL;
|
||||
int lineno = 0;
|
||||
int offset = 0;
|
||||
|
||||
info = (ContextInfo*) JS_GetContextPrivate(cx);
|
||||
ASSERT_RETURN_VOID(info);
|
||||
|
||||
env = info->env;
|
||||
ASSERT_RETURN_VOID(env);
|
||||
|
||||
clazz = (*env)->GetObjectClass(env, info->contextObject);
|
||||
ASSERT_RETURN_VOID(clazz);
|
||||
|
||||
mid = (*env)->GetMethodID(env, clazz, "_reportError",
|
||||
"(Ljava/lang/String;Ljava/lang/String;ILjava/lang/String;I)V");
|
||||
ASSERT_RETURN_VOID(mid);
|
||||
|
||||
|
||||
if(message)
|
||||
msg = (*env)->NewStringUTF(env, message);
|
||||
|
||||
if(report)
|
||||
{
|
||||
lineno = report->lineno;
|
||||
if(report->filename)
|
||||
filename = (*env)->NewStringUTF(env, report->filename);
|
||||
|
||||
if(report->linebuf)
|
||||
{
|
||||
lineBuf = (*env)->NewStringUTF(env, report->linebuf);
|
||||
if(report->tokenptr)
|
||||
offset = report->tokenptr - report->linebuf;
|
||||
}
|
||||
}
|
||||
|
||||
(*env)->CallObjectMethod(env, info->contextObject, mid,
|
||||
msg, filename, lineno, lineBuf, offset);
|
||||
|
||||
}
|
||||
|
||||
static JSClass global_class = {
|
||||
"global", 0,
|
||||
JS_PropertyStub, JS_PropertyStub, JS_PropertyStub, JS_PropertyStub,
|
||||
JS_EnumerateStub, JS_ResolveStub, JS_ConvertStub, JS_FinalizeStub
|
||||
};
|
||||
|
||||
/*
|
||||
* Class: com_netscape_nativejsengine_JSRuntime
|
||||
* Method: _init
|
||||
* Signature: (Z)Z
|
||||
*/
|
||||
JNIEXPORT jboolean JNICALL Java_com_netscape_nativejsengine_JSRuntime__1init
|
||||
(JNIEnv * env, jobject self, jboolean enableDebugging)
|
||||
{
|
||||
JSRuntime *rt;
|
||||
jclass clazz;
|
||||
jfieldID fid;
|
||||
|
||||
rt = JS_NewRuntime(8L * 1024L * 1024L);
|
||||
ASSERT_RETURN_VALUE(rt, JNI_FALSE);
|
||||
|
||||
clazz = (*env)->GetObjectClass(env, self);
|
||||
ASSERT_RETURN_VALUE(clazz, JNI_FALSE);
|
||||
|
||||
fid = (*env)->GetFieldID(env, clazz, "_nativeRuntime", "J");
|
||||
ASSERT_RETURN_VALUE(fid, JNI_FALSE);
|
||||
(*env)->SetLongField(env, self, fid, (long) rt);
|
||||
|
||||
|
||||
#ifdef JSDEBUGGER
|
||||
if(enableDebugging)
|
||||
{
|
||||
JSDJContext* jsdjc;
|
||||
JSDContext* jsdc;
|
||||
|
||||
jsdc = JSD_DebuggerOnForUser(rt, NULL, NULL);
|
||||
ASSERT_RETURN_VALUE(jsdc, JNI_FALSE);
|
||||
|
||||
jsdjc = JSDJ_CreateContext();
|
||||
ASSERT_RETURN_VALUE(jsdjc, JNI_FALSE);
|
||||
|
||||
JSDJ_SetJSDContext(jsdjc, jsdc);
|
||||
JSDJ_SetJNIEnvForCurrentThread(jsdjc, env);
|
||||
|
||||
fid = (*env)->GetFieldID(env, clazz, "_nativeDebugSupport", "J");
|
||||
ASSERT_RETURN_VALUE(fid, JNI_FALSE);
|
||||
(*env)->SetLongField(env, self, fid, (long) jsdjc);
|
||||
}
|
||||
#else
|
||||
if(enableDebugging)
|
||||
printf("ERROR - Context created with enableDebugging flag, but no debugging support compiled in!");
|
||||
#endif
|
||||
|
||||
return JNI_TRUE;
|
||||
}
|
||||
|
||||
/*
|
||||
* Class: com_netscape_nativejsengine_JSRuntime
|
||||
* Method: _exit
|
||||
* Signature: ()V
|
||||
*/
|
||||
JNIEXPORT void JNICALL Java_com_netscape_nativejsengine_JSRuntime__1exit
|
||||
(JNIEnv * env, jobject self)
|
||||
{
|
||||
jfieldID fid;
|
||||
jclass clazz;
|
||||
JSRuntime *rt;
|
||||
JSContext *iterp = NULL;
|
||||
|
||||
clazz = (*env)->GetObjectClass(env, self);
|
||||
ASSERT_RETURN_VOID(clazz);
|
||||
|
||||
fid = (*env)->GetFieldID(env, clazz, "_nativeRuntime", "J");
|
||||
ASSERT_RETURN_VOID(fid);
|
||||
rt = (JSRuntime *) (*env)->GetLongField(env, self, fid);
|
||||
ASSERT_RETURN_VOID(rt);
|
||||
|
||||
|
||||
/*
|
||||
* Can't kill runtime if it holds any contexts
|
||||
*
|
||||
* However, JSD may make it's own context(s), so don't ASSERT
|
||||
*/
|
||||
CHECK_RETURN_VOID(!JS_ContextIterator(rt, &iterp));
|
||||
|
||||
printf("runtime = %d\n", (int)rt);
|
||||
|
||||
JS_DestroyRuntime(rt);
|
||||
}
|
||||
|
||||
/***************************************************************************/
|
||||
|
||||
/*
|
||||
* Class: com_netscape_nativejsengine_JSContext
|
||||
* Method: _init
|
||||
* Signature: ()Z
|
||||
*/
|
||||
JNIEXPORT jboolean JNICALL Java_com_netscape_nativejsengine_JSContext__1init
|
||||
(JNIEnv *env, jobject self)
|
||||
{
|
||||
JSContext *cx;
|
||||
JSObject *glob;
|
||||
jfieldID fid;
|
||||
jmethodID mid;
|
||||
JSRuntime *rt;
|
||||
jobject rtObject;
|
||||
jclass clazz;
|
||||
jclass clazz_self;
|
||||
JSBool ok;
|
||||
ContextInfo* info;
|
||||
|
||||
#ifdef JSDEBUGGER
|
||||
JSDJContext* jsdjc;
|
||||
#endif
|
||||
|
||||
clazz_self = (*env)->GetObjectClass(env, self);
|
||||
ASSERT_RETURN_VALUE(clazz_self, JNI_FALSE);
|
||||
|
||||
fid = (*env)->GetFieldID(env, clazz_self, "_runtime",
|
||||
"Lcom/netscape/nativejsengine/JSRuntime;");
|
||||
ASSERT_RETURN_VALUE(fid, JNI_FALSE);
|
||||
|
||||
rtObject = (*env)->GetObjectField(env, self, fid);
|
||||
ASSERT_RETURN_VALUE(rtObject, JNI_FALSE);
|
||||
|
||||
clazz = (*env)->GetObjectClass(env, rtObject);
|
||||
ASSERT_RETURN_VALUE(clazz, JNI_FALSE);
|
||||
|
||||
mid = (*env)->GetMethodID(env, clazz, "getNativeRuntime", "()J");
|
||||
ASSERT_RETURN_VALUE(mid, JNI_FALSE);
|
||||
|
||||
rt = (JSRuntime *) (*env)->CallObjectMethod(env, rtObject, mid);
|
||||
ASSERT_RETURN_VALUE(rt, JNI_FALSE);
|
||||
|
||||
cx = JS_NewContext(rt, 8192);
|
||||
ASSERT_RETURN_VALUE(cx, JNI_FALSE);
|
||||
|
||||
JS_SetErrorReporter(cx, my_ErrorReporter);
|
||||
|
||||
glob = JS_NewObject(cx, &global_class, NULL, NULL);
|
||||
ASSERT_RETURN_VALUE(glob, JNI_FALSE);
|
||||
|
||||
ok = JS_InitStandardClasses(cx, glob);
|
||||
ASSERT_RETURN_VALUE(ok, JNI_FALSE);
|
||||
|
||||
ok = JS_DefineFunctions(cx, glob, shell_functions);
|
||||
ASSERT_RETURN_VALUE(ok, JNI_FALSE);
|
||||
|
||||
fid = (*env)->GetFieldID(env, clazz_self, "_nativeContext", "J");
|
||||
ASSERT_RETURN_VALUE(fid, JNI_FALSE);
|
||||
(*env)->SetLongField(env, self, fid, (long) cx);
|
||||
|
||||
|
||||
info = (ContextInfo*) malloc(sizeof(ContextInfo));
|
||||
ASSERT_RETURN_VALUE(info, JNI_FALSE);
|
||||
|
||||
info->env = env;
|
||||
info->contextObject = self;
|
||||
|
||||
JS_SetContextPrivate(cx, info);
|
||||
|
||||
#ifdef JSDEBUGGER
|
||||
mid = (*env)->GetMethodID(env, clazz, "getNativeDebugSupport", "()J");
|
||||
ASSERT_RETURN_VALUE(mid, JNI_FALSE);
|
||||
|
||||
jsdjc = (JSDJContext*) (*env)->CallObjectMethod(env, rtObject, mid);
|
||||
if(jsdjc)
|
||||
{
|
||||
JSDContext* jsdc = JSDJ_GetJSDContext(jsdjc);
|
||||
ASSERT_RETURN_VALUE(jsdc, JNI_FALSE);
|
||||
|
||||
JSDJ_SetJNIEnvForCurrentThread(jsdjc, env);
|
||||
JSD_JSContextInUse(jsdc, cx);
|
||||
}
|
||||
#endif
|
||||
|
||||
return JNI_TRUE;
|
||||
}
|
||||
|
||||
/*
|
||||
* Class: com_netscape_nativejsengine_JSContext
|
||||
* Method: _exit
|
||||
* Signature: ()V
|
||||
*/
|
||||
JNIEXPORT void JNICALL Java_com_netscape_nativejsengine_JSContext__1exit
|
||||
(JNIEnv *env, jobject self)
|
||||
{
|
||||
jfieldID fid;
|
||||
jclass clazz;
|
||||
JSContext *cx;
|
||||
ContextInfo* info;
|
||||
|
||||
clazz = (*env)->GetObjectClass(env, self);
|
||||
ASSERT_RETURN_VOID(clazz);
|
||||
|
||||
fid = (*env)->GetFieldID(env, clazz, "_nativeContext", "J");
|
||||
ASSERT_RETURN_VOID(fid);
|
||||
|
||||
cx = (JSContext *) (*env)->GetLongField(env, self, fid);
|
||||
ASSERT_RETURN_VOID(cx);
|
||||
|
||||
info = (ContextInfo*) JS_GetContextPrivate(cx);
|
||||
ASSERT_RETURN_VOID(info);
|
||||
free(info);
|
||||
|
||||
printf("context = %d\n", (int)cx);
|
||||
|
||||
JS_DestroyContext(cx);
|
||||
}
|
||||
|
||||
/*
|
||||
* Class: com_netscape_nativejsengine_JSContext
|
||||
* Method: _eval
|
||||
* Signature: (Ljava/lang/String;)V
|
||||
*/
|
||||
JNIEXPORT void JNICALL Java_com_netscape_nativejsengine_JSContext__1eval
|
||||
(JNIEnv * env, jobject self, jstring str, jstring filename, jint lineno)
|
||||
{
|
||||
jfieldID fid;
|
||||
jclass clazz_self;
|
||||
JSContext *cx;
|
||||
JSObject *glob;
|
||||
jsval rval;
|
||||
int len;
|
||||
const char* Cstr;
|
||||
const char* Cfilename;
|
||||
jboolean isCopy;
|
||||
|
||||
clazz_self = (*env)->GetObjectClass(env, self);
|
||||
ASSERT_RETURN_VOID(clazz_self);
|
||||
|
||||
fid = (*env)->GetFieldID(env, clazz_self, "_nativeContext", "J");
|
||||
ASSERT_RETURN_VOID(fid);
|
||||
|
||||
cx = (JSContext *) (*env)->GetLongField(env, self, fid);
|
||||
ASSERT_RETURN_VOID(cx);
|
||||
|
||||
glob = JS_GetGlobalObject(cx);
|
||||
ASSERT_RETURN_VOID(glob);
|
||||
|
||||
len = (*env)->GetStringUTFLength(env, str);
|
||||
Cstr = (*env)->GetStringUTFChars(env, str, &isCopy);
|
||||
Cfilename = (*env)->GetStringUTFChars(env, filename, &isCopy);
|
||||
|
||||
#ifdef JSDEBUGGER
|
||||
/*
|
||||
* XXX this just overwrites any previous source for this url!
|
||||
*/
|
||||
_jamSourceIntoJSD(cx, Cstr, len, Cfilename);
|
||||
#endif
|
||||
|
||||
JS_EvaluateScript(cx, glob, Cstr, len, Cfilename, lineno, &rval);
|
||||
|
||||
(*env)->ReleaseStringUTFChars(env, str, Cstr);
|
||||
(*env)->ReleaseStringUTFChars(env, filename, Cfilename);
|
||||
}
|
||||
|
||||
/*
|
||||
* Class: com_netscape_nativejsengine_JSContext
|
||||
* Method: _load
|
||||
* Signature: (Ljava/lang/String;)V
|
||||
*/
|
||||
JNIEXPORT void JNICALL Java_com_netscape_nativejsengine_JSContext__1load
|
||||
(JNIEnv *env, jobject self, jstring filename)
|
||||
{
|
||||
jfieldID fid;
|
||||
jclass clazz;
|
||||
JSContext *cx;
|
||||
const char* Cfilename;
|
||||
jboolean isCopy;
|
||||
JSObject *glob;
|
||||
|
||||
clazz = (*env)->GetObjectClass(env, self);
|
||||
ASSERT_RETURN_VOID(clazz);
|
||||
|
||||
fid = (*env)->GetFieldID(env, clazz, "_nativeContext", "J");
|
||||
ASSERT_RETURN_VOID(fid);
|
||||
|
||||
cx = (JSContext *) (*env)->GetLongField(env, self, fid);
|
||||
ASSERT_RETURN_VOID(cx);
|
||||
|
||||
glob = JS_GetGlobalObject(cx);
|
||||
ASSERT_RETURN_VOID(glob);
|
||||
|
||||
Cfilename = (*env)->GetStringUTFChars(env, filename, &isCopy);
|
||||
|
||||
_loadSingleFile(cx, glob, Cfilename);
|
||||
|
||||
(*env)->ReleaseStringUTFChars(env, filename, Cfilename);
|
||||
}
|
||||
954
mozilla/js/jsd/jsd.h
Normal file
954
mozilla/js/jsd/jsd.h
Normal file
@@ -0,0 +1,954 @@
|
||||
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
|
||||
*
|
||||
* The contents of this file are subject to the Netscape Public License
|
||||
* Version 1.0 (the "NPL"); you may not use this file except in
|
||||
* compliance with the NPL. You may obtain a copy of the NPL at
|
||||
* http://www.mozilla.org/NPL/
|
||||
*
|
||||
* Software distributed under the NPL is distributed on an "AS IS" basis,
|
||||
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
|
||||
* for the specific language governing rights and limitations under the
|
||||
* NPL.
|
||||
*
|
||||
* The Initial Developer of this code under the NPL is Netscape
|
||||
* Communications Corporation. Portions created by Netscape are
|
||||
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
|
||||
* Reserved.
|
||||
*/
|
||||
|
||||
/*
|
||||
* Header for JavaScript Debugging support - Internal ONLY declarations
|
||||
*/
|
||||
|
||||
#ifndef jsd_h___
|
||||
#define jsd_h___
|
||||
|
||||
/*
|
||||
* NOTE: This is a *private* header file and should only be included by
|
||||
* the sources in js/jsd. Defining EXPORT_JSD_API in an outside module
|
||||
* using jsd would be bad.
|
||||
*/
|
||||
#define EXPORT_JSD_API 1 /* if used, must be set before include of jsdebug.h */
|
||||
|
||||
/*
|
||||
* These can be controled by the makefile, but this allows a place to set
|
||||
* the values always used in the mozilla client, but perhaps done differnetly
|
||||
* in other embeddings.
|
||||
*/
|
||||
#ifdef MOZILLA_CLIENT
|
||||
#define JSD_THREADSAFE 1
|
||||
#define JSD_HAS_DANGEROUS_THREAD 1
|
||||
#define JSD_USE_NSPR_LOCKS 1
|
||||
#endif /* MOZILLA_CLIENT */
|
||||
|
||||
|
||||
/* Get jstypes.h included first. After that we can use PR macros for doing
|
||||
* this extern "C" stuff!
|
||||
*/
|
||||
#ifdef __cplusplus
|
||||
extern "C"
|
||||
{
|
||||
#endif
|
||||
#include "jstypes.h"
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
JS_BEGIN_EXTERN_C
|
||||
#include "jsprf.h"
|
||||
#include "jsutil.h" /* Added by JSIFY */
|
||||
#include "jshash.h" /* Added by JSIFY */
|
||||
#include "jsclist.h"
|
||||
#include "jsdebug.h"
|
||||
#include "jsapi.h"
|
||||
#include "jsobj.h"
|
||||
#include "jsfun.h"
|
||||
#include "jsdbgapi.h"
|
||||
#include "jsd_lock.h"
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
#ifdef LIVEWIRE
|
||||
#include <base/pblock.h>
|
||||
#include <base/session.h>
|
||||
#include <frame/log.h>
|
||||
#include <frame/req.h>
|
||||
#endif /* LIVEWIRE */
|
||||
JS_END_EXTERN_C
|
||||
|
||||
JS_BEGIN_EXTERN_C
|
||||
|
||||
#define JSD_MAJOR_VERSION 1
|
||||
#define JSD_MINOR_VERSION 1
|
||||
|
||||
/***************************************************************************/
|
||||
/* handy macros */
|
||||
#undef CHECK_BIT_FLAG
|
||||
#define CHECK_BIT_FLAG(f,b) ((f)&(b))
|
||||
#undef SET_BIT_FLAG
|
||||
#define SET_BIT_FLAG(f,b) ((f)|=(b))
|
||||
#undef CLEAR_BIT_FLAG
|
||||
#define CLEAR_BIT_FLAG(f,b) ((f)&=(~(b)))
|
||||
|
||||
|
||||
/***************************************************************************/
|
||||
/* These are not exposed in jsdebug.h - typedef here for consistency */
|
||||
|
||||
typedef struct JSDExecHook JSDExecHook;
|
||||
typedef struct JSDAtom JSDAtom;
|
||||
|
||||
/***************************************************************************/
|
||||
/* Our structures */
|
||||
|
||||
/*
|
||||
* XXX What I'm calling a JSDContext is really more of a JSDTaskState.
|
||||
*/
|
||||
|
||||
struct JSDContext
|
||||
{
|
||||
JSCList links; /* we are part of a JSCList */
|
||||
JSBool inited;
|
||||
JSD_ScriptHookProc scriptHook;
|
||||
void* scriptHookData;
|
||||
JSD_ExecutionHookProc interruptHook;
|
||||
void* interruptHookData;
|
||||
JSRuntime* jsrt;
|
||||
JSD_ErrorReporter errorReporter;
|
||||
void* errorReporterData;
|
||||
JSCList threadsStates;
|
||||
JSD_ExecutionHookProc debugBreakHook;
|
||||
void* debugBreakHookData;
|
||||
JSD_ExecutionHookProc debuggerHook;
|
||||
void* debuggerHookData;
|
||||
JSD_ExecutionHookProc throwHook;
|
||||
void* throwHookData;
|
||||
JSContext* dumbContext;
|
||||
JSObject* glob;
|
||||
JSD_UserCallbacks userCallbacks;
|
||||
void* user;
|
||||
JSCList scripts;
|
||||
JSCList sources;
|
||||
JSCList removedSources;
|
||||
uintN sourceAlterCount;
|
||||
JSHashTable* atoms;
|
||||
JSCList objectsList;
|
||||
JSHashTable* objectsTable;
|
||||
#ifdef JSD_THREADSAFE
|
||||
void* scriptsLock;
|
||||
void* sourceTextLock;
|
||||
void* objectsLock;
|
||||
void* atomsLock;
|
||||
void* threadStatesLock;
|
||||
#endif /* JSD_THREADSAFE */
|
||||
#ifdef JSD_HAS_DANGEROUS_THREAD
|
||||
void* dangerousThread;
|
||||
#endif /* JSD_HAS_DANGEROUS_THREAD */
|
||||
|
||||
};
|
||||
|
||||
struct JSDScript
|
||||
{
|
||||
JSCList links; /* we are part of a JSCList */
|
||||
JSDContext* jsdc; /* JSDContext for this jsdscript */
|
||||
JSScript* script; /* script we are wrapping */
|
||||
JSFunction* function; /* back pointer to owning function (can be NULL) */
|
||||
uintN lineBase; /* we cache this */
|
||||
uintN lineExtent; /* we cache this */
|
||||
JSCList hooks; /* JSCList of JSDExecHooks for this script */
|
||||
char* url;
|
||||
#ifdef LIVEWIRE
|
||||
LWDBGApp* app;
|
||||
LWDBGScript* lwscript;
|
||||
#endif
|
||||
};
|
||||
|
||||
struct JSDSourceText
|
||||
{
|
||||
JSCList links; /* we are part of a JSCList */
|
||||
char* url;
|
||||
char* text;
|
||||
uintN textLength;
|
||||
uintN textSpace;
|
||||
JSBool dirty;
|
||||
JSDSourceStatus status;
|
||||
uintN alterCount;
|
||||
JSBool doingEval;
|
||||
};
|
||||
|
||||
struct JSDExecHook
|
||||
{
|
||||
JSCList links; /* we are part of a JSCList */
|
||||
JSDScript* jsdscript;
|
||||
jsuword pc;
|
||||
JSD_ExecutionHookProc hook;
|
||||
void* callerdata;
|
||||
};
|
||||
|
||||
struct JSDThreadState
|
||||
{
|
||||
JSCList links; /* we are part of a JSCList */
|
||||
JSContext* context;
|
||||
void* thread;
|
||||
JSCList stack;
|
||||
uintN stackDepth;
|
||||
};
|
||||
|
||||
struct JSDStackFrameInfo
|
||||
{
|
||||
JSCList links; /* we are part of a JSCList */
|
||||
JSDThreadState* jsdthreadstate;
|
||||
JSDScript* jsdscript;
|
||||
jsuword pc;
|
||||
JSStackFrame* fp;
|
||||
};
|
||||
|
||||
#define GOT_PROTO ((short) (1 << 0))
|
||||
#define GOT_PROPS ((short) (1 << 1))
|
||||
#define GOT_PARENT ((short) (1 << 2))
|
||||
#define GOT_CTOR ((short) (1 << 3))
|
||||
|
||||
struct JSDValue
|
||||
{
|
||||
jsval val;
|
||||
intN nref;
|
||||
JSCList props;
|
||||
JSString* string;
|
||||
const char* funName;
|
||||
const char* className;
|
||||
JSDValue* proto;
|
||||
JSDValue* parent;
|
||||
JSDValue* ctor;
|
||||
uintN flags;
|
||||
};
|
||||
|
||||
struct JSDProperty
|
||||
{
|
||||
JSCList links; /* we are part of a JSCList */
|
||||
intN nref;
|
||||
JSDValue* val;
|
||||
JSDValue* name;
|
||||
JSDValue* alias;
|
||||
uintN slot;
|
||||
uintN flags;
|
||||
};
|
||||
|
||||
struct JSDAtom
|
||||
{
|
||||
char* str; /* must be first element in stuct for compare */
|
||||
intN refcount;
|
||||
};
|
||||
|
||||
struct JSDObject
|
||||
{
|
||||
JSCList links; /* we are part of a JSCList */
|
||||
JSObject* obj;
|
||||
JSDAtom* newURL;
|
||||
uintN newLineno;
|
||||
JSDAtom* ctorURL;
|
||||
uintN ctorLineno;
|
||||
JSDAtom* ctorName;
|
||||
};
|
||||
|
||||
/***************************************************************************/
|
||||
/* Code validation support */
|
||||
|
||||
#ifdef DEBUG
|
||||
extern void JSD_ASSERT_VALID_CONTEXT(JSDContext* jsdc);
|
||||
extern void JSD_ASSERT_VALID_SCRIPT(JSDScript* jsdscript);
|
||||
extern void JSD_ASSERT_VALID_SOURCE_TEXT(JSDSourceText* jsdsrc);
|
||||
extern void JSD_ASSERT_VALID_THREAD_STATE(JSDThreadState* jsdthreadstate);
|
||||
extern void JSD_ASSERT_VALID_STACK_FRAME(JSDStackFrameInfo* jsdframe);
|
||||
extern void JSD_ASSERT_VALID_EXEC_HOOK(JSDExecHook* jsdhook);
|
||||
extern void JSD_ASSERT_VALID_VALUE(JSDValue* jsdval);
|
||||
extern void JSD_ASSERT_VALID_PROPERTY(JSDProperty* jsdprop);
|
||||
extern void JSD_ASSERT_VALID_OBJECT(JSDObject* jsdobj);
|
||||
#else
|
||||
#define JSD_ASSERT_VALID_CONTEXT(x) ((void)0)
|
||||
#define JSD_ASSERT_VALID_SCRIPT(x) ((void)0)
|
||||
#define JSD_ASSERT_VALID_SOURCE_TEXT(x) ((void)0)
|
||||
#define JSD_ASSERT_VALID_THREAD_STATE(x)((void)0)
|
||||
#define JSD_ASSERT_VALID_STACK_FRAME(x) ((void)0)
|
||||
#define JSD_ASSERT_VALID_EXEC_HOOK(x) ((void)0)
|
||||
#define JSD_ASSERT_VALID_VALUE(x) ((void)0)
|
||||
#define JSD_ASSERT_VALID_PROPERTY(x) ((void)0)
|
||||
#define JSD_ASSERT_VALID_OBJECT(x) ((void)0)
|
||||
#endif
|
||||
|
||||
/***************************************************************************/
|
||||
/* higher level functions */
|
||||
|
||||
extern JSDContext*
|
||||
jsd_DebuggerOnForUser(JSRuntime* jsrt,
|
||||
JSD_UserCallbacks* callbacks,
|
||||
void* user);
|
||||
extern JSDContext*
|
||||
jsd_DebuggerOn(void);
|
||||
|
||||
extern void
|
||||
jsd_DebuggerOff(JSDContext* jsdc);
|
||||
|
||||
extern void
|
||||
jsd_SetUserCallbacks(JSRuntime* jsrt, JSD_UserCallbacks* callbacks, void* user);
|
||||
|
||||
extern JSDContext*
|
||||
jsd_JSDContextForJSContext(JSContext* context);
|
||||
|
||||
extern JSBool
|
||||
jsd_SetErrorReporter(JSDContext* jsdc,
|
||||
JSD_ErrorReporter reporter,
|
||||
void* callerdata);
|
||||
|
||||
extern JSBool
|
||||
jsd_GetErrorReporter(JSDContext* jsdc,
|
||||
JSD_ErrorReporter* reporter,
|
||||
void** callerdata);
|
||||
|
||||
JS_STATIC_DLL_CALLBACK(JSBool)
|
||||
jsd_DebugErrorHook(JSContext *cx, const char *message,
|
||||
JSErrorReport *report, void *closure);
|
||||
|
||||
/***************************************************************************/
|
||||
/* Script functions */
|
||||
|
||||
extern void
|
||||
jsd_DestroyAllJSDScripts(JSDContext* jsdc);
|
||||
|
||||
extern JSDScript*
|
||||
jsd_FindJSDScript(JSDContext* jsdc,
|
||||
JSScript *script);
|
||||
|
||||
extern JSDScript*
|
||||
jsd_IterateScripts(JSDContext* jsdc, JSDScript **iterp);
|
||||
|
||||
extern JSBool
|
||||
jsd_IsActiveScript(JSDContext* jsdc, JSDScript *jsdscript);
|
||||
|
||||
extern const char*
|
||||
jsd_GetScriptFilename(JSDContext* jsdc, JSDScript *jsdscript);
|
||||
|
||||
extern const char*
|
||||
jsd_GetScriptFunctionName(JSDContext* jsdc, JSDScript *jsdscript);
|
||||
|
||||
extern uintN
|
||||
jsd_GetScriptBaseLineNumber(JSDContext* jsdc, JSDScript *jsdscript);
|
||||
|
||||
extern uintN
|
||||
jsd_GetScriptLineExtent(JSDContext* jsdc, JSDScript *jsdscript);
|
||||
|
||||
extern JSBool
|
||||
jsd_SetScriptHook(JSDContext* jsdc, JSD_ScriptHookProc hook, void* callerdata);
|
||||
|
||||
extern JSBool
|
||||
jsd_GetScriptHook(JSDContext* jsdc, JSD_ScriptHookProc* hook, void** callerdata);
|
||||
|
||||
extern jsuword
|
||||
jsd_GetClosestPC(JSDContext* jsdc, JSDScript* jsdscript, uintN line);
|
||||
|
||||
extern uintN
|
||||
jsd_GetClosestLine(JSDContext* jsdc, JSDScript* jsdscript, jsuword pc);
|
||||
|
||||
extern void JS_DLL_CALLBACK
|
||||
jsd_NewScriptHookProc(
|
||||
JSContext *cx,
|
||||
const char *filename, /* URL this script loads from */
|
||||
uintN lineno, /* line where this script starts */
|
||||
JSScript *script,
|
||||
JSFunction *fun,
|
||||
void* callerdata);
|
||||
|
||||
extern void JS_DLL_CALLBACK
|
||||
jsd_DestroyScriptHookProc(
|
||||
JSContext *cx,
|
||||
JSScript *script,
|
||||
void* callerdata);
|
||||
|
||||
/* Script execution hook functions */
|
||||
|
||||
extern JSBool
|
||||
jsd_SetExecutionHook(JSDContext* jsdc,
|
||||
JSDScript* jsdscript,
|
||||
jsuword pc,
|
||||
JSD_ExecutionHookProc hook,
|
||||
void* callerdata);
|
||||
|
||||
extern JSBool
|
||||
jsd_ClearExecutionHook(JSDContext* jsdc,
|
||||
JSDScript* jsdscript,
|
||||
jsuword pc);
|
||||
|
||||
extern JSBool
|
||||
jsd_ClearAllExecutionHooksForScript(JSDContext* jsdc, JSDScript* jsdscript);
|
||||
|
||||
extern JSBool
|
||||
jsd_ClearAllExecutionHooks(JSDContext* jsdc);
|
||||
|
||||
extern void
|
||||
jsd_ScriptCreated(JSDContext* jsdc,
|
||||
JSContext *cx,
|
||||
const char *filename, /* URL this script loads from */
|
||||
uintN lineno, /* line where this script starts */
|
||||
JSScript *script,
|
||||
JSFunction *fun);
|
||||
|
||||
extern void
|
||||
jsd_ScriptDestroyed(JSDContext* jsdc,
|
||||
JSContext *cx,
|
||||
JSScript *script);
|
||||
|
||||
/***************************************************************************/
|
||||
/* Source Text functions */
|
||||
|
||||
extern JSDSourceText*
|
||||
jsd_IterateSources(JSDContext* jsdc, JSDSourceText **iterp);
|
||||
|
||||
extern JSDSourceText*
|
||||
jsd_FindSourceForURL(JSDContext* jsdc, const char* url);
|
||||
|
||||
extern const char*
|
||||
jsd_GetSourceURL(JSDContext* jsdc, JSDSourceText* jsdsrc);
|
||||
|
||||
extern JSBool
|
||||
jsd_GetSourceText(JSDContext* jsdc, JSDSourceText* jsdsrc,
|
||||
const char** ppBuf, intN* pLen);
|
||||
|
||||
extern void
|
||||
jsd_ClearSourceText(JSDContext* jsdc, JSDSourceText* jsdsrc);
|
||||
|
||||
extern JSDSourceStatus
|
||||
jsd_GetSourceStatus(JSDContext* jsdc, JSDSourceText* jsdsrc);
|
||||
|
||||
extern JSBool
|
||||
jsd_IsSourceDirty(JSDContext* jsdc, JSDSourceText* jsdsrc);
|
||||
|
||||
extern void
|
||||
jsd_SetSourceDirty(JSDContext* jsdc, JSDSourceText* jsdsrc, JSBool dirty);
|
||||
|
||||
extern uintN
|
||||
jsd_GetSourceAlterCount(JSDContext* jsdc, JSDSourceText* jsdsrc);
|
||||
|
||||
extern uintN
|
||||
jsd_IncrementSourceAlterCount(JSDContext* jsdc, JSDSourceText* jsdsrc);
|
||||
|
||||
extern JSDSourceText*
|
||||
jsd_NewSourceText(JSDContext* jsdc, const char* url);
|
||||
|
||||
extern JSDSourceText*
|
||||
jsd_AppendSourceText(JSDContext* jsdc,
|
||||
JSDSourceText* jsdsrc,
|
||||
const char* text, /* *not* zero terminated */
|
||||
size_t length,
|
||||
JSDSourceStatus status);
|
||||
|
||||
extern JSDSourceText*
|
||||
jsd_AppendUCSourceText(JSDContext* jsdc,
|
||||
JSDSourceText* jsdsrc,
|
||||
const jschar* text, /* *not* zero terminated */
|
||||
size_t length,
|
||||
JSDSourceStatus status);
|
||||
|
||||
/* convienence function for adding complete source of url in one call */
|
||||
extern JSBool
|
||||
jsd_AddFullSourceText(JSDContext* jsdc,
|
||||
const char* text, /* *not* zero terminated */
|
||||
size_t length,
|
||||
const char* url);
|
||||
|
||||
extern void
|
||||
jsd_DestroyAllSources(JSDContext* jsdc);
|
||||
|
||||
extern const char*
|
||||
jsd_BuildNormalizedURL(const char* url_string);
|
||||
|
||||
extern void
|
||||
jsd_StartingEvalUsingFilename(JSDContext* jsdc, const char* url);
|
||||
|
||||
extern void
|
||||
jsd_FinishedEvalUsingFilename(JSDContext* jsdc, const char* url);
|
||||
|
||||
/***************************************************************************/
|
||||
/* Interrupt Hook functions */
|
||||
|
||||
extern JSBool
|
||||
jsd_SetInterruptHook(JSDContext* jsdc,
|
||||
JSD_ExecutionHookProc hook,
|
||||
void* callerdata);
|
||||
|
||||
extern JSBool
|
||||
jsd_ClearInterruptHook(JSDContext* jsdc);
|
||||
|
||||
extern JSBool
|
||||
jsd_SetDebugBreakHook(JSDContext* jsdc,
|
||||
JSD_ExecutionHookProc hook,
|
||||
void* callerdata);
|
||||
|
||||
extern JSBool
|
||||
jsd_ClearDebugBreakHook(JSDContext* jsdc);
|
||||
|
||||
extern JSBool
|
||||
jsd_SetDebuggerHook(JSDContext* jsdc,
|
||||
JSD_ExecutionHookProc hook,
|
||||
void* callerdata);
|
||||
|
||||
extern JSBool
|
||||
jsd_ClearDebuggerHook(JSDContext* jsdc);
|
||||
|
||||
extern JSTrapStatus
|
||||
jsd_CallExecutionHook(JSDContext* jsdc,
|
||||
JSContext *cx,
|
||||
JSDHookType type,
|
||||
JSD_ExecutionHookProc hook,
|
||||
void* hookData,
|
||||
jsval* rval);
|
||||
|
||||
extern JSBool
|
||||
jsd_SetThrowHook(JSDContext* jsdc,
|
||||
JSD_ExecutionHookProc hook,
|
||||
void* callerdata);
|
||||
extern JSBool
|
||||
jsd_ClearThrowHook(JSDContext* jsdc);
|
||||
|
||||
extern JSTrapStatus JS_DLL_CALLBACK
|
||||
jsd_DebuggerHandler(JSContext *cx, JSScript *script, jsbytecode *pc,
|
||||
jsval *rval, void *closure);
|
||||
|
||||
extern JSTrapStatus JS_DLL_CALLBACK
|
||||
jsd_ThrowHandler(JSContext *cx, JSScript *script, jsbytecode *pc,
|
||||
jsval *rval, void *closure);
|
||||
|
||||
/***************************************************************************/
|
||||
/* Stack Frame functions */
|
||||
|
||||
extern uintN
|
||||
jsd_GetCountOfStackFrames(JSDContext* jsdc, JSDThreadState* jsdthreadstate);
|
||||
|
||||
extern JSDStackFrameInfo*
|
||||
jsd_GetStackFrame(JSDContext* jsdc, JSDThreadState* jsdthreadstate);
|
||||
|
||||
extern JSDStackFrameInfo*
|
||||
jsd_GetCallingStackFrame(JSDContext* jsdc,
|
||||
JSDThreadState* jsdthreadstate,
|
||||
JSDStackFrameInfo* jsdframe);
|
||||
|
||||
extern JSDScript*
|
||||
jsd_GetScriptForStackFrame(JSDContext* jsdc,
|
||||
JSDThreadState* jsdthreadstate,
|
||||
JSDStackFrameInfo* jsdframe);
|
||||
|
||||
extern jsuword
|
||||
jsd_GetPCForStackFrame(JSDContext* jsdc,
|
||||
JSDThreadState* jsdthreadstate,
|
||||
JSDStackFrameInfo* jsdframe);
|
||||
|
||||
extern JSDValue*
|
||||
jsd_GetCallObjectForStackFrame(JSDContext* jsdc,
|
||||
JSDThreadState* jsdthreadstate,
|
||||
JSDStackFrameInfo* jsdframe);
|
||||
|
||||
extern JSDValue*
|
||||
jsd_GetScopeChainForStackFrame(JSDContext* jsdc,
|
||||
JSDThreadState* jsdthreadstate,
|
||||
JSDStackFrameInfo* jsdframe);
|
||||
|
||||
extern JSDValue*
|
||||
jsd_GetThisForStackFrame(JSDContext* jsdc,
|
||||
JSDThreadState* jsdthreadstate,
|
||||
JSDStackFrameInfo* jsdframe);
|
||||
|
||||
extern JSDThreadState*
|
||||
jsd_NewThreadState(JSDContext* jsdc, JSContext *cx);
|
||||
|
||||
extern void
|
||||
jsd_DestroyThreadState(JSDContext* jsdc, JSDThreadState* jsdthreadstate);
|
||||
|
||||
extern JSBool
|
||||
jsd_EvaluateScriptInStackFrame(JSDContext* jsdc,
|
||||
JSDThreadState* jsdthreadstate,
|
||||
JSDStackFrameInfo* jsdframe,
|
||||
const char *bytes, uintN length,
|
||||
const char *filename, uintN lineno, jsval *rval);
|
||||
|
||||
extern JSString*
|
||||
jsd_ValToStringInStackFrame(JSDContext* jsdc,
|
||||
JSDThreadState* jsdthreadstate,
|
||||
JSDStackFrameInfo* jsdframe,
|
||||
jsval val);
|
||||
|
||||
extern JSBool
|
||||
jsd_IsValidThreadState(JSDContext* jsdc,
|
||||
JSDThreadState* jsdthreadstate);
|
||||
|
||||
extern JSBool
|
||||
jsd_IsValidFrameInThreadState(JSDContext* jsdc,
|
||||
JSDThreadState* jsdthreadstate,
|
||||
JSDStackFrameInfo* jsdframe);
|
||||
|
||||
extern JSDValue*
|
||||
jsd_GetException(JSDContext* jsdc, JSDThreadState* jsdthreadstate);
|
||||
|
||||
extern JSBool
|
||||
jsd_SetException(JSDContext* jsdc, JSDThreadState* jsdthreadstate,
|
||||
JSDValue* jsdval);
|
||||
|
||||
/***************************************************************************/
|
||||
/* Locking support */
|
||||
|
||||
/* protos are in js_lock.h for:
|
||||
* jsd_CreateLock
|
||||
* jsd_Lock
|
||||
* jsd_Unlock
|
||||
* jsd_IsLocked
|
||||
* jsd_CurrentThread
|
||||
*/
|
||||
|
||||
#ifdef JSD_THREADSAFE
|
||||
|
||||
/* the system-wide lock */
|
||||
extern void* _jsd_global_lock;
|
||||
#define JSD_LOCK() \
|
||||
JS_BEGIN_MACRO \
|
||||
if(!_jsd_global_lock) \
|
||||
_jsd_global_lock = jsd_CreateLock(); \
|
||||
JS_ASSERT(_jsd_global_lock); \
|
||||
jsd_Lock(_jsd_global_lock); \
|
||||
JS_END_MACRO
|
||||
|
||||
#define JSD_UNLOCK() \
|
||||
JS_BEGIN_MACRO \
|
||||
JS_ASSERT(_jsd_global_lock); \
|
||||
jsd_Unlock(_jsd_global_lock); \
|
||||
JS_END_MACRO
|
||||
|
||||
/* locks for the subsystems of a given context */
|
||||
#define JSD_INIT_LOCKS(jsdc) \
|
||||
( (NULL != (jsdc->scriptsLock = jsd_CreateLock())) && \
|
||||
(NULL != (jsdc->sourceTextLock = jsd_CreateLock())) && \
|
||||
(NULL != (jsdc->atomsLock = jsd_CreateLock())) && \
|
||||
(NULL != (jsdc->objectsLock = jsd_CreateLock())) && \
|
||||
(NULL != (jsdc->threadStatesLock = jsd_CreateLock())) )
|
||||
|
||||
#define JSD_LOCK_SCRIPTS(jsdc) jsd_Lock(jsdc->scriptsLock)
|
||||
#define JSD_UNLOCK_SCRIPTS(jsdc) jsd_Unlock(jsdc->scriptsLock)
|
||||
|
||||
#define JSD_LOCK_SOURCE_TEXT(jsdc) jsd_Lock(jsdc->sourceTextLock)
|
||||
#define JSD_UNLOCK_SOURCE_TEXT(jsdc) jsd_Unlock(jsdc->sourceTextLock)
|
||||
|
||||
#define JSD_LOCK_ATOMS(jsdc) jsd_Lock(jsdc->atomsLock)
|
||||
#define JSD_UNLOCK_ATOMS(jsdc) jsd_Unlock(jsdc->atomsLock)
|
||||
|
||||
#define JSD_LOCK_OBJECTS(jsdc) jsd_Lock(jsdc->objectsLock)
|
||||
#define JSD_UNLOCK_OBJECTS(jsdc) jsd_Unlock(jsdc->objectsLock)
|
||||
|
||||
#define JSD_LOCK_THREADSTATES(jsdc) jsd_Lock(jsdc->threadStatesLock)
|
||||
#define JSD_UNLOCK_THREADSTATES(jsdc) jsd_Unlock(jsdc->threadStatesLock)
|
||||
|
||||
#else /* !JSD_THREADSAFE */
|
||||
|
||||
#define JSD_LOCK() ((void)0)
|
||||
#define JSD_UNLOCK() ((void)0)
|
||||
|
||||
#define JSD_INIT_LOCKS(jsdc) 1
|
||||
|
||||
#define JSD_LOCK_SCRIPTS(jsdc) ((void)0)
|
||||
#define JSD_UNLOCK_SCRIPTS(jsdc) ((void)0)
|
||||
|
||||
#define JSD_LOCK_SOURCE_TEXT(jsdc) ((void)0)
|
||||
#define JSD_UNLOCK_SOURCE_TEXT(jsdc) ((void)0)
|
||||
|
||||
#define JSD_LOCK_ATOMS(jsdc) ((void)0)
|
||||
#define JSD_UNLOCK_ATOMS(jsdc) ((void)0)
|
||||
|
||||
#define JSD_LOCK_OBJECTS(jsdc) ((void)0)
|
||||
#define JSD_UNLOCK_OBJECTS(jsdc) ((void)0)
|
||||
|
||||
#define JSD_LOCK_THREADSTATES(jsdc) ((void)0)
|
||||
#define JSD_UNLOCK_THREADSTATES(jsdc) ((void)0)
|
||||
|
||||
#endif /* JSD_THREADSAFE */
|
||||
|
||||
/* NOTE: These are intended for ASSERTs. Thus we supply checks for both
|
||||
* LOCKED and UNLOCKED (rather that just LOCKED and !LOCKED) so that in
|
||||
* the DEBUG non-Threadsafe case we can have an ASSERT that always succeeds
|
||||
* without having to special case things in the code.
|
||||
*/
|
||||
#if defined(JSD_THREADSAFE) && defined(DEBUG)
|
||||
#define JSD_SCRIPTS_LOCKED(jsdc) (jsd_IsLocked(jsdc->scriptsLock))
|
||||
#define JSD_SOURCE_TEXT_LOCKED(jsdc) (jsd_IsLocked(jsdc->sourceTextLock))
|
||||
#define JSD_ATOMS_LOCKED(jsdc) (jsd_IsLocked(jsdc->atomsLock))
|
||||
#define JSD_OBJECTS_LOCKED(jsdc) (jsd_IsLocked(jsdc->objectsLock))
|
||||
#define JSD_THREADSTATES_LOCKED(jsdc) (jsd_IsLocked(jsdc->threadStatesLock))
|
||||
#define JSD_SCRIPTS_UNLOCKED(jsdc) (!jsd_IsLocked(jsdc->scriptsLock))
|
||||
#define JSD_SOURCE_TEXT_UNLOCKED(jsdc) (!jsd_IsLocked(jsdc->sourceTextLock))
|
||||
#define JSD_ATOMS_UNLOCKED(jsdc) (!jsd_IsLocked(jsdc->atomsLock))
|
||||
#define JSD_OBJECTS_UNLOCKED(jsdc) (!jsd_IsLocked(jsdc->objectsLock))
|
||||
#define JSD_THREADSTATES_UNLOCKED(jsdc) (!jsd_IsLocked(jsdc->threadStatesLock))
|
||||
#else
|
||||
#define JSD_SCRIPTS_LOCKED(jsdc) 1
|
||||
#define JSD_SOURCE_TEXT_LOCKED(jsdc) 1
|
||||
#define JSD_ATOMS_LOCKED(jsdc) 1
|
||||
#define JSD_OBJECTS_LOCKED(jsdc) 1
|
||||
#define JSD_THREADSTATES_LOCKED(jsdc) 1
|
||||
#define JSD_SCRIPTS_UNLOCKED(jsdc) 1
|
||||
#define JSD_SOURCE_TEXT_UNLOCKED(jsdc) 1
|
||||
#define JSD_ATOMS_UNLOCKED(jsdc) 1
|
||||
#define JSD_OBJECTS_UNLOCKED(jsdc) 1
|
||||
#define JSD_THREADSTATES_UNLOCKED(jsdc) 1
|
||||
#endif /* defined(JSD_THREADSAFE) && defined(DEBUG) */
|
||||
|
||||
/***************************************************************************/
|
||||
/* Threading support */
|
||||
|
||||
#ifdef JSD_THREADSAFE
|
||||
|
||||
#define JSD_CURRENT_THREAD() jsd_CurrentThread()
|
||||
|
||||
#else /* !JSD_THREADSAFE */
|
||||
|
||||
#define JSD_CURRENT_THREAD() ((void*)0)
|
||||
|
||||
#endif /* JSD_THREADSAFE */
|
||||
|
||||
/***************************************************************************/
|
||||
/* Dangerous thread support */
|
||||
|
||||
#ifdef JSD_HAS_DANGEROUS_THREAD
|
||||
|
||||
#define JSD_IS_DANGEROUS_THREAD(jsdc) \
|
||||
(JSD_CURRENT_THREAD() == jsdc->dangerousThread)
|
||||
|
||||
#else /* !JSD_HAS_DANGEROUS_THREAD */
|
||||
|
||||
#define JSD_IS_DANGEROUS_THREAD(jsdc) 0
|
||||
|
||||
#endif /* JSD_HAS_DANGEROUS_THREAD */
|
||||
|
||||
/***************************************************************************/
|
||||
/* Value and Property Functions */
|
||||
|
||||
extern JSDValue*
|
||||
jsd_NewValue(JSDContext* jsdc, jsval val);
|
||||
|
||||
extern void
|
||||
jsd_DropValue(JSDContext* jsdc, JSDValue* jsdval);
|
||||
|
||||
extern jsval
|
||||
jsd_GetValueWrappedJSVal(JSDContext* jsdc, JSDValue* jsdval);
|
||||
|
||||
extern void
|
||||
jsd_RefreshValue(JSDContext* jsdc, JSDValue* jsdval);
|
||||
|
||||
/**************************************************/
|
||||
|
||||
extern JSBool
|
||||
jsd_IsValueObject(JSDContext* jsdc, JSDValue* jsdval);
|
||||
|
||||
extern JSBool
|
||||
jsd_IsValueNumber(JSDContext* jsdc, JSDValue* jsdval);
|
||||
|
||||
extern JSBool
|
||||
jsd_IsValueInt(JSDContext* jsdc, JSDValue* jsdval);
|
||||
|
||||
extern JSBool
|
||||
jsd_IsValueDouble(JSDContext* jsdc, JSDValue* jsdval);
|
||||
|
||||
extern JSBool
|
||||
jsd_IsValueString(JSDContext* jsdc, JSDValue* jsdval);
|
||||
|
||||
extern JSBool
|
||||
jsd_IsValueBoolean(JSDContext* jsdc, JSDValue* jsdval);
|
||||
|
||||
extern JSBool
|
||||
jsd_IsValueNull(JSDContext* jsdc, JSDValue* jsdval);
|
||||
|
||||
extern JSBool
|
||||
jsd_IsValueVoid(JSDContext* jsdc, JSDValue* jsdval);
|
||||
|
||||
extern JSBool
|
||||
jsd_IsValuePrimitive(JSDContext* jsdc, JSDValue* jsdval);
|
||||
|
||||
extern JSBool
|
||||
jsd_IsValueFunction(JSDContext* jsdc, JSDValue* jsdval);
|
||||
|
||||
extern JSBool
|
||||
jsd_IsValueNative(JSDContext* jsdc, JSDValue* jsdval);
|
||||
|
||||
/**************************************************/
|
||||
|
||||
extern JSBool
|
||||
jsd_GetValueBoolean(JSDContext* jsdc, JSDValue* jsdval);
|
||||
|
||||
extern int32
|
||||
jsd_GetValueInt(JSDContext* jsdc, JSDValue* jsdval);
|
||||
|
||||
extern jsdouble*
|
||||
jsd_GetValueDouble(JSDContext* jsdc, JSDValue* jsdval);
|
||||
|
||||
extern JSString*
|
||||
jsd_GetValueString(JSDContext* jsdc, JSDValue* jsdval);
|
||||
|
||||
extern const char*
|
||||
jsd_GetValueFunctionName(JSDContext* jsdc, JSDValue* jsdval);
|
||||
|
||||
/**************************************************/
|
||||
|
||||
extern uintN
|
||||
jsd_GetCountOfProperties(JSDContext* jsdc, JSDValue* jsdval);
|
||||
|
||||
extern JSDProperty*
|
||||
jsd_IterateProperties(JSDContext* jsdc, JSDValue* jsdval, JSDProperty **iterp);
|
||||
|
||||
extern JSDProperty*
|
||||
jsd_GetValueProperty(JSDContext* jsdc, JSDValue* jsdval, JSString* name);
|
||||
|
||||
extern JSDValue*
|
||||
jsd_GetValuePrototype(JSDContext* jsdc, JSDValue* jsdval);
|
||||
|
||||
extern JSDValue*
|
||||
jsd_GetValueParent(JSDContext* jsdc, JSDValue* jsdval);
|
||||
|
||||
extern JSDValue*
|
||||
jsd_GetValueConstructor(JSDContext* jsdc, JSDValue* jsdval);
|
||||
|
||||
extern const char*
|
||||
jsd_GetValueClassName(JSDContext* jsdc, JSDValue* jsdval);
|
||||
|
||||
/**************************************************/
|
||||
|
||||
extern void
|
||||
jsd_DropProperty(JSDContext* jsdc, JSDProperty* jsdprop);
|
||||
|
||||
extern JSDValue*
|
||||
jsd_GetPropertyName(JSDContext* jsdc, JSDProperty* jsdprop);
|
||||
|
||||
extern JSDValue*
|
||||
jsd_GetPropertyValue(JSDContext* jsdc, JSDProperty* jsdprop);
|
||||
|
||||
extern JSDValue*
|
||||
jsd_GetPropertyAlias(JSDContext* jsdc, JSDProperty* jsdprop);
|
||||
|
||||
extern JSDPropertyFlags
|
||||
jsd_GetPropertyFlags(JSDContext* jsdc, JSDProperty* jsdprop);
|
||||
|
||||
extern uintN
|
||||
jsd_GetPropertyVarArgSlot(JSDContext* jsdc, JSDProperty* jsdprop);
|
||||
|
||||
/**************************************************/
|
||||
/* Stepping Functions */
|
||||
|
||||
extern void * JS_DLL_CALLBACK
|
||||
jsd_InterpreterHook(JSContext *cx, JSStackFrame *fp, JSBool before,
|
||||
JSBool *ok, void *closure);
|
||||
|
||||
/**************************************************/
|
||||
/* Object Functions */
|
||||
|
||||
extern JSBool
|
||||
jsd_InitObjectManager(JSDContext* jsdc);
|
||||
|
||||
extern void
|
||||
jsd_DestroyObjectManager(JSDContext* jsdc);
|
||||
|
||||
extern void JS_DLL_CALLBACK
|
||||
jsd_ObjectHook(JSContext *cx, JSObject *obj, JSBool isNew, void *closure);
|
||||
|
||||
extern void
|
||||
jsd_Constructing(JSDContext* jsdc, JSContext *cx, JSObject *obj,
|
||||
JSStackFrame *fp);
|
||||
|
||||
extern JSDObject*
|
||||
jsd_IterateObjects(JSDContext* jsdc, JSDObject** iterp);
|
||||
|
||||
extern JSObject*
|
||||
jsd_GetWrappedObject(JSDContext* jsdc, JSDObject* jsdobj);
|
||||
|
||||
extern const char*
|
||||
jsd_GetObjectNewURL(JSDContext* jsdc, JSDObject* jsdobj);
|
||||
|
||||
extern uintN
|
||||
jsd_GetObjectNewLineNumber(JSDContext* jsdc, JSDObject* jsdobj);
|
||||
|
||||
extern const char*
|
||||
jsd_GetObjectConstructorURL(JSDContext* jsdc, JSDObject* jsdobj);
|
||||
|
||||
extern uintN
|
||||
jsd_GetObjectConstructorLineNumber(JSDContext* jsdc, JSDObject* jsdobj);
|
||||
|
||||
extern const char*
|
||||
jsd_GetObjectConstructorName(JSDContext* jsdc, JSDObject* jsdobj);
|
||||
|
||||
extern JSDObject*
|
||||
jsd_GetJSDObjectForJSObject(JSDContext* jsdc, JSObject* jsobj);
|
||||
|
||||
extern JSDObject*
|
||||
jsd_GetObjectForValue(JSDContext* jsdc, JSDValue* jsdval);
|
||||
|
||||
/*
|
||||
* returns new refcounted JSDValue
|
||||
*/
|
||||
extern JSDValue*
|
||||
jsd_GetValueForObject(JSDContext* jsdc, JSDObject* jsdobj);
|
||||
|
||||
/**************************************************/
|
||||
/* Atom Functions */
|
||||
|
||||
extern JSBool
|
||||
jsd_CreateAtomTable(JSDContext* jsdc);
|
||||
|
||||
extern void
|
||||
jsd_DestroyAtomTable(JSDContext* jsdc);
|
||||
|
||||
extern JSDAtom*
|
||||
jsd_AddAtom(JSDContext* jsdc, const char* str);
|
||||
|
||||
extern JSDAtom*
|
||||
jsd_CloneAtom(JSDContext* jsdc, JSDAtom* atom);
|
||||
|
||||
extern void
|
||||
jsd_DropAtom(JSDContext* jsdc, JSDAtom* atom);
|
||||
|
||||
#define JSD_ATOM_TO_STRING(a) ((const char*)((a)->str))
|
||||
|
||||
/***************************************************************************/
|
||||
/* Livewire specific API */
|
||||
#ifdef LIVEWIRE
|
||||
|
||||
extern LWDBGScript*
|
||||
jsdlw_GetLWScript(JSDContext* jsdc, JSDScript* jsdscript);
|
||||
|
||||
extern char*
|
||||
jsdlw_BuildAppRelativeFilename(LWDBGApp* app, const char* filename);
|
||||
|
||||
extern JSDSourceText*
|
||||
jsdlw_PreLoadSource(JSDContext* jsdc, LWDBGApp* app,
|
||||
const char* filename, JSBool clear);
|
||||
|
||||
extern JSDSourceText*
|
||||
jsdlw_ForceLoadSource(JSDContext* jsdc, JSDSourceText* jsdsrc);
|
||||
|
||||
extern JSBool
|
||||
jsdlw_UserCodeAtPC(JSDContext* jsdc, JSDScript* jsdscript, jsuword pc);
|
||||
|
||||
extern JSBool
|
||||
jsdlw_RawToProcessedLineNumber(JSDContext* jsdc, JSDScript* jsdscript,
|
||||
uintN lineIn, uintN* lineOut);
|
||||
|
||||
extern JSBool
|
||||
jsdlw_ProcessedToRawLineNumber(JSDContext* jsdc, JSDScript* jsdscript,
|
||||
uintN lineIn, uintN* lineOut);
|
||||
|
||||
|
||||
#if 0
|
||||
/* our hook proc for LiveWire app start/stop */
|
||||
extern void JS_DLL_CALLBACK
|
||||
jsdlw_AppHookProc(LWDBGApp* app,
|
||||
JSBool created,
|
||||
void *callerdata);
|
||||
#endif
|
||||
|
||||
|
||||
#endif
|
||||
/***************************************************************************/
|
||||
|
||||
JS_END_EXTERN_C
|
||||
|
||||
#endif /* jsd_h___ */
|
||||
70
mozilla/js/jsd/jsd.mak
Normal file
70
mozilla/js/jsd/jsd.mak
Normal file
@@ -0,0 +1,70 @@
|
||||
|
||||
PROJ = jsd
|
||||
JSD = .
|
||||
JS = $(JSD)\..\src
|
||||
JSPROJ = js32
|
||||
|
||||
!IF "$(BUILD_OPT)" != ""
|
||||
OBJ = Release
|
||||
CC_FLAGS = /DNDEBUG
|
||||
!ELSE
|
||||
OBJ = Debug
|
||||
CC_FLAGS = /DDEBUG
|
||||
LINK_FLAGS = /DEBUG
|
||||
!ENDIF
|
||||
|
||||
QUIET=@
|
||||
|
||||
CFLAGS = /nologo /MDd /W3 /Gm /GX /Zi /Od\
|
||||
/I $(JS)\
|
||||
/I $(JSD)\
|
||||
/DDEBUG /DWIN32 /D_CONSOLE /DXP_PC /D_WINDOWS /D_WIN32\
|
||||
/DJSDEBUGGER\
|
||||
!IF "$(JSD_THREADSAFE)" != ""
|
||||
/DJSD_THREADSAFE\
|
||||
!ENDIF
|
||||
/DEXPORT_JSD_API\
|
||||
$(CC_FLAGS)\
|
||||
/c /Fp$(OBJ)\$(PROJ).pch /Fd$(OBJ)\$(PROJ).pdb /YX -Fo$@ $<
|
||||
|
||||
LFLAGS = /nologo /subsystem:console /DLL /incremental:no /machine:I386 \
|
||||
$(LINK_FLAGS) /pdb:$(OBJ)\$(PROJ).pdb -out:$(OBJ)\$(PROJ).dll
|
||||
|
||||
LLIBS = kernel32.lib advapi32.lib $(JS)\$(OBJ)\$(JSPROJ).lib
|
||||
# unused... user32.lib gdi32.lib winspool.lib comdlg32.lib shell32.lib
|
||||
|
||||
CPP=cl.exe
|
||||
LINK32=link.exe
|
||||
|
||||
all: $(OBJ) $(OBJ)\$(PROJ).dll
|
||||
|
||||
|
||||
$(OBJ)\$(PROJ).dll: \
|
||||
$(OBJ)\jsdebug.obj \
|
||||
$(OBJ)\jsd_atom.obj \
|
||||
$(OBJ)\jsd_high.obj \
|
||||
$(OBJ)\jsd_hook.obj \
|
||||
$(OBJ)\jsd_obj.obj \
|
||||
$(OBJ)\jsd_scpt.obj \
|
||||
$(OBJ)\jsd_stak.obj \
|
||||
$(OBJ)\jsd_step.obj \
|
||||
$(OBJ)\jsd_text.obj \
|
||||
$(OBJ)\jsd_lock.obj \
|
||||
$(OBJ)\jsd_val.obj
|
||||
$(QUIET)$(LINK32) $(LFLAGS) $** $(LLIBS)
|
||||
|
||||
{$(JSD)}.c{$(OBJ)}.obj :
|
||||
$(QUIET)$(CPP) $(CFLAGS)
|
||||
|
||||
$(OBJ) :
|
||||
$(QUIET)mkdir $(OBJ)
|
||||
|
||||
clean:
|
||||
@echo deleting old output
|
||||
$(QUIET)del $(OBJ)\*.pch >NUL
|
||||
$(QUIET)del $(OBJ)\*.obj >NUL
|
||||
$(QUIET)del $(OBJ)\*.exp >NUL
|
||||
$(QUIET)del $(OBJ)\*.lib >NUL
|
||||
$(QUIET)del $(OBJ)\*.idb >NUL
|
||||
$(QUIET)del $(OBJ)\*.pdb >NUL
|
||||
$(QUIET)del $(OBJ)\*.dll >NUL
|
||||
89
mozilla/js/jsd/jsd1640.def
Normal file
89
mozilla/js/jsd/jsd1640.def
Normal file
@@ -0,0 +1,89 @@
|
||||
; -*- Mode: Fundamental; tab-width: 4; indent-tabs-mode: nil -*-
|
||||
;
|
||||
; The contents of this file are subject to the Netscape Public License
|
||||
; Version 1.0 (the "NPL"); you may not use this file except in
|
||||
; compliance with the NPL. You may obtain a copy of the NPL at
|
||||
; http://www.mozilla.org/NPL/
|
||||
;
|
||||
; Software distributed under the NPL is distributed on an "AS IS" basis,
|
||||
; WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
|
||||
; for the specific language governing rights and limitations under the
|
||||
; NPL.
|
||||
;
|
||||
; The Initial Developer of this code under the NPL is Netscape
|
||||
; Communications Corporation. Portions created by Netscape are
|
||||
; Copyright (C) 1998 Netscape Communications Corporation. All Rights
|
||||
; Reserved.
|
||||
|
||||
|
||||
LIBRARY JSD1640.DLL
|
||||
EXETYPE WINDOWS
|
||||
PROTMODE
|
||||
|
||||
DESCRIPTION 'Netscape 16-bit JavaScript Debugger Library'
|
||||
|
||||
CODE LOADONCALL MOVEABLE DISCARDABLE
|
||||
DATA PRELOAD MOVEABLE SINGLE
|
||||
|
||||
HEAPSIZE 8192
|
||||
|
||||
EXPORTS
|
||||
WEP @1 RESIDENTNAME NONAME
|
||||
_JSD_AppendSourceText
|
||||
_JSD_ClearAllExecutionHooks
|
||||
_JSD_ClearAllExecutionHooksForScript
|
||||
_JSD_ClearDebugBreakHook
|
||||
_JSD_ClearExecutionHook
|
||||
_JSD_ClearInterruptHook
|
||||
_JSD_ClearSourceText
|
||||
_JSD_DebuggerOff
|
||||
_JSD_DebuggerOn
|
||||
_JSD_EvaluateScriptInStackFrame
|
||||
_JSD_FindSourceForURL
|
||||
_JSD_GetCallingStackFrame
|
||||
_JSD_GetClosestLine
|
||||
_JSD_GetClosestPC
|
||||
_JSD_GetCountOfStackFrames
|
||||
_JSD_GetDefaultJSContext
|
||||
_JSD_GetMajorVersion
|
||||
_JSD_GetMinorVersion
|
||||
_JSD_GetPCForStackFrame
|
||||
_JSD_GetScriptBaseLineNumber
|
||||
_JSD_GetScriptFilename
|
||||
_JSD_GetScriptForStackFrame
|
||||
_JSD_GetScriptFunctionName
|
||||
_JSD_GetScriptHook
|
||||
_JSD_GetScriptLineExtent
|
||||
_JSD_GetSourceAlterCount
|
||||
_JSD_GetSourceStatus
|
||||
_JSD_GetSourceText
|
||||
_JSD_GetSourceURL
|
||||
_JSD_GetStackFrame
|
||||
_JSD_IncrementSourceAlterCount
|
||||
_JSD_IsSourceDirty
|
||||
_JSD_IterateScripts
|
||||
_JSD_IterateSources
|
||||
_JSD_LockScriptSubsystem
|
||||
_JSD_LockSourceTextSubsystem
|
||||
_JSD_NewSourceText
|
||||
_JSD_SetDebugBreakHook
|
||||
_JSD_SetErrorReporter
|
||||
_JSD_SetExecutionHook
|
||||
_JSD_SetInterruptHook
|
||||
_JSD_SetScriptHook
|
||||
_JSD_SetSourceDirty
|
||||
_JSD_SetUserCallbacks
|
||||
_JSD_UnlockScriptSubsystem
|
||||
_JSD_UnlockSourceTextSubsystem
|
||||
_Java_netscape_jsdebug_DebugController__0005fsetController_stub
|
||||
_Java_netscape_jsdebug_DebugController_executeScriptInStackFrame_stub
|
||||
_Java_netscape_jsdebug_DebugController_sendInterrupt_stub
|
||||
_Java_netscape_jsdebug_DebugController_setInstructionHook0_stub
|
||||
_Java_netscape_jsdebug_JSPC_getSourceLocation_stub
|
||||
_Java_netscape_jsdebug_JSSourceTextProvider_loadSourceTextItem_stub
|
||||
_Java_netscape_jsdebug_JSSourceTextProvider_refreshSourceTextVector_stub
|
||||
_Java_netscape_jsdebug_JSStackFrameInfo_getCaller0_stub
|
||||
_Java_netscape_jsdebug_JSStackFrameInfo_getPC_stub
|
||||
_Java_netscape_jsdebug_JSThreadState_countStackFrames_stub
|
||||
_Java_netscape_jsdebug_JSThreadState_getCurrentFrame_stub
|
||||
_Java_netscape_jsdebug_Script_getClosestPC_stub
|
||||
80
mozilla/js/jsd/jsd1640.rc
Normal file
80
mozilla/js/jsd/jsd1640.rc
Normal file
@@ -0,0 +1,80 @@
|
||||
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
|
||||
*
|
||||
* The contents of this file are subject to the Netscape Public License
|
||||
* Version 1.0 (the "NPL"); you may not use this file except in
|
||||
* compliance with the NPL. You may obtain a copy of the NPL at
|
||||
* http://www.mozilla.org/NPL/
|
||||
*
|
||||
* Software distributed under the NPL is distributed on an "AS IS" basis,
|
||||
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
|
||||
* for the specific language governing rights and limitations under the
|
||||
* NPL.
|
||||
*
|
||||
* The Initial Developer of this code under the NPL is Netscape
|
||||
* Communications Corporation. Portions created by Netscape are
|
||||
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
|
||||
* Reserved.
|
||||
*/
|
||||
|
||||
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
// Version stamp for this .DLL
|
||||
|
||||
#include <windows.h>
|
||||
|
||||
#include <ver.h>
|
||||
|
||||
|
||||
|
||||
VS_VERSION_INFO VERSIONINFO
|
||||
|
||||
FILEVERSION 4 // major, minor, release (alpha 1), build #
|
||||
|
||||
PRODUCTVERSION 4
|
||||
|
||||
FILEFLAGSMASK 0
|
||||
|
||||
FILEFLAGS 0 // final version
|
||||
|
||||
FILEOS VOS_DOS_WINDOWS16
|
||||
|
||||
FILETYPE VFT_DLL
|
||||
|
||||
FILESUBTYPE 0 // not used
|
||||
|
||||
BEGIN
|
||||
|
||||
BLOCK "StringFileInfo"
|
||||
|
||||
BEGIN
|
||||
|
||||
BLOCK "040904E4" // Lang=US English, CharSet=Windows Multilingual
|
||||
|
||||
BEGIN
|
||||
|
||||
VALUE "CompanyName", "Netscape Communications Corporation\0"
|
||||
|
||||
VALUE "FileDescription", "Netscape 16-bit JavaScript Debugger Module\0"
|
||||
|
||||
VALUE "FileVersion", "4.0\0"
|
||||
|
||||
VALUE "InternalName", "JSD1640\0"
|
||||
|
||||
VALUE "LegalCopyright", "Copyright Netscape Communications. 1994-96\0"
|
||||
|
||||
VALUE "LegalTrademarks", "Netscape, Mozilla\0"
|
||||
|
||||
VALUE "OriginalFilename","JSD1640.DLL\0"
|
||||
|
||||
VALUE "ProductName", "NETSCAPE\0"
|
||||
|
||||
VALUE "ProductVersion", "4.0\0"
|
||||
|
||||
END
|
||||
|
||||
END
|
||||
|
||||
END
|
||||
|
||||
99
mozilla/js/jsd/jsd3240.rc
Normal file
99
mozilla/js/jsd/jsd3240.rc
Normal file
@@ -0,0 +1,99 @@
|
||||
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
|
||||
*
|
||||
* The contents of this file are subject to the Netscape Public License
|
||||
* Version 1.0 (the "NPL"); you may not use this file except in
|
||||
* compliance with the NPL. You may obtain a copy of the NPL at
|
||||
* http://www.mozilla.org/NPL/
|
||||
*
|
||||
* Software distributed under the NPL is distributed on an "AS IS" basis,
|
||||
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
|
||||
* for the specific language governing rights and limitations under the
|
||||
* NPL.
|
||||
*
|
||||
* The Initial Developer of this code under the NPL is Netscape
|
||||
* Communications Corporation. Portions created by Netscape are
|
||||
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
|
||||
* Reserved.
|
||||
*/
|
||||
|
||||
|
||||
|
||||
//Microsoft Developer Studio generated resource script.
|
||||
//
|
||||
#include "resource.h"
|
||||
|
||||
#define APSTUDIO_READONLY_SYMBOLS
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Generated from the TEXTINCLUDE 2 resource.
|
||||
//
|
||||
#include "winver.h"
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
#undef APSTUDIO_READONLY_SYMBOLS
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Version
|
||||
//
|
||||
|
||||
VS_VERSION_INFO VERSIONINFO
|
||||
FILEVERSION 4,0,0,0
|
||||
PRODUCTVERSION 4,0,0,0
|
||||
FILEFLAGSMASK 0x3fL
|
||||
#ifdef _DEBUG
|
||||
FILEFLAGS 0x1L
|
||||
#else
|
||||
FILEFLAGS 0x0L
|
||||
#endif
|
||||
FILEOS 0x10004L
|
||||
FILETYPE 0x2L
|
||||
FILESUBTYPE 0x0L
|
||||
BEGIN
|
||||
BLOCK "StringFileInfo"
|
||||
BEGIN
|
||||
BLOCK "040904e4"
|
||||
BEGIN
|
||||
VALUE "CompanyName", "Netscape Communications Corporation\0"
|
||||
VALUE "FileDescription", "Netscape 32-bit JavaScript Debugger Module\0"
|
||||
VALUE "FileVersion", "4.0\0"
|
||||
VALUE "InternalName", "JSD3240\0"
|
||||
VALUE "LegalCopyright", "Copyright Netscape Communications. 1994-96\0"
|
||||
VALUE "LegalTrademarks", "Netscape, Mozilla\0"
|
||||
VALUE "OriginalFilename", "jsd3240.dll\0"
|
||||
VALUE "ProductName", "NETSCAPE\0"
|
||||
VALUE "ProductVersion", "4.0\0"
|
||||
END
|
||||
END
|
||||
BLOCK "VarFileInfo"
|
||||
BEGIN
|
||||
VALUE "Translation", 0x409, 1252
|
||||
END
|
||||
END
|
||||
|
||||
#ifdef APSTUDIO_INVOKED
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// TEXTINCLUDE
|
||||
//
|
||||
|
||||
1 TEXTINCLUDE DISCARDABLE
|
||||
BEGIN
|
||||
"resource.h\0"
|
||||
END
|
||||
|
||||
2 TEXTINCLUDE DISCARDABLE
|
||||
BEGIN
|
||||
"#include ""winver.h""\r\n"
|
||||
"\0"
|
||||
END
|
||||
|
||||
3 TEXTINCLUDE DISCARDABLE
|
||||
BEGIN
|
||||
"\r\n"
|
||||
"\0"
|
||||
END
|
||||
|
||||
#endif // APSTUDIO_INVOKED
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
159
mozilla/js/jsd/jsd_atom.c
Normal file
159
mozilla/js/jsd/jsd_atom.c
Normal file
@@ -0,0 +1,159 @@
|
||||
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
|
||||
*
|
||||
* The contents of this file are subject to the Netscape Public License
|
||||
* Version 1.0 (the "NPL"); you may not use this file except in
|
||||
* compliance with the NPL. You may obtain a copy of the NPL at
|
||||
* http://www.mozilla.org/NPL/
|
||||
*
|
||||
* Software distributed under the NPL is distributed on an "AS IS" basis,
|
||||
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
|
||||
* for the specific language governing rights and limitations under the
|
||||
* NPL.
|
||||
*
|
||||
* The Initial Developer of this code under the NPL is Netscape
|
||||
* Communications Corporation. Portions created by Netscape are
|
||||
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
|
||||
* Reserved.
|
||||
*/
|
||||
|
||||
/*
|
||||
* JavaScript Debugging support - Atom support
|
||||
*/
|
||||
|
||||
#include "jsd.h"
|
||||
|
||||
/* #define TEST_ATOMS 1 */
|
||||
|
||||
#ifdef TEST_ATOMS
|
||||
static void
|
||||
_testAtoms(JSDContext*jsdc)
|
||||
{
|
||||
JSDAtom* atom0 = jsd_AddAtom(jsdc, "foo");
|
||||
JSDAtom* atom1 = jsd_AddAtom(jsdc, "foo");
|
||||
JSDAtom* atom2 = jsd_AddAtom(jsdc, "bar");
|
||||
JSDAtom* atom3 = jsd_CloneAtom(jsdc, atom1);
|
||||
JSDAtom* atom4 = jsd_CloneAtom(jsdc, atom2);
|
||||
|
||||
const char* c0 = JSD_ATOM_TO_STRING(atom0);
|
||||
const char* c1 = JSD_ATOM_TO_STRING(atom1);
|
||||
const char* c2 = JSD_ATOM_TO_STRING(atom2);
|
||||
const char* c3 = JSD_ATOM_TO_STRING(atom3);
|
||||
const char* c4 = JSD_ATOM_TO_STRING(atom4);
|
||||
|
||||
jsd_DropAtom(jsdc, atom0);
|
||||
jsd_DropAtom(jsdc, atom1);
|
||||
jsd_DropAtom(jsdc, atom2);
|
||||
jsd_DropAtom(jsdc, atom3);
|
||||
jsd_DropAtom(jsdc, atom4);
|
||||
}
|
||||
#endif
|
||||
|
||||
JS_STATIC_DLL_CALLBACK(intN)
|
||||
_atom_smasher(JSHashEntry *he, intN i, void *arg)
|
||||
{
|
||||
JS_ASSERT(he);
|
||||
JS_ASSERT(he->value);
|
||||
JS_ASSERT(((JSDAtom*)(he->value))->str);
|
||||
|
||||
free(((JSDAtom*)(he->value))->str);
|
||||
free(he->value);
|
||||
he->value = NULL;
|
||||
he->key = NULL;
|
||||
return HT_ENUMERATE_NEXT;
|
||||
}
|
||||
|
||||
JS_STATIC_DLL_CALLBACK(intN)
|
||||
_compareAtomKeys(const void *v1, const void *v2)
|
||||
{
|
||||
return 0 == strcmp((const char*)v1, (const char*)v2);
|
||||
}
|
||||
|
||||
JS_STATIC_DLL_CALLBACK(intN)
|
||||
_compareAtoms(const void *v1, const void *v2)
|
||||
{
|
||||
return 0 == strcmp(((JSDAtom*)v1)->str, ((JSDAtom*)v2)->str);
|
||||
}
|
||||
|
||||
|
||||
JSBool
|
||||
jsd_CreateAtomTable(JSDContext* jsdc)
|
||||
{
|
||||
jsdc->atoms = JS_NewHashTable(256, JS_HashString,
|
||||
_compareAtomKeys, _compareAtoms,
|
||||
NULL, NULL);
|
||||
#ifdef TEST_ATOMS
|
||||
_testAtoms(jsdc);
|
||||
#endif
|
||||
return (JSBool) jsdc->atoms;
|
||||
}
|
||||
|
||||
void
|
||||
jsd_DestroyAtomTable(JSDContext* jsdc)
|
||||
{
|
||||
if( jsdc->atoms )
|
||||
{
|
||||
JS_HashTableEnumerateEntries(jsdc->atoms, _atom_smasher, NULL);
|
||||
JS_HashTableDestroy(jsdc->atoms);
|
||||
jsdc->atoms = NULL;
|
||||
}
|
||||
}
|
||||
|
||||
JSDAtom*
|
||||
jsd_AddAtom(JSDContext* jsdc, const char* str)
|
||||
{
|
||||
JSDAtom* atom;
|
||||
|
||||
if(!str)
|
||||
{
|
||||
JS_ASSERT(0);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
JSD_LOCK_ATOMS(jsdc);
|
||||
|
||||
atom = (JSDAtom*) JS_HashTableLookup(jsdc->atoms, str);
|
||||
|
||||
if( atom )
|
||||
atom->refcount++;
|
||||
else
|
||||
{
|
||||
atom = (JSDAtom*) malloc(sizeof(JSDAtom));
|
||||
if( atom )
|
||||
{
|
||||
atom->str = strdup(str);
|
||||
atom->refcount = 1;
|
||||
if(!JS_HashTableAdd(jsdc->atoms, atom->str, atom))
|
||||
{
|
||||
free(atom->str);
|
||||
free(atom);
|
||||
atom = NULL;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
JSD_UNLOCK_ATOMS(jsdc);
|
||||
return atom;
|
||||
}
|
||||
|
||||
JSDAtom*
|
||||
jsd_CloneAtom(JSDContext* jsdc, JSDAtom* atom)
|
||||
{
|
||||
JSD_LOCK_ATOMS(jsdc);
|
||||
atom->refcount++;
|
||||
JSD_UNLOCK_ATOMS(jsdc);
|
||||
return atom;
|
||||
}
|
||||
|
||||
void
|
||||
jsd_DropAtom(JSDContext* jsdc, JSDAtom* atom)
|
||||
{
|
||||
JSD_LOCK_ATOMS(jsdc);
|
||||
if(! --atom->refcount)
|
||||
{
|
||||
JS_HashTableRemove(jsdc->atoms, atom->str);
|
||||
free(atom->str);
|
||||
free(atom);
|
||||
}
|
||||
JSD_UNLOCK_ATOMS(jsdc);
|
||||
}
|
||||
|
||||
348
mozilla/js/jsd/jsd_high.c
Normal file
348
mozilla/js/jsd/jsd_high.c
Normal file
@@ -0,0 +1,348 @@
|
||||
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
|
||||
*
|
||||
* The contents of this file are subject to the Netscape Public License
|
||||
* Version 1.0 (the "NPL"); you may not use this file except in
|
||||
* compliance with the NPL. You may obtain a copy of the NPL at
|
||||
* http://www.mozilla.org/NPL/
|
||||
*
|
||||
* Software distributed under the NPL is distributed on an "AS IS" basis,
|
||||
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
|
||||
* for the specific language governing rights and limitations under the
|
||||
* NPL.
|
||||
*
|
||||
* The Initial Developer of this code under the NPL is Netscape
|
||||
* Communications Corporation. Portions created by Netscape are
|
||||
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
|
||||
* Reserved.
|
||||
*/
|
||||
|
||||
/*
|
||||
* JavaScript Debugging support - 'High Level' functions
|
||||
*/
|
||||
|
||||
#include "jsd.h"
|
||||
|
||||
/***************************************************************************/
|
||||
|
||||
/* XXX not 'static' because of old Mac CodeWarrior bug */
|
||||
JSCList _jsd_context_list = JS_INIT_STATIC_CLIST(&_jsd_context_list);
|
||||
|
||||
/* these are used to connect JSD_SetUserCallbacks() with JSD_DebuggerOn() */
|
||||
static JSD_UserCallbacks _callbacks;
|
||||
static void* _user = NULL;
|
||||
static JSRuntime* _jsrt = NULL;
|
||||
|
||||
#ifdef JSD_HAS_DANGEROUS_THREAD
|
||||
static void* _dangerousThread = NULL;
|
||||
#endif
|
||||
|
||||
#ifdef JSD_THREADSAFE
|
||||
void* _jsd_global_lock = NULL;
|
||||
#endif
|
||||
|
||||
#ifdef DEBUG
|
||||
void JSD_ASSERT_VALID_CONTEXT(JSDContext* jsdc)
|
||||
{
|
||||
JS_ASSERT(jsdc->inited);
|
||||
JS_ASSERT(jsdc->jsrt);
|
||||
JS_ASSERT(jsdc->dumbContext);
|
||||
JS_ASSERT(jsdc->glob);
|
||||
}
|
||||
#endif
|
||||
|
||||
static JSClass global_class = {
|
||||
"JSDGlobal", 0,
|
||||
JS_PropertyStub, JS_PropertyStub, JS_PropertyStub, JS_PropertyStub,
|
||||
JS_EnumerateStub, JS_ResolveStub, JS_ConvertStub, JS_FinalizeStub
|
||||
};
|
||||
|
||||
static JSBool
|
||||
_validateUserCallbacks(JSD_UserCallbacks* callbacks)
|
||||
{
|
||||
return !callbacks ||
|
||||
(callbacks->size && callbacks->size <= sizeof(JSD_UserCallbacks));
|
||||
}
|
||||
|
||||
static JSDContext*
|
||||
_newJSDContext(JSRuntime* jsrt,
|
||||
JSD_UserCallbacks* callbacks,
|
||||
void* user)
|
||||
{
|
||||
JSDContext* jsdc = NULL;
|
||||
|
||||
if( ! jsrt )
|
||||
return NULL;
|
||||
|
||||
if( ! _validateUserCallbacks(callbacks) )
|
||||
return NULL;
|
||||
|
||||
jsdc = (JSDContext*) calloc(1, sizeof(JSDContext));
|
||||
if( ! jsdc )
|
||||
goto label_newJSDContext_failure;
|
||||
|
||||
if( ! JSD_INIT_LOCKS(jsdc) )
|
||||
goto label_newJSDContext_failure;
|
||||
|
||||
JS_INIT_CLIST(&jsdc->links);
|
||||
|
||||
jsdc->jsrt = jsrt;
|
||||
|
||||
if( callbacks )
|
||||
memcpy(&jsdc->userCallbacks, callbacks, callbacks->size);
|
||||
|
||||
jsdc->user = user;
|
||||
|
||||
#ifdef JSD_HAS_DANGEROUS_THREAD
|
||||
jsdc->dangerousThread = _dangerousThread;
|
||||
#endif
|
||||
|
||||
JS_INIT_CLIST(&jsdc->threadsStates);
|
||||
JS_INIT_CLIST(&jsdc->scripts);
|
||||
JS_INIT_CLIST(&jsdc->sources);
|
||||
JS_INIT_CLIST(&jsdc->removedSources);
|
||||
|
||||
jsdc->sourceAlterCount = 1;
|
||||
|
||||
if( ! jsd_CreateAtomTable(jsdc) )
|
||||
goto label_newJSDContext_failure;
|
||||
|
||||
if( ! jsd_InitObjectManager(jsdc) )
|
||||
goto label_newJSDContext_failure;
|
||||
|
||||
jsdc->dumbContext = JS_NewContext(jsdc->jsrt, 256);
|
||||
if( ! jsdc->dumbContext )
|
||||
goto label_newJSDContext_failure;
|
||||
|
||||
jsdc->glob = JS_NewObject(jsdc->dumbContext, &global_class, NULL, NULL);
|
||||
if( ! jsdc->glob )
|
||||
goto label_newJSDContext_failure;
|
||||
|
||||
if( ! JS_InitStandardClasses(jsdc->dumbContext, jsdc->glob) )
|
||||
goto label_newJSDContext_failure;
|
||||
|
||||
jsdc->inited = JS_TRUE;
|
||||
|
||||
JSD_LOCK();
|
||||
JS_INSERT_LINK(&jsdc->links, &_jsd_context_list);
|
||||
JSD_UNLOCK();
|
||||
|
||||
return jsdc;
|
||||
|
||||
label_newJSDContext_failure:
|
||||
jsd_DestroyObjectManager(jsdc);
|
||||
jsd_DestroyAtomTable(jsdc);
|
||||
if( jsdc )
|
||||
free(jsdc);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
static void
|
||||
_destroyJSDContext(JSDContext* jsdc)
|
||||
{
|
||||
JSD_ASSERT_VALID_CONTEXT(jsdc);
|
||||
|
||||
JSD_LOCK();
|
||||
JS_REMOVE_LINK(&jsdc->links);
|
||||
JSD_UNLOCK();
|
||||
|
||||
jsd_DestroyObjectManager(jsdc);
|
||||
jsd_DestroyAtomTable(jsdc);
|
||||
|
||||
jsdc->inited = JS_FALSE;
|
||||
|
||||
/*
|
||||
* We should free jsdc here, but we let it leak in case there are any
|
||||
* asynchronous hooks calling into the system using it as a handle
|
||||
*
|
||||
* XXX we also leak the locks
|
||||
*/
|
||||
|
||||
}
|
||||
|
||||
/***************************************************************************/
|
||||
|
||||
JSDContext*
|
||||
jsd_DebuggerOnForUser(JSRuntime* jsrt,
|
||||
JSD_UserCallbacks* callbacks,
|
||||
void* user)
|
||||
{
|
||||
JSDContext* jsdc;
|
||||
JSContext* iter = NULL;
|
||||
|
||||
jsdc = _newJSDContext(jsrt, callbacks, user);
|
||||
if( ! jsdc )
|
||||
return NULL;
|
||||
|
||||
/* set hooks here */
|
||||
JS_SetNewScriptHookProc(jsdc->jsrt, jsd_NewScriptHookProc, jsdc);
|
||||
JS_SetDestroyScriptHookProc(jsdc->jsrt, jsd_DestroyScriptHookProc, jsdc);
|
||||
JS_SetDebuggerHandler(jsdc->jsrt, jsd_DebuggerHandler, jsdc);
|
||||
JS_SetExecuteHook(jsdc->jsrt, jsd_InterpreterHook, jsdc);
|
||||
JS_SetCallHook(jsdc->jsrt, jsd_InterpreterHook, jsdc);
|
||||
JS_SetObjectHook(jsdc->jsrt, jsd_ObjectHook, jsdc);
|
||||
JS_SetThrowHook(jsdc->jsrt, jsd_ThrowHandler, jsdc);
|
||||
JS_SetDebugErrorHook(jsdc->jsrt, jsd_DebugErrorHook, jsdc);
|
||||
#ifdef LIVEWIRE
|
||||
LWDBG_SetNewScriptHookProc(jsd_NewScriptHookProc, jsdc);
|
||||
#endif
|
||||
if( jsdc->userCallbacks.setContext )
|
||||
jsdc->userCallbacks.setContext(jsdc, jsdc->user);
|
||||
return jsdc;
|
||||
}
|
||||
|
||||
JSDContext*
|
||||
jsd_DebuggerOn(void)
|
||||
{
|
||||
JS_ASSERT(_jsrt);
|
||||
JS_ASSERT(_validateUserCallbacks(&_callbacks));
|
||||
return jsd_DebuggerOnForUser(_jsrt, &_callbacks, _user);
|
||||
}
|
||||
|
||||
void
|
||||
jsd_DebuggerOff(JSDContext* jsdc)
|
||||
{
|
||||
/* clear hooks here */
|
||||
JS_SetNewScriptHookProc(jsdc->jsrt, NULL, NULL);
|
||||
JS_SetDestroyScriptHookProc(jsdc->jsrt, NULL, NULL);
|
||||
JS_SetDebuggerHandler(jsdc->jsrt, NULL, NULL);
|
||||
JS_SetExecuteHook(jsdc->jsrt, NULL, NULL);
|
||||
JS_SetCallHook(jsdc->jsrt, NULL, NULL);
|
||||
JS_SetObjectHook(jsdc->jsrt, NULL, NULL);
|
||||
JS_SetThrowHook(jsdc->jsrt, NULL, NULL);
|
||||
JS_SetDebugErrorHook(jsdc->jsrt, NULL, NULL);
|
||||
#ifdef LIVEWIRE
|
||||
LWDBG_SetNewScriptHookProc(NULL,NULL);
|
||||
#endif
|
||||
|
||||
/* clean up */
|
||||
jsd_DestroyAllJSDScripts(jsdc);
|
||||
jsd_DestroyAllSources(jsdc);
|
||||
|
||||
_destroyJSDContext(jsdc);
|
||||
|
||||
if( jsdc->userCallbacks.setContext )
|
||||
jsdc->userCallbacks.setContext(NULL, jsdc->user);
|
||||
}
|
||||
|
||||
void
|
||||
jsd_SetUserCallbacks(JSRuntime* jsrt, JSD_UserCallbacks* callbacks, void* user)
|
||||
{
|
||||
_jsrt = jsrt;
|
||||
_user = user;
|
||||
|
||||
#ifdef JSD_HAS_DANGEROUS_THREAD
|
||||
_dangerousThread = JSD_CURRENT_THREAD();
|
||||
#endif
|
||||
|
||||
if( callbacks )
|
||||
memcpy(&_callbacks, callbacks, sizeof(JSD_UserCallbacks));
|
||||
else
|
||||
memset(&_callbacks, 0 , sizeof(JSD_UserCallbacks));
|
||||
}
|
||||
|
||||
JSDContext*
|
||||
jsd_JSDContextForJSContext(JSContext* context)
|
||||
{
|
||||
JSDContext* iter;
|
||||
JSDContext* jsdc = NULL;
|
||||
JSRuntime* runtime = JS_GetRuntime(context);
|
||||
|
||||
JSD_LOCK();
|
||||
for( iter = (JSDContext*)_jsd_context_list.next;
|
||||
iter != (JSDContext*)&_jsd_context_list;
|
||||
iter = (JSDContext*)iter->links.next )
|
||||
{
|
||||
if( runtime == iter->jsrt )
|
||||
{
|
||||
jsdc = iter;
|
||||
break;
|
||||
}
|
||||
}
|
||||
JSD_UNLOCK();
|
||||
return jsdc;
|
||||
}
|
||||
|
||||
JS_STATIC_DLL_CALLBACK(JSBool)
|
||||
jsd_DebugErrorHook(JSContext *cx, const char *message,
|
||||
JSErrorReport *report, void *closure)
|
||||
{
|
||||
JSDContext* jsdc = (JSDContext*) closure;
|
||||
JSD_ErrorReporter errorReporter;
|
||||
void* errorReporterData;
|
||||
|
||||
if( ! jsdc )
|
||||
{
|
||||
JS_ASSERT(0);
|
||||
return JS_TRUE;
|
||||
}
|
||||
if( JSD_IS_DANGEROUS_THREAD(jsdc) )
|
||||
return JS_TRUE;
|
||||
|
||||
/* local in case hook gets cleared on another thread */
|
||||
JSD_LOCK();
|
||||
errorReporter = jsdc->errorReporter;
|
||||
errorReporterData = jsdc->errorReporterData;
|
||||
JSD_UNLOCK();
|
||||
|
||||
if(!errorReporter)
|
||||
return JS_TRUE;
|
||||
|
||||
switch(errorReporter(jsdc, cx, message, report, errorReporterData))
|
||||
{
|
||||
case JSD_ERROR_REPORTER_PASS_ALONG:
|
||||
return JS_TRUE;
|
||||
case JSD_ERROR_REPORTER_RETURN:
|
||||
return JS_FALSE;
|
||||
case JSD_ERROR_REPORTER_DEBUG:
|
||||
{
|
||||
jsval rval;
|
||||
JSD_ExecutionHookProc hook;
|
||||
void* hookData;
|
||||
|
||||
/* local in case hook gets cleared on another thread */
|
||||
JSD_LOCK();
|
||||
hook = jsdc->debugBreakHook;
|
||||
hookData = jsdc->debugBreakHookData;
|
||||
JSD_UNLOCK();
|
||||
|
||||
jsd_CallExecutionHook(jsdc, cx, JSD_HOOK_DEBUG_REQUESTED,
|
||||
hook, hookData, &rval);
|
||||
/* XXX Should make this dependent on ExecutionHook retval */
|
||||
return JS_TRUE;
|
||||
}
|
||||
case JSD_ERROR_REPORTER_CLEAR_RETURN:
|
||||
if(report && JSREPORT_IS_EXCEPTION(report->flags))
|
||||
JS_ClearPendingException(cx);
|
||||
return JS_FALSE;
|
||||
default:
|
||||
JS_ASSERT(0);
|
||||
break;
|
||||
}
|
||||
return JS_TRUE;
|
||||
}
|
||||
|
||||
JSBool
|
||||
jsd_SetErrorReporter(JSDContext* jsdc,
|
||||
JSD_ErrorReporter reporter,
|
||||
void* callerdata)
|
||||
{
|
||||
JSD_LOCK();
|
||||
jsdc->errorReporter = reporter;
|
||||
jsdc->errorReporterData = callerdata;
|
||||
JSD_UNLOCK();
|
||||
return JS_TRUE;
|
||||
}
|
||||
|
||||
JSBool
|
||||
jsd_GetErrorReporter(JSDContext* jsdc,
|
||||
JSD_ErrorReporter* reporter,
|
||||
void** callerdata)
|
||||
{
|
||||
JSD_LOCK();
|
||||
if( reporter )
|
||||
*reporter = jsdc->errorReporter;
|
||||
if( callerdata )
|
||||
*callerdata = jsdc->errorReporterData;
|
||||
JSD_UNLOCK();
|
||||
return JS_TRUE;
|
||||
}
|
||||
260
mozilla/js/jsd/jsd_hook.c
Normal file
260
mozilla/js/jsd/jsd_hook.c
Normal file
@@ -0,0 +1,260 @@
|
||||
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
|
||||
*
|
||||
* The contents of this file are subject to the Netscape Public License
|
||||
* Version 1.0 (the "NPL"); you may not use this file except in
|
||||
* compliance with the NPL. You may obtain a copy of the NPL at
|
||||
* http://www.mozilla.org/NPL/
|
||||
*
|
||||
* Software distributed under the NPL is distributed on an "AS IS" basis,
|
||||
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
|
||||
* for the specific language governing rights and limitations under the
|
||||
* NPL.
|
||||
*
|
||||
* The Initial Developer of this code under the NPL is Netscape
|
||||
* Communications Corporation. Portions created by Netscape are
|
||||
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
|
||||
* Reserved.
|
||||
*/
|
||||
|
||||
/*
|
||||
* JavaScript Debugging support - Hook support
|
||||
*/
|
||||
|
||||
#include "jsd.h"
|
||||
|
||||
JSTrapStatus JS_DLL_CALLBACK
|
||||
jsd_InterruptHandler(JSContext *cx, JSScript *script, jsbytecode *pc, jsval *rval,
|
||||
void *closure)
|
||||
{
|
||||
JSDScript* jsdscript;
|
||||
JSDContext* jsdc = (JSDContext*) closure;
|
||||
JSD_ExecutionHookProc hook;
|
||||
void* hookData;
|
||||
|
||||
if( ! jsdc || ! jsdc->inited )
|
||||
return JSTRAP_CONTINUE;
|
||||
|
||||
if( JSD_IS_DANGEROUS_THREAD(jsdc) )
|
||||
return JSTRAP_CONTINUE;
|
||||
|
||||
JSD_LOCK_SCRIPTS(jsdc);
|
||||
jsdscript = jsd_FindJSDScript(jsdc, script);
|
||||
JSD_UNLOCK_SCRIPTS(jsdc);
|
||||
if( ! jsdscript )
|
||||
return JSTRAP_CONTINUE;
|
||||
|
||||
#ifdef LIVEWIRE
|
||||
if( ! jsdlw_UserCodeAtPC(jsdc, jsdscript, (jsuword)pc) )
|
||||
return JSTRAP_CONTINUE;
|
||||
#endif
|
||||
|
||||
/* local in case jsdc->interruptHook gets cleared on another thread */
|
||||
JSD_LOCK();
|
||||
hook = jsdc->interruptHook;
|
||||
hookData = jsdc->interruptHookData;
|
||||
JSD_UNLOCK();
|
||||
|
||||
return jsd_CallExecutionHook(jsdc, cx, JSD_HOOK_INTERRUPTED,
|
||||
hook, hookData, rval);
|
||||
}
|
||||
|
||||
JSTrapStatus JS_DLL_CALLBACK
|
||||
jsd_DebuggerHandler(JSContext *cx, JSScript *script, jsbytecode *pc,
|
||||
jsval *rval, void *closure)
|
||||
{
|
||||
JSDScript* jsdscript;
|
||||
JSDContext* jsdc = (JSDContext*) closure;
|
||||
JSD_ExecutionHookProc hook;
|
||||
void* hookData;
|
||||
|
||||
if( ! jsdc || ! jsdc->inited )
|
||||
return JSTRAP_CONTINUE;
|
||||
|
||||
if( JSD_IS_DANGEROUS_THREAD(jsdc) )
|
||||
return JSTRAP_CONTINUE;
|
||||
|
||||
JSD_LOCK_SCRIPTS(jsdc);
|
||||
jsdscript = jsd_FindJSDScript(jsdc, script);
|
||||
JSD_UNLOCK_SCRIPTS(jsdc);
|
||||
if( ! jsdscript )
|
||||
return JSTRAP_CONTINUE;
|
||||
|
||||
/* local in case jsdc->debuggerHook gets cleared on another thread */
|
||||
JSD_LOCK();
|
||||
hook = jsdc->debuggerHook;
|
||||
hookData = jsdc->debuggerHookData;
|
||||
JSD_UNLOCK();
|
||||
|
||||
return jsd_CallExecutionHook(jsdc, cx, JSD_HOOK_DEBUGGER_KEYWORD,
|
||||
hook, hookData, rval);
|
||||
}
|
||||
|
||||
|
||||
JSTrapStatus JS_DLL_CALLBACK
|
||||
jsd_ThrowHandler(JSContext *cx, JSScript *script, jsbytecode *pc,
|
||||
jsval *rval, void *closure)
|
||||
{
|
||||
JSDScript* jsdscript;
|
||||
JSDContext* jsdc = (JSDContext*) closure;
|
||||
JSD_ExecutionHookProc hook;
|
||||
void* hookData;
|
||||
|
||||
JS_GetPendingException(cx, rval);
|
||||
|
||||
if( ! jsdc || ! jsdc->inited )
|
||||
return JSD_HOOK_RETURN_CONTINUE_THROW;
|
||||
|
||||
if( JSD_IS_DANGEROUS_THREAD(jsdc) )
|
||||
return JSD_HOOK_RETURN_CONTINUE_THROW;
|
||||
|
||||
JSD_LOCK_SCRIPTS(jsdc);
|
||||
jsdscript = jsd_FindJSDScript(jsdc, script);
|
||||
JSD_UNLOCK_SCRIPTS(jsdc);
|
||||
if( ! jsdscript )
|
||||
return JSD_HOOK_RETURN_CONTINUE_THROW;
|
||||
|
||||
/* local in case jsdc->throwHook gets cleared on another thread */
|
||||
JSD_LOCK();
|
||||
hook = jsdc->throwHook;
|
||||
hookData = jsdc->throwHookData;
|
||||
JSD_UNLOCK();
|
||||
|
||||
return jsd_CallExecutionHook(jsdc, cx, JSD_HOOK_THROW,
|
||||
hook, hookData, rval);
|
||||
}
|
||||
|
||||
JSTrapStatus
|
||||
jsd_CallExecutionHook(JSDContext* jsdc,
|
||||
JSContext *cx,
|
||||
JSDHookType type,
|
||||
JSD_ExecutionHookProc hook,
|
||||
void* hookData,
|
||||
jsval* rval)
|
||||
{
|
||||
JSDHookResult hookanswer = JSD_HOOK_THROW == type ?
|
||||
JSD_HOOK_RETURN_CONTINUE_THROW :
|
||||
JSD_HOOK_RETURN_CONTINUE;
|
||||
JSDThreadState* jsdthreadstate;
|
||||
|
||||
if(hook && NULL != (jsdthreadstate = jsd_NewThreadState(jsdc,cx)))
|
||||
{
|
||||
hookanswer = hook(jsdc, jsdthreadstate, type, hookData, rval);
|
||||
jsd_DestroyThreadState(jsdc, jsdthreadstate);
|
||||
}
|
||||
|
||||
switch(hookanswer)
|
||||
{
|
||||
case JSD_HOOK_RETURN_ABORT:
|
||||
case JSD_HOOK_RETURN_HOOK_ERROR:
|
||||
return JSTRAP_ERROR;
|
||||
case JSD_HOOK_RETURN_RET_WITH_VAL:
|
||||
return JSTRAP_RETURN;
|
||||
case JSD_HOOK_RETURN_THROW_WITH_VAL:
|
||||
return JSTRAP_THROW;
|
||||
case JSD_HOOK_RETURN_CONTINUE:
|
||||
break;
|
||||
case JSD_HOOK_RETURN_CONTINUE_THROW:
|
||||
/* only makes sense for jsd_ThrowHandler (which init'd rval) */
|
||||
JS_ASSERT(JSD_HOOK_THROW == type);
|
||||
return JSTRAP_THROW;
|
||||
default:
|
||||
JS_ASSERT(0);
|
||||
break;
|
||||
}
|
||||
return JSTRAP_CONTINUE;
|
||||
}
|
||||
|
||||
JSBool
|
||||
jsd_SetInterruptHook(JSDContext* jsdc,
|
||||
JSD_ExecutionHookProc hook,
|
||||
void* callerdata)
|
||||
{
|
||||
JSD_LOCK();
|
||||
jsdc->interruptHookData = callerdata;
|
||||
jsdc->interruptHook = hook;
|
||||
JS_SetInterrupt(jsdc->jsrt, jsd_InterruptHandler, (void*) jsdc);
|
||||
JSD_UNLOCK();
|
||||
|
||||
return JS_TRUE;
|
||||
}
|
||||
|
||||
JSBool
|
||||
jsd_ClearInterruptHook(JSDContext* jsdc)
|
||||
{
|
||||
JSD_LOCK();
|
||||
JS_ClearInterrupt(jsdc->jsrt, NULL, NULL );
|
||||
jsdc->interruptHook = NULL;
|
||||
JSD_UNLOCK();
|
||||
|
||||
return JS_TRUE;
|
||||
}
|
||||
|
||||
JSBool
|
||||
jsd_SetDebugBreakHook(JSDContext* jsdc,
|
||||
JSD_ExecutionHookProc hook,
|
||||
void* callerdata)
|
||||
{
|
||||
JSD_LOCK();
|
||||
jsdc->debugBreakHookData = callerdata;
|
||||
jsdc->debugBreakHook = hook;
|
||||
JSD_UNLOCK();
|
||||
|
||||
return JS_TRUE;
|
||||
}
|
||||
|
||||
JSBool
|
||||
jsd_ClearDebugBreakHook(JSDContext* jsdc)
|
||||
{
|
||||
JSD_LOCK();
|
||||
jsdc->debugBreakHook = NULL;
|
||||
JSD_UNLOCK();
|
||||
|
||||
return JS_TRUE;
|
||||
}
|
||||
|
||||
JSBool
|
||||
jsd_SetDebuggerHook(JSDContext* jsdc,
|
||||
JSD_ExecutionHookProc hook,
|
||||
void* callerdata)
|
||||
{
|
||||
JSD_LOCK();
|
||||
jsdc->debuggerHookData = callerdata;
|
||||
jsdc->debuggerHook = hook;
|
||||
JSD_UNLOCK();
|
||||
|
||||
return JS_TRUE;
|
||||
}
|
||||
|
||||
JSBool
|
||||
jsd_ClearDebuggerHook(JSDContext* jsdc)
|
||||
{
|
||||
JSD_LOCK();
|
||||
jsdc->debuggerHook = NULL;
|
||||
JSD_UNLOCK();
|
||||
|
||||
return JS_TRUE;
|
||||
}
|
||||
|
||||
JSBool
|
||||
jsd_SetThrowHook(JSDContext* jsdc,
|
||||
JSD_ExecutionHookProc hook,
|
||||
void* callerdata)
|
||||
{
|
||||
JSD_LOCK();
|
||||
jsdc->throwHookData = callerdata;
|
||||
jsdc->throwHook = hook;
|
||||
JSD_UNLOCK();
|
||||
|
||||
return JS_TRUE;
|
||||
}
|
||||
|
||||
JSBool
|
||||
jsd_ClearThrowHook(JSDContext* jsdc)
|
||||
{
|
||||
JSD_LOCK();
|
||||
jsdc->throwHook = NULL;
|
||||
JSD_UNLOCK();
|
||||
|
||||
return JS_TRUE;
|
||||
}
|
||||
|
||||
801
mozilla/js/jsd/jsd_java.c
Normal file
801
mozilla/js/jsd/jsd_java.c
Normal file
@@ -0,0 +1,801 @@
|
||||
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
|
||||
*
|
||||
* The contents of this file are subject to the Netscape Public License
|
||||
* Version 1.0 (the "NPL"); you may not use this file except in
|
||||
* compliance with the NPL. You may obtain a copy of the NPL at
|
||||
* http://www.mozilla.org/NPL/
|
||||
*
|
||||
* Software distributed under the NPL is distributed on an "AS IS" basis,
|
||||
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
|
||||
* for the specific language governing rights and limitations under the
|
||||
* NPL.
|
||||
*
|
||||
* The Initial Developer of this code under the NPL is Netscape
|
||||
* Communications Corporation. Portions created by Netscape are
|
||||
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
|
||||
* Reserved.
|
||||
*/
|
||||
|
||||
/* this is all going away... replaced by code in js/jsd/java */
|
||||
|
||||
#if 0
|
||||
|
||||
#include "native.h"
|
||||
#include "jsdebug.h"
|
||||
|
||||
#ifndef XP_MAC
|
||||
#include "_gen/netscape_jsdebug_DebugController.h"
|
||||
#include "_gen/netscape_jsdebug_Script.h"
|
||||
#include "_gen/netscape_jsdebug_JSThreadState.h"
|
||||
#include "_gen/netscape_jsdebug_JSStackFrameInfo.h"
|
||||
#include "_gen/netscape_jsdebug_JSPC.h"
|
||||
#include "_gen/netscape_jsdebug_JSSourceTextProvider.h"
|
||||
#include "_gen/netscape_jsdebug_JSErrorReporter.h"
|
||||
#else
|
||||
#include "n_jsdebug_DebugController.h"
|
||||
#include "netscape_jsdebug_Script.h"
|
||||
#include "n_jsdebug_JSThreadState.h"
|
||||
#include "n_jsdebug_JSStackFrameInfo.h"
|
||||
#include "netscape_jsdebug_JSPC.h"
|
||||
#include "n_j_JSSourceTextProvider.h"
|
||||
#include "n_jsdebug_JSErrorReporter.h"
|
||||
#endif
|
||||
|
||||
static JSDContext* context = 0;
|
||||
static struct Hnetscape_jsdebug_DebugController* controller = 0;
|
||||
|
||||
/***************************************************************************/
|
||||
/* helpers */
|
||||
|
||||
static JHandle*
|
||||
_constructInteger(ExecEnv *ee, long i)
|
||||
{
|
||||
return (JHandle*)
|
||||
execute_java_constructor(ee, "java/lang/Integer", 0, "(I)", i);
|
||||
}
|
||||
|
||||
static JHandle*
|
||||
_putHash(ExecEnv *ee, JHandle* tbl, JHandle* key, JHandle* ob)
|
||||
{
|
||||
return (JHandle*)
|
||||
execute_java_dynamic_method(
|
||||
ee, tbl, "put",
|
||||
"(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;",
|
||||
key, ob );
|
||||
}
|
||||
|
||||
static JHandle*
|
||||
_getHash(ExecEnv *ee, JHandle* tbl, JHandle* key)
|
||||
{
|
||||
return (JHandle*)
|
||||
execute_java_dynamic_method(
|
||||
ee, tbl, "get",
|
||||
"(Ljava/lang/Object;)Ljava/lang/Object;",
|
||||
key );
|
||||
}
|
||||
|
||||
static JHandle*
|
||||
_removeHash(ExecEnv *ee, JHandle* tbl, JHandle* key)
|
||||
{
|
||||
return (JHandle*)
|
||||
execute_java_dynamic_method(
|
||||
ee, tbl, "remove",
|
||||
"(Ljava/lang/Object;)Ljava/lang/Object;",
|
||||
key );
|
||||
}
|
||||
|
||||
struct Hnetscape_jsdebug_JSStackFrameInfo*
|
||||
_constructJSStackFrameInfo( ExecEnv* ee, JSDStackFrameInfo* jsdframe,
|
||||
struct Hnetscape_jsdebug_JSThreadState* threadState )
|
||||
{
|
||||
struct Hnetscape_jsdebug_JSStackFrameInfo* frame;
|
||||
|
||||
frame = (struct Hnetscape_jsdebug_JSStackFrameInfo*)
|
||||
execute_java_constructor( ee, "netscape/jsdebug/JSStackFrameInfo", 0,
|
||||
"(Lnetscape/jsdebug/JSThreadState;)",
|
||||
threadState );
|
||||
if( ! frame )
|
||||
return NULL;
|
||||
|
||||
/* XXX fill in additional fields */
|
||||
unhand(frame)->_nativePtr = (long) jsdframe;
|
||||
|
||||
return frame;
|
||||
}
|
||||
|
||||
struct Hnetscape_jsdebug_JSPC*
|
||||
_constructJSPC( ExecEnv* ee, struct Hnetscape_jsdebug_Script* script, long pc )
|
||||
{
|
||||
struct Hnetscape_jsdebug_JSPC * pcOb;
|
||||
|
||||
pcOb = (struct Hnetscape_jsdebug_JSPC *)
|
||||
execute_java_constructor( ee, "netscape/jsdebug/JSPC", 0,
|
||||
"(Lnetscape/jsdebug/Script;I)",
|
||||
script, pc );
|
||||
if( ! pcOb )
|
||||
return NULL;
|
||||
|
||||
/* XXX fill in additional fields */
|
||||
|
||||
return pcOb;
|
||||
}
|
||||
|
||||
static Hnetscape_jsdebug_Script*
|
||||
_scriptObFromJSDScriptPtr( ExecEnv* ee, JSDScript* jsdscript )
|
||||
{
|
||||
JHandle* tbl = (JHandle*) unhand(controller)->scriptTable;
|
||||
JHandle* key = _constructInteger(ee,(long)jsdscript);
|
||||
return (Hnetscape_jsdebug_Script*) _getHash( ee, tbl, key );
|
||||
}
|
||||
|
||||
/***************************************************************************/
|
||||
|
||||
void PR_CALLBACK
|
||||
_scriptHook( JSDContext* jsdc,
|
||||
JSDScript* jsdscript,
|
||||
JSBool creating,
|
||||
void* callerdata )
|
||||
{
|
||||
Hnetscape_jsdebug_Script* script;
|
||||
ExecEnv* ee = EE();
|
||||
|
||||
if( ! context || ! controller || ! ee )
|
||||
return;
|
||||
|
||||
if( creating )
|
||||
{
|
||||
char* url = (char*)JSD_GetScriptFilename (jsdc, jsdscript);
|
||||
char* function = (char*)JSD_GetScriptFunctionName (jsdc, jsdscript);
|
||||
int base = JSD_GetScriptBaseLineNumber (jsdc, jsdscript);
|
||||
int extent = JSD_GetScriptLineExtent (jsdc, jsdscript);
|
||||
|
||||
if( ! url )
|
||||
{
|
||||
return;
|
||||
/* url = ""; */
|
||||
}
|
||||
|
||||
/* create Java Object for Script */
|
||||
script = (Hnetscape_jsdebug_Script*)
|
||||
execute_java_constructor(ee, "netscape/jsdebug/Script", 0, "()");
|
||||
|
||||
if( ! script )
|
||||
return;
|
||||
|
||||
/* set the members */
|
||||
unhand(script)->_url = makeJavaString(url,strlen(url));
|
||||
unhand(script)->_function = function ? makeJavaString(function,strlen(function)) : 0;
|
||||
unhand(script)->_baseLineNumber = base;
|
||||
unhand(script)->_lineExtent = extent;
|
||||
unhand(script)->_nativePtr = (long)jsdscript;
|
||||
|
||||
/* add it to the hash table */
|
||||
_putHash( ee, (JHandle*) unhand(controller)->scriptTable,
|
||||
_constructInteger(ee, (long)jsdscript), (JHandle*)script );
|
||||
|
||||
/* call the hook */
|
||||
if( unhand(controller)->scriptHook )
|
||||
{
|
||||
execute_java_dynamic_method( ee,(JHandle*)unhand(controller)->scriptHook,
|
||||
"justLoadedScript",
|
||||
"(Lnetscape/jsdebug/Script;)V",
|
||||
script );
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
JHandle* tbl = (JHandle*) unhand(controller)->scriptTable;
|
||||
JHandle* key = _constructInteger(ee,(long)jsdscript);
|
||||
|
||||
/* find Java Object for Script */
|
||||
script = (Hnetscape_jsdebug_Script*) _getHash( ee, tbl, key );
|
||||
|
||||
if( ! script )
|
||||
return;
|
||||
|
||||
/* remove it from the hash table */
|
||||
_removeHash( ee, tbl, key );
|
||||
|
||||
/* call the hook */
|
||||
if( unhand(controller)->scriptHook )
|
||||
{
|
||||
execute_java_dynamic_method( ee,(JHandle*)unhand(controller)->scriptHook,
|
||||
"aboutToUnloadScript",
|
||||
"(Lnetscape/jsdebug/Script;)V",
|
||||
script );
|
||||
}
|
||||
/* set the Script as invalid */
|
||||
execute_java_dynamic_method( ee,(JHandle*)script,
|
||||
"_setInvalid",
|
||||
"()V" );
|
||||
}
|
||||
}
|
||||
|
||||
/***************************************************************************/
|
||||
PRUintn PR_CALLBACK
|
||||
_executionHook( JSDContext* jsdc,
|
||||
JSDThreadState* jsdstate,
|
||||
PRUintn type,
|
||||
void* callerdata )
|
||||
{
|
||||
Hnetscape_jsdebug_JSThreadState* threadState;
|
||||
Hnetscape_jsdebug_Script* script;
|
||||
JHandle* pcOb;
|
||||
JSDStackFrameInfo* jsdframe;
|
||||
JSDScript* jsdscript;
|
||||
int pc;
|
||||
JHandle* tblScript;
|
||||
JHandle* keyScript;
|
||||
ExecEnv* ee = EE();
|
||||
|
||||
if( ! context || ! controller || ! ee )
|
||||
return JSD_HOOK_RETURN_HOOK_ERROR;
|
||||
|
||||
/* get the JSDStackFrameInfo */
|
||||
jsdframe = JSD_GetStackFrame(jsdc, jsdstate);
|
||||
if( ! jsdframe )
|
||||
return JSD_HOOK_RETURN_HOOK_ERROR;
|
||||
|
||||
/* get the JSDScript */
|
||||
jsdscript = JSD_GetScriptForStackFrame(jsdc, jsdstate, jsdframe);
|
||||
if( ! jsdscript )
|
||||
return JSD_HOOK_RETURN_HOOK_ERROR;
|
||||
|
||||
/* find Java Object for Script */
|
||||
tblScript = (JHandle*) unhand(controller)->scriptTable;
|
||||
keyScript = _constructInteger(ee, (long)jsdscript);
|
||||
script = (Hnetscape_jsdebug_Script*) _getHash( ee, tblScript, keyScript );
|
||||
if( ! script )
|
||||
return JSD_HOOK_RETURN_HOOK_ERROR;
|
||||
|
||||
/* generate a JSPC */
|
||||
pc = JSD_GetPCForStackFrame(jsdc, jsdstate, jsdframe);
|
||||
|
||||
pcOb = (JHandle*)
|
||||
_constructJSPC(ee, script, pc);
|
||||
if( ! pcOb )
|
||||
return JSD_HOOK_RETURN_HOOK_ERROR;
|
||||
|
||||
/* build a JSThreadState */
|
||||
threadState = (struct Hnetscape_jsdebug_JSThreadState*)
|
||||
execute_java_constructor( ee, "netscape/jsdebug/JSThreadState",0,"()");
|
||||
if( ! threadState )
|
||||
return JSD_HOOK_RETURN_HOOK_ERROR;
|
||||
|
||||
/* populate the ThreadState */
|
||||
/* XXX FILL IN THE REST... */
|
||||
unhand(threadState)->valid = 1; /* correct value for true? */
|
||||
unhand(threadState)->currentFramePtr = (long) jsdframe;
|
||||
unhand(threadState)->nativeThreadState = (long) jsdstate;
|
||||
unhand(threadState)->continueState = netscape_jsdebug_JSThreadState_DEBUG_STATE_RUN;
|
||||
|
||||
/* XXX FILL IN THE REST... */
|
||||
|
||||
|
||||
/* find and call the appropriate Hook */
|
||||
if( JSD_HOOK_INTERRUPTED == type )
|
||||
{
|
||||
JHandle* hook;
|
||||
|
||||
/* clear the JSD level hook (must reset on next sendInterrupt0()*/
|
||||
JSD_ClearInterruptHook(context);
|
||||
|
||||
hook = (JHandle*) unhand(controller)->interruptHook;
|
||||
if( ! hook )
|
||||
return JSD_HOOK_RETURN_HOOK_ERROR;
|
||||
|
||||
/* call the hook */
|
||||
execute_java_dynamic_method(
|
||||
ee, hook, "aboutToExecute",
|
||||
"(Lnetscape/jsdebug/ThreadStateBase;Lnetscape/jsdebug/PC;)V",
|
||||
threadState, pcOb );
|
||||
}
|
||||
else if( JSD_HOOK_DEBUG_REQUESTED == type )
|
||||
{
|
||||
JHandle* hook;
|
||||
|
||||
hook = (JHandle*) unhand(controller)->debugBreakHook;
|
||||
if( ! hook )
|
||||
return JSD_HOOK_RETURN_HOOK_ERROR;
|
||||
|
||||
/* call the hook */
|
||||
execute_java_dynamic_method(
|
||||
ee, hook, "aboutToExecute",
|
||||
"(Lnetscape/jsdebug/ThreadStateBase;Lnetscape/jsdebug/PC;)V",
|
||||
threadState, pcOb );
|
||||
}
|
||||
else if( JSD_HOOK_BREAKPOINT == type )
|
||||
{
|
||||
JHandle* hook;
|
||||
|
||||
hook = (JHandle*)
|
||||
execute_java_dynamic_method(
|
||||
ee,(JHandle*)controller,
|
||||
"getInstructionHook0",
|
||||
"(Lnetscape/jsdebug/PC;)Lnetscape/jsdebug/InstructionHook;",
|
||||
pcOb );
|
||||
if( ! hook )
|
||||
return JSD_HOOK_RETURN_HOOK_ERROR;
|
||||
|
||||
/* call the hook */
|
||||
execute_java_dynamic_method(
|
||||
ee, hook, "aboutToExecute",
|
||||
"(Lnetscape/jsdebug/ThreadStateBase;)V",
|
||||
threadState );
|
||||
}
|
||||
|
||||
if( netscape_jsdebug_JSThreadState_DEBUG_STATE_THROW ==
|
||||
unhand(threadState)->continueState )
|
||||
return JSD_HOOK_RETURN_ABORT;
|
||||
|
||||
return JSD_HOOK_RETURN_CONTINUE;
|
||||
}
|
||||
|
||||
PRUintn PR_CALLBACK
|
||||
_errorReporter( JSDContext* jsdc,
|
||||
JSContext* cx,
|
||||
const char* message,
|
||||
JSErrorReport* report,
|
||||
void* callerdata )
|
||||
{
|
||||
JHandle* reporter;
|
||||
JHandle* msg = NULL;
|
||||
JHandle* filename = NULL;
|
||||
int lineno = 0;
|
||||
JHandle* linebuf = NULL;
|
||||
int tokenOffset = 0;
|
||||
ExecEnv* ee = EE();
|
||||
|
||||
if( ! context || ! controller || ! ee )
|
||||
return JSD_ERROR_REPORTER_PASS_ALONG;
|
||||
|
||||
reporter = (JHandle*) unhand(controller)->errorReporter;
|
||||
if( ! reporter )
|
||||
return JSD_ERROR_REPORTER_PASS_ALONG;
|
||||
|
||||
if( message )
|
||||
msg = (JHandle*) makeJavaString((char*)message, strlen(message));
|
||||
if( report && report->filename )
|
||||
filename = (JHandle*) makeJavaString((char*)report->filename, strlen(report->filename));
|
||||
if( report && report->linebuf )
|
||||
linebuf = (JHandle*) makeJavaString((char*)report->linebuf, strlen(report->linebuf));
|
||||
if( report )
|
||||
lineno = report->lineno;
|
||||
if( report && report->linebuf && report->tokenptr )
|
||||
tokenOffset = report->tokenptr - report->linebuf;
|
||||
|
||||
return (int)
|
||||
execute_java_dynamic_method(
|
||||
ee, reporter, "reportError",
|
||||
"(Ljava/lang/String;Ljava/lang/String;ILjava/lang/String;I)I",
|
||||
msg,
|
||||
filename,
|
||||
lineno,
|
||||
linebuf,
|
||||
tokenOffset );
|
||||
}
|
||||
|
||||
/***************************************************************************/
|
||||
/* from "_gen\netscape_jsdebug_DebugController.h" */
|
||||
|
||||
|
||||
/* XXX HACK */
|
||||
JSDContext* _simContext = 0;
|
||||
|
||||
void netscape_jsdebug_DebugController__setController(struct Hnetscape_jsdebug_DebugController * self,/*boolean*/ long on)
|
||||
{
|
||||
if(on)
|
||||
{
|
||||
context = JSD_DebuggerOn();
|
||||
if( ! context )
|
||||
return;
|
||||
|
||||
_simContext = context; /* XXX HACK */
|
||||
|
||||
unhand(self)->_nativeContext = (long) context;
|
||||
controller = self;
|
||||
JSD_SetScriptHook(context, _scriptHook, (void*)1 );
|
||||
JSD_SetErrorReporter(context, _errorReporter, (void*)1 );
|
||||
JSD_SetDebugBreakHook(context, _executionHook, (void*)1 );
|
||||
}
|
||||
else
|
||||
{
|
||||
/* XXX stop somehow... */
|
||||
/* kill context */
|
||||
JSD_SetDebugBreakHook(context, NULL, NULL );
|
||||
JSD_SetErrorReporter(context, NULL, NULL);
|
||||
JSD_SetScriptHook(context, NULL, NULL);
|
||||
context = 0;
|
||||
controller = 0;
|
||||
}
|
||||
}
|
||||
|
||||
void netscape_jsdebug_DebugController_setInstructionHook0(struct Hnetscape_jsdebug_DebugController * self,struct Hnetscape_jsdebug_PC * pcOb)
|
||||
{
|
||||
Hnetscape_jsdebug_Script* script;
|
||||
JSDScript* jsdscript;
|
||||
PRUintn pc;
|
||||
ExecEnv* ee = EE();
|
||||
|
||||
if( ! context || ! controller || ! ee )
|
||||
return;
|
||||
|
||||
script = (Hnetscape_jsdebug_Script*)
|
||||
execute_java_dynamic_method(ee, (JHandle*)pcOb, "getScript","()Lnetscape/jsdebug/Script;");
|
||||
|
||||
if( ! script )
|
||||
return;
|
||||
|
||||
jsdscript = (JSDScript*) unhand(script)->_nativePtr;
|
||||
if( ! jsdscript )
|
||||
return;
|
||||
|
||||
pc = (PRUintn)
|
||||
execute_java_dynamic_method(ee, (JHandle*)pcOb, "getPC","()I");
|
||||
|
||||
JSD_SetExecutionHook(context, jsdscript, pc, _executionHook, 0);
|
||||
}
|
||||
|
||||
void netscape_jsdebug_DebugController_sendInterrupt0(struct Hnetscape_jsdebug_DebugController * self)
|
||||
{
|
||||
if( ! context || ! controller )
|
||||
return;
|
||||
JSD_SetInterruptHook(context, _executionHook, 0);
|
||||
}
|
||||
|
||||
struct Hjava_lang_String *netscape_jsdebug_DebugController_executeScriptInStackFrame0(struct Hnetscape_jsdebug_DebugController *self,struct Hnetscape_jsdebug_JSStackFrameInfo *frame,struct Hjava_lang_String *src,struct Hjava_lang_String *filename,long lineno)
|
||||
{
|
||||
struct Hnetscape_jsdebug_JSThreadState* threadStateOb;
|
||||
JSDThreadState* jsdthreadstate;
|
||||
JSDStackFrameInfo* jsdframe;
|
||||
char* filenameC;
|
||||
char* srcC;
|
||||
JSString* jsstr;
|
||||
jsval rval;
|
||||
JSBool success;
|
||||
int srclen;
|
||||
|
||||
threadStateOb = (struct Hnetscape_jsdebug_JSThreadState*)unhand(frame)->threadState;
|
||||
jsdthreadstate = (JSDThreadState*) unhand(threadStateOb)->nativeThreadState;
|
||||
|
||||
jsdframe = (JSDStackFrameInfo*) unhand(frame)->_nativePtr;
|
||||
|
||||
if( ! context || ! controller || ! jsdframe )
|
||||
return NULL;
|
||||
|
||||
filenameC = allocCString(filename);
|
||||
if( ! filenameC )
|
||||
return NULL;
|
||||
srcC = allocCString(src);
|
||||
if( ! srcC )
|
||||
{
|
||||
free(filenameC);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
srclen = strlen(srcC);
|
||||
|
||||
success = JSD_EvaluateScriptInStackFrame(context, jsdthreadstate, jsdframe,
|
||||
srcC, srclen,
|
||||
filenameC, lineno, &rval);
|
||||
|
||||
/* XXX crashing on Windows under Symantec (though I can't see why!)*/
|
||||
|
||||
free(filenameC);
|
||||
free(srcC);
|
||||
|
||||
|
||||
if( ! success )
|
||||
return NULL;
|
||||
|
||||
if( JSVAL_IS_NULL(rval) || JSVAL_IS_VOID(rval) )
|
||||
return NULL;
|
||||
|
||||
jsstr = JSD_ValToStringInStackFrame(context,jsdthreadstate,jsdframe,rval);
|
||||
if( ! jsstr )
|
||||
return NULL;
|
||||
|
||||
/* XXXbe should use JS_GetStringChars and preserve Unicode. */
|
||||
return makeJavaString((char*)JS_GetStringBytes(jsstr), JS_GetStringLength(jsstr));
|
||||
}
|
||||
|
||||
long netscape_jsdebug_DebugController_getNativeMajorVersion(struct Hnetscape_jsdebug_DebugController* self)
|
||||
{
|
||||
return (long) JSD_GetMajorVersion();
|
||||
}
|
||||
|
||||
long netscape_jsdebug_DebugController_getNativeMinorVersion(struct Hnetscape_jsdebug_DebugController* self)
|
||||
{
|
||||
return (long) JSD_GetMinorVersion();
|
||||
}
|
||||
|
||||
/***************************************************************************/
|
||||
/* from "_gen\netscape_jsdebug_Script.h" */
|
||||
|
||||
struct Hnetscape_jsdebug_JSPC *netscape_jsdebug_Script_getClosestPC(struct Hnetscape_jsdebug_Script * self,long line)
|
||||
{
|
||||
PRUintn pc;
|
||||
JSDScript* jsdscript;
|
||||
|
||||
if( ! context || ! controller )
|
||||
return 0;
|
||||
|
||||
jsdscript = (JSDScript*) unhand(self)->_nativePtr;
|
||||
if( ! jsdscript )
|
||||
return 0;
|
||||
|
||||
pc = JSD_GetClosestPC(context, jsdscript, line);
|
||||
|
||||
if( -1 == pc )
|
||||
return 0;
|
||||
return _constructJSPC( 0, self, pc);
|
||||
}
|
||||
|
||||
/***************************************************************************/
|
||||
/* from "_gen\netscape_jsdebug_JSThreadState.h" */
|
||||
|
||||
long netscape_jsdebug_JSThreadState_countStackFrames(struct Hnetscape_jsdebug_JSThreadState * self)
|
||||
{
|
||||
JSDThreadState* jsdstate;
|
||||
|
||||
if( ! context || ! controller )
|
||||
return 0;
|
||||
|
||||
jsdstate = (JSDThreadState*) unhand(self)->nativeThreadState;
|
||||
|
||||
if( ! jsdstate )
|
||||
return 0;
|
||||
|
||||
return (long) JSD_GetCountOfStackFrames(context, jsdstate);
|
||||
}
|
||||
|
||||
struct Hnetscape_jsdebug_StackFrameInfo *netscape_jsdebug_JSThreadState_getCurrentFrame(struct Hnetscape_jsdebug_JSThreadState * self)
|
||||
{
|
||||
JSDThreadState* jsdstate;
|
||||
JSDStackFrameInfo* jsdframe;
|
||||
|
||||
if( ! context || ! controller )
|
||||
return NULL;
|
||||
|
||||
jsdstate = (JSDThreadState*) unhand(self)->nativeThreadState;
|
||||
|
||||
if( ! jsdstate )
|
||||
return NULL;
|
||||
|
||||
jsdframe = JSD_GetStackFrame(context, jsdstate);
|
||||
if( ! jsdframe )
|
||||
return NULL;
|
||||
|
||||
return (struct Hnetscape_jsdebug_StackFrameInfo*)
|
||||
_constructJSStackFrameInfo( 0, jsdframe, self );
|
||||
}
|
||||
|
||||
|
||||
/***************************************************************************/
|
||||
/* from "_gen\netscape_jsdebug_JSStackFrameInfo.h" */
|
||||
|
||||
struct Hnetscape_jsdebug_StackFrameInfo *netscape_jsdebug_JSStackFrameInfo_getCaller0(struct Hnetscape_jsdebug_JSStackFrameInfo * self)
|
||||
{
|
||||
JSDStackFrameInfo* jsdframeCur;
|
||||
JSDStackFrameInfo* jsdframeCaller;
|
||||
struct Hnetscape_jsdebug_JSThreadState* threadState;
|
||||
JSDThreadState* jsdthreadstate;
|
||||
|
||||
if( ! context || ! controller )
|
||||
return NULL;
|
||||
|
||||
jsdframeCur = (JSDStackFrameInfo*) unhand(self)->_nativePtr;
|
||||
if( ! jsdframeCur )
|
||||
return NULL;
|
||||
|
||||
threadState = (struct Hnetscape_jsdebug_JSThreadState*) unhand(self)->threadState;
|
||||
if( ! threadState )
|
||||
return NULL;
|
||||
|
||||
jsdthreadstate = (JSDThreadState*) unhand(threadState)->nativeThreadState;
|
||||
if( ! jsdthreadstate )
|
||||
return NULL;
|
||||
|
||||
jsdframeCaller = JSD_GetCallingStackFrame(context, jsdthreadstate, jsdframeCur);
|
||||
if( ! jsdframeCaller )
|
||||
return NULL;
|
||||
|
||||
return (struct Hnetscape_jsdebug_StackFrameInfo*)
|
||||
_constructJSStackFrameInfo( 0, jsdframeCaller, threadState );
|
||||
}
|
||||
struct Hnetscape_jsdebug_PC *netscape_jsdebug_JSStackFrameInfo_getPC(struct Hnetscape_jsdebug_JSStackFrameInfo * self)
|
||||
{
|
||||
JSDScript* jsdscript;
|
||||
JSDStackFrameInfo* jsdframe;
|
||||
struct Hnetscape_jsdebug_Script* script;
|
||||
struct Hnetscape_jsdebug_JSThreadState* threadState;
|
||||
JSDThreadState* jsdthreadstate;
|
||||
int pc;
|
||||
ExecEnv* ee = EE();
|
||||
|
||||
if( ! context || ! controller || ! ee )
|
||||
return NULL;
|
||||
|
||||
jsdframe = (JSDStackFrameInfo*) unhand(self)->_nativePtr;
|
||||
if( ! jsdframe )
|
||||
return NULL;
|
||||
|
||||
threadState = (struct Hnetscape_jsdebug_JSThreadState*) unhand(self)->threadState;
|
||||
if( ! threadState )
|
||||
return NULL;
|
||||
|
||||
jsdthreadstate = (JSDThreadState*) unhand(threadState)->nativeThreadState;
|
||||
if( ! jsdthreadstate )
|
||||
return NULL;
|
||||
|
||||
jsdscript = JSD_GetScriptForStackFrame(context, jsdthreadstate, jsdframe );
|
||||
if( ! jsdscript )
|
||||
return NULL;
|
||||
|
||||
script = _scriptObFromJSDScriptPtr(ee, jsdscript);
|
||||
if( ! script )
|
||||
return NULL;
|
||||
|
||||
pc = JSD_GetPCForStackFrame(context, jsdthreadstate, jsdframe);
|
||||
if( ! pc )
|
||||
return NULL;
|
||||
|
||||
return (struct Hnetscape_jsdebug_PC*) _constructJSPC(ee, script, pc);
|
||||
}
|
||||
|
||||
/***************************************************************************/
|
||||
/* from "_gen\netscape_jsdebug_JSPC.h" */
|
||||
|
||||
struct Hnetscape_jsdebug_SourceLocation *netscape_jsdebug_JSPC_getSourceLocation(struct Hnetscape_jsdebug_JSPC * self)
|
||||
{
|
||||
JSDScript* jsdscript;
|
||||
struct Hnetscape_jsdebug_Script* script;
|
||||
struct Hnetscape_jsdebug_JSPC* newPCOb;
|
||||
int line;
|
||||
int newpc;
|
||||
int pc;
|
||||
ExecEnv* ee = EE();
|
||||
|
||||
if( ! context || ! controller || ! ee )
|
||||
return NULL;
|
||||
|
||||
script = unhand(self)->script;
|
||||
|
||||
if( ! script )
|
||||
return NULL;
|
||||
|
||||
jsdscript = (JSDScript*) unhand(script)->_nativePtr;
|
||||
if( ! jsdscript )
|
||||
return NULL;
|
||||
pc = unhand(self)->pc;
|
||||
|
||||
line = JSD_GetClosestLine(context, jsdscript, pc);
|
||||
newpc = JSD_GetClosestPC(context, jsdscript, line);
|
||||
|
||||
newPCOb = _constructJSPC(ee, script, newpc );
|
||||
if( ! newPCOb )
|
||||
return NULL;
|
||||
|
||||
return (struct Hnetscape_jsdebug_SourceLocation *)
|
||||
execute_java_constructor( ee, "netscape/jsdebug/JSSourceLocation", 0,
|
||||
"(Lnetscape/jsdebug/JSPC;I)",
|
||||
newPCOb, line );
|
||||
}
|
||||
|
||||
/***************************************************************************/
|
||||
/* from "_gen\netscape_jsdebug_JSSourceTextProvider.h" */
|
||||
|
||||
struct Hnetscape_jsdebug_SourceTextItem *netscape_jsdebug_JSSourceTextProvider_loadSourceTextItem0(struct Hnetscape_jsdebug_JSSourceTextProvider * self,struct Hjava_lang_String * url)
|
||||
{
|
||||
/* this should attempt to load the source for the indicated URL */
|
||||
return NULL;
|
||||
}
|
||||
|
||||
void netscape_jsdebug_JSSourceTextProvider_refreshSourceTextVector(struct Hnetscape_jsdebug_JSSourceTextProvider * self)
|
||||
{
|
||||
|
||||
JHandle* vec;
|
||||
JHandle* itemOb;
|
||||
JSDSourceText* iterp = 0;
|
||||
JSDSourceText* item;
|
||||
const char* url;
|
||||
struct Hjava_lang_String* urlOb;
|
||||
ExecEnv* ee = EE();
|
||||
|
||||
if( ! context || ! controller || ! ee )
|
||||
return;
|
||||
|
||||
/* create new vector */
|
||||
vec = (JHandle*) execute_java_constructor(ee, "netscape/util/Vector", 0, "()");
|
||||
if( ! vec )
|
||||
return;
|
||||
|
||||
/* lock the native subsystem */
|
||||
JSD_LockSourceTextSubsystem(context);
|
||||
|
||||
/* iterate through the native items */
|
||||
while( 0 != (item = JSD_IterateSources(context, &iterp)) )
|
||||
{
|
||||
int urlStrLen;
|
||||
int status = JSD_GetSourceStatus(context,item);
|
||||
|
||||
/* try to find Java object */
|
||||
url = JSD_GetSourceURL(context, item);
|
||||
if( ! url || 0 == (urlStrLen = strlen(url)) ) /* ignoring those with no url */
|
||||
continue;
|
||||
|
||||
urlOb = makeJavaString((char*)url,urlStrLen);
|
||||
if( ! urlOb )
|
||||
continue;
|
||||
|
||||
itemOb = (JHandle*)
|
||||
execute_java_dynamic_method( ee, (JHandle*)self, "findSourceTextItem0",
|
||||
"(Ljava/lang/String;)Lnetscape/jsdebug/SourceTextItem;",
|
||||
urlOb );
|
||||
|
||||
if( ! itemOb )
|
||||
{
|
||||
/* if not found then generate new item */
|
||||
struct Hjava_lang_String* textOb;
|
||||
const char* str;
|
||||
int length;
|
||||
|
||||
if( ! JSD_GetSourceText(context, item, &str, &length ) )
|
||||
{
|
||||
str = "";
|
||||
length = 0;
|
||||
}
|
||||
textOb = makeJavaString((char*)str, length);
|
||||
|
||||
itemOb = (JHandle*)
|
||||
execute_java_constructor(ee, "netscape/jsdebug/SourceTextItem",0,
|
||||
"(Ljava/lang/String;Ljava/lang/String;I)",
|
||||
urlOb, textOb, status );
|
||||
}
|
||||
else if( JSD_IsSourceDirty(context, item) &&
|
||||
JSD_SOURCE_CLEARED != status )
|
||||
{
|
||||
/* if found and dirty then update */
|
||||
struct Hjava_lang_String* textOb;
|
||||
const char* str;
|
||||
int length;
|
||||
|
||||
if( ! JSD_GetSourceText(context, item, &str, &length ) )
|
||||
{
|
||||
str = "";
|
||||
length = 0;
|
||||
}
|
||||
textOb = makeJavaString((char*)str, length);
|
||||
execute_java_dynamic_method(ee, itemOb, "setText",
|
||||
"(Ljava/lang/String;)V", textOb);
|
||||
execute_java_dynamic_method(ee, itemOb, "setStatus",
|
||||
"(I)V", status );
|
||||
execute_java_dynamic_method(ee, itemOb, "setDirty", "(Z)V", 1 );
|
||||
}
|
||||
|
||||
/* we have our copy; clear the native cached text */
|
||||
if( JSD_SOURCE_INITED != status &&
|
||||
JSD_SOURCE_PARTIAL != status &&
|
||||
JSD_SOURCE_CLEARED != status )
|
||||
{
|
||||
JSD_ClearSourceText(context, item);
|
||||
}
|
||||
|
||||
/* set the item clean */
|
||||
JSD_SetSourceDirty(context, item, FALSE );
|
||||
|
||||
/* add the item to the vector */
|
||||
if( itemOb )
|
||||
execute_java_dynamic_method(ee, vec, "addElement",
|
||||
"(Ljava/lang/Object;)V", itemOb );
|
||||
}
|
||||
/* unlock the native subsystem */
|
||||
JSD_UnlockSourceTextSubsystem(context);
|
||||
|
||||
/* set main vector to our new vector */
|
||||
|
||||
unhand(self)->_sourceTextVector = (struct Hnetscape_util_Vector*) vec;
|
||||
}
|
||||
|
||||
|
||||
#endif
|
||||
236
mozilla/js/jsd/jsd_lock.c
Normal file
236
mozilla/js/jsd/jsd_lock.c
Normal file
@@ -0,0 +1,236 @@
|
||||
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
|
||||
*
|
||||
* The contents of this file are subject to the Netscape Public License
|
||||
* Version 1.0 (the "NPL"); you may not use this file except in
|
||||
* compliance with the NPL. You may obtain a copy of the NPL at
|
||||
* http://www.mozilla.org/NPL/
|
||||
*
|
||||
* Software distributed under the NPL is distributed on an "AS IS" basis,
|
||||
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
|
||||
* for the specific language governing rights and limitations under the
|
||||
* NPL.
|
||||
*
|
||||
* The Initial Developer of this code under the NPL is Netscape
|
||||
* Communications Corporation. Portions created by Netscape are
|
||||
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
|
||||
* Reserved.
|
||||
*/
|
||||
|
||||
/*
|
||||
* JavaScript Debugging support - Locking and threading support
|
||||
*/
|
||||
|
||||
/*
|
||||
* ifdef JSD_USE_NSPR_LOCKS then you musat build and run against NSPR2.
|
||||
* Otherwise, there are stubs that can be filled in with your own locking
|
||||
* code. Also, note that these stubs include a jsd_CurrentThread()
|
||||
* implementation that only works on Win32 - this is needed for the inprocess
|
||||
* Java-based debugger.
|
||||
*/
|
||||
|
||||
#include "jsd.h"
|
||||
|
||||
#ifdef JSD_THREADSAFE
|
||||
|
||||
#ifdef JSD_USE_NSPR_LOCKS
|
||||
|
||||
#include "prlock.h"
|
||||
#include "prthread.h"
|
||||
|
||||
#ifdef JSD_ATTACH_THREAD_HACK
|
||||
#include "pprthred.h" /* need this as long as JS_AttachThread is needed */
|
||||
#endif
|
||||
|
||||
typedef struct JSDStaticLock
|
||||
{
|
||||
void* owner;
|
||||
PRLock* lock;
|
||||
int count;
|
||||
#ifdef DEBUG
|
||||
uint16 sig;
|
||||
#endif
|
||||
} JSDStaticLock;
|
||||
|
||||
/*
|
||||
* This exists to wrap non-NSPR theads (e.g. Java threads) in NSPR wrappers.
|
||||
* XXX We ignore the memory leak issue.
|
||||
* It is claimed that future versions of NSPR will automatically wrap on
|
||||
* the call to PR_GetCurrentThread.
|
||||
*
|
||||
* XXX We ignore the memory leak issue - i.e. we never call PR_DetachThread.
|
||||
*
|
||||
*/
|
||||
#undef _CURRENT_THREAD
|
||||
#ifdef JSD_ATTACH_THREAD_HACK
|
||||
#define _CURRENT_THREAD(out) \
|
||||
JS_BEGIN_MACRO \
|
||||
out = (void*) PR_GetCurrentThread(); \
|
||||
if(!out) \
|
||||
out = (void*) JS_AttachThread(PR_USER_THREAD,PR_PRIORITY_NORMAL,NULL);\
|
||||
JS_ASSERT(out); \
|
||||
JS_END_MACRO
|
||||
#else
|
||||
#define _CURRENT_THREAD(out) \
|
||||
JS_BEGIN_MACRO \
|
||||
out = (void*) PR_GetCurrentThread(); \
|
||||
JS_ASSERT(out); \
|
||||
JS_END_MACRO
|
||||
#endif
|
||||
|
||||
#ifdef DEBUG
|
||||
#define JSD_LOCK_SIG 0x10CC10CC
|
||||
void ASSERT_VALID_LOCK(JSDStaticLock* lock)
|
||||
{
|
||||
JS_ASSERT(lock);
|
||||
JS_ASSERT(lock->lock);
|
||||
JS_ASSERT(lock->count >= 0);
|
||||
JS_ASSERT((! lock->count && ! lock->owner) || (lock->count && lock->owner));
|
||||
JS_ASSERT(lock->sig == (uint16) JSD_LOCK_SIG);
|
||||
}
|
||||
#else
|
||||
#define ASSERT_VALID_LOCK(x) ((void)0)
|
||||
#endif
|
||||
|
||||
void*
|
||||
jsd_CreateLock()
|
||||
{
|
||||
JSDStaticLock* lock;
|
||||
|
||||
if( ! (lock = calloc(1, sizeof(JSDStaticLock))) ||
|
||||
! (lock->lock = PR_NewLock()) )
|
||||
{
|
||||
if(lock)
|
||||
{
|
||||
free(lock);
|
||||
lock = NULL;
|
||||
}
|
||||
}
|
||||
#ifdef DEBUG
|
||||
if(lock) lock->sig = (uint16) JSD_LOCK_SIG;
|
||||
#endif
|
||||
return lock;
|
||||
}
|
||||
|
||||
void
|
||||
jsd_Lock(JSDStaticLock* lock)
|
||||
{
|
||||
void* me;
|
||||
|
||||
_CURRENT_THREAD(me);
|
||||
|
||||
ASSERT_VALID_LOCK(lock);
|
||||
|
||||
if(lock->owner == me)
|
||||
lock->count++;
|
||||
else
|
||||
{
|
||||
PR_Lock(lock->lock); /* this can block... */
|
||||
JS_ASSERT(lock->owner == 0);
|
||||
lock->count = 1;
|
||||
lock->owner = me;
|
||||
}
|
||||
ASSERT_VALID_LOCK(lock);
|
||||
}
|
||||
|
||||
void
|
||||
jsd_Unlock(JSDStaticLock* lock)
|
||||
{
|
||||
void* me;
|
||||
|
||||
ASSERT_VALID_LOCK(lock);
|
||||
_CURRENT_THREAD(me);
|
||||
|
||||
if(lock->owner != me)
|
||||
{
|
||||
JS_ASSERT(0); /* it's an error to unlock a lock you don't own */
|
||||
return;
|
||||
}
|
||||
if(--lock->count == 0)
|
||||
{
|
||||
lock->owner = NULL;
|
||||
PR_Unlock(lock->lock);
|
||||
}
|
||||
ASSERT_VALID_LOCK(lock);
|
||||
}
|
||||
|
||||
#ifdef DEBUG
|
||||
JSBool
|
||||
jsd_IsLocked(JSDStaticLock* lock)
|
||||
{
|
||||
void* me;
|
||||
ASSERT_VALID_LOCK(lock);
|
||||
_CURRENT_THREAD(me);
|
||||
return lock->owner == me ? JS_TRUE : JS_FALSE;
|
||||
}
|
||||
#endif /* DEBUG */
|
||||
|
||||
void*
|
||||
jsd_CurrentThread()
|
||||
{
|
||||
void* me;
|
||||
_CURRENT_THREAD(me);
|
||||
return me;
|
||||
}
|
||||
|
||||
|
||||
#else /* ! JSD_USE_NSPR_LOCKS */
|
||||
|
||||
#ifdef WIN32
|
||||
#pragma message("!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!")
|
||||
#pragma message("!! you are compiling the stubbed version of jsd_lock.c !!")
|
||||
#pragma message("!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!")
|
||||
#endif
|
||||
|
||||
/*
|
||||
* NOTE: 'Real' versions of these locks must be reentrant in the sense that
|
||||
* they support nested calls to lock and unlock.
|
||||
*/
|
||||
|
||||
void*
|
||||
jsd_CreateLock()
|
||||
{
|
||||
return (void*)1;
|
||||
}
|
||||
|
||||
void
|
||||
jsd_Lock(void* lock)
|
||||
{
|
||||
}
|
||||
|
||||
void
|
||||
jsd_Unlock(void* lock)
|
||||
{
|
||||
}
|
||||
|
||||
#ifdef DEBUG
|
||||
JSBool
|
||||
jsd_IsLocked(void* lock)
|
||||
{
|
||||
return JS_TRUE;
|
||||
}
|
||||
#endif /* DEBUG */
|
||||
|
||||
/*
|
||||
* This Windows only thread id code is here to allow the Java-based
|
||||
* JSDebugger to work with the single threaded js.c shell (even without
|
||||
* real locking and threading support).
|
||||
*/
|
||||
|
||||
#ifdef WIN32
|
||||
/* bogus (but good enough) declaration*/
|
||||
extern void* __stdcall GetCurrentThreadId(void);
|
||||
#endif
|
||||
|
||||
void*
|
||||
jsd_CurrentThread()
|
||||
{
|
||||
#ifdef WIN32
|
||||
return GetCurrentThreadId();
|
||||
#else
|
||||
return (void*)1;
|
||||
#endif
|
||||
}
|
||||
|
||||
#endif /* JSD_USE_NSPR_LOCKS */
|
||||
|
||||
#endif /* JSD_THREADSAFE */
|
||||
53
mozilla/js/jsd/jsd_lock.h
Normal file
53
mozilla/js/jsd/jsd_lock.h
Normal file
@@ -0,0 +1,53 @@
|
||||
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
|
||||
*
|
||||
* The contents of this file are subject to the Netscape Public License
|
||||
* Version 1.0 (the "NPL"); you may not use this file except in
|
||||
* compliance with the NPL. You may obtain a copy of the NPL at
|
||||
* http://www.mozilla.org/NPL/
|
||||
*
|
||||
* Software distributed under the NPL is distributed on an "AS IS" basis,
|
||||
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
|
||||
* for the specific language governing rights and limitations under the
|
||||
* NPL.
|
||||
*
|
||||
* The Initial Developer of this code under the NPL is Netscape
|
||||
* Communications Corporation. Portions created by Netscape are
|
||||
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
|
||||
* Reserved.
|
||||
*/
|
||||
|
||||
/*
|
||||
* Header for JavaScript Debugging support - Locking and threading functions
|
||||
*/
|
||||
|
||||
#ifndef jsd_lock_h___
|
||||
#define jsd_lock_h___
|
||||
|
||||
/*
|
||||
* If you want to support threading and locking, define JSD_THREADSAFE and
|
||||
* implement the functions below.
|
||||
*/
|
||||
|
||||
/*
|
||||
* NOTE: These locks must be reentrant in the sense that they support
|
||||
* nested calls to lock and unlock.
|
||||
*/
|
||||
|
||||
extern void*
|
||||
jsd_CreateLock();
|
||||
|
||||
extern void
|
||||
jsd_Lock(void* lock);
|
||||
|
||||
extern void
|
||||
jsd_Unlock(void* lock);
|
||||
|
||||
#ifdef DEBUG
|
||||
extern JSBool
|
||||
jsd_IsLocked(void* lock);
|
||||
#endif /* DEBUG */
|
||||
|
||||
extern void*
|
||||
jsd_CurrentThread();
|
||||
|
||||
#endif /* jsd_lock_h___ */
|
||||
307
mozilla/js/jsd/jsd_obj.c
Normal file
307
mozilla/js/jsd/jsd_obj.c
Normal file
@@ -0,0 +1,307 @@
|
||||
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
|
||||
*
|
||||
* The contents of this file are subject to the Netscape Public License
|
||||
* Version 1.0 (the "NPL"); you may not use this file except in
|
||||
* compliance with the NPL. You may obtain a copy of the NPL at
|
||||
* http://www.mozilla.org/NPL/
|
||||
*
|
||||
* Software distributed under the NPL is distributed on an "AS IS" basis,
|
||||
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
|
||||
* for the specific language governing rights and limitations under the
|
||||
* NPL.
|
||||
*
|
||||
* The Initial Developer of this code under the NPL is Netscape
|
||||
* Communications Corporation. Portions created by Netscape are
|
||||
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
|
||||
* Reserved.
|
||||
*/
|
||||
|
||||
/*
|
||||
* JavaScript Debugging support - Object support
|
||||
*/
|
||||
|
||||
#include "jsd.h"
|
||||
|
||||
/*
|
||||
* #define JSD_TRACE 1
|
||||
*/
|
||||
|
||||
#ifdef JSD_TRACE
|
||||
#define TRACEOBJ(jsdc, jsdobj, which) _traceObj(jsdc, jsdobj, which)
|
||||
|
||||
static char *
|
||||
_describeObj(JSDContext* jsdc, JSDObject *jsdobj)
|
||||
{
|
||||
return
|
||||
JS_smprintf("%0x new'd in %s at line %d using ctor %s in %s at line %d",
|
||||
(int)jsdobj,
|
||||
JSD_GetObjectNewURL(jsdc, jsdobj),
|
||||
JSD_GetObjectNewLineNumber(jsdc, jsdobj),
|
||||
JSD_GetObjectConstructorName(jsdc, jsdobj),
|
||||
JSD_GetObjectConstructorURL(jsdc, jsdobj),
|
||||
JSD_GetObjectConstructorLineNumber(jsdc, jsdobj));
|
||||
}
|
||||
|
||||
static void
|
||||
_traceObj(JSDContext* jsdc, JSDObject* jsdobj, int which)
|
||||
{
|
||||
char* description;
|
||||
|
||||
if( !jsdobj )
|
||||
return;
|
||||
|
||||
description = _describeObj(jsdc, jsdobj);
|
||||
|
||||
printf("%s : %s\n",
|
||||
which == 0 ? "new " :
|
||||
which == 1 ? "final" :
|
||||
"ctor ",
|
||||
description);
|
||||
if(description)
|
||||
free(description);
|
||||
}
|
||||
#else
|
||||
#define TRACEOBJ(jsdc, jsdobj, which) ((void)0)
|
||||
#endif /* JSD_TRACE */
|
||||
|
||||
#ifdef DEBUG
|
||||
void JSD_ASSERT_VALID_OBJECT(JSDObject* jsdobj)
|
||||
{
|
||||
JS_ASSERT(jsdobj);
|
||||
JS_ASSERT(!JS_CLIST_IS_EMPTY(&jsdobj->links));
|
||||
JS_ASSERT(jsdobj->obj);
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
static void
|
||||
_destroyJSDObject(JSDContext* jsdc, JSDObject* jsdobj)
|
||||
{
|
||||
JS_ASSERT(JSD_OBJECTS_LOCKED(jsdc));
|
||||
|
||||
JS_REMOVE_LINK(&jsdobj->links);
|
||||
JS_HashTableRemove(jsdc->objectsTable, jsdobj->obj);
|
||||
|
||||
if(jsdobj->newURL)
|
||||
jsd_DropAtom(jsdc, jsdobj->newURL);
|
||||
if(jsdobj->ctorURL)
|
||||
jsd_DropAtom(jsdc, jsdobj->ctorURL);
|
||||
if(jsdobj->ctorName)
|
||||
jsd_DropAtom(jsdc, jsdobj->ctorName);
|
||||
free(jsdobj);
|
||||
}
|
||||
|
||||
static JSDObject*
|
||||
_createJSDObject(JSDContext* jsdc, JSContext *cx, JSObject *obj)
|
||||
{
|
||||
JSDObject* jsdobj;
|
||||
JSStackFrame* fp;
|
||||
JSStackFrame* iter = NULL;
|
||||
const char* newURL;
|
||||
jsbytecode* pc;
|
||||
|
||||
JS_ASSERT(JSD_OBJECTS_LOCKED(jsdc));
|
||||
|
||||
jsdobj = (JSDObject*) calloc(1, sizeof(JSDObject));
|
||||
if( jsdobj )
|
||||
{
|
||||
JS_INIT_CLIST(&jsdobj->links);
|
||||
JS_APPEND_LINK(&jsdobj->links, &jsdc->objectsList);
|
||||
jsdobj->obj = obj;
|
||||
JS_HashTableAdd(jsdc->objectsTable, obj, jsdobj);
|
||||
|
||||
/* walk the stack to find js frame (if any) causing creation */
|
||||
while( NULL != (fp = JS_FrameIterator(cx, &iter)) )
|
||||
{
|
||||
if( !JS_IsNativeFrame(cx, fp) )
|
||||
{
|
||||
JSScript* script = JS_GetFrameScript(cx, fp);
|
||||
if( !script )
|
||||
continue;
|
||||
|
||||
newURL = JS_GetScriptFilename(cx, script);
|
||||
if( newURL )
|
||||
jsdobj->newURL = jsd_AddAtom(jsdc, newURL);
|
||||
|
||||
pc = JS_GetFramePC(cx, fp);
|
||||
if( pc )
|
||||
jsdobj->newLineno = JS_PCToLineNumber(cx, script, pc);
|
||||
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
return jsdobj;
|
||||
}
|
||||
|
||||
void JS_DLL_CALLBACK
|
||||
jsd_ObjectHook(JSContext *cx, JSObject *obj, JSBool isNew, void *closure)
|
||||
{
|
||||
JSDObject* jsdobj;
|
||||
JSDContext* jsdc = (JSDContext*) closure;
|
||||
|
||||
if( ! jsdc || ! jsdc->inited )
|
||||
return;
|
||||
|
||||
JSD_LOCK_OBJECTS(jsdc);
|
||||
if(isNew)
|
||||
{
|
||||
jsdobj = _createJSDObject(jsdc, cx, obj);
|
||||
TRACEOBJ(jsdc, jsdobj, 0);
|
||||
}
|
||||
else
|
||||
{
|
||||
jsdobj = jsd_GetJSDObjectForJSObject(jsdc, obj);
|
||||
if( jsdobj )
|
||||
{
|
||||
TRACEOBJ(jsdc, jsdobj, 1);
|
||||
_destroyJSDObject(jsdc, jsdobj);
|
||||
}
|
||||
}
|
||||
JSD_UNLOCK_OBJECTS(jsdc);
|
||||
}
|
||||
|
||||
void
|
||||
jsd_Constructing(JSDContext* jsdc, JSContext *cx, JSObject *obj,
|
||||
JSStackFrame *fp)
|
||||
{
|
||||
JSDObject* jsdobj;
|
||||
JSScript* script;
|
||||
JSDScript* jsdscript;
|
||||
const char* ctorURL;
|
||||
const char* ctorName;
|
||||
|
||||
JSD_LOCK_OBJECTS(jsdc);
|
||||
jsdobj = jsd_GetJSDObjectForJSObject(jsdc, obj);
|
||||
if( jsdobj && !jsdobj->ctorURL && !JS_IsNativeFrame(cx, fp) )
|
||||
{
|
||||
script = JS_GetFrameScript(cx, fp);
|
||||
if( script )
|
||||
{
|
||||
ctorURL = JS_GetScriptFilename(cx, script);
|
||||
if( ctorURL )
|
||||
jsdobj->ctorURL = jsd_AddAtom(jsdc, ctorURL);
|
||||
|
||||
JSD_LOCK_SCRIPTS(jsdc);
|
||||
jsdscript = jsd_FindJSDScript(jsdc, script);
|
||||
JSD_UNLOCK_SCRIPTS(jsdc);
|
||||
if( jsdscript )
|
||||
{
|
||||
ctorName = jsd_GetScriptFunctionName(jsdc, jsdscript);
|
||||
if( ctorName )
|
||||
jsdobj->ctorName = jsd_AddAtom(jsdc, ctorName);
|
||||
}
|
||||
jsdobj->ctorLineno = JS_GetScriptBaseLineNumber(cx, script);
|
||||
}
|
||||
}
|
||||
TRACEOBJ(jsdc, jsdobj, 3);
|
||||
JSD_UNLOCK_OBJECTS(jsdc);
|
||||
}
|
||||
|
||||
JS_STATIC_DLL_CALLBACK(JSHashNumber)
|
||||
_hash_root(const void *key)
|
||||
{
|
||||
return ((JSHashNumber) key) >> 2; /* help lame MSVC1.5 on Win16 */
|
||||
}
|
||||
|
||||
JSBool
|
||||
jsd_InitObjectManager(JSDContext* jsdc)
|
||||
{
|
||||
JS_INIT_CLIST(&jsdc->objectsList);
|
||||
jsdc->objectsTable = JS_NewHashTable(256, _hash_root,
|
||||
JS_CompareValues, JS_CompareValues,
|
||||
NULL, NULL);
|
||||
return (JSBool) jsdc->objectsTable;
|
||||
}
|
||||
|
||||
void
|
||||
jsd_DestroyObjectManager(JSDContext* jsdc)
|
||||
{
|
||||
JSD_LOCK_OBJECTS(jsdc);
|
||||
while( !JS_CLIST_IS_EMPTY(&jsdc->objectsList) )
|
||||
_destroyJSDObject(jsdc, (JSDObject*)JS_NEXT_LINK(&jsdc->objectsList));
|
||||
JS_HashTableDestroy(jsdc->objectsTable);
|
||||
JSD_UNLOCK_OBJECTS(jsdc);
|
||||
}
|
||||
|
||||
JSDObject*
|
||||
jsd_IterateObjects(JSDContext* jsdc, JSDObject** iterp)
|
||||
{
|
||||
JSDObject *jsdobj = *iterp;
|
||||
|
||||
JS_ASSERT(JSD_OBJECTS_LOCKED(jsdc));
|
||||
|
||||
if( !jsdobj )
|
||||
jsdobj = (JSDObject *)jsdc->objectsList.next;
|
||||
if( jsdobj == (JSDObject *)&jsdc->objectsList )
|
||||
return NULL;
|
||||
*iterp = (JSDObject*) jsdobj->links.next;
|
||||
return jsdobj;
|
||||
}
|
||||
|
||||
JSObject*
|
||||
jsd_GetWrappedObject(JSDContext* jsdc, JSDObject* jsdobj)
|
||||
{
|
||||
return jsdobj->obj;
|
||||
}
|
||||
|
||||
const char*
|
||||
jsd_GetObjectNewURL(JSDContext* jsdc, JSDObject* jsdobj)
|
||||
{
|
||||
if( jsdobj->newURL )
|
||||
return JSD_ATOM_TO_STRING(jsdobj->newURL);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
uintN
|
||||
jsd_GetObjectNewLineNumber(JSDContext* jsdc, JSDObject* jsdobj)
|
||||
{
|
||||
return jsdobj->newLineno;
|
||||
}
|
||||
|
||||
const char*
|
||||
jsd_GetObjectConstructorURL(JSDContext* jsdc, JSDObject* jsdobj)
|
||||
{
|
||||
if( jsdobj->ctorURL )
|
||||
return JSD_ATOM_TO_STRING(jsdobj->ctorURL);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
uintN
|
||||
jsd_GetObjectConstructorLineNumber(JSDContext* jsdc, JSDObject* jsdobj)
|
||||
{
|
||||
return jsdobj->ctorLineno;
|
||||
}
|
||||
|
||||
const char*
|
||||
jsd_GetObjectConstructorName(JSDContext* jsdc, JSDObject* jsdobj)
|
||||
{
|
||||
if( jsdobj->ctorName )
|
||||
return JSD_ATOM_TO_STRING(jsdobj->ctorName);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
JSDObject*
|
||||
jsd_GetJSDObjectForJSObject(JSDContext* jsdc, JSObject* jsobj)
|
||||
{
|
||||
JSDObject* jsdobj;
|
||||
|
||||
JSD_LOCK_OBJECTS(jsdc);
|
||||
jsdobj = (JSDObject*) JS_HashTableLookup(jsdc->objectsTable, jsobj);
|
||||
JSD_UNLOCK_OBJECTS(jsdc);
|
||||
return jsdobj;
|
||||
}
|
||||
|
||||
JSDObject*
|
||||
jsd_GetObjectForValue(JSDContext* jsdc, JSDValue* jsdval)
|
||||
{
|
||||
return jsd_GetJSDObjectForJSObject(jsdc, JSVAL_TO_OBJECT(jsdval->val));
|
||||
}
|
||||
|
||||
JSDValue*
|
||||
jsd_GetValueForObject(JSDContext* jsdc, JSDObject* jsdobj)
|
||||
{
|
||||
return jsd_NewValue(jsdc, OBJECT_TO_JSVAL(jsdobj->obj));
|
||||
}
|
||||
|
||||
|
||||
668
mozilla/js/jsd/jsd_scpt.c
Normal file
668
mozilla/js/jsd/jsd_scpt.c
Normal file
@@ -0,0 +1,668 @@
|
||||
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
|
||||
*
|
||||
* The contents of this file are subject to the Netscape Public License
|
||||
* Version 1.0 (the "NPL"); you may not use this file except in
|
||||
* compliance with the NPL. You may obtain a copy of the NPL at
|
||||
* http://www.mozilla.org/NPL/
|
||||
*
|
||||
* Software distributed under the NPL is distributed on an "AS IS" basis,
|
||||
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
|
||||
* for the specific language governing rights and limitations under the
|
||||
* NPL.
|
||||
*
|
||||
* The Initial Developer of this code under the NPL is Netscape
|
||||
* Communications Corporation. Portions created by Netscape are
|
||||
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
|
||||
* Reserved.
|
||||
*/
|
||||
|
||||
/*
|
||||
* JavaScript Debugging support - Script support
|
||||
*/
|
||||
|
||||
#include "jsd.h"
|
||||
|
||||
/* Comment this out to disable (NT specific) dumping as we go */
|
||||
/*
|
||||
** #ifdef DEBUG
|
||||
** #define JSD_DUMP 1
|
||||
** #endif
|
||||
*/
|
||||
|
||||
#define NOT_SET_YET -1
|
||||
|
||||
/***************************************************************************/
|
||||
|
||||
#ifdef DEBUG
|
||||
void JSD_ASSERT_VALID_SCRIPT(JSDScript* jsdscript)
|
||||
{
|
||||
JS_ASSERT(jsdscript);
|
||||
JS_ASSERT(jsdscript->script);
|
||||
}
|
||||
void JSD_ASSERT_VALID_EXEC_HOOK(JSDExecHook* jsdhook)
|
||||
{
|
||||
JS_ASSERT(jsdhook);
|
||||
JS_ASSERT(jsdhook->hook);
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef LIVEWIRE
|
||||
static JSBool
|
||||
HasFileExtention(const char* name, const char* ext)
|
||||
{
|
||||
int i;
|
||||
int len = strlen(ext);
|
||||
const char* p = strrchr(name,'.');
|
||||
if( !p )
|
||||
return JS_FALSE;
|
||||
p++;
|
||||
for(i = 0; i < len; i++ )
|
||||
{
|
||||
JS_ASSERT(islower(ext[i]));
|
||||
if( 0 == p[i] || tolower(p[i]) != ext[i] )
|
||||
return JS_FALSE;
|
||||
}
|
||||
if( 0 != p[i] )
|
||||
return JS_FALSE;
|
||||
return JS_TRUE;
|
||||
}
|
||||
#endif /* LIVEWIRE */
|
||||
|
||||
static JSDScript*
|
||||
_newJSDScript(JSDContext* jsdc,
|
||||
JSContext *cx,
|
||||
JSScript *script,
|
||||
JSFunction* function)
|
||||
{
|
||||
JSDScript* jsdscript;
|
||||
uintN lineno;
|
||||
const char* raw_filename;
|
||||
|
||||
JS_ASSERT(JSD_SCRIPTS_LOCKED(jsdc));
|
||||
|
||||
/* these are inlined javascript: urls and we can't handle them now */
|
||||
lineno = (uintN) JS_GetScriptBaseLineNumber(cx, script);
|
||||
if( lineno == 0 )
|
||||
return NULL;
|
||||
|
||||
jsdscript = (JSDScript*) calloc(1, sizeof(JSDScript));
|
||||
if( ! jsdscript )
|
||||
return NULL;
|
||||
|
||||
raw_filename = JS_GetScriptFilename(cx,script);
|
||||
|
||||
JS_APPEND_LINK(&jsdscript->links, &jsdc->scripts);
|
||||
jsdscript->jsdc = jsdc;
|
||||
jsdscript->script = script;
|
||||
jsdscript->function = function;
|
||||
jsdscript->lineBase = lineno;
|
||||
jsdscript->lineExtent = (uintN)NOT_SET_YET;
|
||||
#ifndef LIVEWIRE
|
||||
jsdscript->url = (char*) jsd_BuildNormalizedURL(raw_filename);
|
||||
#else
|
||||
jsdscript->app = LWDBG_GetCurrentApp();
|
||||
if( jsdscript->app && raw_filename )
|
||||
{
|
||||
jsdscript->url = jsdlw_BuildAppRelativeFilename(jsdscript->app, raw_filename);
|
||||
if( function )
|
||||
{
|
||||
jsdscript->lwscript =
|
||||
LWDBG_GetScriptOfFunction(jsdscript->app,
|
||||
JS_GetFunctionName(function));
|
||||
|
||||
/* also, make sure this file is added to filelist if is .js file */
|
||||
if( HasFileExtention(raw_filename,"js") ||
|
||||
HasFileExtention(raw_filename,"sjs") )
|
||||
{
|
||||
jsdlw_PreLoadSource(jsdc, jsdscript->app, raw_filename, JS_FALSE);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
jsdscript->lwscript = LWDBG_GetCurrentTopLevelScript();
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
JS_INIT_CLIST(&jsdscript->hooks);
|
||||
|
||||
return jsdscript;
|
||||
}
|
||||
|
||||
static void
|
||||
_destroyJSDScript(JSDContext* jsdc,
|
||||
JSDScript* jsdscript)
|
||||
{
|
||||
JS_ASSERT(JSD_SCRIPTS_LOCKED(jsdc));
|
||||
|
||||
/* destroy all hooks */
|
||||
jsd_ClearAllExecutionHooksForScript(jsdc, jsdscript);
|
||||
|
||||
JS_REMOVE_LINK(&jsdscript->links);
|
||||
if(jsdscript->url)
|
||||
free(jsdscript->url);
|
||||
|
||||
if(jsdscript)
|
||||
free(jsdscript);
|
||||
}
|
||||
|
||||
/***************************************************************************/
|
||||
|
||||
#ifdef JSD_DUMP
|
||||
static void
|
||||
_dumpJSDScript(JSDContext* jsdc, JSDScript* jsdscript, const char* leadingtext)
|
||||
{
|
||||
const char* name;
|
||||
const char* fun;
|
||||
uintN base;
|
||||
uintN extent;
|
||||
char Buf[256];
|
||||
|
||||
name = jsd_GetScriptFilename(jsdc, jsdscript);
|
||||
fun = jsd_GetScriptFunctionName(jsdc, jsdscript);
|
||||
base = jsd_GetScriptBaseLineNumber(jsdc, jsdscript);
|
||||
extent = jsd_GetScriptLineExtent(jsdc, jsdscript);
|
||||
|
||||
sprintf( Buf, "%sscript=%08X, %s, %s, %d-%d\n",
|
||||
leadingtext,
|
||||
(unsigned) jsdscript->script,
|
||||
name ? name : "no URL",
|
||||
fun ? fun : "no fun",
|
||||
base, base + extent - 1 );
|
||||
OutputDebugString( Buf );
|
||||
}
|
||||
|
||||
static void
|
||||
_dumpJSDScriptList( JSDContext* jsdc )
|
||||
{
|
||||
JSDScript* iterp = NULL;
|
||||
JSDScript* jsdscript = NULL;
|
||||
|
||||
OutputDebugString( "*** JSDScriptDump\n" );
|
||||
while( NULL != (jsdscript = jsd_IterateScripts(jsdc, &iterp)) )
|
||||
_dumpJSDScript( jsdc, jsdscript, " script: " );
|
||||
}
|
||||
#endif /* JSD_DUMP */
|
||||
|
||||
/***************************************************************************/
|
||||
void
|
||||
jsd_DestroyAllJSDScripts( JSDContext* jsdc )
|
||||
{
|
||||
JSDScript *jsdscript;
|
||||
JSDScript *next;
|
||||
|
||||
JS_ASSERT(JSD_SCRIPTS_LOCKED(jsdc));
|
||||
|
||||
for( jsdscript = (JSDScript*)jsdc->scripts.next;
|
||||
jsdscript != (JSDScript*)&jsdc->scripts;
|
||||
jsdscript = next )
|
||||
{
|
||||
next = (JSDScript*)jsdscript->links.next;
|
||||
_destroyJSDScript( jsdc, jsdscript );
|
||||
}
|
||||
}
|
||||
|
||||
JSDScript*
|
||||
jsd_FindJSDScript( JSDContext* jsdc,
|
||||
JSScript *script )
|
||||
{
|
||||
JSDScript *jsdscript;
|
||||
|
||||
JS_ASSERT(JSD_SCRIPTS_LOCKED(jsdc));
|
||||
|
||||
for( jsdscript = (JSDScript *)jsdc->scripts.next;
|
||||
jsdscript != (JSDScript *)&jsdc->scripts;
|
||||
jsdscript = (JSDScript *)jsdscript->links.next )
|
||||
{
|
||||
if (jsdscript->script == script)
|
||||
return jsdscript;
|
||||
}
|
||||
return NULL;
|
||||
}
|
||||
|
||||
JSDScript*
|
||||
jsd_IterateScripts(JSDContext* jsdc, JSDScript **iterp)
|
||||
{
|
||||
JSDScript *jsdscript = *iterp;
|
||||
|
||||
JS_ASSERT(JSD_SCRIPTS_LOCKED(jsdc));
|
||||
|
||||
if( !jsdscript )
|
||||
jsdscript = (JSDScript *)jsdc->scripts.next;
|
||||
if( jsdscript == (JSDScript *)&jsdc->scripts )
|
||||
return NULL;
|
||||
*iterp = (JSDScript*) jsdscript->links.next;
|
||||
return jsdscript;
|
||||
}
|
||||
|
||||
JSBool
|
||||
jsd_IsActiveScript(JSDContext* jsdc, JSDScript *jsdscript)
|
||||
{
|
||||
JSDScript *current;
|
||||
|
||||
JS_ASSERT(JSD_SCRIPTS_LOCKED(jsdc));
|
||||
|
||||
for( current = (JSDScript *)jsdc->scripts.next;
|
||||
current != (JSDScript *)&jsdc->scripts;
|
||||
current = (JSDScript *)current->links.next )
|
||||
{
|
||||
if(jsdscript == current)
|
||||
return JS_TRUE;
|
||||
}
|
||||
return JS_FALSE;
|
||||
}
|
||||
|
||||
const char*
|
||||
jsd_GetScriptFilename(JSDContext* jsdc, JSDScript *jsdscript)
|
||||
{
|
||||
return jsdscript->url;
|
||||
}
|
||||
|
||||
const char*
|
||||
jsd_GetScriptFunctionName(JSDContext* jsdc, JSDScript *jsdscript)
|
||||
{
|
||||
if( ! jsdscript->function )
|
||||
return NULL;
|
||||
return JS_GetFunctionName(jsdscript->function);
|
||||
}
|
||||
|
||||
uintN
|
||||
jsd_GetScriptBaseLineNumber(JSDContext* jsdc, JSDScript *jsdscript)
|
||||
{
|
||||
return jsdscript->lineBase;
|
||||
}
|
||||
|
||||
uintN
|
||||
jsd_GetScriptLineExtent(JSDContext* jsdc, JSDScript *jsdscript)
|
||||
{
|
||||
if( NOT_SET_YET == jsdscript->lineExtent )
|
||||
jsdscript->lineExtent = JS_GetScriptLineExtent(jsdc->dumbContext, jsdscript->script);
|
||||
return jsdscript->lineExtent;
|
||||
}
|
||||
|
||||
jsuword
|
||||
jsd_GetClosestPC(JSDContext* jsdc, JSDScript* jsdscript, uintN line)
|
||||
{
|
||||
#ifdef LIVEWIRE
|
||||
if( jsdscript && jsdscript->lwscript )
|
||||
{
|
||||
uintN newline;
|
||||
jsdlw_RawToProcessedLineNumber(jsdc, jsdscript, line, &newline);
|
||||
if( line != newline )
|
||||
line = newline;
|
||||
}
|
||||
#endif
|
||||
|
||||
return (jsuword) JS_LineNumberToPC(jsdc->dumbContext,
|
||||
jsdscript->script, line );
|
||||
}
|
||||
|
||||
uintN
|
||||
jsd_GetClosestLine(JSDContext* jsdc, JSDScript* jsdscript, jsuword pc)
|
||||
{
|
||||
uintN first = jsdscript->lineBase;
|
||||
uintN last = first + jsd_GetScriptLineExtent(jsdc, jsdscript) - 1;
|
||||
uintN line = JS_PCToLineNumber(jsdc->dumbContext,
|
||||
jsdscript->script, (jsbytecode*)pc);
|
||||
|
||||
if( line < first )
|
||||
return first;
|
||||
if( line > last )
|
||||
return last;
|
||||
|
||||
#ifdef LIVEWIRE
|
||||
if( jsdscript && jsdscript->lwscript )
|
||||
{
|
||||
uintN newline;
|
||||
jsdlw_ProcessedToRawLineNumber(jsdc, jsdscript, line, &newline);
|
||||
line = newline;
|
||||
}
|
||||
#endif
|
||||
|
||||
return line;
|
||||
}
|
||||
|
||||
JSBool
|
||||
jsd_SetScriptHook(JSDContext* jsdc, JSD_ScriptHookProc hook, void* callerdata)
|
||||
{
|
||||
JSD_LOCK();
|
||||
jsdc->scriptHook = hook;
|
||||
jsdc->scriptHookData = callerdata;
|
||||
JSD_UNLOCK();
|
||||
return JS_TRUE;
|
||||
}
|
||||
|
||||
JSBool
|
||||
jsd_GetScriptHook(JSDContext* jsdc, JSD_ScriptHookProc* hook, void** callerdata)
|
||||
{
|
||||
JSD_LOCK();
|
||||
if( hook )
|
||||
*hook = jsdc->scriptHook;
|
||||
if( callerdata )
|
||||
*callerdata = jsdc->scriptHookData;
|
||||
JSD_UNLOCK();
|
||||
return JS_TRUE;
|
||||
}
|
||||
|
||||
/***************************************************************************/
|
||||
|
||||
void JS_DLL_CALLBACK
|
||||
jsd_NewScriptHookProc(
|
||||
JSContext *cx,
|
||||
const char *filename, /* URL this script loads from */
|
||||
uintN lineno, /* line where this script starts */
|
||||
JSScript *script,
|
||||
JSFunction *fun,
|
||||
void* callerdata )
|
||||
{
|
||||
JSDScript* jsdscript = NULL;
|
||||
JSDContext* jsdc = (JSDContext*) callerdata;
|
||||
JSD_ScriptHookProc hook;
|
||||
void* hookData;
|
||||
|
||||
JSD_ASSERT_VALID_CONTEXT(jsdc);
|
||||
|
||||
if( JSD_IS_DANGEROUS_THREAD(jsdc) )
|
||||
return;
|
||||
|
||||
#ifdef LIVEWIRE
|
||||
if( 1 == lineno )
|
||||
jsdlw_PreLoadSource(jsdc, LWDBG_GetCurrentApp(), filename, JS_TRUE );
|
||||
#endif
|
||||
|
||||
JSD_LOCK_SCRIPTS(jsdc);
|
||||
jsdscript = _newJSDScript(jsdc, cx, script, fun);
|
||||
JSD_UNLOCK_SCRIPTS(jsdc);
|
||||
if( ! jsdscript )
|
||||
return;
|
||||
|
||||
#ifdef JSD_DUMP
|
||||
JSD_LOCK_SCRIPTS(jsdc);
|
||||
_dumpJSDScript(jsdc, jsdscript, "***NEW Script: ");
|
||||
_dumpJSDScriptList( jsdc );
|
||||
JSD_UNLOCK_SCRIPTS(jsdc);
|
||||
#endif /* JSD_DUMP */
|
||||
|
||||
/* local in case jsdc->scriptHook gets cleared on another thread */
|
||||
JSD_LOCK();
|
||||
hook = jsdc->scriptHook;
|
||||
hookData = jsdc->scriptHookData;
|
||||
JSD_UNLOCK();
|
||||
|
||||
if( hook )
|
||||
hook(jsdc, jsdscript, JS_TRUE, hookData);
|
||||
}
|
||||
|
||||
void JS_DLL_CALLBACK
|
||||
jsd_DestroyScriptHookProc(
|
||||
JSContext *cx,
|
||||
JSScript *script,
|
||||
void* callerdata )
|
||||
{
|
||||
JSDScript* jsdscript = NULL;
|
||||
JSDContext* jsdc = (JSDContext*) callerdata;
|
||||
JSD_ScriptHookProc hook;
|
||||
void* hookData;
|
||||
|
||||
JSD_ASSERT_VALID_CONTEXT(jsdc);
|
||||
|
||||
if( JSD_IS_DANGEROUS_THREAD(jsdc) )
|
||||
return;
|
||||
|
||||
JSD_LOCK_SCRIPTS(jsdc);
|
||||
jsdscript = jsd_FindJSDScript(jsdc, script);
|
||||
JSD_UNLOCK_SCRIPTS(jsdc);
|
||||
|
||||
if( ! jsdscript )
|
||||
return;
|
||||
|
||||
#ifdef JSD_DUMP
|
||||
JSD_LOCK_SCRIPTS(jsdc);
|
||||
_dumpJSDScript(jsdc, jsdscript, "***DESTROY Script: ");
|
||||
JSD_UNLOCK_SCRIPTS(jsdc);
|
||||
#endif /* JSD_DUMP */
|
||||
|
||||
/* local in case hook gets cleared on another thread */
|
||||
JSD_LOCK();
|
||||
hook = jsdc->scriptHook;
|
||||
hookData = jsdc->scriptHookData;
|
||||
JSD_UNLOCK();
|
||||
|
||||
if( hook )
|
||||
hook(jsdc, jsdscript, JS_FALSE, hookData);
|
||||
|
||||
JSD_LOCK_SCRIPTS(jsdc);
|
||||
_destroyJSDScript(jsdc, jsdscript);
|
||||
JSD_UNLOCK_SCRIPTS(jsdc);
|
||||
|
||||
#ifdef JSD_DUMP
|
||||
JSD_LOCK_SCRIPTS(jsdc);
|
||||
_dumpJSDScriptList(jsdc);
|
||||
JSD_UNLOCK_SCRIPTS(jsdc);
|
||||
#endif /* JSD_DUMP */
|
||||
}
|
||||
|
||||
|
||||
/***************************************************************************/
|
||||
|
||||
static JSDExecHook*
|
||||
_findHook(JSDContext* jsdc, JSDScript* jsdscript, jsuword pc)
|
||||
{
|
||||
JSDExecHook* jsdhook;
|
||||
JSCList* list = &jsdscript->hooks;
|
||||
|
||||
for( jsdhook = (JSDExecHook*)list->next;
|
||||
jsdhook != (JSDExecHook*)list;
|
||||
jsdhook = (JSDExecHook*)jsdhook->links.next )
|
||||
{
|
||||
if (jsdhook->pc == pc)
|
||||
return jsdhook;
|
||||
}
|
||||
return NULL;
|
||||
}
|
||||
|
||||
static JSBool
|
||||
_isActiveHook(JSDContext* jsdc, JSScript *script, JSDExecHook* jsdhook)
|
||||
{
|
||||
JSDExecHook* current;
|
||||
JSCList* list;
|
||||
JSDScript* jsdscript;
|
||||
|
||||
JSD_LOCK_SCRIPTS(jsdc);
|
||||
jsdscript = jsd_FindJSDScript(jsdc, script);
|
||||
if( ! jsdscript)
|
||||
{
|
||||
JSD_UNLOCK_SCRIPTS(jsdc);
|
||||
return JS_FALSE;
|
||||
}
|
||||
|
||||
list = &jsdscript->hooks;
|
||||
|
||||
for( current = (JSDExecHook*)list->next;
|
||||
current != (JSDExecHook*)list;
|
||||
current = (JSDExecHook*)current->links.next )
|
||||
{
|
||||
if(current == jsdhook)
|
||||
{
|
||||
JSD_UNLOCK_SCRIPTS(jsdc);
|
||||
return JS_TRUE;
|
||||
}
|
||||
}
|
||||
JSD_UNLOCK_SCRIPTS(jsdc);
|
||||
return JS_FALSE;
|
||||
}
|
||||
|
||||
|
||||
JSTrapStatus JS_DLL_CALLBACK
|
||||
jsd_TrapHandler(JSContext *cx, JSScript *script, jsbytecode *pc, jsval *rval,
|
||||
void *closure)
|
||||
{
|
||||
JSDExecHook* jsdhook = (JSDExecHook*) closure;
|
||||
JSD_ExecutionHookProc hook;
|
||||
void* hookData;
|
||||
JSDContext* jsdc;
|
||||
JSDScript* jsdscript;
|
||||
|
||||
JSD_LOCK();
|
||||
|
||||
if( NULL == (jsdc = jsd_JSDContextForJSContext(cx)) ||
|
||||
! _isActiveHook(jsdc, script, jsdhook) )
|
||||
{
|
||||
JSD_UNLOCK();
|
||||
return JSTRAP_CONTINUE;
|
||||
}
|
||||
|
||||
JSD_ASSERT_VALID_EXEC_HOOK(jsdhook);
|
||||
JS_ASSERT(jsdhook->pc == (jsuword)pc);
|
||||
JS_ASSERT(jsdhook->jsdscript->script == script);
|
||||
JS_ASSERT(jsdhook->jsdscript->jsdc == jsdc);
|
||||
|
||||
hook = jsdhook->hook;
|
||||
hookData = jsdhook->callerdata;
|
||||
jsdscript = jsdhook->jsdscript;
|
||||
|
||||
/* do not use jsdhook-> after this point */
|
||||
JSD_UNLOCK();
|
||||
|
||||
if( ! jsdc || ! jsdc->inited )
|
||||
return JSTRAP_CONTINUE;
|
||||
|
||||
if( JSD_IS_DANGEROUS_THREAD(jsdc) )
|
||||
return JSTRAP_CONTINUE;
|
||||
|
||||
#ifdef LIVEWIRE
|
||||
if( ! jsdlw_UserCodeAtPC(jsdc, jsdscript, (jsuword)pc) )
|
||||
return JSTRAP_CONTINUE;
|
||||
#endif
|
||||
|
||||
return jsd_CallExecutionHook(jsdc, cx, JSD_HOOK_BREAKPOINT,
|
||||
hook, hookData, rval);
|
||||
}
|
||||
|
||||
|
||||
|
||||
JSBool
|
||||
jsd_SetExecutionHook(JSDContext* jsdc,
|
||||
JSDScript* jsdscript,
|
||||
jsuword pc,
|
||||
JSD_ExecutionHookProc hook,
|
||||
void* callerdata)
|
||||
{
|
||||
JSDExecHook* jsdhook;
|
||||
|
||||
JSD_LOCK();
|
||||
if( ! hook )
|
||||
{
|
||||
jsd_ClearExecutionHook(jsdc, jsdscript, pc);
|
||||
JSD_UNLOCK();
|
||||
return JS_TRUE;
|
||||
}
|
||||
|
||||
jsdhook = _findHook(jsdc, jsdscript, pc);
|
||||
if( jsdhook )
|
||||
{
|
||||
jsdhook->hook = hook;
|
||||
jsdhook->callerdata = callerdata;
|
||||
return JS_TRUE;
|
||||
}
|
||||
/* else... */
|
||||
|
||||
jsdhook = (JSDExecHook*)calloc(1, sizeof(JSDExecHook));
|
||||
if( ! jsdhook )
|
||||
return JS_FALSE;
|
||||
jsdhook->jsdscript = jsdscript;
|
||||
jsdhook->pc = pc;
|
||||
jsdhook->hook = hook;
|
||||
jsdhook->callerdata = callerdata;
|
||||
|
||||
if( ! JS_SetTrap(jsdc->dumbContext, jsdscript->script,
|
||||
(jsbytecode*)pc, jsd_TrapHandler, (void*) jsdhook) )
|
||||
{
|
||||
free(jsdhook);
|
||||
return JS_FALSE;
|
||||
}
|
||||
|
||||
JS_APPEND_LINK(&jsdhook->links, &jsdscript->hooks);
|
||||
JSD_UNLOCK();
|
||||
|
||||
return JS_TRUE;
|
||||
}
|
||||
|
||||
JSBool
|
||||
jsd_ClearExecutionHook(JSDContext* jsdc,
|
||||
JSDScript* jsdscript,
|
||||
jsuword pc)
|
||||
{
|
||||
JSDExecHook* jsdhook;
|
||||
|
||||
JSD_LOCK();
|
||||
|
||||
jsdhook = _findHook(jsdc, jsdscript, pc);
|
||||
if( ! jsdhook )
|
||||
{
|
||||
JS_ASSERT(0);
|
||||
JSD_UNLOCK();
|
||||
return JS_FALSE;
|
||||
}
|
||||
|
||||
JS_ClearTrap(jsdc->dumbContext, jsdscript->script,
|
||||
(jsbytecode*)pc, NULL, NULL );
|
||||
|
||||
JS_REMOVE_LINK(&jsdhook->links);
|
||||
free(jsdhook);
|
||||
|
||||
JSD_UNLOCK();
|
||||
return JS_TRUE;
|
||||
}
|
||||
|
||||
JSBool
|
||||
jsd_ClearAllExecutionHooksForScript(JSDContext* jsdc, JSDScript* jsdscript)
|
||||
{
|
||||
JSDExecHook* jsdhook;
|
||||
JSCList* list = &jsdscript->hooks;
|
||||
|
||||
JSD_LOCK();
|
||||
|
||||
while( (JSDExecHook*)list != (jsdhook = (JSDExecHook*)list->next) )
|
||||
{
|
||||
JS_REMOVE_LINK(&jsdhook->links);
|
||||
free(jsdhook);
|
||||
}
|
||||
|
||||
JS_ClearScriptTraps(jsdc->dumbContext, jsdscript->script);
|
||||
JSD_UNLOCK();
|
||||
|
||||
return JS_TRUE;
|
||||
}
|
||||
|
||||
JSBool
|
||||
jsd_ClearAllExecutionHooks(JSDContext* jsdc)
|
||||
{
|
||||
JSDScript* jsdscript;
|
||||
JSDScript* iterp = NULL;
|
||||
|
||||
JSD_LOCK();
|
||||
while( NULL != (jsdscript = jsd_IterateScripts(jsdc, &iterp)) )
|
||||
jsd_ClearAllExecutionHooksForScript(jsdc, jsdscript);
|
||||
JSD_UNLOCK();
|
||||
return JS_TRUE;
|
||||
}
|
||||
|
||||
void
|
||||
jsd_ScriptCreated(JSDContext* jsdc,
|
||||
JSContext *cx,
|
||||
const char *filename, /* URL this script loads from */
|
||||
uintN lineno, /* line where this script starts */
|
||||
JSScript *script,
|
||||
JSFunction *fun)
|
||||
{
|
||||
jsd_NewScriptHookProc(cx, filename, lineno, script, fun, jsdc);
|
||||
}
|
||||
|
||||
void
|
||||
jsd_ScriptDestroyed(JSDContext* jsdc,
|
||||
JSContext *cx,
|
||||
JSScript *script)
|
||||
{
|
||||
jsd_DestroyScriptHookProc(cx, script, jsdc);
|
||||
}
|
||||
429
mozilla/js/jsd/jsd_stak.c
Normal file
429
mozilla/js/jsd/jsd_stak.c
Normal file
@@ -0,0 +1,429 @@
|
||||
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
|
||||
*
|
||||
* The contents of this file are subject to the Netscape Public License
|
||||
* Version 1.0 (the "NPL"); you may not use this file except in
|
||||
* compliance with the NPL. You may obtain a copy of the NPL at
|
||||
* http://www.mozilla.org/NPL/
|
||||
*
|
||||
* Software distributed under the NPL is distributed on an "AS IS" basis,
|
||||
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
|
||||
* for the specific language governing rights and limitations under the
|
||||
* NPL.
|
||||
*
|
||||
* The Initial Developer of this code under the NPL is Netscape
|
||||
* Communications Corporation. Portions created by Netscape are
|
||||
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
|
||||
* Reserved.
|
||||
*/
|
||||
|
||||
/*
|
||||
* JavaScript Debugging support - Call stack support
|
||||
*/
|
||||
|
||||
#include "jsd.h"
|
||||
|
||||
#ifdef DEBUG
|
||||
void JSD_ASSERT_VALID_THREAD_STATE(JSDThreadState* jsdthreadstate)
|
||||
{
|
||||
JS_ASSERT(jsdthreadstate);
|
||||
JS_ASSERT(jsdthreadstate->stackDepth > 0);
|
||||
}
|
||||
|
||||
void JSD_ASSERT_VALID_STACK_FRAME(JSDStackFrameInfo* jsdframe)
|
||||
{
|
||||
JS_ASSERT(jsdframe);
|
||||
JS_ASSERT(jsdframe->jsdthreadstate);
|
||||
}
|
||||
#endif
|
||||
|
||||
static JSDStackFrameInfo*
|
||||
_addNewFrame(JSDContext* jsdc,
|
||||
JSDThreadState* jsdthreadstate,
|
||||
JSScript* script,
|
||||
jsuword pc,
|
||||
JSStackFrame* fp)
|
||||
{
|
||||
JSDStackFrameInfo* jsdframe;
|
||||
JSDScript* jsdscript;
|
||||
|
||||
JSD_LOCK_SCRIPTS(jsdc);
|
||||
jsdscript = jsd_FindJSDScript(jsdc, script);
|
||||
JSD_UNLOCK_SCRIPTS(jsdc);
|
||||
if( ! jsdscript )
|
||||
return NULL;
|
||||
|
||||
jsdframe = (JSDStackFrameInfo*) calloc(1, sizeof(JSDStackFrameInfo));
|
||||
if( ! jsdframe )
|
||||
return NULL;
|
||||
|
||||
jsdframe->jsdthreadstate = jsdthreadstate;
|
||||
jsdframe->jsdscript = jsdscript ;
|
||||
jsdframe->pc = pc ;
|
||||
jsdframe->fp = fp ;
|
||||
|
||||
JS_APPEND_LINK(&jsdframe->links, &jsdthreadstate->stack);
|
||||
jsdthreadstate->stackDepth++;
|
||||
|
||||
return jsdframe;
|
||||
}
|
||||
|
||||
static void
|
||||
_destroyFrame(JSDStackFrameInfo* jsdframe)
|
||||
{
|
||||
/* kill any alloc'd objects in frame here... */
|
||||
|
||||
if( jsdframe )
|
||||
free(jsdframe);
|
||||
}
|
||||
|
||||
|
||||
JSDThreadState*
|
||||
jsd_NewThreadState(JSDContext* jsdc, JSContext *cx )
|
||||
{
|
||||
JSDThreadState* jsdthreadstate;
|
||||
JSStackFrame * iter = NULL;
|
||||
JSStackFrame * fp;
|
||||
|
||||
jsdthreadstate = (JSDThreadState*)calloc(1, sizeof(JSDThreadState));
|
||||
if( ! jsdthreadstate )
|
||||
return NULL;
|
||||
|
||||
jsdthreadstate->context = cx;
|
||||
jsdthreadstate->thread = JSD_CURRENT_THREAD();
|
||||
JS_INIT_CLIST(&jsdthreadstate->stack);
|
||||
jsdthreadstate->stackDepth = 0;
|
||||
|
||||
while( NULL != (fp = JS_FrameIterator(cx, &iter)) )
|
||||
{
|
||||
JSScript* script = JS_GetFrameScript(cx, fp);
|
||||
jsuword pc = (jsuword) JS_GetFramePC(cx, fp);
|
||||
|
||||
if( ! script || ! pc || JS_IsNativeFrame(cx, fp) )
|
||||
continue;
|
||||
|
||||
_addNewFrame( jsdc, jsdthreadstate, script, pc, fp );
|
||||
}
|
||||
|
||||
/* if there is no stack, then this threadstate can not be constructed */
|
||||
if( 0 == jsdthreadstate->stackDepth )
|
||||
{
|
||||
free(jsdthreadstate);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
JSD_LOCK_THREADSTATES(jsdc);
|
||||
JS_APPEND_LINK(&jsdthreadstate->links, &jsdc->threadsStates);
|
||||
JSD_UNLOCK_THREADSTATES(jsdc);
|
||||
|
||||
return jsdthreadstate;
|
||||
}
|
||||
|
||||
void
|
||||
jsd_DestroyThreadState(JSDContext* jsdc, JSDThreadState* jsdthreadstate)
|
||||
{
|
||||
JSDStackFrameInfo* jsdframe;
|
||||
JSCList* list;
|
||||
|
||||
JSD_ASSERT_VALID_THREAD_STATE(jsdthreadstate);
|
||||
JS_ASSERT(JSD_CURRENT_THREAD() == jsdthreadstate->thread);
|
||||
|
||||
JSD_LOCK_THREADSTATES(jsdc);
|
||||
JS_REMOVE_LINK(&jsdthreadstate->links);
|
||||
JSD_UNLOCK_THREADSTATES(jsdc);
|
||||
|
||||
list = &jsdthreadstate->stack;
|
||||
while( (JSDStackFrameInfo*)list != (jsdframe = (JSDStackFrameInfo*)list->next) )
|
||||
{
|
||||
JS_REMOVE_LINK(&jsdframe->links);
|
||||
_destroyFrame(jsdframe);
|
||||
}
|
||||
free(jsdthreadstate);
|
||||
}
|
||||
|
||||
uintN
|
||||
jsd_GetCountOfStackFrames(JSDContext* jsdc, JSDThreadState* jsdthreadstate)
|
||||
{
|
||||
uintN count = 0;
|
||||
|
||||
JSD_LOCK_THREADSTATES(jsdc);
|
||||
|
||||
if( jsd_IsValidThreadState(jsdc, jsdthreadstate) )
|
||||
count = jsdthreadstate->stackDepth;
|
||||
|
||||
JSD_UNLOCK_THREADSTATES(jsdc);
|
||||
|
||||
return count;
|
||||
}
|
||||
|
||||
JSDStackFrameInfo*
|
||||
jsd_GetStackFrame(JSDContext* jsdc, JSDThreadState* jsdthreadstate)
|
||||
{
|
||||
JSDStackFrameInfo* jsdframe = NULL;
|
||||
|
||||
JSD_LOCK_THREADSTATES(jsdc);
|
||||
|
||||
if( jsd_IsValidThreadState(jsdc, jsdthreadstate) )
|
||||
jsdframe = (JSDStackFrameInfo*) JS_LIST_HEAD(&jsdthreadstate->stack);
|
||||
JSD_UNLOCK_THREADSTATES(jsdc);
|
||||
|
||||
return jsdframe;
|
||||
}
|
||||
|
||||
JSDStackFrameInfo*
|
||||
jsd_GetCallingStackFrame(JSDContext* jsdc,
|
||||
JSDThreadState* jsdthreadstate,
|
||||
JSDStackFrameInfo* jsdframe)
|
||||
{
|
||||
JSDStackFrameInfo* nextjsdframe = NULL;
|
||||
|
||||
JSD_LOCK_THREADSTATES(jsdc);
|
||||
|
||||
if( jsd_IsValidFrameInThreadState(jsdc, jsdthreadstate, jsdframe) )
|
||||
if( JS_LIST_HEAD(&jsdframe->links) != &jsdframe->jsdthreadstate->stack )
|
||||
nextjsdframe = (JSDStackFrameInfo*) JS_LIST_HEAD(&jsdframe->links);
|
||||
|
||||
JSD_UNLOCK_THREADSTATES(jsdc);
|
||||
|
||||
return nextjsdframe;
|
||||
}
|
||||
|
||||
JSDScript*
|
||||
jsd_GetScriptForStackFrame(JSDContext* jsdc,
|
||||
JSDThreadState* jsdthreadstate,
|
||||
JSDStackFrameInfo* jsdframe)
|
||||
{
|
||||
JSDScript* jsdscript = NULL;
|
||||
|
||||
JSD_LOCK_THREADSTATES(jsdc);
|
||||
|
||||
if( jsd_IsValidFrameInThreadState(jsdc, jsdthreadstate, jsdframe) )
|
||||
jsdscript = jsdframe->jsdscript;
|
||||
|
||||
JSD_UNLOCK_THREADSTATES(jsdc);
|
||||
|
||||
return jsdscript;
|
||||
}
|
||||
|
||||
jsuword
|
||||
jsd_GetPCForStackFrame(JSDContext* jsdc,
|
||||
JSDThreadState* jsdthreadstate,
|
||||
JSDStackFrameInfo* jsdframe)
|
||||
{
|
||||
jsuword pc = 0;
|
||||
|
||||
JSD_LOCK_THREADSTATES(jsdc);
|
||||
|
||||
if( jsd_IsValidFrameInThreadState(jsdc, jsdthreadstate, jsdframe) )
|
||||
pc = jsdframe->pc;
|
||||
|
||||
JSD_UNLOCK_THREADSTATES(jsdc);
|
||||
|
||||
return pc;
|
||||
}
|
||||
|
||||
JSDValue*
|
||||
jsd_GetCallObjectForStackFrame(JSDContext* jsdc,
|
||||
JSDThreadState* jsdthreadstate,
|
||||
JSDStackFrameInfo* jsdframe)
|
||||
{
|
||||
JSObject* obj;
|
||||
JSDValue* jsdval = NULL;
|
||||
|
||||
JSD_LOCK_THREADSTATES(jsdc);
|
||||
|
||||
if( jsd_IsValidFrameInThreadState(jsdc, jsdthreadstate, jsdframe) )
|
||||
{
|
||||
obj = JS_GetFrameCallObject(jsdthreadstate->context, jsdframe->fp);
|
||||
if(obj)
|
||||
jsdval = JSD_NewValue(jsdc, OBJECT_TO_JSVAL(obj));
|
||||
}
|
||||
|
||||
JSD_UNLOCK_THREADSTATES(jsdc);
|
||||
|
||||
return jsdval;
|
||||
}
|
||||
|
||||
JSDValue*
|
||||
jsd_GetScopeChainForStackFrame(JSDContext* jsdc,
|
||||
JSDThreadState* jsdthreadstate,
|
||||
JSDStackFrameInfo* jsdframe)
|
||||
{
|
||||
JSObject* obj;
|
||||
JSDValue* jsdval = NULL;
|
||||
|
||||
JSD_LOCK_THREADSTATES(jsdc);
|
||||
|
||||
if( jsd_IsValidFrameInThreadState(jsdc, jsdthreadstate, jsdframe) )
|
||||
{
|
||||
obj = JS_GetFrameScopeChain(jsdthreadstate->context, jsdframe->fp);
|
||||
if(obj)
|
||||
jsdval = JSD_NewValue(jsdc, OBJECT_TO_JSVAL(obj));
|
||||
}
|
||||
|
||||
JSD_UNLOCK_THREADSTATES(jsdc);
|
||||
|
||||
return jsdval;
|
||||
}
|
||||
|
||||
JSDValue*
|
||||
jsd_GetThisForStackFrame(JSDContext* jsdc,
|
||||
JSDThreadState* jsdthreadstate,
|
||||
JSDStackFrameInfo* jsdframe)
|
||||
{
|
||||
JSObject* obj;
|
||||
JSDValue* jsdval = NULL;
|
||||
|
||||
JSD_LOCK_THREADSTATES(jsdc);
|
||||
|
||||
if( jsd_IsValidFrameInThreadState(jsdc, jsdthreadstate, jsdframe) )
|
||||
{
|
||||
obj = JS_GetFrameThis(jsdthreadstate->context, jsdframe->fp);
|
||||
if(obj)
|
||||
jsdval = JSD_NewValue(jsdc, OBJECT_TO_JSVAL(obj));
|
||||
}
|
||||
|
||||
JSD_UNLOCK_THREADSTATES(jsdc);
|
||||
|
||||
return jsdval;
|
||||
}
|
||||
|
||||
|
||||
JSBool
|
||||
jsd_EvaluateScriptInStackFrame(JSDContext* jsdc,
|
||||
JSDThreadState* jsdthreadstate,
|
||||
JSDStackFrameInfo* jsdframe,
|
||||
const char *bytes, uintN length,
|
||||
const char *filename, uintN lineno, jsval *rval)
|
||||
{
|
||||
JSBool retval;
|
||||
JSBool valid;
|
||||
JSExceptionState* exceptionState;
|
||||
JSContext* cx;
|
||||
|
||||
JS_ASSERT(JSD_CURRENT_THREAD() == jsdthreadstate->thread);
|
||||
|
||||
JSD_LOCK_THREADSTATES(jsdc);
|
||||
valid = jsd_IsValidFrameInThreadState(jsdc, jsdthreadstate, jsdframe);
|
||||
JSD_UNLOCK_THREADSTATES(jsdc);
|
||||
|
||||
if( ! valid )
|
||||
return JS_FALSE;
|
||||
|
||||
cx = jsdthreadstate->context;
|
||||
JS_ASSERT(cx);
|
||||
|
||||
exceptionState = JS_SaveExceptionState(cx);
|
||||
jsd_StartingEvalUsingFilename(jsdc, filename);
|
||||
retval = JS_EvaluateInStackFrame(cx, jsdframe->fp, bytes, length,
|
||||
filename, lineno, rval);
|
||||
jsd_FinishedEvalUsingFilename(jsdc, filename);
|
||||
JS_RestoreExceptionState(cx, exceptionState);
|
||||
|
||||
return retval;
|
||||
}
|
||||
|
||||
JSString*
|
||||
jsd_ValToStringInStackFrame(JSDContext* jsdc,
|
||||
JSDThreadState* jsdthreadstate,
|
||||
JSDStackFrameInfo* jsdframe,
|
||||
jsval val)
|
||||
{
|
||||
JSBool valid;
|
||||
JSString* retval;
|
||||
JSExceptionState* exceptionState;
|
||||
JSContext* cx;
|
||||
|
||||
JSD_LOCK_THREADSTATES(jsdc);
|
||||
valid = jsd_IsValidFrameInThreadState(jsdc, jsdthreadstate, jsdframe);
|
||||
JSD_UNLOCK_THREADSTATES(jsdc);
|
||||
|
||||
if( ! valid )
|
||||
return NULL;
|
||||
|
||||
cx = jsdthreadstate->context;
|
||||
JS_ASSERT(cx);
|
||||
|
||||
exceptionState = JS_SaveExceptionState(cx);
|
||||
retval = JS_ValueToString(cx, val);
|
||||
JS_RestoreExceptionState(cx, exceptionState);
|
||||
|
||||
return retval;
|
||||
}
|
||||
|
||||
JSBool
|
||||
jsd_IsValidThreadState(JSDContext* jsdc,
|
||||
JSDThreadState* jsdthreadstate)
|
||||
{
|
||||
JSDThreadState *cur;
|
||||
|
||||
JS_ASSERT( JSD_THREADSTATES_LOCKED(jsdc) );
|
||||
|
||||
for( cur = (JSDThreadState*)jsdc->threadsStates.next;
|
||||
cur != (JSDThreadState*)&jsdc->threadsStates;
|
||||
cur = (JSDThreadState*)cur->links.next )
|
||||
{
|
||||
if( cur == jsdthreadstate )
|
||||
return JS_TRUE;
|
||||
}
|
||||
return JS_FALSE;
|
||||
}
|
||||
|
||||
JSBool
|
||||
jsd_IsValidFrameInThreadState(JSDContext* jsdc,
|
||||
JSDThreadState* jsdthreadstate,
|
||||
JSDStackFrameInfo* jsdframe)
|
||||
{
|
||||
JS_ASSERT(JSD_THREADSTATES_LOCKED(jsdc));
|
||||
|
||||
if( ! jsd_IsValidThreadState(jsdc, jsdthreadstate) )
|
||||
return JS_FALSE;
|
||||
if( jsdframe->jsdthreadstate != jsdthreadstate )
|
||||
return JS_FALSE;
|
||||
|
||||
JSD_ASSERT_VALID_THREAD_STATE(jsdthreadstate);
|
||||
JSD_ASSERT_VALID_STACK_FRAME(jsdframe);
|
||||
|
||||
return JS_TRUE;
|
||||
}
|
||||
|
||||
static JSContext*
|
||||
_getContextForThreadState(JSDContext* jsdc, JSDThreadState* jsdthreadstate)
|
||||
{
|
||||
JSBool valid;
|
||||
JSD_LOCK_THREADSTATES(jsdc);
|
||||
valid = jsd_IsValidThreadState(jsdc, jsdthreadstate);
|
||||
JSD_UNLOCK_THREADSTATES(jsdc);
|
||||
if( valid )
|
||||
return jsdthreadstate->context;
|
||||
return NULL;
|
||||
}
|
||||
|
||||
JSDValue*
|
||||
jsd_GetException(JSDContext* jsdc, JSDThreadState* jsdthreadstate)
|
||||
{
|
||||
JSContext* cx;
|
||||
jsval val;
|
||||
|
||||
if(!(cx = _getContextForThreadState(jsdc, jsdthreadstate)))
|
||||
return NULL;
|
||||
|
||||
if(JS_GetPendingException(cx, &val))
|
||||
return jsd_NewValue(jsdc, val);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
JSBool
|
||||
jsd_SetException(JSDContext* jsdc, JSDThreadState* jsdthreadstate,
|
||||
JSDValue* jsdval)
|
||||
{
|
||||
JSContext* cx;
|
||||
|
||||
if(!(cx = _getContextForThreadState(jsdc, jsdthreadstate)))
|
||||
return JS_FALSE;
|
||||
|
||||
if(jsdval)
|
||||
JS_SetPendingException(cx, JSD_GetValueWrappedJSVal(jsdc, jsdval));
|
||||
else
|
||||
JS_ClearPendingException(cx);
|
||||
return JS_TRUE;
|
||||
}
|
||||
116
mozilla/js/jsd/jsd_step.c
Normal file
116
mozilla/js/jsd/jsd_step.c
Normal file
@@ -0,0 +1,116 @@
|
||||
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
|
||||
*
|
||||
* The contents of this file are subject to the Netscape Public License
|
||||
* Version 1.0 (the "NPL"); you may not use this file except in
|
||||
* compliance with the NPL. You may obtain a copy of the NPL at
|
||||
* http://www.mozilla.org/NPL/
|
||||
*
|
||||
* Software distributed under the NPL is distributed on an "AS IS" basis,
|
||||
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
|
||||
* for the specific language governing rights and limitations under the
|
||||
* NPL.
|
||||
*
|
||||
* The Initial Developer of this code under the NPL is Netscape
|
||||
* Communications Corporation. Portions created by Netscape are
|
||||
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
|
||||
* Reserved.
|
||||
*/
|
||||
|
||||
/*
|
||||
* JavaScript Debugging support - Stepping support
|
||||
*/
|
||||
|
||||
#include "jsd.h"
|
||||
|
||||
/*
|
||||
* #define JSD_TRACE 1
|
||||
*/
|
||||
|
||||
#ifdef JSD_TRACE
|
||||
|
||||
static char*
|
||||
_indentSpaces(int i)
|
||||
{
|
||||
#define MAX_INDENT 63
|
||||
static char* p = NULL;
|
||||
if(!p)
|
||||
{
|
||||
p = calloc(1, MAX_INDENT+1);
|
||||
if(!p) return "";
|
||||
memset(p, ' ', MAX_INDENT);
|
||||
}
|
||||
if(i > MAX_INDENT) return p;
|
||||
return p + MAX_INDENT-i;
|
||||
}
|
||||
|
||||
static void
|
||||
_interpreterTrace(JSDContext* jsdc, JSContext *cx, JSStackFrame *fp,
|
||||
JSBool before, JSBool *ok)
|
||||
{
|
||||
JSDScript* jsdscript = NULL;
|
||||
JSScript * script;
|
||||
static indent = 0;
|
||||
char* buf;
|
||||
const char* funName = NULL;
|
||||
|
||||
script = JS_GetFrameScript(cx, fp);
|
||||
if(script)
|
||||
{
|
||||
JSD_LOCK_SCRIPTS(jsdc);
|
||||
jsdscript = jsd_FindJSDScript(jsdc, script);
|
||||
JSD_UNLOCK_SCRIPTS(jsdc);
|
||||
if(jsdscript)
|
||||
funName = JSD_GetScriptFunctionName(jsdc, jsdscript);
|
||||
}
|
||||
if(!funName)
|
||||
funName = "TOP_LEVEL";
|
||||
|
||||
if(before)
|
||||
{
|
||||
buf = JS_smprintf("%sentering %s %s this: %0x\n",
|
||||
_indentSpaces(indent++),
|
||||
funName,
|
||||
JS_IsContructorFrame(cx, fp) ? "constructing":"",
|
||||
(int)JS_GetFrameThis(cx, fp));
|
||||
}
|
||||
else
|
||||
{
|
||||
buf = JS_smprintf("%sleaving %s\n",
|
||||
_indentSpaces(--indent),
|
||||
funName);
|
||||
}
|
||||
JS_ASSERT(indent >= 0);
|
||||
|
||||
if(!buf)
|
||||
return;
|
||||
|
||||
printf(buf);
|
||||
free(buf);
|
||||
}
|
||||
#endif
|
||||
|
||||
void * JS_DLL_CALLBACK
|
||||
jsd_InterpreterHook(JSContext *cx, JSStackFrame *fp, JSBool before,
|
||||
JSBool *ok, void *closure)
|
||||
{
|
||||
JSDContext* jsdc = (JSDContext*) closure;
|
||||
|
||||
if( ! jsdc || ! jsdc->inited )
|
||||
return NULL;
|
||||
|
||||
if(before && JS_IsContructorFrame(cx, fp))
|
||||
jsd_Constructing(jsdc, cx, JS_GetFrameThis(cx, fp), fp);
|
||||
|
||||
#ifdef JSD_TRACE
|
||||
_interpreterTrace(jsdc, cx, fp, before, ok);
|
||||
return closure;
|
||||
#else
|
||||
return NULL;
|
||||
#endif
|
||||
/*
|
||||
* use this before calling any hook...
|
||||
* if( JSD_IS_DANGEROUS_THREAD(jsdc) )
|
||||
* return NULL;
|
||||
*/
|
||||
|
||||
}
|
||||
547
mozilla/js/jsd/jsd_text.c
Normal file
547
mozilla/js/jsd/jsd_text.c
Normal file
@@ -0,0 +1,547 @@
|
||||
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
|
||||
*
|
||||
* The contents of this file are subject to the Netscape Public License
|
||||
* Version 1.0 (the "NPL"); you may not use this file except in
|
||||
* compliance with the NPL. You may obtain a copy of the NPL at
|
||||
* http://www.mozilla.org/NPL/
|
||||
*
|
||||
* Software distributed under the NPL is distributed on an "AS IS" basis,
|
||||
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
|
||||
* for the specific language governing rights and limitations under the
|
||||
* NPL.
|
||||
*
|
||||
* The Initial Developer of this code under the NPL is Netscape
|
||||
* Communications Corporation. Portions created by Netscape are
|
||||
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
|
||||
* Reserved.
|
||||
*/
|
||||
|
||||
/*
|
||||
* JavaScript Debugging support - Source Text functions
|
||||
*/
|
||||
|
||||
#include "jsd.h"
|
||||
|
||||
#ifdef DEBUG
|
||||
void JSD_ASSERT_VALID_SOURCE_TEXT(JSDSourceText* jsdsrc)
|
||||
{
|
||||
JS_ASSERT(jsdsrc);
|
||||
JS_ASSERT(jsdsrc->url);
|
||||
}
|
||||
#endif
|
||||
|
||||
/***************************************************************************/
|
||||
/* XXX add notification */
|
||||
|
||||
static void
|
||||
_clearText(JSDContext* jsdc, JSDSourceText* jsdsrc)
|
||||
{
|
||||
if( jsdsrc->text )
|
||||
free(jsdsrc->text);
|
||||
jsdsrc->text = NULL;
|
||||
jsdsrc->textLength = 0;
|
||||
jsdsrc->textSpace = 0;
|
||||
jsdsrc->status = JSD_SOURCE_CLEARED;
|
||||
jsdsrc->dirty = JS_TRUE;
|
||||
jsdsrc->alterCount = jsdc->sourceAlterCount++ ;
|
||||
jsdsrc->doingEval = JS_FALSE;
|
||||
}
|
||||
|
||||
static JSBool
|
||||
_appendText(JSDContext* jsdc, JSDSourceText* jsdsrc,
|
||||
const char* text, size_t length)
|
||||
{
|
||||
#define MEMBUF_GROW 1000
|
||||
|
||||
uintN neededSize = jsdsrc->textLength + length;
|
||||
|
||||
if( neededSize > jsdsrc->textSpace )
|
||||
{
|
||||
char* newBuf;
|
||||
uintN iNewSize;
|
||||
|
||||
/* if this is the first alloc, the req might be all that's needed*/
|
||||
if( ! jsdsrc->textSpace )
|
||||
iNewSize = length;
|
||||
else
|
||||
iNewSize = (neededSize * 5 / 4) + MEMBUF_GROW;
|
||||
|
||||
newBuf = (char*) realloc(jsdsrc->text, iNewSize);
|
||||
if( ! newBuf )
|
||||
{
|
||||
/* try again with the minimal size really asked for */
|
||||
iNewSize = neededSize;
|
||||
newBuf = (char*) realloc(jsdsrc->text, iNewSize);
|
||||
if( ! newBuf )
|
||||
{
|
||||
/* out of memory */
|
||||
_clearText( jsdc, jsdsrc );
|
||||
jsdsrc->status = JSD_SOURCE_FAILED;
|
||||
return JS_FALSE;
|
||||
}
|
||||
}
|
||||
|
||||
jsdsrc->text = newBuf;
|
||||
jsdsrc->textSpace = iNewSize;
|
||||
}
|
||||
|
||||
memcpy(jsdsrc->text + jsdsrc->textLength, text, length);
|
||||
jsdsrc->textLength += length;
|
||||
return JS_TRUE;
|
||||
}
|
||||
|
||||
static JSDSourceText*
|
||||
_newSource(JSDContext* jsdc, const char* url)
|
||||
{
|
||||
JSDSourceText* jsdsrc = (JSDSourceText*)calloc(1,sizeof(JSDSourceText));
|
||||
if( ! jsdsrc )
|
||||
return NULL;
|
||||
|
||||
jsdsrc->url = (char*) url; /* already a copy */
|
||||
jsdsrc->status = JSD_SOURCE_INITED;
|
||||
jsdsrc->dirty = JS_TRUE;
|
||||
jsdsrc->alterCount = jsdc->sourceAlterCount++ ;
|
||||
|
||||
return jsdsrc;
|
||||
}
|
||||
|
||||
static void
|
||||
_destroySource(JSDContext* jsdc, JSDSourceText* jsdsrc)
|
||||
{
|
||||
JS_ASSERT(NULL == jsdsrc->text); /* must _clearText() first */
|
||||
free(jsdsrc->url);
|
||||
free(jsdsrc);
|
||||
}
|
||||
|
||||
static void
|
||||
_removeSource(JSDContext* jsdc, JSDSourceText* jsdsrc)
|
||||
{
|
||||
JS_REMOVE_LINK(&jsdsrc->links);
|
||||
_clearText(jsdc, jsdsrc);
|
||||
_destroySource(jsdc, jsdsrc);
|
||||
}
|
||||
|
||||
static JSDSourceText*
|
||||
_addSource(JSDContext* jsdc, const char* url)
|
||||
{
|
||||
JSDSourceText* jsdsrc = _newSource(jsdc, url);
|
||||
if( ! jsdsrc )
|
||||
return NULL;
|
||||
JS_INSERT_LINK(&jsdsrc->links, &jsdc->sources);
|
||||
return jsdsrc;
|
||||
}
|
||||
|
||||
static void
|
||||
_moveSourceToFront(JSDContext* jsdc, JSDSourceText* jsdsrc)
|
||||
{
|
||||
JS_REMOVE_LINK(&jsdsrc->links);
|
||||
JS_INSERT_LINK(&jsdsrc->links, &jsdc->sources);
|
||||
}
|
||||
|
||||
static void
|
||||
_moveSourceToRemovedList(JSDContext* jsdc, JSDSourceText* jsdsrc)
|
||||
{
|
||||
_clearText(jsdc, jsdsrc);
|
||||
JS_REMOVE_LINK(&jsdsrc->links);
|
||||
JS_INSERT_LINK(&jsdsrc->links, &jsdc->removedSources);
|
||||
}
|
||||
|
||||
static void
|
||||
_removeSourceFromRemovedList( JSDContext* jsdc, JSDSourceText* jsdsrc )
|
||||
{
|
||||
JS_REMOVE_LINK(&jsdsrc->links);
|
||||
_destroySource( jsdc, jsdsrc );
|
||||
}
|
||||
|
||||
static JSBool
|
||||
_isSourceInSourceList(JSDContext* jsdc, JSDSourceText* jsdsrcToFind)
|
||||
{
|
||||
JSDSourceText *jsdsrc;
|
||||
|
||||
for( jsdsrc = (JSDSourceText*)jsdc->sources.next;
|
||||
jsdsrc != (JSDSourceText*)&jsdc->sources;
|
||||
jsdsrc = (JSDSourceText*)jsdsrc->links.next )
|
||||
{
|
||||
if( jsdsrc == jsdsrcToFind )
|
||||
return JS_TRUE;
|
||||
}
|
||||
return JS_FALSE;
|
||||
}
|
||||
|
||||
/* compare strings in a case insensitive manner with a length limit
|
||||
*/
|
||||
|
||||
static int
|
||||
strncasecomp (const char* one, const char * two, int n)
|
||||
{
|
||||
const char *pA;
|
||||
const char *pB;
|
||||
|
||||
for(pA=one, pB=two;; pA++, pB++)
|
||||
{
|
||||
int tmp;
|
||||
if (pA == one+n)
|
||||
return 0;
|
||||
if (!(*pA && *pB))
|
||||
return *pA - *pB;
|
||||
tmp = tolower(*pA) - tolower(*pB);
|
||||
if (tmp)
|
||||
return tmp;
|
||||
}
|
||||
}
|
||||
|
||||
static char file_url_prefix[] = "file:";
|
||||
#define FILE_URL_PREFIX_LEN (sizeof file_url_prefix - 1)
|
||||
|
||||
const char*
|
||||
jsd_BuildNormalizedURL( const char* url_string )
|
||||
{
|
||||
char *new_url_string;
|
||||
|
||||
if( ! url_string )
|
||||
return NULL;
|
||||
|
||||
if (!strncasecomp(url_string, file_url_prefix, FILE_URL_PREFIX_LEN) &&
|
||||
url_string[FILE_URL_PREFIX_LEN + 0] == '/' &&
|
||||
url_string[FILE_URL_PREFIX_LEN + 1] == '/') {
|
||||
new_url_string = JS_smprintf("%s%s",
|
||||
file_url_prefix,
|
||||
url_string + FILE_URL_PREFIX_LEN + 2);
|
||||
} else {
|
||||
new_url_string = strdup(url_string);
|
||||
}
|
||||
return new_url_string;
|
||||
}
|
||||
|
||||
/***************************************************************************/
|
||||
|
||||
void
|
||||
jsd_DestroyAllSources( JSDContext* jsdc )
|
||||
{
|
||||
JSDSourceText *jsdsrc;
|
||||
JSDSourceText *next;
|
||||
|
||||
for( jsdsrc = (JSDSourceText*)jsdc->sources.next;
|
||||
jsdsrc != (JSDSourceText*)&jsdc->sources;
|
||||
jsdsrc = next )
|
||||
{
|
||||
next = (JSDSourceText*)jsdsrc->links.next;
|
||||
_removeSource( jsdc, jsdsrc );
|
||||
}
|
||||
|
||||
for( jsdsrc = (JSDSourceText*)jsdc->removedSources.next;
|
||||
jsdsrc != (JSDSourceText*)&jsdc->removedSources;
|
||||
jsdsrc = next )
|
||||
{
|
||||
next = (JSDSourceText*)jsdsrc->links.next;
|
||||
_removeSourceFromRemovedList( jsdc, jsdsrc );
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
JSDSourceText*
|
||||
jsd_IterateSources(JSDContext* jsdc, JSDSourceText **iterp)
|
||||
{
|
||||
JSDSourceText *jsdsrc = *iterp;
|
||||
|
||||
if( !jsdsrc )
|
||||
jsdsrc = (JSDSourceText *)jsdc->sources.next;
|
||||
if( jsdsrc == (JSDSourceText *)&jsdc->sources )
|
||||
return NULL;
|
||||
*iterp = (JSDSourceText *)jsdsrc->links.next;
|
||||
return jsdsrc;
|
||||
}
|
||||
|
||||
JSDSourceText*
|
||||
jsd_FindSourceForURL(JSDContext* jsdc, const char* url)
|
||||
{
|
||||
JSDSourceText *jsdsrc;
|
||||
|
||||
for( jsdsrc = (JSDSourceText *)jsdc->sources.next;
|
||||
jsdsrc != (JSDSourceText *)&jsdc->sources;
|
||||
jsdsrc = (JSDSourceText *)jsdsrc->links.next )
|
||||
{
|
||||
if( 0 == strcmp(jsdsrc->url, url) )
|
||||
return jsdsrc;
|
||||
}
|
||||
return NULL;
|
||||
}
|
||||
|
||||
const char*
|
||||
jsd_GetSourceURL(JSDContext* jsdc, JSDSourceText* jsdsrc)
|
||||
{
|
||||
return jsdsrc->url;
|
||||
}
|
||||
|
||||
JSBool
|
||||
jsd_GetSourceText(JSDContext* jsdc, JSDSourceText* jsdsrc,
|
||||
const char** ppBuf, intN* pLen )
|
||||
{
|
||||
*ppBuf = jsdsrc->text;
|
||||
*pLen = jsdsrc->textLength;
|
||||
return JS_TRUE;
|
||||
}
|
||||
|
||||
void
|
||||
jsd_ClearSourceText(JSDContext* jsdc, JSDSourceText* jsdsrc)
|
||||
{
|
||||
if( JSD_SOURCE_INITED != jsdsrc->status &&
|
||||
JSD_SOURCE_PARTIAL != jsdsrc->status )
|
||||
{
|
||||
_clearText(jsdc, jsdsrc);
|
||||
}
|
||||
}
|
||||
|
||||
JSDSourceStatus
|
||||
jsd_GetSourceStatus(JSDContext* jsdc, JSDSourceText* jsdsrc)
|
||||
{
|
||||
return jsdsrc->status;
|
||||
}
|
||||
|
||||
JSBool
|
||||
jsd_IsSourceDirty(JSDContext* jsdc, JSDSourceText* jsdsrc)
|
||||
{
|
||||
return jsdsrc->dirty;
|
||||
}
|
||||
|
||||
void
|
||||
jsd_SetSourceDirty(JSDContext* jsdc, JSDSourceText* jsdsrc, JSBool dirty)
|
||||
{
|
||||
jsdsrc->dirty = dirty;
|
||||
}
|
||||
|
||||
uintN
|
||||
jsd_GetSourceAlterCount(JSDContext* jsdc, JSDSourceText* jsdsrc)
|
||||
{
|
||||
return jsdsrc->alterCount;
|
||||
}
|
||||
|
||||
uintN
|
||||
jsd_IncrementSourceAlterCount(JSDContext* jsdc, JSDSourceText* jsdsrc)
|
||||
{
|
||||
return jsdsrc->alterCount = jsdc->sourceAlterCount++;
|
||||
}
|
||||
|
||||
/***************************************************************************/
|
||||
|
||||
#if defined(DEBUG) && 0
|
||||
void DEBUG_ITERATE_SOURCES( JSDContext* jsdc )
|
||||
{
|
||||
JSDSourceText* iterp = NULL;
|
||||
JSDSourceText* jsdsrc = NULL;
|
||||
int dummy;
|
||||
|
||||
while( NULL != (jsdsrc = jsd_IterateSources(jsdc, &iterp)) )
|
||||
{
|
||||
const char* url;
|
||||
const char* text;
|
||||
int len;
|
||||
JSBool dirty;
|
||||
JSDStreamStatus status;
|
||||
JSBool gotSrc;
|
||||
|
||||
url = JSD_GetSourceURL(jsdc, jsdsrc);
|
||||
dirty = JSD_IsSourceDirty(jsdc, jsdsrc);
|
||||
status = JSD_GetSourceStatus(jsdc, jsdsrc);
|
||||
gotSrc = JSD_GetSourceText(jsdc, jsdsrc, &text, &len );
|
||||
|
||||
dummy = 0; /* gives us a line to set breakpoint... */
|
||||
}
|
||||
}
|
||||
#else
|
||||
#define DEBUG_ITERATE_SOURCES(x) ((void)x)
|
||||
#endif
|
||||
|
||||
/***************************************************************************/
|
||||
|
||||
JSDSourceText*
|
||||
jsd_NewSourceText(JSDContext* jsdc, const char* url)
|
||||
{
|
||||
JSDSourceText* jsdsrc;
|
||||
const char* new_url_string;
|
||||
|
||||
JSD_LOCK_SOURCE_TEXT(jsdc);
|
||||
|
||||
#ifdef LIVEWIRE
|
||||
new_url_string = url; /* we take ownership of alloc'd string */
|
||||
#else
|
||||
new_url_string = jsd_BuildNormalizedURL(url);
|
||||
#endif
|
||||
if( ! new_url_string )
|
||||
return NULL;
|
||||
|
||||
jsdsrc = jsd_FindSourceForURL(jsdc, new_url_string);
|
||||
|
||||
if( jsdsrc )
|
||||
{
|
||||
if( jsdsrc->doingEval )
|
||||
{
|
||||
#ifdef LIVEWIRE
|
||||
free((char*)new_url_string);
|
||||
#endif
|
||||
JSD_UNLOCK_SOURCE_TEXT(jsdc);
|
||||
return NULL;
|
||||
}
|
||||
else
|
||||
_moveSourceToRemovedList(jsdc, jsdsrc);
|
||||
}
|
||||
|
||||
jsdsrc = _addSource( jsdc, new_url_string );
|
||||
|
||||
JSD_UNLOCK_SOURCE_TEXT(jsdc);
|
||||
|
||||
return jsdsrc;
|
||||
}
|
||||
|
||||
JSDSourceText*
|
||||
jsd_AppendSourceText(JSDContext* jsdc,
|
||||
JSDSourceText* jsdsrc,
|
||||
const char* text, /* *not* zero terminated */
|
||||
size_t length,
|
||||
JSDSourceStatus status)
|
||||
{
|
||||
JSD_LOCK_SOURCE_TEXT(jsdc);
|
||||
|
||||
if( jsdsrc->doingEval )
|
||||
{
|
||||
JSD_UNLOCK_SOURCE_TEXT(jsdc);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
if( ! _isSourceInSourceList( jsdc, jsdsrc ) )
|
||||
{
|
||||
_removeSourceFromRemovedList( jsdc, jsdsrc );
|
||||
JSD_UNLOCK_SOURCE_TEXT(jsdc);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
if( text && length && ! _appendText( jsdc, jsdsrc, text, length ) )
|
||||
{
|
||||
jsdsrc->dirty = JS_TRUE;
|
||||
jsdsrc->alterCount = jsdc->sourceAlterCount++ ;
|
||||
jsdsrc->status = JSD_SOURCE_FAILED;
|
||||
_moveSourceToRemovedList(jsdc, jsdsrc);
|
||||
JSD_UNLOCK_SOURCE_TEXT(jsdc);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
jsdsrc->dirty = JS_TRUE;
|
||||
jsdsrc->alterCount = jsdc->sourceAlterCount++ ;
|
||||
jsdsrc->status = status;
|
||||
DEBUG_ITERATE_SOURCES(jsdc);
|
||||
JSD_UNLOCK_SOURCE_TEXT(jsdc);
|
||||
return jsdsrc;
|
||||
}
|
||||
|
||||
JSDSourceText*
|
||||
jsd_AppendUCSourceText(JSDContext* jsdc,
|
||||
JSDSourceText* jsdsrc,
|
||||
const jschar* text, /* *not* zero terminated */
|
||||
size_t length,
|
||||
JSDSourceStatus status)
|
||||
{
|
||||
#define UNICODE_TRUNCATE_BUF_SIZE 1024
|
||||
static char* buf = NULL;
|
||||
int remaining = length;
|
||||
|
||||
if(!text || !length)
|
||||
return jsd_AppendSourceText(jsdc, jsdsrc, NULL, 0, status);
|
||||
|
||||
JSD_LOCK_SOURCE_TEXT(jsdc);
|
||||
if(!buf)
|
||||
{
|
||||
buf = malloc(UNICODE_TRUNCATE_BUF_SIZE);
|
||||
if(!buf)
|
||||
{
|
||||
JSD_UNLOCK_SOURCE_TEXT(jsdc);
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
while(remaining && jsdsrc) {
|
||||
int bytes = JS_MIN(remaining, UNICODE_TRUNCATE_BUF_SIZE);
|
||||
int i;
|
||||
for(i = 0; i < bytes; i++)
|
||||
buf[i] = (const char) *(text++);
|
||||
jsdsrc = jsd_AppendSourceText(jsdc,jsdsrc,
|
||||
buf, bytes,
|
||||
JSD_SOURCE_PARTIAL);
|
||||
remaining -= bytes;
|
||||
}
|
||||
if(jsdsrc && status != JSD_SOURCE_PARTIAL)
|
||||
jsdsrc = jsd_AppendSourceText(jsdc, jsdsrc, NULL, 0, status);
|
||||
|
||||
JSD_UNLOCK_SOURCE_TEXT(jsdc);
|
||||
return jsdsrc;
|
||||
}
|
||||
|
||||
/* convienence function for adding complete source of url in one call */
|
||||
JSBool
|
||||
jsd_AddFullSourceText(JSDContext* jsdc,
|
||||
const char* text, /* *not* zero terminated */
|
||||
size_t length,
|
||||
const char* url)
|
||||
{
|
||||
JSDSourceText* jsdsrc;
|
||||
|
||||
JSD_LOCK_SOURCE_TEXT(jsdc);
|
||||
|
||||
jsdsrc = jsd_NewSourceText(jsdc, url);
|
||||
if( jsdsrc )
|
||||
jsdsrc = jsd_AppendSourceText(jsdc, jsdsrc,
|
||||
text, length, JSD_SOURCE_PARTIAL );
|
||||
if( jsdsrc )
|
||||
jsdsrc = jsd_AppendSourceText(jsdc, jsdsrc,
|
||||
NULL, 0, JSD_SOURCE_COMPLETED );
|
||||
|
||||
JSD_UNLOCK_SOURCE_TEXT(jsdc);
|
||||
|
||||
return jsdsrc ? JS_TRUE : JS_FALSE;
|
||||
}
|
||||
|
||||
/***************************************************************************/
|
||||
|
||||
void
|
||||
jsd_StartingEvalUsingFilename(JSDContext* jsdc, const char* url)
|
||||
{
|
||||
JSDSourceText* jsdsrc;
|
||||
|
||||
/* NOTE: We leave it locked! */
|
||||
JSD_LOCK_SOURCE_TEXT(jsdc);
|
||||
|
||||
jsdsrc = jsd_FindSourceForURL(jsdc, url);
|
||||
if(jsdsrc)
|
||||
{
|
||||
#if 0
|
||||
#ifndef JSD_LOWLEVEL_SOURCE
|
||||
JS_ASSERT(! jsdsrc->doingEval);
|
||||
#endif
|
||||
#endif
|
||||
jsdsrc->doingEval = JS_TRUE;
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
jsd_FinishedEvalUsingFilename(JSDContext* jsdc, const char* url)
|
||||
{
|
||||
JSDSourceText* jsdsrc;
|
||||
|
||||
/* NOTE: We ASSUME it is locked! */
|
||||
|
||||
jsdsrc = jsd_FindSourceForURL(jsdc, url);
|
||||
if(jsdsrc)
|
||||
{
|
||||
#if 0
|
||||
#ifndef JSD_LOWLEVEL_SOURCE
|
||||
/*
|
||||
* when using this low level source addition, this jsdsrc might
|
||||
* not have existed before the eval, but does exist now (without
|
||||
* this flag set!)
|
||||
*/
|
||||
JS_ASSERT(jsdsrc->doingEval);
|
||||
#endif
|
||||
#endif
|
||||
jsdsrc->doingEval = JS_FALSE;
|
||||
}
|
||||
|
||||
JSD_UNLOCK_SOURCE_TEXT(jsdc);
|
||||
}
|
||||
601
mozilla/js/jsd/jsd_val.c
Normal file
601
mozilla/js/jsd/jsd_val.c
Normal file
@@ -0,0 +1,601 @@
|
||||
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
|
||||
*
|
||||
* The contents of this file are subject to the Netscape Public License
|
||||
* Version 1.0 (the "NPL"); you may not use this file except in
|
||||
* compliance with the NPL. You may obtain a copy of the NPL at
|
||||
* http://www.mozilla.org/NPL/
|
||||
*
|
||||
* Software distributed under the NPL is distributed on an "AS IS" basis,
|
||||
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
|
||||
* for the specific language governing rights and limitations under the
|
||||
* NPL.
|
||||
*
|
||||
* The Initial Developer of this code under the NPL is Netscape
|
||||
* Communications Corporation. Portions created by Netscape are
|
||||
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
|
||||
* Reserved.
|
||||
*/
|
||||
|
||||
/*
|
||||
* JavaScript Debugging support - Value and Property support
|
||||
*/
|
||||
|
||||
#include "jsd.h"
|
||||
|
||||
#ifdef DEBUG
|
||||
void JSD_ASSERT_VALID_VALUE(JSDValue* jsdval)
|
||||
{
|
||||
JS_ASSERT(jsdval);
|
||||
JS_ASSERT(jsdval->nref > 0);
|
||||
if(!JS_CLIST_IS_EMPTY(&jsdval->props))
|
||||
{
|
||||
JS_ASSERT(CHECK_BIT_FLAG(jsdval->flags, GOT_PROPS));
|
||||
JS_ASSERT(JSVAL_IS_OBJECT(jsdval->val));
|
||||
}
|
||||
|
||||
if(jsdval->proto)
|
||||
{
|
||||
JS_ASSERT(CHECK_BIT_FLAG(jsdval->flags, GOT_PROTO));
|
||||
JS_ASSERT(jsdval->proto->nref > 0);
|
||||
}
|
||||
if(jsdval->parent)
|
||||
{
|
||||
JS_ASSERT(CHECK_BIT_FLAG(jsdval->flags, GOT_PARENT));
|
||||
JS_ASSERT(jsdval->parent->nref > 0);
|
||||
}
|
||||
if(jsdval->ctor)
|
||||
{
|
||||
JS_ASSERT(CHECK_BIT_FLAG(jsdval->flags, GOT_CTOR));
|
||||
JS_ASSERT(jsdval->ctor->nref > 0);
|
||||
}
|
||||
}
|
||||
|
||||
void JSD_ASSERT_VALID_PROPERTY(JSDProperty* jsdprop)
|
||||
{
|
||||
JS_ASSERT(jsdprop);
|
||||
JS_ASSERT(jsdprop->name);
|
||||
JS_ASSERT(jsdprop->name->nref > 0);
|
||||
JS_ASSERT(jsdprop->val);
|
||||
JS_ASSERT(jsdprop->val->nref > 0);
|
||||
if(jsdprop->alias)
|
||||
JS_ASSERT(jsdprop->alias->nref > 0);
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
JSBool
|
||||
jsd_IsValueObject(JSDContext* jsdc, JSDValue* jsdval)
|
||||
{
|
||||
return JSVAL_IS_OBJECT(jsdval->val);
|
||||
}
|
||||
|
||||
JSBool
|
||||
jsd_IsValueNumber(JSDContext* jsdc, JSDValue* jsdval)
|
||||
{
|
||||
return JSVAL_IS_NUMBER(jsdval->val);
|
||||
}
|
||||
|
||||
JSBool
|
||||
jsd_IsValueInt(JSDContext* jsdc, JSDValue* jsdval)
|
||||
{
|
||||
return JSVAL_IS_INT(jsdval->val);
|
||||
}
|
||||
|
||||
JSBool
|
||||
jsd_IsValueDouble(JSDContext* jsdc, JSDValue* jsdval)
|
||||
{
|
||||
return JSVAL_IS_DOUBLE(jsdval->val);
|
||||
}
|
||||
|
||||
JSBool
|
||||
jsd_IsValueString(JSDContext* jsdc, JSDValue* jsdval)
|
||||
{
|
||||
return JSVAL_IS_STRING(jsdval->val);
|
||||
}
|
||||
|
||||
JSBool
|
||||
jsd_IsValueBoolean(JSDContext* jsdc, JSDValue* jsdval)
|
||||
{
|
||||
return JSVAL_IS_BOOLEAN(jsdval->val);
|
||||
}
|
||||
|
||||
JSBool
|
||||
jsd_IsValueNull(JSDContext* jsdc, JSDValue* jsdval)
|
||||
{
|
||||
return JSVAL_IS_NULL(jsdval->val);
|
||||
}
|
||||
|
||||
JSBool
|
||||
jsd_IsValueVoid(JSDContext* jsdc, JSDValue* jsdval)
|
||||
{
|
||||
return JSVAL_IS_VOID(jsdval->val);
|
||||
}
|
||||
|
||||
JSBool
|
||||
jsd_IsValuePrimitive(JSDContext* jsdc, JSDValue* jsdval)
|
||||
{
|
||||
return JSVAL_IS_PRIMITIVE(jsdval->val);
|
||||
}
|
||||
|
||||
JSBool
|
||||
jsd_IsValueFunction(JSDContext* jsdc, JSDValue* jsdval)
|
||||
{
|
||||
return JSVAL_IS_FUNCTION(jsdc->dumbContext, jsdval->val);
|
||||
}
|
||||
|
||||
JSBool
|
||||
jsd_IsValueNative(JSDContext* jsdc, JSDValue* jsdval)
|
||||
{
|
||||
JSContext* cx = jsdc->dumbContext;
|
||||
jsval val = jsdval->val;
|
||||
JSFunction* fun;
|
||||
JSExceptionState* exceptionState;
|
||||
|
||||
if(!JSVAL_IS_OBJECT(val))
|
||||
return JS_FALSE;
|
||||
|
||||
if(JSVAL_IS_FUNCTION(cx, val))
|
||||
{
|
||||
exceptionState = JS_SaveExceptionState(cx);
|
||||
fun = JS_ValueToFunction(cx, val);
|
||||
JS_RestoreExceptionState(cx, exceptionState);
|
||||
if(!fun)
|
||||
{
|
||||
JS_ASSERT(0);
|
||||
return JS_FALSE;
|
||||
}
|
||||
return JS_GetFunctionScript(cx, fun) ? JS_FALSE : JS_TRUE;
|
||||
}
|
||||
return JSVAL_TO_OBJECT(val) && OBJ_IS_NATIVE(JSVAL_TO_OBJECT(val));
|
||||
}
|
||||
|
||||
/***************************************************************************/
|
||||
|
||||
JSBool
|
||||
jsd_GetValueBoolean(JSDContext* jsdc, JSDValue* jsdval)
|
||||
{
|
||||
jsval val = jsdval->val;
|
||||
if(!JSVAL_IS_BOOLEAN(val))
|
||||
return JS_FALSE;
|
||||
return JSVAL_TO_BOOLEAN(val);
|
||||
}
|
||||
|
||||
int32
|
||||
jsd_GetValueInt(JSDContext* jsdc, JSDValue* jsdval)
|
||||
{
|
||||
jsval val = jsdval->val;
|
||||
if(!JSVAL_IS_INT(val))
|
||||
return 0;
|
||||
return JSVAL_TO_INT(val);
|
||||
}
|
||||
|
||||
jsdouble*
|
||||
jsd_GetValueDouble(JSDContext* jsdc, JSDValue* jsdval)
|
||||
{
|
||||
jsval val = jsdval->val;
|
||||
if(!JSVAL_IS_DOUBLE(val))
|
||||
return 0;
|
||||
return JSVAL_TO_DOUBLE(val);
|
||||
}
|
||||
|
||||
JSString*
|
||||
jsd_GetValueString(JSDContext* jsdc, JSDValue* jsdval)
|
||||
{
|
||||
JSContext* cx = jsdc->dumbContext;
|
||||
JSExceptionState* exceptionState;
|
||||
|
||||
if(!jsdval->string)
|
||||
{
|
||||
/* if the jsval is a string, then we don't need to double root it */
|
||||
if(JSVAL_IS_STRING(jsdval->val))
|
||||
jsdval->string = JSVAL_TO_STRING(jsdval->val);
|
||||
else
|
||||
{
|
||||
exceptionState = JS_SaveExceptionState(cx);
|
||||
jsdval->string = JS_ValueToString(cx, jsdval->val);
|
||||
JS_RestoreExceptionState(cx, exceptionState);
|
||||
if(jsdval->string)
|
||||
{
|
||||
if(!JS_AddRoot(cx, &jsdval->string))
|
||||
jsdval->string = NULL;
|
||||
}
|
||||
}
|
||||
}
|
||||
return jsdval->string;
|
||||
}
|
||||
|
||||
const char*
|
||||
jsd_GetValueFunctionName(JSDContext* jsdc, JSDValue* jsdval)
|
||||
{
|
||||
JSContext* cx = jsdc->dumbContext;
|
||||
jsval val = jsdval->val;
|
||||
JSFunction* fun;
|
||||
JSExceptionState* exceptionState;
|
||||
|
||||
if(!jsdval->funName && JSVAL_IS_FUNCTION(cx, val))
|
||||
{
|
||||
exceptionState = JS_SaveExceptionState(cx);
|
||||
fun = JS_ValueToFunction(cx, val);
|
||||
JS_RestoreExceptionState(cx, exceptionState);
|
||||
if(!fun)
|
||||
return NULL;
|
||||
jsdval->funName = JS_GetFunctionName(fun);
|
||||
}
|
||||
return jsdval->funName;
|
||||
}
|
||||
|
||||
/***************************************************************************/
|
||||
|
||||
JSDValue*
|
||||
jsd_NewValue(JSDContext* jsdc, jsval val)
|
||||
{
|
||||
JSDValue* jsdval;
|
||||
|
||||
if(!(jsdval = (JSDValue*) calloc(1, sizeof(JSDValue))))
|
||||
return NULL;
|
||||
|
||||
if(JSVAL_IS_GCTHING(val))
|
||||
{
|
||||
if(!JS_AddRoot(jsdc->dumbContext, &jsdval->val))
|
||||
{
|
||||
free(jsdval);
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
jsdval->val = val;
|
||||
jsdval->nref = 1;
|
||||
JS_INIT_CLIST(&jsdval->props);
|
||||
|
||||
return jsdval;
|
||||
}
|
||||
|
||||
void
|
||||
jsd_DropValue(JSDContext* jsdc, JSDValue* jsdval)
|
||||
{
|
||||
JS_ASSERT(jsdval->nref > 0);
|
||||
if(0 == --jsdval->nref)
|
||||
{
|
||||
jsd_RefreshValue(jsdc, jsdval);
|
||||
if(JSVAL_IS_GCTHING(jsdval->val))
|
||||
JS_RemoveRoot(jsdc->dumbContext, &jsdval->val);
|
||||
free(jsdval);
|
||||
}
|
||||
}
|
||||
|
||||
jsval
|
||||
jsd_GetValueWrappedJSVal(JSDContext* jsdc, JSDValue* jsdval)
|
||||
{
|
||||
return jsdval->val;
|
||||
}
|
||||
|
||||
static JSDProperty* _newProperty(JSDContext* jsdc, JSPropertyDesc* pd,
|
||||
uintN additionalFlags)
|
||||
{
|
||||
JSDProperty* jsdprop;
|
||||
|
||||
if(!(jsdprop = (JSDProperty*) calloc(1, sizeof(JSDProperty))))
|
||||
return NULL;
|
||||
|
||||
JS_INIT_CLIST(&jsdprop->links);
|
||||
jsdprop->nref = 1;
|
||||
jsdprop->flags = pd->flags | additionalFlags;
|
||||
jsdprop->slot = pd->slot;
|
||||
|
||||
if(!(jsdprop->name = jsd_NewValue(jsdc, pd->id)))
|
||||
goto new_prop_fail;
|
||||
|
||||
if(!(jsdprop->val = jsd_NewValue(jsdc, pd->value)))
|
||||
goto new_prop_fail;
|
||||
|
||||
if((jsdprop->flags & JSDPD_ALIAS) &&
|
||||
!(jsdprop->alias = jsd_NewValue(jsdc, pd->alias)))
|
||||
goto new_prop_fail;
|
||||
|
||||
return jsdprop;
|
||||
new_prop_fail:
|
||||
jsd_DropProperty(jsdc, jsdprop);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
static void _freeProps(JSDContext* jsdc, JSDValue* jsdval)
|
||||
{
|
||||
JSDProperty* jsdprop;
|
||||
|
||||
while(jsdprop = (JSDProperty*)jsdval->props.next,
|
||||
jsdprop != (JSDProperty*)&jsdval->props)
|
||||
{
|
||||
JS_REMOVE_AND_INIT_LINK(&jsdprop->links);
|
||||
jsd_DropProperty(jsdc, jsdprop);
|
||||
}
|
||||
JS_ASSERT(JS_CLIST_IS_EMPTY(&jsdval->props));
|
||||
CLEAR_BIT_FLAG(jsdval->flags, GOT_PROPS);
|
||||
}
|
||||
|
||||
static JSBool _buildProps(JSDContext* jsdc, JSDValue* jsdval)
|
||||
{
|
||||
JSContext* cx = jsdc->dumbContext;
|
||||
JSPropertyDescArray pda;
|
||||
uintN i;
|
||||
|
||||
JS_ASSERT(JS_CLIST_IS_EMPTY(&jsdval->props));
|
||||
JS_ASSERT(!(CHECK_BIT_FLAG(jsdval->flags, GOT_PROPS)));
|
||||
JS_ASSERT(JSVAL_IS_OBJECT(jsdval->val));
|
||||
|
||||
if(!JSVAL_IS_OBJECT(jsdval->val) || JSVAL_IS_NULL(jsdval->val))
|
||||
return JS_FALSE;
|
||||
|
||||
if(!JS_GetPropertyDescArray(cx, JSVAL_TO_OBJECT(jsdval->val), &pda))
|
||||
return JS_FALSE;
|
||||
|
||||
for(i = 0; i < pda.length; i++)
|
||||
{
|
||||
JSDProperty* prop = _newProperty(jsdc, &pda.array[i], 0);
|
||||
if(!prop)
|
||||
{
|
||||
_freeProps(jsdc, jsdval);
|
||||
break;
|
||||
}
|
||||
JS_APPEND_LINK(&prop->links, &jsdval->props);
|
||||
}
|
||||
JS_PutPropertyDescArray(cx, &pda);
|
||||
SET_BIT_FLAG(jsdval->flags, GOT_PROPS);
|
||||
return !JS_CLIST_IS_EMPTY(&jsdval->props);
|
||||
}
|
||||
|
||||
#undef DROP_CLEAR_VALUE
|
||||
#define DROP_CLEAR_VALUE(jsdc, x) if(x){jsd_DropValue(jsdc,x); x = NULL;}
|
||||
|
||||
void
|
||||
jsd_RefreshValue(JSDContext* jsdc, JSDValue* jsdval)
|
||||
{
|
||||
JSContext* cx = jsdc->dumbContext;
|
||||
|
||||
if(jsdval->string)
|
||||
{
|
||||
/* if the jsval is a string, then we didn't need to root the string */
|
||||
if(!JSVAL_IS_STRING(jsdval->val))
|
||||
JS_RemoveRoot(cx, &jsdval->string);
|
||||
jsdval->string = NULL;
|
||||
}
|
||||
|
||||
jsdval->funName = NULL;
|
||||
jsdval->className = NULL;
|
||||
DROP_CLEAR_VALUE(jsdc, jsdval->proto);
|
||||
DROP_CLEAR_VALUE(jsdc, jsdval->parent);
|
||||
DROP_CLEAR_VALUE(jsdc, jsdval->ctor);
|
||||
_freeProps(jsdc, jsdval);
|
||||
jsdval->flags = 0;
|
||||
}
|
||||
|
||||
/***************************************************************************/
|
||||
|
||||
uintN
|
||||
jsd_GetCountOfProperties(JSDContext* jsdc, JSDValue* jsdval)
|
||||
{
|
||||
JSDProperty* jsdprop;
|
||||
uintN count = 0;
|
||||
|
||||
if(!(CHECK_BIT_FLAG(jsdval->flags, GOT_PROPS)))
|
||||
if(!_buildProps(jsdc, jsdval))
|
||||
return 0;
|
||||
|
||||
for(jsdprop = (JSDProperty*)jsdval->props.next;
|
||||
jsdprop != (JSDProperty*)&jsdval->props;
|
||||
jsdprop = (JSDProperty*)jsdprop->links.next)
|
||||
{
|
||||
count++;
|
||||
}
|
||||
return count;
|
||||
}
|
||||
|
||||
JSDProperty*
|
||||
jsd_IterateProperties(JSDContext* jsdc, JSDValue* jsdval, JSDProperty **iterp)
|
||||
{
|
||||
JSDProperty* jsdprop = *iterp;
|
||||
if(!(CHECK_BIT_FLAG(jsdval->flags, GOT_PROPS)))
|
||||
{
|
||||
JS_ASSERT(!jsdprop);
|
||||
if(!_buildProps(jsdc, jsdval))
|
||||
return NULL;
|
||||
}
|
||||
|
||||
if(!jsdprop)
|
||||
jsdprop = (JSDProperty*)jsdval->props.next;
|
||||
if(jsdprop == (JSDProperty*)&jsdval->props)
|
||||
return NULL;
|
||||
*iterp = (JSDProperty*)jsdprop->links.next;
|
||||
|
||||
JS_ASSERT(jsdprop);
|
||||
jsdprop->nref++;
|
||||
return jsdprop;
|
||||
}
|
||||
|
||||
JSDProperty*
|
||||
jsd_GetValueProperty(JSDContext* jsdc, JSDValue* jsdval, JSString* name)
|
||||
{
|
||||
JSContext* cx = jsdc->dumbContext;
|
||||
JSDProperty* jsdprop;
|
||||
JSDProperty* iter = NULL;
|
||||
JSObject* obj;
|
||||
uintN attrs = 0;
|
||||
JSBool found;
|
||||
JSPropertyDesc pd;
|
||||
const jschar * nameChars;
|
||||
size_t nameLen;
|
||||
jsval val;
|
||||
|
||||
if(!jsd_IsValueObject(jsdc, jsdval))
|
||||
return NULL;
|
||||
|
||||
/* If we already have the prop, then return it */
|
||||
while(NULL != (jsdprop = jsd_IterateProperties(jsdc, jsdval, &iter)))
|
||||
{
|
||||
JSString* propName = jsd_GetValueString(jsdc, jsdprop->name);
|
||||
if(propName && !JS_CompareStrings(propName, name))
|
||||
return jsdprop;
|
||||
JSD_DropProperty(jsdc, jsdprop);
|
||||
}
|
||||
/* Not found in property list, look it up explicitly */
|
||||
|
||||
if(!(obj = JSVAL_TO_OBJECT(jsdval->val)))
|
||||
return NULL;
|
||||
|
||||
nameChars = JS_GetStringChars(name);
|
||||
nameLen = JS_GetStringLength(name);
|
||||
|
||||
/* It's OK if this fails - we just don't get attribs */
|
||||
JS_GetUCPropertyAttributes(cx, obj, nameChars, nameLen, &attrs, &found);
|
||||
|
||||
if(!JS_GetUCProperty(cx, obj, nameChars, nameLen, &val))
|
||||
return NULL;
|
||||
|
||||
/* XXX screwy! no good way to detect that property does not exist at all */
|
||||
if(!found && JSVAL_IS_VOID(val))
|
||||
return NULL;
|
||||
|
||||
pd.id = STRING_TO_JSVAL(name);
|
||||
pd.value = val;
|
||||
pd.alias = pd.slot = pd.spare = 0;
|
||||
pd.flags = 0
|
||||
| (attrs & JSPROP_ENUMERATE) ? JSPD_ENUMERATE : 0
|
||||
| (attrs & JSPROP_READONLY) ? JSPD_READONLY : 0
|
||||
| (attrs & JSPROP_PERMANENT) ? JSPD_PERMANENT : 0;
|
||||
|
||||
return _newProperty(jsdc, &pd, JSDPD_HINTED);
|
||||
}
|
||||
|
||||
|
||||
JSDValue*
|
||||
jsd_GetValuePrototype(JSDContext* jsdc, JSDValue* jsdval)
|
||||
{
|
||||
if(!(CHECK_BIT_FLAG(jsdval->flags, GOT_PROTO)))
|
||||
{
|
||||
JSObject* obj;
|
||||
JSObject* proto;
|
||||
JS_ASSERT(!jsdval->proto);
|
||||
SET_BIT_FLAG(jsdval->flags, GOT_PROTO);
|
||||
if(!JSVAL_IS_OBJECT(jsdval->val))
|
||||
return NULL;
|
||||
if(!(obj = JSVAL_TO_OBJECT(jsdval->val)))
|
||||
return NULL;
|
||||
if(!(proto = OBJ_GET_PROTO(jsdc->dumbContext,obj)))
|
||||
return NULL;
|
||||
jsdval->proto = jsd_NewValue(jsdc, OBJECT_TO_JSVAL(proto));
|
||||
}
|
||||
if(jsdval->proto)
|
||||
jsdval->proto->nref++;
|
||||
return jsdval->proto;
|
||||
}
|
||||
|
||||
JSDValue*
|
||||
jsd_GetValueParent(JSDContext* jsdc, JSDValue* jsdval)
|
||||
{
|
||||
if(!(CHECK_BIT_FLAG(jsdval->flags, GOT_PARENT)))
|
||||
{
|
||||
JSObject* obj;
|
||||
JSObject* parent;
|
||||
JS_ASSERT(!jsdval->parent);
|
||||
SET_BIT_FLAG(jsdval->flags, GOT_PARENT);
|
||||
if(!JSVAL_IS_OBJECT(jsdval->val))
|
||||
return NULL;
|
||||
if(!(obj = JSVAL_TO_OBJECT(jsdval->val)))
|
||||
return NULL;
|
||||
if(!(parent = OBJ_GET_PARENT(jsdc->dumbContext,obj)))
|
||||
return NULL;
|
||||
jsdval->parent = jsd_NewValue(jsdc, OBJECT_TO_JSVAL(parent));
|
||||
}
|
||||
if(jsdval->parent)
|
||||
jsdval->parent->nref++;
|
||||
return jsdval->parent;
|
||||
}
|
||||
|
||||
JSDValue*
|
||||
jsd_GetValueConstructor(JSDContext* jsdc, JSDValue* jsdval)
|
||||
{
|
||||
if(!(CHECK_BIT_FLAG(jsdval->flags, GOT_CTOR)))
|
||||
{
|
||||
JSObject* obj;
|
||||
JSObject* proto;
|
||||
JSObject* ctor;
|
||||
JS_ASSERT(!jsdval->ctor);
|
||||
SET_BIT_FLAG(jsdval->flags, GOT_CTOR);
|
||||
if(!JSVAL_IS_OBJECT(jsdval->val))
|
||||
return NULL;
|
||||
if(!(obj = JSVAL_TO_OBJECT(jsdval->val)))
|
||||
return NULL;
|
||||
if(!(proto = OBJ_GET_PROTO(jsdc->dumbContext,obj)))
|
||||
return NULL;
|
||||
if(!(ctor = JS_GetConstructor(jsdc->dumbContext,proto)))
|
||||
return NULL;
|
||||
jsdval->ctor = jsd_NewValue(jsdc, OBJECT_TO_JSVAL(ctor));
|
||||
}
|
||||
if(jsdval->ctor)
|
||||
jsdval->ctor->nref++;
|
||||
return jsdval->ctor;
|
||||
}
|
||||
|
||||
const char*
|
||||
jsd_GetValueClassName(JSDContext* jsdc, JSDValue* jsdval)
|
||||
{
|
||||
jsval val = jsdval->val;
|
||||
if(!jsdval->className && JSVAL_IS_OBJECT(val))
|
||||
{
|
||||
JSObject* obj;
|
||||
if(!(obj = JSVAL_TO_OBJECT(val)))
|
||||
return NULL;
|
||||
if(OBJ_GET_CLASS(jsdc->dumbContext, obj))
|
||||
jsdval->className = OBJ_GET_CLASS(jsdc->dumbContext, obj)->name;
|
||||
}
|
||||
return jsdval->className;
|
||||
}
|
||||
|
||||
/***************************************************************************/
|
||||
/***************************************************************************/
|
||||
|
||||
JSDValue*
|
||||
jsd_GetPropertyName(JSDContext* jsdc, JSDProperty* jsdprop)
|
||||
{
|
||||
jsdprop->name->nref++;
|
||||
return jsdprop->name;
|
||||
}
|
||||
|
||||
JSDValue*
|
||||
jsd_GetPropertyValue(JSDContext* jsdc, JSDProperty* jsdprop)
|
||||
{
|
||||
jsdprop->val->nref++;
|
||||
return jsdprop->val;
|
||||
}
|
||||
|
||||
JSDValue*
|
||||
jsd_GetPropertyAlias(JSDContext* jsdc, JSDProperty* jsdprop)
|
||||
{
|
||||
if(jsdprop->alias)
|
||||
jsdprop->alias->nref++;
|
||||
return jsdprop->alias;
|
||||
}
|
||||
|
||||
JSDPropertyFlags
|
||||
jsd_GetPropertyFlags(JSDContext* jsdc, JSDProperty* jsdprop)
|
||||
{
|
||||
return jsdprop->flags;
|
||||
}
|
||||
|
||||
uintN
|
||||
jsd_GetPropertyVarArgSlot(JSDContext* jsdc, JSDProperty* jsdprop)
|
||||
{
|
||||
return jsdprop->slot;
|
||||
}
|
||||
|
||||
void
|
||||
jsd_DropProperty(JSDContext* jsdc, JSDProperty* jsdprop)
|
||||
{
|
||||
JS_ASSERT(jsdprop->nref > 0);
|
||||
if(0 == --jsdprop->nref)
|
||||
{
|
||||
JS_ASSERT(JS_CLIST_IS_EMPTY(&jsdprop->links));
|
||||
DROP_CLEAR_VALUE(jsdc, jsdprop->val);
|
||||
DROP_CLEAR_VALUE(jsdc, jsdprop->name);
|
||||
DROP_CLEAR_VALUE(jsdc, jsdprop->alias);
|
||||
free(jsdprop);
|
||||
}
|
||||
}
|
||||
12
mozilla/js/jsd/jsdb/README
Normal file
12
mozilla/js/jsd/jsdb/README
Normal file
@@ -0,0 +1,12 @@
|
||||
/* jband - 10/26/98 - */
|
||||
|
||||
js/jsd/jsdb is a console debugger using only native code. It is experimental.
|
||||
The only makefile supplied is for Win32.
|
||||
|
||||
jsdb.mak will build a debugger enabled js/src/js.c shell. The debugger is
|
||||
implemented by reflecting the JSD api into JavaScript. The actual debugger
|
||||
logic is fully implemented in debugger.js. The debugger can debug itself. It
|
||||
can also be modified and reloaded at runtime.
|
||||
|
||||
The JavaScript keyword 'debugger' is used to break into the debugger. A 'help()'
|
||||
command is supplied to show available commands when exectution is stopped.
|
||||
1017
mozilla/js/jsd/jsdb/debugger.js
Normal file
1017
mozilla/js/jsd/jsdb/debugger.js
Normal file
File diff suppressed because it is too large
Load Diff
46
mozilla/js/jsd/jsdb/f.js
Normal file
46
mozilla/js/jsd/jsdb/f.js
Normal file
@@ -0,0 +1,46 @@
|
||||
|
||||
/**
|
||||
* for(var p in Script.scripts) {
|
||||
*
|
||||
* var script = Script.scripts[p];
|
||||
* var handle = script.handle;
|
||||
* var base = script.base;
|
||||
* var limit = base + script.extent;
|
||||
*
|
||||
* print(script+"\n");
|
||||
*
|
||||
* for(var i = base; i < limit; i++) {
|
||||
* var pc = jsd.GetClosestPC(handle,i)
|
||||
* var hascode = String(pc).length && i == jsd.GetClosestLine(handle,pc);
|
||||
* print("line "+i+" "+ (hascode ? "has code" : "has NO code"));
|
||||
* }
|
||||
* print("...............................\n");
|
||||
* }
|
||||
*/
|
||||
|
||||
function rlocals()
|
||||
{
|
||||
var retval = "";
|
||||
var name = "___UNIQUE_NAME__";
|
||||
var fun = ""+
|
||||
"var text = \\\"\\\";"+
|
||||
"for(var p in ob)"+
|
||||
"{"+
|
||||
" if(text != \\\"\\\")"+
|
||||
" text += \\\",\\\";"+
|
||||
" text += p;"+
|
||||
"}"+
|
||||
"return text;";
|
||||
|
||||
reval(name+" = new Function(\"ob\",\""+fun+"\")");
|
||||
// show(name);
|
||||
retval = _reval([name+"("+"arguments.callee"+")"]);
|
||||
reval("delete "+name);
|
||||
|
||||
return retval;
|
||||
}
|
||||
|
||||
function e(a)
|
||||
{
|
||||
return eval(a);
|
||||
}
|
||||
449
mozilla/js/jsd/jsdb/jsdb.c
Normal file
449
mozilla/js/jsd/jsdb/jsdb.c
Normal file
@@ -0,0 +1,449 @@
|
||||
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
|
||||
*
|
||||
* The contents of this file are subject to the Netscape Public License
|
||||
* Version 1.0 (the "NPL"); you may not use this file except in
|
||||
* compliance with the NPL. You may obtain a copy of the NPL at
|
||||
* http://www.mozilla.org/NPL/
|
||||
*
|
||||
* Software distributed under the NPL is distributed on an "AS IS" basis,
|
||||
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
|
||||
* for the specific language governing rights and limitations under the
|
||||
* NPL.
|
||||
*
|
||||
* The Initial Developer of this code under the NPL is Netscape
|
||||
* Communications Corporation. Portions created by Netscape are
|
||||
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
|
||||
* Reserved.
|
||||
*/
|
||||
|
||||
/*
|
||||
* JSDB public and callback functions
|
||||
*/
|
||||
|
||||
#include "jsdbpriv.h"
|
||||
|
||||
|
||||
/***************************************************************************/
|
||||
|
||||
JS_STATIC_DLL_CALLBACK(void)
|
||||
_ErrorReporter(JSContext *cx, const char *message, JSErrorReport *report)
|
||||
{
|
||||
int i, j, k, n;
|
||||
|
||||
fputs("jsdb: ", stderr);
|
||||
if (!report) {
|
||||
fprintf(stderr, "%s\n", message);
|
||||
return;
|
||||
}
|
||||
|
||||
if (report->filename)
|
||||
fprintf(stderr, "%s, ", report->filename);
|
||||
if (report->lineno)
|
||||
fprintf(stderr, "line %u: ", report->lineno);
|
||||
fputs(message, stderr);
|
||||
if (!report->linebuf) {
|
||||
putc('\n', stderr);
|
||||
return;
|
||||
}
|
||||
|
||||
fprintf(stderr, ":\n%s\n", report->linebuf);
|
||||
n = report->tokenptr - report->linebuf;
|
||||
for (i = j = 0; i < n; i++) {
|
||||
if (report->linebuf[i] == '\t') {
|
||||
for (k = (j + 8) & ~7; j < k; j++)
|
||||
putc('.', stderr);
|
||||
continue;
|
||||
}
|
||||
putc('.', stderr);
|
||||
j++;
|
||||
}
|
||||
fputs("^\n", stderr);
|
||||
}
|
||||
|
||||
JS_STATIC_DLL_CALLBACK(void)
|
||||
jsdb_ScriptHookProc(JSDContext* jsdc,
|
||||
JSDScript* jsdscript,
|
||||
JSBool creating,
|
||||
void* callerdata)
|
||||
{
|
||||
JSDB_Data* data = (JSDB_Data*) callerdata;
|
||||
JSFunction* fun;
|
||||
|
||||
if(data->jsScriptHook &&
|
||||
NULL != (fun = JS_ValueToFunction(data->cxDebugger, data->jsScriptHook)))
|
||||
{
|
||||
jsval result;
|
||||
jsval args[2] = {P2H_SCRIPT(data->cxDebugger, jsdscript),
|
||||
creating ? JSVAL_TRUE : JSVAL_FALSE };
|
||||
JS_CallFunction(data->cxDebugger, NULL, fun, 2, args, &result);
|
||||
}
|
||||
}
|
||||
|
||||
uintN JS_DLL_CALLBACK
|
||||
jsdb_ExecHookHandler(JSDContext* jsdc,
|
||||
JSDThreadState* jsdthreadstate,
|
||||
uintN type,
|
||||
void* callerdata,
|
||||
jsval* rval)
|
||||
{
|
||||
uintN ourRetVal = JSD_HOOK_RETURN_CONTINUE;
|
||||
jsval result;
|
||||
JSFunction* fun;
|
||||
int answer;
|
||||
JSDB_Data* data = (JSDB_Data*) callerdata;
|
||||
JS_ASSERT(data);
|
||||
|
||||
/* if we're already stopped, then don't stop */
|
||||
if(data->jsdthreadstate)
|
||||
return JSD_HOOK_RETURN_CONTINUE;
|
||||
|
||||
if(!jsdb_SetThreadState(data, jsdthreadstate))
|
||||
goto label_bail;
|
||||
|
||||
if(data->jsExecutionHook &&
|
||||
NULL != (fun = JS_ValueToFunction(data->cxDebugger, data->jsExecutionHook)))
|
||||
{
|
||||
jsval arg = INT_TO_JSVAL((int)type);
|
||||
if(!JS_CallFunction(data->cxDebugger, NULL, fun, 1, &arg, &result))
|
||||
goto label_bail;
|
||||
if(!JSVAL_IS_INT(result))
|
||||
goto label_bail;
|
||||
answer = JSVAL_TO_INT(result);
|
||||
|
||||
|
||||
if((answer == JSD_HOOK_RETURN_RET_WITH_VAL ||
|
||||
answer == JSD_HOOK_RETURN_THROW_WITH_VAL) &&
|
||||
!jsdb_EvalReturnExpression(data, rval))
|
||||
{
|
||||
goto label_bail;
|
||||
}
|
||||
|
||||
if(answer >= JSD_HOOK_RETURN_HOOK_ERROR &&
|
||||
answer <= JSD_HOOK_RETURN_CONTINUE_THROW)
|
||||
ourRetVal = answer;
|
||||
else
|
||||
ourRetVal = JSD_HOOK_RETURN_CONTINUE;
|
||||
}
|
||||
|
||||
label_bail:
|
||||
jsdb_SetThreadState(data, NULL);
|
||||
return ourRetVal;
|
||||
}
|
||||
|
||||
typedef enum
|
||||
{
|
||||
ARG_MSG = 0,
|
||||
ARG_FILENAME,
|
||||
ARG_LINENO,
|
||||
ARG_LINEBUF,
|
||||
ARG_TOKEN_OFFSET,
|
||||
ARG_LIMIT
|
||||
} ER_ARGS;
|
||||
|
||||
uintN JS_DLL_CALLBACK
|
||||
jsdb_ErrorReporter(JSDContext* jsdc,
|
||||
JSContext* cx,
|
||||
const char* message,
|
||||
JSErrorReport* report,
|
||||
void* callerdata)
|
||||
{
|
||||
uintN ourRetVal = JSD_ERROR_REPORTER_PASS_ALONG;
|
||||
jsval result;
|
||||
JSFunction* fun;
|
||||
int32 answer;
|
||||
JSDB_Data* data = (JSDB_Data*) callerdata;
|
||||
JS_ASSERT(data);
|
||||
|
||||
if(data->jsErrorReporterHook &&
|
||||
NULL != (fun = JS_ValueToFunction(data->cxDebugger,
|
||||
data->jsErrorReporterHook)))
|
||||
{
|
||||
jsval args[ARG_LIMIT] = {JSVAL_NULL};
|
||||
|
||||
if(message)
|
||||
args[ARG_MSG] =
|
||||
STRING_TO_JSVAL(JS_NewStringCopyZ(cx, message));
|
||||
if(report && report->filename)
|
||||
args[ARG_FILENAME] =
|
||||
STRING_TO_JSVAL(JS_NewStringCopyZ(cx, report->filename));
|
||||
if(report && report->linebuf)
|
||||
args[ARG_LINEBUF] =
|
||||
STRING_TO_JSVAL(JS_NewStringCopyZ(cx, report->linebuf));
|
||||
if(report)
|
||||
args[ARG_LINENO] =
|
||||
INT_TO_JSVAL(report->lineno);
|
||||
if(report && report->linebuf && report->tokenptr)
|
||||
args[ARG_TOKEN_OFFSET] =
|
||||
INT_TO_JSVAL((int)(report->tokenptr - report->linebuf));
|
||||
|
||||
if(!JS_CallFunction(data->cxDebugger, NULL, fun, ARG_LIMIT, args, &result))
|
||||
return ourRetVal;
|
||||
|
||||
if(JS_ValueToInt32(data->cxDebugger, result, &answer))
|
||||
ourRetVal = (uintN) answer;
|
||||
}
|
||||
return ourRetVal;
|
||||
}
|
||||
|
||||
JS_STATIC_DLL_CALLBACK(JSBool)
|
||||
Load(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, jsval *rval)
|
||||
{
|
||||
uintN i;
|
||||
JSString *str;
|
||||
const char *filename;
|
||||
JSScript *script;
|
||||
JSBool ok;
|
||||
jsval result;
|
||||
|
||||
ok = JS_TRUE;
|
||||
for (i = 0; i < argc; i++) {
|
||||
str = JS_ValueToString(cx, argv[i]);
|
||||
if (!str) {
|
||||
ok = JS_FALSE;
|
||||
break;
|
||||
}
|
||||
argv[i] = STRING_TO_JSVAL(str);
|
||||
filename = JS_GetStringBytes(str);
|
||||
errno = 0;
|
||||
script = JS_CompileFile(cx, obj, filename);
|
||||
if (!script)
|
||||
continue;
|
||||
ok = JS_ExecuteScript(cx, obj, script, &result);
|
||||
JS_DestroyScript(cx, script);
|
||||
if (!ok)
|
||||
break;
|
||||
}
|
||||
JS_GC(cx);
|
||||
*rval = STRING_TO_JSVAL(JS_NewStringCopyZ(cx,""));
|
||||
return ok;
|
||||
}
|
||||
|
||||
JS_STATIC_DLL_CALLBACK(JSBool)
|
||||
Write(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, jsval *rval)
|
||||
{
|
||||
JSString *str = JS_ValueToString(cx, argv[0]);
|
||||
if (!str)
|
||||
return JS_FALSE;
|
||||
printf(JS_GetStringBytes(str));
|
||||
*rval = STRING_TO_JSVAL(JS_NewStringCopyZ(cx,""));
|
||||
return JS_TRUE;
|
||||
}
|
||||
|
||||
JS_STATIC_DLL_CALLBACK(JSBool)
|
||||
Gets(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, jsval *rval)
|
||||
{
|
||||
char buf[1024];
|
||||
if(! gets(buf))
|
||||
return JS_FALSE;
|
||||
*rval = STRING_TO_JSVAL(JS_NewStringCopyZ(cx, buf));
|
||||
return JS_TRUE;
|
||||
}
|
||||
|
||||
JS_STATIC_DLL_CALLBACK(JSBool)
|
||||
Version(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, jsval *rval)
|
||||
{
|
||||
if (argc > 0 && JSVAL_IS_INT(argv[0]))
|
||||
*rval = INT_TO_JSVAL(JS_SetVersion(cx, JSVAL_TO_INT(argv[0])));
|
||||
else
|
||||
*rval = INT_TO_JSVAL(JS_GetVersion(cx));
|
||||
return JS_TRUE;
|
||||
}
|
||||
|
||||
|
||||
JS_STATIC_DLL_CALLBACK(JSBool)
|
||||
SafeEval(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, jsval *rval)
|
||||
{
|
||||
static char default_filename[] = "jsdb_eval";
|
||||
/* JSContext *cx2; */
|
||||
JSString* textJSString;
|
||||
char* filename;
|
||||
int32 lineno;
|
||||
JSDB_Data* data = (JSDB_Data*) JS_GetContextPrivate(cx);
|
||||
JS_ASSERT(data);
|
||||
|
||||
if(argc < 1 || !(textJSString = JS_ValueToString(cx, argv[0])))
|
||||
{
|
||||
JS_ReportError(cx, "safeEval requires source text as a first argument");
|
||||
return JS_FALSE;
|
||||
}
|
||||
|
||||
if(argc < 2)
|
||||
filename = default_filename;
|
||||
else
|
||||
{
|
||||
JSString* filenameJSString;
|
||||
if(!(filenameJSString = JS_ValueToString(cx, argv[1])))
|
||||
{
|
||||
JS_ReportError(cx, "safeEval passed non-string filename as 2nd param");
|
||||
return JS_FALSE;
|
||||
}
|
||||
filename = JS_GetStringBytes(filenameJSString);
|
||||
}
|
||||
|
||||
if(argc < 3)
|
||||
lineno = 1;
|
||||
else
|
||||
{
|
||||
if(!JS_ValueToInt32(cx, argv[2], &lineno))
|
||||
{
|
||||
JS_ReportError(cx, "safeEval passed non-int lineno as 3rd param");
|
||||
return JS_FALSE;
|
||||
}
|
||||
}
|
||||
|
||||
if(! JS_EvaluateScript(cx, obj,
|
||||
JS_GetStringBytes(textJSString),
|
||||
JS_GetStringLength(textJSString),
|
||||
filename, lineno, rval))
|
||||
*rval = STRING_TO_JSVAL(JS_NewStringCopyZ(cx,""));
|
||||
|
||||
return JS_TRUE;
|
||||
}
|
||||
|
||||
JS_STATIC_DLL_CALLBACK(JSBool)
|
||||
NativeBreak(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, jsval *rval)
|
||||
{
|
||||
#ifdef _WINDOWS
|
||||
_asm int 3;
|
||||
*rval = STRING_TO_JSVAL(JS_NewStringCopyZ(cx,"did _asm int 3;"));
|
||||
#else
|
||||
*rval = STRING_TO_JSVAL(JS_NewStringCopyZ(cx,"only supported for Windows"));
|
||||
#endif
|
||||
return JS_TRUE;
|
||||
}
|
||||
|
||||
static JSFunctionSpec debugger_functions[] = {
|
||||
{"version", Version, 0},
|
||||
{"load", Load, 1},
|
||||
{"write", Write, 0},
|
||||
{"gets", Gets, 0},
|
||||
{"safeEval", SafeEval, 3},
|
||||
{"nativeBreak", NativeBreak, 0},
|
||||
{0}
|
||||
};
|
||||
|
||||
static JSClass debugger_global_class = {
|
||||
"debugger_global", 0,
|
||||
JS_PropertyStub, JS_PropertyStub, JS_PropertyStub, JS_PropertyStub,
|
||||
JS_EnumerateStub, JS_ResolveStub, JS_ConvertStub, JS_FinalizeStub
|
||||
};
|
||||
|
||||
/***************************************************************************/
|
||||
|
||||
#ifdef JSD_LOWLEVEL_SOURCE
|
||||
/*
|
||||
* This facilitates sending source to JSD (the debugger system) in the shell
|
||||
* where the source is loaded using the JSFILE hack in jsscan. The function
|
||||
* below is used as a callback for the jsdbgapi JS_SetSourceHandler hook.
|
||||
* A more normal embedding (e.g. mozilla) loads source itself and can send
|
||||
* source directly to JSD without using this hook scheme.
|
||||
*/
|
||||
static void
|
||||
SendSourceToJSDebugger(const char *filename, uintN lineno,
|
||||
jschar *str, size_t length,
|
||||
void **listenerTSData, JSDContext* jsdc)
|
||||
{
|
||||
JSDSourceText *jsdsrc = (JSDSourceText *) *listenerTSData;
|
||||
|
||||
if (!jsdsrc) {
|
||||
if (!filename)
|
||||
filename = "typein";
|
||||
if (1 == lineno) {
|
||||
jsdsrc = JSD_NewSourceText(jsdc, filename);
|
||||
} else {
|
||||
jsdsrc = JSD_FindSourceForURL(jsdc, filename);
|
||||
if (jsdsrc && JSD_SOURCE_PARTIAL !=
|
||||
JSD_GetSourceStatus(jsdc, jsdsrc)) {
|
||||
jsdsrc = NULL;
|
||||
}
|
||||
}
|
||||
}
|
||||
if (jsdsrc) {
|
||||
jsdsrc = JSD_AppendUCSourceText(jsdc,jsdsrc, str, length,
|
||||
JSD_SOURCE_PARTIAL);
|
||||
}
|
||||
*listenerTSData = jsdsrc;
|
||||
}
|
||||
#endif /* JSD_LOWLEVEL_SOURCE */
|
||||
|
||||
static JSBool
|
||||
_initReturn(const char* str, JSBool retval)
|
||||
{
|
||||
if(str)
|
||||
printf("%s\n", str);
|
||||
if(retval)
|
||||
; /* printf("debugger initialized\n"); */
|
||||
else
|
||||
{
|
||||
JS_ASSERT(0);
|
||||
printf("debugger FAILED to initialize\n");
|
||||
}
|
||||
return retval;
|
||||
}
|
||||
|
||||
#define MAX_DEBUGGER_DEPTH 3
|
||||
|
||||
JS_EXPORT_API(JSBool)
|
||||
JSDB_InitDebugger(JSRuntime* rt, JSDContext* jsdc, int depth)
|
||||
{
|
||||
jsval rvalIgnore;
|
||||
static char load_deb[] = "load('debugger.js')";
|
||||
|
||||
JSDB_Data* data = (JSDB_Data*) calloc(1, sizeof(JSDB_Data));
|
||||
if(!data)
|
||||
return _initReturn("memory alloc error", JS_FALSE);
|
||||
|
||||
data->rtTarget = rt;
|
||||
data->jsdcTarget = jsdc;
|
||||
data->debuggerDepth = depth+1;
|
||||
|
||||
if(!(data->rtDebugger = JS_NewRuntime(8L * 1024L * 1024L)))
|
||||
return _initReturn("debugger runtime creation error", JS_FALSE);
|
||||
|
||||
if(!(data->cxDebugger = JS_NewContext(data->rtDebugger, 8192)))
|
||||
return _initReturn("debugger creation error", JS_FALSE);
|
||||
|
||||
JS_SetContextPrivate(data->cxDebugger, data);
|
||||
|
||||
JS_SetErrorReporter(data->cxDebugger, _ErrorReporter);
|
||||
|
||||
if(!(data->globDebugger =
|
||||
JS_NewObject(data->cxDebugger, &debugger_global_class, NULL, NULL)))
|
||||
return _initReturn("debugger global object creation error", JS_FALSE);
|
||||
|
||||
if(!JS_InitStandardClasses(data->cxDebugger, data->globDebugger))
|
||||
return _initReturn("debugger InitStandardClasses error", JS_FALSE);
|
||||
|
||||
if(!JS_DefineFunctions(data->cxDebugger, data->globDebugger, debugger_functions))
|
||||
return _initReturn("debugger DefineFunctions error", JS_FALSE);
|
||||
|
||||
if(!jsdb_ReflectJSD(data))
|
||||
return _initReturn("debugger reflection of JSD API error", JS_FALSE);
|
||||
|
||||
if(data->debuggerDepth < MAX_DEBUGGER_DEPTH)
|
||||
{
|
||||
JSDContext* jsdc;
|
||||
if(!(jsdc = JSD_DebuggerOnForUser(data->rtDebugger, NULL, NULL)))
|
||||
return _initReturn("failed to create jsdc for nested debugger", JS_FALSE);
|
||||
JSD_JSContextInUse(jsdc, data->cxDebugger);
|
||||
if(!JSDB_InitDebugger(data->rtDebugger, jsdc, data->debuggerDepth))
|
||||
return _initReturn("failed to init nested debugger", JS_FALSE);
|
||||
}
|
||||
|
||||
JSD_SetScriptHook(jsdc, jsdb_ScriptHookProc, data);
|
||||
JSD_SetDebuggerHook(jsdc, jsdb_ExecHookHandler, data);
|
||||
JSD_SetThrowHook(jsdc, jsdb_ExecHookHandler, data);
|
||||
JSD_SetDebugBreakHook(jsdc, jsdb_ExecHookHandler, data);
|
||||
JSD_SetErrorReporter(jsdc, jsdb_ErrorReporter, data);
|
||||
|
||||
#ifdef JSD_LOWLEVEL_SOURCE
|
||||
JS_SetSourceHandler(data->rtDebugger, SendSourceToJSDebugger, jsdc);
|
||||
#endif /* JSD_LOWLEVEL_SOURCE */
|
||||
|
||||
JS_EvaluateScript(data->cxDebugger, data->globDebugger,
|
||||
load_deb, sizeof(load_deb)-1, "jsdb_autoload", 1,
|
||||
&rvalIgnore);
|
||||
|
||||
return _initReturn(NULL, JS_TRUE);
|
||||
}
|
||||
|
||||
50
mozilla/js/jsd/jsdb/jsdb.h
Normal file
50
mozilla/js/jsd/jsdb/jsdb.h
Normal file
@@ -0,0 +1,50 @@
|
||||
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
|
||||
*
|
||||
* The contents of this file are subject to the Netscape Public License
|
||||
* Version 1.0 (the "NPL"); you may not use this file except in
|
||||
* compliance with the NPL. You may obtain a copy of the NPL at
|
||||
* http://www.mozilla.org/NPL/
|
||||
*
|
||||
* Software distributed under the NPL is distributed on an "AS IS" basis,
|
||||
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
|
||||
* for the specific language governing rights and limitations under the
|
||||
* NPL.
|
||||
*
|
||||
* The Initial Developer of this code under the NPL is Netscape
|
||||
* Communications Corporation. Portions created by Netscape are
|
||||
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
|
||||
* Reserved.
|
||||
*/
|
||||
|
||||
/*
|
||||
* Public headers for JSDB
|
||||
*/
|
||||
|
||||
#ifndef jsdb_h___
|
||||
#define jsdb_h___
|
||||
|
||||
/* Get jstypes.h included first. After that we can use PR macros for doing
|
||||
* this extern "C" stuff!
|
||||
*/
|
||||
#ifdef __cplusplus
|
||||
extern "C"
|
||||
{
|
||||
#endif
|
||||
#include "jstypes.h"
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
JS_BEGIN_EXTERN_C
|
||||
#include "jsapi.h"
|
||||
#include "jsdebug.h"
|
||||
JS_END_EXTERN_C
|
||||
|
||||
JS_BEGIN_EXTERN_C
|
||||
|
||||
extern JS_EXPORT_API(JSBool)
|
||||
JSDB_InitDebugger(JSRuntime* rt, JSDContext* jsdc, int depth);
|
||||
|
||||
JS_END_EXTERN_C
|
||||
|
||||
#endif /* jsdb_h___ */
|
||||
102
mozilla/js/jsd/jsdb/jsdb.mak
Normal file
102
mozilla/js/jsd/jsdb/jsdb.mak
Normal file
@@ -0,0 +1,102 @@
|
||||
|
||||
PROJ = jsdb
|
||||
JSDB = .
|
||||
JSD = $(JSDB)\..
|
||||
JSSRC = $(JSD)\..\src
|
||||
|
||||
!IF "$(BUILD_OPT)" != ""
|
||||
OBJ = Release
|
||||
CC_FLAGS = /DNDEBUG
|
||||
!ELSE
|
||||
OBJ = Debug
|
||||
CC_FLAGS = /DDEBUG
|
||||
LINK_FLAGS = /DEBUG
|
||||
!ENDIF
|
||||
|
||||
CFLAGS = /nologo /MDd /W3 /Gm /GX /Zi /Od\
|
||||
/I $(JSSRC)\
|
||||
/I $(JSD)\
|
||||
/I $(JSDB)\
|
||||
$(CC_FLAGS)\
|
||||
/DWIN32 /DXP_PC /D_WINDOWS /D_WIN32\
|
||||
/DJSDEBUGGER\
|
||||
/DJSDEBUGGER_C_UI\
|
||||
/DJSD_LOWLEVEL_SOURCE\
|
||||
/DJSFILE\
|
||||
/c /Fp$(OBJ)\$(PROJ).pch /Fd$(OBJ)\$(PROJ).pdb /YX -Fo$@ $<
|
||||
|
||||
LFLAGS = /nologo /subsystem:console /incremental:no /machine:I386 $(LINK_FLAGS)\
|
||||
/pdb:$(OBJ)\$(PROJ).pdb -out:$(OBJ)\$(PROJ).exe
|
||||
|
||||
LLIBS = kernel32.lib advapi32.lib $(JSSRC)\$(OBJ)\js32.lib $(JSD)\$(OBJ)\jsd.lib
|
||||
|
||||
CPP=cl.exe
|
||||
LINK32=link.exe
|
||||
|
||||
all: $(OBJ) dlls $(OBJ)\$(PROJ).exe $(OBJ)\debugger.js
|
||||
|
||||
|
||||
HEADERS = $(JSDB)\jsdb.h \
|
||||
$(JSDB)\jsdbpriv.h
|
||||
|
||||
|
||||
OBJECTS = $(OBJ)\js.obj \
|
||||
$(OBJ)\jsdb.obj \
|
||||
$(OBJ)\jsdrefl.obj
|
||||
|
||||
|
||||
$(OBJECTS) : $(HEADERS)
|
||||
|
||||
|
||||
$(OBJ)\$(PROJ).exe: $(OBJECTS)
|
||||
$(LINK32) $(LFLAGS) $** $(LLIBS)
|
||||
|
||||
.c{$(OBJ)}.obj:
|
||||
$(CPP) $(CFLAGS)
|
||||
|
||||
{$(JSSRC)}.c.obj:
|
||||
$(CPP) $(CFLAGS)
|
||||
|
||||
$(OBJ) :
|
||||
mkdir $(OBJ)
|
||||
|
||||
$(OBJ)\js32.dll :
|
||||
@cd ..\..\src
|
||||
@nmake -f js.mak CFG="js - Win32 Debug"
|
||||
@cd ..\jsd\jsdb
|
||||
@echo Copying dll from js/src
|
||||
@copy $(JSSRC)\$(OBJ)\js32.dll $(OBJ) >NUL
|
||||
@copy $(JSSRC)\$(OBJ)\js32.pdb $(OBJ) >NUL
|
||||
|
||||
$(OBJ)\jsd.dll :
|
||||
@cd ..
|
||||
@nmake -f jsd.mak JSD_THREADSAFE=1
|
||||
@cd jsdb
|
||||
@echo Copying dll from js/jsd
|
||||
@copy $(JSD)\$(OBJ)\jsd.dll $(OBJ) >NUL
|
||||
@copy $(JSD)\$(OBJ)\jsd.pdb $(OBJ) >NUL
|
||||
|
||||
dlls : $(OBJ)\js32.dll $(OBJ)\jsd.dll
|
||||
|
||||
$(OBJ)\debugger.js: *.js
|
||||
@echo Copying *.js
|
||||
@copy *.js $(OBJ) >NUL
|
||||
|
||||
clean:
|
||||
@echo Deleting built files
|
||||
@del $(OBJ)\*.pch >NUL
|
||||
@del $(OBJ)\*.obj >NUL
|
||||
@del $(OBJ)\*.exp >NUL
|
||||
@del $(OBJ)\*.lib >NUL
|
||||
@del $(OBJ)\*.idb >NUL
|
||||
@del $(OBJ)\*.pdb >NUL
|
||||
@del $(OBJ)\*.dll >NUL
|
||||
@del $(OBJ)\*.exe >NUL
|
||||
|
||||
deep_clean: clean
|
||||
@cd ..\..\src
|
||||
@nmake -f js.mak CFG="js - Win32 Debug" clean
|
||||
@cd ..\jsd\jsdb
|
||||
@cd ..
|
||||
@nmake -f jsd.mak clean
|
||||
@cd jsdb
|
||||
117
mozilla/js/jsd/jsdb/jsdbpriv.h
Normal file
117
mozilla/js/jsd/jsdb/jsdbpriv.h
Normal file
@@ -0,0 +1,117 @@
|
||||
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
|
||||
*
|
||||
* The contents of this file are subject to the Netscape Public License
|
||||
* Version 1.0 (the "NPL"); you may not use this file except in
|
||||
* compliance with the NPL. You may obtain a copy of the NPL at
|
||||
* http://www.mozilla.org/NPL/
|
||||
*
|
||||
* Software distributed under the NPL is distributed on an "AS IS" basis,
|
||||
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
|
||||
* for the specific language governing rights and limitations under the
|
||||
* NPL.
|
||||
*
|
||||
* The Initial Developer of this code under the NPL is Netscape
|
||||
* Communications Corporation. Portions created by Netscape are
|
||||
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
|
||||
* Reserved.
|
||||
*/
|
||||
|
||||
/*
|
||||
* Private Headers for JSDB
|
||||
*/
|
||||
|
||||
#ifndef jsdbpriv_h___
|
||||
#define jsdbpriv_h___
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include "jstypes.h"
|
||||
#include "jsutil.h" /* Added by JSIFY */
|
||||
#include "jsprf.h"
|
||||
#include "jsdbgapi.h"
|
||||
#include "jsdb.h"
|
||||
|
||||
/***************************************************************************/
|
||||
|
||||
typedef struct JSDB_Data
|
||||
{
|
||||
JSDContext* jsdcTarget;
|
||||
JSRuntime* rtTarget;
|
||||
JSRuntime* rtDebugger;
|
||||
JSContext* cxDebugger;
|
||||
JSObject* globDebugger;
|
||||
JSObject* jsdOb;
|
||||
jsval jsScriptHook;
|
||||
jsval jsExecutionHook;
|
||||
jsval jsErrorReporterHook;
|
||||
JSDThreadState* jsdthreadstate;
|
||||
int debuggerDepth;
|
||||
|
||||
} JSDB_Data;
|
||||
|
||||
extern JSBool
|
||||
jsdb_ReflectJSD(JSDB_Data* data);
|
||||
|
||||
/***********************************/
|
||||
/*
|
||||
* System to store JSD_xxx handles in jsvals. This supports tracking the
|
||||
* handle's type - both for debugging and for automatic 'dropping' of
|
||||
* reference counted handle types (e.g. JSDValue).
|
||||
*/
|
||||
|
||||
typedef enum
|
||||
{
|
||||
JSDB_GENERIC = 0,
|
||||
JSDB_CONTEXT,
|
||||
JSDB_SCRIPT,
|
||||
JSDB_SOURCETEXT,
|
||||
JSDB_THREADSTATE,
|
||||
JSDB_STACKFRAMEINFO,
|
||||
JSDB_VALUE,
|
||||
JSDB_PROPERTY,
|
||||
JSDB_OBJECT
|
||||
} JSDBHandleType;
|
||||
|
||||
#define H2P_GENERIC(cx,val) (void*) jsdb_HandleValToPointer((cx),(val),JSDB_GENERIC)
|
||||
#define H2P_CONTEXT(cx,val) (JSDContext*) jsdb_HandleValToPointer((cx),(val),JSDB_CONTEXT)
|
||||
#define H2P_SCRIPT(cx,val) (JSDScript*) jsdb_HandleValToPointer((cx),(val),JSDB_SCRIPT)
|
||||
#define H2P_SOURCETEXT(cx,val) (JSDSourceText*) jsdb_HandleValToPointer((cx),(val),JSDB_SOURCETEXT)
|
||||
#define H2P_THREADSTATE(cx,val) (JSDThreadState*) jsdb_HandleValToPointer((cx),(val),JSDB_THREADSTATE)
|
||||
#define H2P_STACKFRAMEINFO(cx,val) (JSDStackFrameInfo*) jsdb_HandleValToPointer((cx),(val),JSDB_STACKFRAMEINFO)
|
||||
#define H2P_VALUE(cx,val) (JSDValue*) jsdb_HandleValToPointer((cx),(val),JSDB_VALUE)
|
||||
#define H2P_PROPERTY(cx,val) (JSDProperty*) jsdb_HandleValToPointer((cx),(val),JSDB_PROPERTY)
|
||||
#define H2P_OBJECT(cx,val) (JSDObject*) jsdb_HandleValToPointer((cx),(val),JSDB_OBJECT)
|
||||
|
||||
#define P2H_GENERIC(cx,ptr) jsdb_PointerToNewHandleVal((cx),(ptr),JSDB_GENERIC)
|
||||
#define P2H_CONTEXT(cx,ptr) jsdb_PointerToNewHandleVal((cx),(ptr),JSDB_CONTEXT)
|
||||
#define P2H_SCRIPT(cx,ptr) jsdb_PointerToNewHandleVal((cx),(ptr),JSDB_SCRIPT)
|
||||
#define P2H_SOURCETEXT(cx,ptr) jsdb_PointerToNewHandleVal((cx),(ptr),JSDB_SOURCETEXT)
|
||||
#define P2H_THREADSTATE(cx,ptr) jsdb_PointerToNewHandleVal((cx),(ptr),JSDB_THREADSTATE)
|
||||
#define P2H_STACKFRAMEINFO(cx,ptr) jsdb_PointerToNewHandleVal((cx),(ptr),JSDB_STACKFRAMEINFO)
|
||||
#define P2H_VALUE(cx,ptr) jsdb_PointerToNewHandleVal((cx),(ptr),JSDB_VALUE)
|
||||
#define P2H_PROPERTY(cx,ptr) jsdb_PointerToNewHandleVal((cx),(ptr),JSDB_PROPERTY)
|
||||
#define P2H_OBJECT(cx,ptr) jsdb_PointerToNewHandleVal((cx),(ptr),JSDB_OBJECT)
|
||||
|
||||
extern jsval
|
||||
jsdb_PointerToNewHandleVal(JSContext *cx, void* ptr, JSDBHandleType type);
|
||||
|
||||
extern void*
|
||||
jsdb_HandleValToPointer(JSContext *cx, jsval val, JSDBHandleType type);
|
||||
|
||||
/***********************************/
|
||||
|
||||
extern JSBool
|
||||
jsdb_SetThreadState(JSDB_Data* data, JSDThreadState* jsdthreadstate);
|
||||
|
||||
extern uintN JS_DLL_CALLBACK
|
||||
jsdb_ExecHookHandler(JSDContext* jsdc,
|
||||
JSDThreadState* jsdthreadstate,
|
||||
uintN type,
|
||||
void* callerdata,
|
||||
jsval* rval);
|
||||
|
||||
extern JSBool
|
||||
jsdb_EvalReturnExpression(JSDB_Data* data, jsval* rval);
|
||||
|
||||
#endif /* jsdbpriv_h___ */
|
||||
2184
mozilla/js/jsd/jsdb/jsdrefl.c
Normal file
2184
mozilla/js/jsd/jsdb/jsdrefl.c
Normal file
File diff suppressed because it is too large
Load Diff
1
mozilla/js/jsd/jsdb/mk.bat
Executable file
1
mozilla/js/jsd/jsdb/mk.bat
Executable file
@@ -0,0 +1 @@
|
||||
nmake -f jsdb.mak %1 %2 %3 %4 %5 %6 %7 %8 %9
|
||||
56
mozilla/js/jsd/jsdb/objects.js
Normal file
56
mozilla/js/jsd/jsdb/objects.js
Normal file
@@ -0,0 +1,56 @@
|
||||
// some tests...
|
||||
|
||||
function set_a(a) {this.a = a;}
|
||||
function set_b(b) {this.b = b;}
|
||||
function set_c(c) {this.c = c;}
|
||||
|
||||
function f_ctor(a,b,c)
|
||||
{
|
||||
this.set_a = set_a;
|
||||
this.set_b = set_b;
|
||||
this.set_c = set_c;
|
||||
|
||||
// NOTE: these break JSD_LOWLEVEL_SOURCE in shell debugger
|
||||
this.get_a = new Function("return this.a;");
|
||||
// this.get_b = new Function("return this.b;");
|
||||
// this.get_c = new Function("return this.c;");
|
||||
|
||||
// this.get_a = function() {return this.a;};
|
||||
this.get_b = function() {return this.b;};
|
||||
this.get_c = function() {return this.c;};
|
||||
|
||||
this.set_a(a);
|
||||
this.set_b(b);
|
||||
this.set_c(c);
|
||||
}
|
||||
|
||||
function f2_ctor(param)
|
||||
{
|
||||
this.A = new f_ctor(1,2,3);
|
||||
this.b = new f_ctor("A","B","C");
|
||||
this.number = param;
|
||||
}
|
||||
|
||||
function callMe()
|
||||
{
|
||||
var A = new f2_ctor(1);
|
||||
debugger;
|
||||
var b = new f2_ctor(5);
|
||||
}
|
||||
|
||||
function foo(a,b,c,d,e,f)
|
||||
{
|
||||
var g;
|
||||
var h;
|
||||
var i;
|
||||
var j;
|
||||
debugger;
|
||||
}
|
||||
|
||||
A = new f2_ctor(0);
|
||||
AA = new f2_ctor(100);
|
||||
callMe();
|
||||
foo(1,2,3,4,5);
|
||||
|
||||
A.A.set_b(8);
|
||||
print(A.A.get_b());
|
||||
1
mozilla/js/jsd/jsdb/test.js
Normal file
1
mozilla/js/jsd/jsdb/test.js
Normal file
@@ -0,0 +1 @@
|
||||
load('objects.js')
|
||||
1077
mozilla/js/jsd/jsdebug.c
Normal file
1077
mozilla/js/jsd/jsdebug.c
Normal file
File diff suppressed because it is too large
Load Diff
1183
mozilla/js/jsd/jsdebug.h
Normal file
1183
mozilla/js/jsd/jsdebug.h
Normal file
File diff suppressed because it is too large
Load Diff
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user