3791 Commits

Author SHA1 Message Date
pschwartau%netscape.com
0fa3d563e6 Skipping two new tests that use non-EMCA functionality: toSource() and uneval().
git-svn-id: svn://10.0.0.236/trunk@102243 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-05 01:07:17 +00:00
pschwartau%netscape.com
216a755d04 Improved readabilty. Improved accuracy of stripBraces() function.
git-svn-id: svn://10.0.0.236/trunk@102240 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-05 00:49:31 +00:00
pschwartau%netscape.com
c1a88c8a50 This is more accurate. Also using sorting now, for definiteness in comparisons.
git-svn-id: svn://10.0.0.236/trunk@102238 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-05 00:46:24 +00:00
pschwartau%netscape.com
1e55d91449 Initial add. Regression test for bug 96284.
git-svn-id: svn://10.0.0.236/trunk@102200 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-04 01:54:36 +00:00
brendan%mozilla.org
802990f0a6 Ignore property found in non-native prototype (12367, sr=jband&shaver, a=asa).
git-svn-id: svn://10.0.0.236/trunk@102198 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-03 22:29:12 +00:00
brendan%mozilla.org
4a1d0f0899 Fix toSource on exception objects so it uses toSource to generate properly-quoted, embedded string literals for message and filename (bug 96284, r=jband, sr=shaver, a=asa).
git-svn-id: svn://10.0.0.236/trunk@102191 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-03 19:36:24 +00:00
rginda%netscape.com
d95b9a0aca bug 88130, patch=jband, r=me,dbradley, sr=jst, a=brendan
clear exception state before and after calling out via xpconnect.
remove redundant exception clear from CallQueryInterfaceOnJSObject.


git-svn-id: svn://10.0.0.236/trunk@102170 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-01 22:47:47 +00:00
rginda%netscape.com
84b8ddf3ae -- not built --
exposing call hook functionality


git-svn-id: svn://10.0.0.236/trunk@102149 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-01 18:03:53 +00:00
rginda%netscape.com
a411916b1b -- not built --
whitespace cleanup


git-svn-id: svn://10.0.0.236/trunk@102148 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-01 18:01:28 +00:00
jband%netscape.com
25a16ec622 fix bug 97555. Need to get the correct value of staep into the iterator object when we fail during enumeration init. r=jst sr=brendan a=asa
git-svn-id: svn://10.0.0.236/trunk@102105 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-31 21:48:18 +00:00
brendan%mozilla.org
a30fcf3fcb Fix 97540, r=rginda, sr=jband, a=asa:
- The most significant fix, to keep JSStackFrame.spbase, the operand stack base pointer for an active frame, null except when there is an operand stack allocated and in use by js_Interpret.  Previously, spbase would point after args and local vars (if any), then advance upon allocation of the (possibly discontiguous) operand stack space.  This made for a fatal ambiguity: js_AllocStack, called by XPConnect, could not tell when there was allocated operand stack space above the frame's sp, which needs to be set to a known (JSVAL_VOID) state for exact GC to work.  Now, the GC doesn't have to mark any operand stack space for a frame whose spbase is null, and js_AllocStack doesn't need to void any unused space for such a frame.

- Fixes to reload the JSRuntime's callHook or executeHook after calling or executing, in case the debugger removes the hook.  In which case, it must clean up any dynamic memory held by hookData, but in any event, in which case the engine must not call the post-call or post-execute hook.

- While debugging with rginda, I was horrified to see his trivial testcase function, expressed as a lambda, fail to be invoked using the "inline_call" machinery in js_Interpret (which avoids js_Interpret recursion through js_Invoke for most JS functions).  The problem was a test of fun->flags == 0 conditioning the /* inline_call: */ code.  Since that test was written, at least one JSFUN_* flag (JSFUN_LAMBDA, used only for pretty-printing or accurate decompilation) has been added.  But all along, that test was an over-optimization (testing against 0 without &'ing certain flags), making for an accident waiting to happen -- which did happen.  The relevant flags are JSFUN_HEAVYWEIGHT (set by the compiler when a function calls eval, uses with, or otherwise needs an activation object for its scope; if lightweight, the compiler can see the function's scope and eliminate it via specialized bytecodes) and JSFUN_BOUND_METHOD (for Java method calls, where |this| binds statically to the instance, not dynamically to the calling expression reference's base object, as in JS).


git-svn-id: svn://10.0.0.236/trunk@102100 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-31 21:25:26 +00:00
pschwartau%netscape.com
aeb3e52231 Corrected testcase so it will work in Rhino as well as SpiderMonkey.
git-svn-id: svn://10.0.0.236/trunk@102078 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-31 06:10:13 +00:00
pschwartau%netscape.com
c9ad49f4ff Initial add.
git-svn-id: svn://10.0.0.236/trunk@102034 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-30 19:55:05 +00:00
pschwartau%netscape.com
cd4a48b840 Trivial whitespace change.
git-svn-id: svn://10.0.0.236/trunk@101989 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-29 23:34:32 +00:00
pschwartau%netscape.com
f4b901f5b4 Initial add.
git-svn-id: svn://10.0.0.236/trunk@101988 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-29 23:20:16 +00:00
pschwartau%netscape.com
6940681e03 Removed a few hundred || conditions. See comment 2001-08-29 12:00 in bug 89443.
git-svn-id: svn://10.0.0.236/trunk@101964 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-29 20:37:58 +00:00
pschwartau%netscape.com
f102bc5794 Adding skips for two tests employing the non-ECMA toSource() and uneval() functions.
git-svn-id: svn://10.0.0.236/trunk@101942 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-29 06:14:38 +00:00
pschwartau%netscape.com
304fcc71e9 Initial add.
git-svn-id: svn://10.0.0.236/trunk@101941 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-29 05:59:52 +00:00
rginda%netscape.com
39016686cd - not built -
spruce up some comments
added, then comented out, jsdIDebuggerService::filterGlobalObject


git-svn-id: svn://10.0.0.236/trunk@101914 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-28 22:03:44 +00:00
rginda%netscape.com
f12cac4564 - not built -
whitespace tweakage


git-svn-id: svn://10.0.0.236/trunk@101913 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-28 22:02:28 +00:00
rginda%netscape.com
ccde950ed1 - not built -
don't allow gc's during script hooks if CAUTIOUS_SCRIPTHOOK is defined (which it is, by default.)  Should help with stability until we can fix the real problems.
Use JSVAL_ macros instead of JSD_* calls in jsdValue::GetJSType method, avoiding two c++ frames per call.


git-svn-id: svn://10.0.0.236/trunk@101912 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-28 22:02:07 +00:00
rginda%netscape.com
67a99ef7dc - not built -
modeline fix


git-svn-id: svn://10.0.0.236/trunk@101911 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-28 21:59:53 +00:00
jband%netscape.com
3311deca71 fix bug 96725. Avoid infinite recursion in call to QI'd xbl binding by avoiding the mutation of the interface set when the object implementing the interface is a wrappedJS around our wrappedNative's own JSObject. r=dbradley sr=hyatt a=brendan,hyatt,jband
git-svn-id: svn://10.0.0.236/trunk@101910 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-28 21:52:10 +00:00
pschwartau%netscape.com
cdda8b8a36 Adding two new utility functions.
git-svn-id: svn://10.0.0.236/trunk@101907 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-28 21:13:58 +00:00
thesteve%netscape.com
01b9e48abd Bug#81373 (mac static build)
fixed up access paths: get rid of :::dist:client[_debug]
r=jfrancis
sr=sfraser
a=asa on behalf of drivers


git-svn-id: svn://10.0.0.236/trunk@101856 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-27 23:45:59 +00:00
pschwartau%netscape.com
a2692d9a49 Punctuation correction in comment.
git-svn-id: svn://10.0.0.236/trunk@101849 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-27 22:57:25 +00:00
pschwartau%netscape.com
2d61cb4832 Initial add.
git-svn-id: svn://10.0.0.236/trunk@101848 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-27 22:55:57 +00:00
pschwartau%netscape.com
f8fcedd7c4 Some RegExp bugs have now been fixed in Rhino. Removing the testcases from the skip list.
git-svn-id: svn://10.0.0.236/trunk@101840 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-27 19:58:56 +00:00
rogerl%netscape.com
6874619e54 Port of performance fixes from Monkey (see bug #85721).
Also, fixes for :
#91343, (non-latin1 fails for [\S])
#78156, (Unicode line terminator matching)
#87231, (/(A)?(A.*)/ didn't reset paren state for empty first match)


git-svn-id: svn://10.0.0.236/trunk@101837 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-27 18:03:19 +00:00
rjesup%wgate.com
288182f644 Bug 94243: VoidArray usage patch. a=asa sr=brendan r=waterson r=bienvenu
r=pierre r=jband/dbradley  Also fixes some whitespace issues.


git-svn-id: svn://10.0.0.236/trunk@101822 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-27 06:15:54 +00:00
pschwartau%netscape.com
ed5f1cc9be Technical change. Now test is accurate for Rhino as well as SpiderMonkey.
git-svn-id: svn://10.0.0.236/trunk@101797 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-25 05:01:50 +00:00
nboyd%atg.com
e21b2a2198 Original problem in following mail. I implemented JDK1.1 compatibility and performance
improvements:

Subject:
        Rhino: Problem in NativeJavaMethod
   Date:
        Tue, 14 Aug 2001 10:23:35 +0200
   From:
        felix.meschberger@day.com
     To:
        Norris Boyd <nboyd@atg.com>




Hi Norris,

While working with wrapped Java classes we discovered a problem in
NativeJavaMethod : If the public method to be called is part of a
non-public class, the Sun Java VM throws an IllegalAccessException. This
bug in the Sun VM has been reported as Bug 4071593 to Sun, but has not been
resolved since....

I implemented a circumvention, for which I provide you the patch. I quickly
tested it, and it seems to work.

Regards
Felix

And here's the patch :

diff -w -r1.19 NativeJavaMethod.java
227a228,234
>        /**
>         * Due to a bug in Suns VM, public methods in private
>         * classes are not accessible by default (Sun Bug #4071593).
>         * We have to explicitly set the method accessible beforehand
>         */
>        meth.setAccessible(true);
>

-----------------------------------------------------------------
This message is a private communication. If you are not the intended
recipient, please do not read, copy, or use it, and do not disclose it
to others. Please notify the sender of the delivery error by replying to
this message, and then delete it from your system. Thank you.
The sender does not assume any liability for timely, trouble-free,
complete, virus free, secure, error free or uninterrupted arrival of
this e-mail. For verification please request a hard copy version.

mailto:felix.meschberger@day.com
http://www.day.com

Felix Meschberger
Development
Day Interactive AG
Steinenberg 21-23
4001 Basel
Switzerland

T  41 61 226 98 98
F  41 61 226 98 97


git-svn-id: svn://10.0.0.236/trunk@101768 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-24 20:01:49 +00:00
brendan%mozilla.org
d72ef6fca0 Check keyword version when scanning, not by installing different keywords on version selection (when starting to compile; bug 96562, r=rogerl, sr=shaver&jband, a=dbaron).
git-svn-id: svn://10.0.0.236/trunk@101736 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-24 03:32:31 +00:00
brendan%mozilla.org
a76cace18d Avoid corrupting backpatch chains by checking for jump offset operand overflow (90445, khanson's patch with minor changes, sr=shaver&me, a=asa).
git-svn-id: svn://10.0.0.236/trunk@101681 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-23 02:07:07 +00:00
brendan%mozilla.org
5bd9bfb18a Checking in khanson's patch for bug 85112, based on joemansh@interl.net's algorithm (r=beard, sr=me).
git-svn-id: svn://10.0.0.236/trunk@101635 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-22 05:42:16 +00:00
brendan%mozilla.org
8404f27930 Forget to include jsopcode.h.
git-svn-id: svn://10.0.0.236/trunk@101633 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-22 05:33:32 +00:00
brendan%mozilla.org
97dea81da0 Support ref()++ etc. for native ref (75688) and fix exn_toSource (96284); sr=shaver&jband.
git-svn-id: svn://10.0.0.236/trunk@101627 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-22 04:59:28 +00:00
brendan%mozilla.org
5f91bd99d8 Checking in shaver's patch for bug 78100, adding JS_GetExternalStringGCType (sr=brendan&jband).
git-svn-id: svn://10.0.0.236/trunk@101473 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-21 02:53:19 +00:00
dbaron%fas.harvard.edu
3485888237 Replace uses of deprecated NS_IMPL_ISUPPORTS and NS_IMPL_QUERYINTERFACE macros with NS_IMPL_{ISUPPORTS,QUERYINTERFACE}{1,0}. r=jag rs=brendan b=45797
git-svn-id: svn://10.0.0.236/trunk@101462 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-21 01:48:11 +00:00
nboyd%atg.com
d78515b0e1 Subject:
Rhino: Problem in NativeJavaMethod
   Date:
        Tue, 14 Aug 2001 10:23:35 +0200
   From:
        felix.meschberger@day.com
     To:
        Norris Boyd <nboyd@atg.com>




Hi Norris,

While working with wrapped Java classes we discovered a problem in
NativeJavaMethod : If the public method to be called is part of a
non-public class, the Sun Java VM throws an IllegalAccessException. This
bug in the Sun VM has been reported as Bug 4071593 to Sun, but has not been
resolved since....

I implemented a circumvention, for which I provide you the patch. I quickly
tested it, and it seems to work.

Regards
Felix


git-svn-id: svn://10.0.0.236/trunk@101312 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-17 14:29:48 +00:00
brendan%mozilla.org
f6e26a3367 Don't resolve standard classes if JSRESOLVE_ASSIGNING (NOT PART OF BUILD).
git-svn-id: svn://10.0.0.236/trunk@101295 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-17 10:40:15 +00:00
brendan%mozilla.org
9bf59a0feb Checking in khanson's patch with whitespace cleanups for bug 89443, to avoid stack overflow on too many || operators in one expression (r=rogerl, sr=me).
git-svn-id: svn://10.0.0.236/trunk@101294 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-17 10:29:59 +00:00
brendan%mozilla.org
89a27dff8f Shrinking realloc can fail (95517, basic patch from epstein@tellme.com, r=brendan, sr=jband).
git-svn-id: svn://10.0.0.236/trunk@101292 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-17 09:56:48 +00:00
sfraser%netscape.com
c3b1f4ee64 Project cleanup, rs=scc. Fix one or more of access paths, linking with the correct startup library, and unnecessary linkage.
git-svn-id: svn://10.0.0.236/trunk@101259 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-17 01:28:47 +00:00
jband%netscape.com
9a7d33e56a fix bug 94752. Let xpconnect decide when to call JS_DestroyContext. It sometimes needs to defer the call until JS code running on the context is finished. r=dbradley sr=jst
git-svn-id: svn://10.0.0.236/trunk@101079 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-15 04:49:09 +00:00
pschwartau%netscape.com
2d55fce63e Removing skip for ecma_3/String/regress-83293.js. The testcase was incorrect, and is now corrected.
git-svn-id: svn://10.0.0.236/trunk@101031 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-14 18:28:57 +00:00
pschwartau%netscape.com
f6926e4aac Making extensive corrections. Testcase had not conformed to ECMA-262 Final Edition.
git-svn-id: svn://10.0.0.236/trunk@101029 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-14 18:02:56 +00:00
pavel%gingerall.cz
75ffe32315 Context typemapping changed
git-svn-id: svn://10.0.0.236/trunk@101010 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-14 13:09:43 +00:00
cls%seawood.org
3b8b92a2e8 Use NS_PTR_TO_INT32 macros to do 64-bit safe pointer conversions.
Bug #20860 r=Roland.Mainz@informatik.med.uni-giessen.de sr=brendan@mozilla.org


git-svn-id: svn://10.0.0.236/trunk@101008 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-14 07:59:59 +00:00
pschwartau%netscape.com
e5902aae86 Adding new case to the test.
git-svn-id: svn://10.0.0.236/trunk@100923 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-13 19:38:18 +00:00