darin%netscape.com
f43dfb75ba
fixes bug 142870 "nsIFile should use UCS-2 instead of UTF-8"
...
r=dougt sr=alecf
2002-05-07 23:07:19 +00:00
brendan%mozilla.org
c4a43f27fb
Avoid toSource bloat in e.stack; fix related crash due to unrooted errObject in js_ErrorToException (139316, r=rginda, sr=shaver).
2002-05-07 08:34:51 +00:00
brendan%mozilla.org
22c610ed1f
Fix old bogus static dollarStr thread-safety bug (142651, r=jband, sr=shaver).
2002-05-07 08:29:39 +00:00
bryner%netscape.com
92a1bec8eb
Adding the functions JS_LockGCThingRT and JS_UnlockGCThingRT, which are variants that only require a JSRuntime, not a JSContext. Converted some internal callers to use the new interface. Bug 141356, patch from shaver, r=bryner, sr=brendan.
2002-05-04 05:28:09 +00:00
pschwartau%netscape.com
f759b5fa79
Initial add. Regression test for bug 140974.
2002-05-04 01:13:40 +00:00
igor%mir2.org
417ef274c7
Replace when possible usage of API available only since JDK 1.2 by their JDK 1.1 analogous or by classes available in the Rhino core to make port to JDK 1.1 easier.
2002-05-03 19:42:36 +00:00
darin%netscape.com
367fdf02e3
fixes build bustage with --enable-xpctools
...
patch=dmose r/sr=darin
2002-05-03 19:04:14 +00:00
igor%mir2.org
514db9985d
Store only single instance of any string in InterpreterData.itsStringTable and remove itsStringTableIndex and itsDoubleTableIndex from InterpreterData as they are used only during code generation
2002-05-02 21:19:43 +00:00
igor%mir2.org
a7a9d2d975
Allow to put null keys to ObjToIntMap and optimize Iterator not to search through key array tail after processing the last key.
2002-05-02 21:15:33 +00:00
igor%mir2.org
52fa3848f7
In remove set int key value to 0 so a new key with the same slot would get initial 0 after put(int, Object)
2002-05-02 21:11:05 +00:00
brendan%mozilla.org
66c0e18306
Fix js_SetProtoOrParent to handle non-native and native-but-incompatible-class-change proto-setting scenarios (140164, r=khanson, sr=jband).
2002-05-02 20:59:35 +00:00
nboyd%atg.com
f458de53ca
Fix broken link
2002-05-01 19:21:51 +00:00
nboyd%atg.com
1cb36d8f93
Now pass 104077.
2002-05-01 16:47:25 +00:00
igor%mir2.org
8da10d64be
Allow in UintMap for any key to hold int and object values simultaneously, as the old code could only detect that the key is allowed to hold an object value only if there are no other keys with int values. In the new version, if the key is present, it always has both int and object values, but they default to 0 or int if not specified in put. It is effectively the old behavior when the map contained at least one int key, but at least it is documented.
2002-05-01 14:10:41 +00:00
brendan%mozilla.org
7be636bf86
Don't 'constant-fold' if(false)var foo=42 into nothing (140974, r=khanson, sr=shaver).
2002-04-30 23:28:34 +00:00
igor%mir2.org
f8f19e8815
LabelTable cleanup:
...
1. Targeting of labels with 0x80000000 biscuits is moved from LabelTable to ClassFileWriter as this is classfile specific and is not necessary in Interpreter.
2. LabelTable allows for pc > Short.MAX_VALUE as this restriction is classfile specific. The only requirement is for jump offsets to stay within short range.
3. LabelTable is made private member of Interpreter and ClassFileWriter instead of being classes' superclass to avoid API leakage that forced optimizer.Codegen to declare few utility methods public as they got the same signature as LabelTable methods visible throw Interpreter inheritance.
2002-04-29 19:21:57 +00:00
igor%mir2.org
a5f83f7e8c
I replaced java.util.Enumeration type for result and arguments of ScriptRuntime.initEnum/ScriptRuntime.nextEnum by Object to allow for greater flexibility in for (...in...) implementation.
2002-04-29 17:31:11 +00:00
nboyd%atg.com
36d969697c
Remove skip for bug 120194
2002-04-29 00:58:40 +00:00
nboyd%atg.com
d11c722d61
Patch from Igor to fix 120194
2002-04-29 00:56:30 +00:00
igor%mir2.org
1faf10a430
Do not call acquireLabel/addLabelFixup/markLabel if label is not stored in parse tree and can be resolved immediately after node subtree generation (see new addForwardsGoto and resolveForwardGoto methods)
2002-04-28 15:17:24 +00:00
igor%mir2.org
47bb60c12d
Do not allocate Label object and instead store label's PC and fixups in itsFixupTable and itsFixupTable arrays
2002-04-27 12:27:14 +00:00
igor%mir2.org
933b6749a9
Hiding details of omj.LabelTable implementation behind new getLabelPC, addLabelFixup, fixLabelGotos and clearLabels methods and making all its fields private.
2002-04-27 09:13:28 +00:00
darin%netscape.com
1b1677bbe9
fixes bug 129279 "nsIFile unicode/utf8/ascii task"
...
r=dougt sr=alecf
2002-04-27 05:33:09 +00:00
igor%mir2.org
189226474a
Refactoring interpreter initialization to follow code more easily
2002-04-26 23:18:08 +00:00
igor%mir2.org
7247d7ca26
Tab removal
2002-04-26 23:14:50 +00:00
rginda%netscape.com
2c9073f1d9
- venkman only -
...
bug 139883, "ErrorHookProc can be tricked into thinking it never finished running", r=peterv
fixes bad early return in jsds_ErrorHookProc
test for correct max params (12, not 8) in CreatePPLineMap
use nsnull instead of 0 for null pointer return value
2002-04-26 20:57:35 +00:00
igor%mir2.org
058f6ca146
I changed VariableTable to store arbitrary Object as variable data to avoid allocation of LocalVariable in the interpreter mode as in this case only the variable name is used and it can be stored directly. It allows to remove omj.LocalVariable and omj.optimizer.OptVariableTable for the cost of having omc.JavaVariable which omj.optimizer.OptLocalVariable implement to pass to omc.ClassFileWriter debug information about the variable.
2002-04-26 08:01:29 +00:00
jband%netscape.com
3053edad20
fix bug 139243. Remove reference count based rooting of JS objects of wrapped natives and replace it with GC-time marking. This is a pretty good DOM performance win. r=dbradley sr=jst.
2002-04-26 06:08:35 +00:00
brendan%mozilla.org
ec12686c50
Purge the deflated string cache entry, if any, before finalizing external strings (140070, r=jband, sr=shaver).
2002-04-25 22:55:03 +00:00
khanson%netscape.com
793ec7fc00
Reverse of Patch 66477 for bug #121744 . Bug #131348 , r=shaver, sr=brendan.
2002-04-25 20:33:33 +00:00
igor%mir2.org
c9141d85fe
Links update
2002-04-25 06:46:47 +00:00
khanson%netscape.com
90406f1bc8
fixes memory leak in jsdtoa.c bug 138666, sr=brendan, r=khanson
2002-04-24 23:36:48 +00:00
igor%mir2.org
65c51ba40f
I replaced Vector by ObjArray when it was used from the single thread and similarly replaced Hashatble by ObjToIntMap when it was used from the single thread to mark keys presence ignoring values. It avoids unnecessary synchronization and save memory. To simplify the replacement I added to ObjArray and ObjToIntMap few utility methods.
2002-04-24 21:37:36 +00:00
igor%mir2.org
bd97bc5dc4
Initial version
2002-04-24 07:44:52 +00:00
igor%mir2.org
0fd57cc8e2
Serialization change: implement only Serializable with custom readObject/writeObject instead of Externalizable not to invent own versioning support.
2002-04-23 22:39:25 +00:00
igor%mir2.org
d85e3c8435
Updating the debugger to reflect changes in Rhino debug API.
2002-04-22 20:47:51 +00:00
igor%mir2.org
293ec8ac77
Debugger interface changes:
...
1. Replacing omj.debug.Debugger.enterFrame() by omj.debug.Debugger.getFrame() and omj.debug.DebugFrame.onEnter() to allow to return null from omj.debug.Debugger.getFrame to enable full optimization with debugger set if it is not interested in monitoring a particular frame
2. Changing type for the source argument in omj.debug.Debugger.handleCompilationDone from StringBuffer to String as Debugger instances should not be able to modify source even by chance.
2002-04-22 20:46:43 +00:00
nboyd%atg.com
c78edeb78c
Implement support for new Package(<classLoader>)
2002-04-21 01:50:43 +00:00
igor%mir2.org
96c9c4a60b
Removing one more time creating of bogus activation for InterpretedScript added with the previous change
2002-04-19 20:58:03 +00:00
igor%mir2.org
77589e0e41
Making interpreter bytecode independent from Context.isGeneratingDebug so debugger can handle scripts compiled without Context.isGeneratingDebug: if itsNeedsActivation is false with debugger present, Interpreter.interpret creates activation scope and check in variable queries/assignments if they should be made against activation object and not stack[VAR_SHIFT+...] array.
2002-04-19 07:19:07 +00:00
seawood%netscape.com
d42b1b1fd4
Add make -j support to win32 gmake builds.
...
Bug #132848 r=bryner
2002-04-19 02:42:28 +00:00
igor%mir2.org
5427ff0d5c
Fixing bug 137181 so after delete arguments[i], arguments[i] and corresponding function parameter in activation are not shared:
...
The patch uses the special NOT_FOUND value to flag deleted indexes. It also
make sure that original array object passed to Function.call is not modified,
as all changes goes to cloned copy. It is not necessary for the fix, but it is
the only place in the current Rhino that can alter Object[] array passed to
Function.call and I think it is better to remove this exceptional case.
2002-04-16 07:28:40 +00:00
igor%mir2.org
4aafc80db4
In setAttributes(int,...) mask out unused attributes bits in the same as setAttributes(String,...) does
2002-04-16 07:24:50 +00:00
igor%mir2.org
5864247424
Replace VariableTable.getVariable(name) != null by VariableTable.hasVariable(name) and use ObjToIntMap in place of Hashtable
2002-04-14 21:32:19 +00:00
igor%mir2.org
d4ef7bfe3b
Make all fields in VariableTable private and use access API to get them in optimizer/OptVariableTable to allow to change VariableTable implementation without changing its usage
2002-04-14 21:29:35 +00:00
pschwartau%netscape.com
08993401bb
Initial add. Regression test for bug 137181.
2002-04-12 21:06:15 +00:00
pschwartau%netscape.com
f18c60f449
Updating status messages to the current format.
2002-04-12 20:23:33 +00:00
igor%mir2.org
e1154dafa5
As Christopher Oliver <coliver@mminternet.com> pointed out, in many execution paths calls to Scriptable.put follows corresponding Scriptable.has with the same name/id, and although the put method implementations in ScriptableObject and IdScriptable use cache for a previously accessed name to avoid expensive name lookups, the corresponding has implementation do use the cache.
...
These changes add the cache optimization to the has methods and remove cache update from the put methods under the assumption that newly assigned properties would not be used immediately.
2002-04-11 21:59:45 +00:00
igor%mir2.org
e7fdceb967
As the scope parameter for the bind and getBase methods should never be null, make sure they trigger NullPointerException on "scope == null" to detect bad API usage earlier.
2002-04-11 21:36:31 +00:00
pschwartau%netscape.com
3c91dde9aa
Adding an early return for Rhino; we only want to run this test in SpiderMonkey for now.
2002-04-11 16:11:53 +00:00