Граф коммитов

5481 Коммитов

Автор SHA1 Сообщение Дата
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
igor%mir2.org 80c54a080a When converting function to Java interface and checking for the previous wrapping, do not use key stored in ClassCache.javaAdapterIFGlueMasters as it can be thrown away when caches are emptied and instead construct a key object from the passed class and uniqueness tag. 2003-11-03 18:15:00 +00:00
igor%mir2.org bef3bd17c6 In NativeJavaClass.constructSpecific use passed scope, not function pointer as scope source so shared system scope with custom top scope and custom wrap factory would work. 2003-11-03 18:06:49 +00:00
igor%mir2.org 2c30bb423d Added Kit.makeHashKeyFromPair to make combined key for hashtables from 2 objects 2003-11-03 18:04:27 +00:00
brendan%mozilla.org 2e7b972ae2 Fiddle a bit cosmetically to make arena member comparisons have the same form; add a comment. 2003-11-03 17:47:43 +00:00
brendan%mozilla.org 1156b9ae73 Squeeze a few instructions out of the noSuchMethod special case, and restore needed arena metering (followup to 196097, r=sparky). 2003-11-03 05:07:41 +00:00
brendan%mozilla.org 7809adca33 Fix missing cx param problem (223041, r=caillon, sr=dbaron). 2003-11-03 04:26:55 +00:00
igor%mir2.org ef93931896 Added Context.javaToJS as a convenient way to get JS values from Java objects and Context.emptyArgs so documentation does not need to refer to ScriptRuntime.emptyArgs. 2003-11-02 21:15:14 +00:00
igor%mir2.org e793b86743 In WrapFactory.wrap use String.valueOf(charValue) instead of new String(new char[] { charValue }) to get string from character. 2003-11-02 21:12:08 +00:00
brendan%mozilla.org c4cd345781 Fix JS_DropPrincipals (thanks, dbaron). 2003-11-02 03:25:25 +00:00
brendan%mozilla.org c85bc41f9e Use eval's object principals if possible, ditto for other eval-like methods (223041, r=caillon, sr=shaver). 2003-11-02 01:04:50 +00:00
igor%mir2.org 314f3f5bc8 Deprecation of get/setAttributes forms that take start argument. It was never used to pass anything but this object. 2003-11-01 20:23:28 +00:00
igor%mir2.org efd61a6673 Since Undefined inherits from Scriptable, not ScriptableObject, it does not need to override get/setAttributes() 2003-11-01 20:21:28 +00:00
igor%mir2.org 674cfbf1bb Removal of completely unnecessary getSlotToSet as its implementation repeated already unsuccessfully search done by getSlot. The put methods now call addSlot directly.
In addition, shared code in has and get to check/update lastAccess cache is moved to common method getNamedSlot.
2003-11-01 19:40:24 +00:00
igor%mir2.org 16dcc44df0 GlobalScope is removed as its introduction had to serious consequences with compatibility and usage. Instead a special purpose class ClassCache is introduces to hold various caches. The class binds itself to an arbitrary object by using new SciptableObject.associateValue method so arbitrary ScriptableObject can be used as a scope without performance penalties. 2003-11-01 15:34:23 +00:00
brendan%mozilla.org e9ff806fda Fix from zack-weg@gmx.de for magic number botch and early Java bug copy/paste in Math.random code (211590, r=me). 2003-10-31 23:21:13 +00:00
igor%mir2.org f78d4de11b parent and prototype fields are made privatenot to allow to mess with them from subclasses. Althoygh setter and getter can be used still to do that, at least some sanity checks can be added there. 2003-10-30 16:40:43 +00:00
igor%mir2.org 2851be6c6c Use getPrototype instead of explicit reference to this.prototype 2003-10-30 16:40:42 +00:00
igor%mir2.org 6b0c1e82ad passing Context instance to NativeJavaMethod.findMethod not to call Context.getContext() id some form of API to override method selection will surface 2003-10-30 16:40:41 +00:00
igor%mir2.org 552126e233 Added readReader 2003-10-30 16:40:40 +00:00