brendan%mozilla.org
54b6320351
Attempt to update, still much to do.
...
git-svn-id: svn://10.0.0.236/trunk@149838 18797224-902f-48f8-a5cc-f745e15eee43
2003-11-29 18:14:56 +00:00
brendan%mozilla.org
e6d9d9b9e5
Fix someone else's old copy-paste error in comment (no code change).
...
git-svn-id: svn://10.0.0.236/trunk@149805 18797224-902f-48f8-a5cc-f745e15eee43
2003-11-27 03:22:31 +00:00
brendan%mozilla.org
7ac3a829ec
Comment tweaks (no code changes).
...
git-svn-id: svn://10.0.0.236/trunk@149785 18797224-902f-48f8-a5cc-f745e15eee43
2003-11-27 00:08:36 +00:00
brendan%mozilla.org
856ce9dea7
Fix bungled attempt to ComputeThis before __noSuchMethod__ extension (225423, r=shaver, a=asa).
...
git-svn-id: svn://10.0.0.236/trunk@149757 18797224-902f-48f8-a5cc-f745e15eee43
2003-11-26 02:46:50 +00:00
pschwartau%netscape.com
0e58796c52
Initial add. Regression test by Igor Bukanov, for bug 226507.
...
git-svn-id: svn://10.0.0.236/trunk@149711 18797224-902f-48f8-a5cc-f745e15eee43
2003-11-25 02:23:59 +00:00
brendan%mozilla.org
24cd91464d
Comment-only change.
...
git-svn-id: svn://10.0.0.236/trunk@149708 18797224-902f-48f8-a5cc-f745e15eee43
2003-11-25 01:50:41 +00:00
brendan%mozilla.org
f9784dd70c
Patch from Igor Bukanov <igor@fastmail.fm> with a few tweaks from me to limit stack consumption under js_EmitTree (226507, r=shaver, a=rjesup).
...
git-svn-id: svn://10.0.0.236/trunk@149707 18797224-902f-48f8-a5cc-f745e15eee43
2003-11-25 01:50:17 +00:00
igor%mir2.org
309b08a3a6
Fixing http://bugzilla.mozilla.org/show_bug.cgi?id=226045 :
...
(new RegExp).toString/toSource() now gives /(?:)/ instead of // which is comments and does not work with uneval.
git-svn-id: svn://10.0.0.236/trunk@149680 18797224-902f-48f8-a5cc-f745e15eee43
2003-11-24 15:51:44 +00:00
timeless%mozdev.org
e06b35a771
Adding support for Solaris 9 (copied from Solaris 8)
...
git-svn-id: svn://10.0.0.236/trunk@149658 18797224-902f-48f8-a5cc-f745e15eee43
2003-11-23 20:13:36 +00:00
mkaply%us.ibm.com
e17e819d83
#200144
...
r=brendan, a=mkaply
Remove XP_OS2 #ifdefs from JS
git-svn-id: svn://10.0.0.236/trunk@149564 18797224-902f-48f8-a5cc-f745e15eee43
2003-11-19 23:07:57 +00:00
brendan%mozilla.org
d38cfff671
Fix old bug afflicting for(var i=j in o) hard case; fix for(var... in decompilation; expand tabs in jsopcode.c (226078, r=shaver).
...
git-svn-id: svn://10.0.0.236/trunk@149520 18797224-902f-48f8-a5cc-f745e15eee43
2003-11-18 23:51:43 +00:00
pschwartau%netscape.com
6b95af0a7a
Updating email address.
...
git-svn-id: svn://10.0.0.236/trunk@149506 18797224-902f-48f8-a5cc-f745e15eee43
2003-11-18 20:58:56 +00:00
pschwartau%netscape.com
90815c8e3d
The behavior of toString() and toSource() on empty regexps has changed. See bug 225550 and bug 226045.
...
git-svn-id: svn://10.0.0.236/trunk@149481 18797224-902f-48f8-a5cc-f745e15eee43
2003-11-18 04:12:48 +00:00
brendan%mozilla.org
0f22a67821
Forgot a couple of places in need of sealed-scope locking optimization; also reordered lock-free tests to avoid ClaimScope from GC.
...
git-svn-id: svn://10.0.0.236/trunk@149477 18797224-902f-48f8-a5cc-f745e15eee43
2003-11-18 02:45:17 +00:00
brendan%mozilla.org
1f141c0135
Add -S maxstacksize option (225061, patch from Igor Bukanov <igor@fastmail.fm>, r=me).
...
git-svn-id: svn://10.0.0.236/trunk@149465 18797224-902f-48f8-a5cc-f745e15eee43
2003-11-17 23:58:21 +00:00
brendan%mozilla.org
30ff69f4fc
My attempt to fix 225343, r=shaver.
...
git-svn-id: svn://10.0.0.236/trunk@149461 18797224-902f-48f8-a5cc-f745e15eee43
2003-11-17 22:12:52 +00:00
igor%mir2.org
2f5a617661
Fixing debug printout of icode: CALLSPECIAL prinout was not updated to reflect proper value of only 6 additional bytes for bytecode.
...
git-svn-id: svn://10.0.0.236/trunk@149441 18797224-902f-48f8-a5cc-f745e15eee43
2003-11-17 18:31:55 +00:00
igor%mir2.org
160c2c14f8
To mark special properties __proto__ and __parent__ in parse tree use integer ids instead of strings so it is easier to check tree consitency.
...
git-svn-id: svn://10.0.0.236/trunk@149438 18797224-902f-48f8-a5cc-f745e15eee43
2003-11-17 17:39:43 +00:00
igor%mir2.org
39d6efa02e
Finalizing toSource() support: do not put () arround {} for source representation of objects that are part of recursive toSource call.
...
For details, see http://bugzilla.mozilla.org/show_bug.cgi?id=225465
git-svn-id: svn://10.0.0.236/trunk@149437 18797224-902f-48f8-a5cc-f745e15eee43
2003-11-17 17:37:21 +00:00
pschwartau%netscape.com
38371edcc4
Removing skip of fileName and lineNumber test; these properties are now supported by Rhino. See bug 225817.
...
git-svn-id: svn://10.0.0.236/trunk@149435 18797224-902f-48f8-a5cc-f745e15eee43
2003-11-17 16:48:12 +00:00
igor%mir2.org
c9d562a370
Changing wrapping of caught Java exceptions: now they are constructed with JavaException constructor, have fileName, lineNumber defined to point to script line that executed Java code triggering exception and have javaException property pointing to the wrapped exception object.
...
For details, see http://bugzilla.mozilla.org/show_bug.cgi?id=225817
git-svn-id: svn://10.0.0.236/trunk@149432 18797224-902f-48f8-a5cc-f745e15eee43
2003-11-17 11:04:29 +00:00
igor%mir2.org
80ac133884
Fixing http://bugzilla.mozilla.org/show_bug.cgi?id=225817 :
...
Proper support for fileName and lineNumber in Error objects.
git-svn-id: svn://10.0.0.236/trunk@149428 18797224-902f-48f8-a5cc-f745e15eee43
2003-11-17 09:45:01 +00:00
pschwartau%netscape.com
70dae15a15
Removing inner () 's from Section 4 of test. See bug 225831 comment 7.
...
git-svn-id: svn://10.0.0.236/trunk@149415 18797224-902f-48f8-a5cc-f745e15eee43
2003-11-17 00:46:52 +00:00
pschwartau%netscape.com
cb48952b2e
Adding comments.
...
git-svn-id: svn://10.0.0.236/trunk@149409 18797224-902f-48f8-a5cc-f745e15eee43
2003-11-16 23:10:49 +00:00
pschwartau%netscape.com
d48c5cb589
Nope, that last correction was wrong; fixing mistake. See bug 225289 comment 9.
...
git-svn-id: svn://10.0.0.236/trunk@149408 18797224-902f-48f8-a5cc-f745e15eee43
2003-11-16 23:07:28 +00:00
pschwartau%netscape.com
ac8e5377b5
Adding three more sections, by igor@fastmail.fm.
...
git-svn-id: svn://10.0.0.236/trunk@149407 18797224-902f-48f8-a5cc-f745e15eee43
2003-11-16 22:03:14 +00:00
brendan%mozilla.org
eba71d0335
Fix ALTPREREQ2, it was just plain busted (225289, r=zack-web@gmx.de based on his similar patch).
...
git-svn-id: svn://10.0.0.236/trunk@149405 18797224-902f-48f8-a5cc-f745e15eee43
2003-11-16 21:34:59 +00:00
pschwartau%netscape.com
444d1db2bf
Initial add. Regression test for bug 225831, by igor@fastmail.fm.
...
git-svn-id: svn://10.0.0.236/trunk@149384 18797224-902f-48f8-a5cc-f745e15eee43
2003-11-16 00:04:18 +00:00
pschwartau%netscape.com
a98654fa55
Correcting another error (I believe; see bug 209919 comment 14).
...
git-svn-id: svn://10.0.0.236/trunk@149377 18797224-902f-48f8-a5cc-f745e15eee43
2003-11-15 23:22:00 +00:00
pschwartau%netscape.com
fb5e1151d0
Fixing more errors in the test - see bug 225289 comment 6.
...
git-svn-id: svn://10.0.0.236/trunk@149376 18797224-902f-48f8-a5cc-f745e15eee43
2003-11-15 23:19:27 +00:00
pschwartau%netscape.com
6ee576b822
Fixing an error in the test.
...
git-svn-id: svn://10.0.0.236/trunk@149374 18797224-902f-48f8-a5cc-f745e15eee43
2003-11-15 22:47:03 +00:00
gerv%gerv.net
123c4a9492
Bug 205418 - Relicense Spidermonkey (js/src) to MPL/LGPL/GPL. Patch by gerv; r,a=brendan.
...
git-svn-id: svn://10.0.0.236/trunk@149331 18797224-902f-48f8-a5cc-f745e15eee43
2003-11-15 00:11:16 +00:00
igor%mir2.org
47b86c32e1
Allow for scripts to catch instances of EvaluatorException
...
git-svn-id: svn://10.0.0.236/trunk@149312 18797224-902f-48f8-a5cc-f745e15eee43
2003-11-14 20:38:06 +00:00
igor%mir2.org
6a1a012bec
Transform StackOverflow during parsing into runtime exception so script can detect too deep recursion during parsing.
...
git-svn-id: svn://10.0.0.236/trunk@149311 18797224-902f-48f8-a5cc-f745e15eee43
2003-11-14 20:33:43 +00:00
igor%mir2.org
8ea93aa11f
Splitting Token.ASSIGN into Token.ASSIGN and Token.ASSIGNOP where the former represents only = while ASSIGNOP is used to denote +=, -= etc. Parse tree for the 2 operations is rather different and split allowed to simplify IRFactory code.
...
git-svn-id: svn://10.0.0.236/trunk@149302 18797224-902f-48f8-a5cc-f745e15eee43
2003-11-14 16:03:31 +00:00
brendan%mozilla.org
156f0ecb89
Tweak so uneval(-0) == '-0' (r=igor@fastmail.fm).
...
git-svn-id: svn://10.0.0.236/trunk@149286 18797224-902f-48f8-a5cc-f745e15eee43
2003-11-14 03:40:36 +00:00
brendan%mozilla.org
149f0d6f02
RegExp().toString and .toSource should return '/(?:)/', not '//' (bug 225550, r=sparky).
...
git-svn-id: svn://10.0.0.236/trunk@149282 18797224-902f-48f8-a5cc-f745e15eee43
2003-11-14 03:23:49 +00:00
mkaply%us.ibm.com
61313af827
#224487
...
r=brendan
Os/2 only changes to work around FPU issues. See the bug.
git-svn-id: svn://10.0.0.236/trunk@149280 18797224-902f-48f8-a5cc-f745e15eee43
2003-11-14 01:49:37 +00:00
pschwartau%netscape.com
9e61b1abbc
Removing skips for toSource() and uneval(), now that Rhino has implemented these methods (bug 225465). Adding a comment for skip of js1_5/Regress/regress-192465.js.
...
git-svn-id: svn://10.0.0.236/trunk@149259 18797224-902f-48f8-a5cc-f745e15eee43
2003-11-13 18:39:17 +00:00
igor%mir2.org
05af4b298f
Implementing uneval/toSource functionality of SpiderMonkey. Foe details, see http://bugzilla.mozilla.org/show_bug.cgi?id=225465 .
...
git-svn-id: svn://10.0.0.236/trunk@149250 18797224-902f-48f8-a5cc-f745e15eee43
2003-11-13 17:15:31 +00:00
brendan%mozilla.org
e510eeea3f
Heal a now-bogus assertion under JS_LOCK_OBJ/JS_LOCK_SCOPE.
...
git-svn-id: svn://10.0.0.236/trunk@149217 18797224-902f-48f8-a5cc-f745e15eee43
2003-11-12 22:14:25 +00:00
igor%mir2.org
165cf3cb60
Passing to decompiler information about function type so it can use it to customize its output in future.
...
git-svn-id: svn://10.0.0.236/trunk@149196 18797224-902f-48f8-a5cc-f745e15eee43
2003-11-12 15:47:50 +00:00
peter%propagandism.org
ae24c544d7
Part of fix for bug 219848 (Cannot programmatically (JavaScript) set value of HTMLInputElement) - return JS_FALSE when throwing an exception. r=caillon, sr=jst.
...
git-svn-id: svn://10.0.0.236/trunk@149191 18797224-902f-48f8-a5cc-f745e15eee43
2003-11-12 14:19:26 +00:00
igor%mir2.org
c85150a93c
Changing Decompiler.decompile to take just encoded source, flag argument controlling output format and property table so it would be possible to add more options to decompiler without changing the rest of code.
...
git-svn-id: svn://10.0.0.236/trunk@149190 18797224-902f-48f8-a5cc-f745e15eee43
2003-11-12 12:22:12 +00:00
igor%mir2.org
039200747f
Changing return type of NativeFunction.getEncodedSource() to String from Object since the idea of having anything else but String would require changes in API in any case.
...
git-svn-id: svn://10.0.0.236/trunk@149189 18797224-902f-48f8-a5cc-f745e15eee43
2003-11-12 10:23:53 +00:00
pschwartau%netscape.com
9d9e4cc2dc
Initial add. Regression test for bug 225343.
...
git-svn-id: svn://10.0.0.236/trunk@149164 18797224-902f-48f8-a5cc-f745e15eee43
2003-11-11 20:55:59 +00:00
igor%mir2.org
d97ed101b7
In ClassFileWriter.addPush(double) use DNEG to generate more compact code for -0.0 and -1.0
...
git-svn-id: svn://10.0.0.236/trunk@149162 18797224-902f-48f8-a5cc-f745e15eee43
2003-11-11 20:31:36 +00:00
igor%mir2.org
3226e12c0a
Changing just introduced CodeBlock into Callable that define call method with exactly the same signature as Function.call and changing Function to extend Callable.
...
Now Context defines new method "call" that provide optimized version of the following code:
Context cx = Context.enter()
try {
callable.call(cx, scope, thisObj, args);
} finally {
Context.exit();
}
Since Function extends Callable, it can be passed to this method directly thus simplifying ScriptableObject.call method and Java adapter code.
The new interface is used in SecurityController implementation which allows to pass interpreted functions there directly as well removing the need to have intermediate class in Interpreter.
git-svn-id: svn://10.0.0.236/trunk@149161 18797224-902f-48f8-a5cc-f745e15eee43
2003-11-11 20:30:08 +00:00
igor%mir2.org
56519b18e0
Extend constant folding to cover few unary operations
...
git-svn-id: svn://10.0.0.236/trunk@149160 18797224-902f-48f8-a5cc-f745e15eee43
2003-11-11 20:18:34 +00:00
igor%mir2.org
e34a118451
1. Make sure that -0.0 from parser are treated properly: new constant folding code there may produce it.
...
2. Instead of generating code to call Double constructor use the new method OptRuntime.wrapDouble() that allows to cut amount of produced byte code.
git-svn-id: svn://10.0.0.236/trunk@149159 18797224-902f-48f8-a5cc-f745e15eee43
2003-11-11 20:04:38 +00:00