igor%mir2.org
7c4e5d8424
Allow for scripts to catch instances of EvaluatorException
2003-11-14 20:38:06 +00:00
igor%mir2.org
8e546b9047
Transform StackOverflow during parsing into runtime exception so script can detect too deep recursion during parsing.
2003-11-14 20:33:43 +00:00
igor%mir2.org
7c0cff6574
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.
2003-11-14 16:03:31 +00:00
brendan%mozilla.org
79d99c1c7a
Tweak so uneval(-0) == '-0' (r=igor@fastmail.fm).
2003-11-14 03:40:36 +00:00
brendan%mozilla.org
3a340c0519
RegExp().toString and .toSource should return '/(?:)/', not '//' (bug 225550, r=sparky).
2003-11-14 03:23:49 +00:00
mkaply%us.ibm.com
fcba513440
#224487
...
r=brendan
Os/2 only changes to work around FPU issues. See the bug.
2003-11-14 01:49:37 +00:00
pschwartau%netscape.com
75422d50c1
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.
2003-11-13 18:39:17 +00:00
igor%mir2.org
2e75448c13
Implementing uneval/toSource functionality of SpiderMonkey. Foe details, see http://bugzilla.mozilla.org/show_bug.cgi?id=225465 .
2003-11-13 17:15:31 +00:00
brendan%mozilla.org
e74d5a9b8e
Heal a now-bogus assertion under JS_LOCK_OBJ/JS_LOCK_SCOPE.
2003-11-12 22:14:25 +00:00
igor%mir2.org
7d1e5eda47
Passing to decompiler information about function type so it can use it to customize its output in future.
2003-11-12 15:47:50 +00:00
peter%propagandism.org
d4474f74da
Part of fix for bug 219848 (Cannot programmatically (JavaScript) set value of HTMLInputElement) - return JS_FALSE when throwing an exception. r=caillon, sr=jst.
2003-11-12 14:19:26 +00:00
igor%mir2.org
f2ba87fed2
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.
2003-11-12 12:22:12 +00:00
igor%mir2.org
e734cecce2
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.
2003-11-12 10:23:53 +00:00
pschwartau%netscape.com
976f1809e1
Initial add. Regression test for bug 225343.
2003-11-11 20:55:59 +00:00
igor%mir2.org
b7d4dfaa28
In ClassFileWriter.addPush(double) use DNEG to generate more compact code for -0.0 and -1.0
2003-11-11 20:31:36 +00:00
igor%mir2.org
f260baaf11
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.
2003-11-11 20:30:08 +00:00
igor%mir2.org
dd1efd374f
Extend constant folding to cover few unary operations
2003-11-11 20:18:34 +00:00
igor%mir2.org
12c1d23434
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.
2003-11-11 20:04:38 +00:00
jshin%mailaps.org
eabe319067
bug 44272 : make escape/unescape (in DOM) correctly work with the full range of Unicode chars. (by making it use JSengine version) (r=brendan/bz, sr=bz)
2003-11-11 17:59:54 +00:00
pschwartau%netscape.com
6414dc4d64
Correcting mistakes, and changing style.
2003-11-11 05:21:26 +00:00
pschwartau%netscape.com
c8372729aa
Initial add. Regression test for bug 225289.
2003-11-11 04:56:52 +00:00
brendan%mozilla.org
24e5990b0c
Remove JS_UnsealObject, optimize locking of sealed objects, shrink JSContext by two JSArenaPool members (224306, r=shaver).
2003-11-11 01:28:17 +00:00
igor%mir2.org
8313023fae
Patch from Dave Russo to wrap arguments array properly: the code has to allocate new Object[] array since Context.newObject needs instances of Object[], not SomeObjectSubclass[], to work properly.
2003-11-10 02:18:11 +00:00
igor%mir2.org
44c6535ad4
Check in Context.newArray(Scriptable scope, Object[] elements) that elements is instance of Object[] and not SomeObjectSubclass[] to expose broken usage of newArray as soon as possible.
2003-11-10 02:14:37 +00:00
brendan%mozilla.org
a602059a69
Revise js_DecompileValueGenerator assertion in light of JS_HAS_NO_SUCH_METHOD.
2003-11-09 20:31:16 +00:00
brendan%mozilla.org
6ccc5150bf
Restore long-lost obj=null setting so null() etc. (calling primitive-type values) fails as expected, instead of crashing (224956, r=shaver).
2003-11-09 03:58:48 +00:00
pschwartau%netscape.com
1ecac41a94
Adding one more section.
2003-11-08 23:02:59 +00:00
pschwartau%netscape.com
cc191541bb
Adding more sections.
2003-11-08 22:54:19 +00:00
pschwartau%netscape.com
df02e5884f
Removing a stray comment.
2003-11-08 22:50:27 +00:00
pschwartau%netscape.com
f584a9af35
Initial add. Regression test for bug 224956.
2003-11-08 22:48:54 +00:00
brendan%mozilla.org
841034e384
Atomize rt->emptyString so '' constants all share it.
2003-11-08 18:54:33 +00:00
pschwartau%netscape.com
0865e526f2
Correcting a mistake in this testcase, discovered by zack-weg@gmx.de. The left and right parens were not balanced!
2003-11-07 22:47:34 +00:00
igor%mir2.org
dc34ed3dc1
Changes in Security API: using CodeBlock interface instead of reusing Script to represent code that should be executed with different domain.
2003-11-07 22:29:59 +00:00
igor%mir2.org
49ffeac3df
New interface to refer to code executed with a particular context and arguments.
2003-11-07 22:28:22 +00:00
igor%mir2.org
6006898229
1. Removal of very recently introduced hideFromContextListeners: it was a wrong solution to the problem of running scripts under independent Context instances on the same thread.
...
2. Optimization of Context.enter()/Context.exit() when ThreadLocal is available:
Store Context[1], not Context in the variable so Context.enter()/Context.exit() would need to access ThreadVar only once and then update the reference.
2003-11-07 22:24:53 +00:00
igor%mir2.org
5b675f523e
Added setDouble, setString that are used in IRFactory during constant folding
2003-11-07 22:18:49 +00:00
igor%mir2.org
8eb8104ae7
Move all contant folding logic to IRFactory where it simpler to do and possible to reuse tree nodes during folding.
2003-11-07 22:17:54 +00:00
timeless%mozdev.org
9e6299130e
Bug 222056 Integrate warning fix from Adobe for e_pow.c and e_sqrt.c
...
Patch by Adobe rs=brendan
2003-11-07 19:46:29 +00:00
pschwartau%netscape.com
b0748544ba
Patch by zack-weg@gmx.de correcting errors in this testcase. See bug 224951.
2003-11-07 18:08:35 +00:00
pschwartau%netscape.com
c6e98c8a21
Rearranging code to make style consistent with other tests in this directory.
2003-11-07 18:00:09 +00:00
igor%mir2.org
7ed29ee5a5
Do constant folding during parsing since it is cheap to do that at this stage then in optimizer during separated phase so even the interpreter will take advantage of the folding.
2003-11-07 15:58:57 +00:00
pschwartau%netscape.com
94cdb231a3
Initial add. Regression test for bug 224676.
2003-11-05 04:08:11 +00:00
igor%mir2.org
d7d991d76f
ClassRepository is removed from list of API classes to allow to replace it in future by direct access to optimizer.
2003-11-04 14:55:58 +00:00
igor%mir2.org
4da147d828
Adjusting examples not to assume that Context.initStandardObjects(ScriptableObject) returns ScriptableObject since that was changed back to Scriptable for compatibility.
2003-11-04 14:54:43 +00:00
igor%mir2.org
4c338669a9
Removal of initStandardObjects(boolean) not to proliferate versions of initStandardObjects: if Rhino would support recursive object sealing, it would not be necessary to call initStandardObjects with sealed flag at all.
2003-11-04 14:52:48 +00:00
igor%mir2.org
6cbd10e41c
JavaDoc @link fixes
2003-11-04 14:49:20 +00:00
igor%mir2.org
da6b0bef31
Return type of Context.initStandardObject(ScriptableObject) is changed back to Scriptable for binary compatibility.
2003-11-03 20:42:32 +00:00
brendan%mozilla.org
cd582ddebe
Move ComputeThis call up in js_Invoke so __noSuchMethod__ sees the correct |this| parameter.
2003-11-03 20:23:23 +00:00
igor%mir2.org
8349b3ea49
Removal of possibility to alter JavaAdapter through an external property as such functionality is redundant and can be emulated with altering JavaAdapter in the scope object after Context.initStandardObjects returns.
2003-11-03 19:58:17 +00:00
igor%mir2.org
7d26c9eb27
Use reflection to access JavaAdapter to allow to use NativeJavaObject with JavaAdapter classes absent.
2003-11-03 19:55:37 +00:00