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

3518 Коммитов

Автор SHA1 Сообщение Дата
pschwartau%netscape.com fcf643d765 Added a comment - 2001-05-09 17:21:57 +00:00
nboyd%atg.com e479370659 Add idswitch package. 2001-05-09 17:12:07 +00:00
nboyd%atg.com 5c6de514ee Add new skip while we await a bug fix. 2001-05-09 15:46:41 +00:00
nboyd%atg.com 972966d440 More rational handling of count. 2001-05-09 14:01:38 +00:00
nboyd%atg.com 34d624618d Fix 79568. 2001-05-09 13:59:29 +00:00
pschwartau%netscape.com 97677d8b18 Correction to testcase per Brendan - 2001-05-08 23:37:56 +00:00
beard%netscape.com 5372fd5e7c Removed ListenerCollection.java, added ListenerArray.java. 2001-05-08 22:56:43 +00:00
beard%netscape.com 02dde5de81 Officially retiring all sources in mozilla/js/rhino/org, in favor of sources in mozilla/js/rhino/src & mozilla/js/rhino/toolsrc. 2001-05-08 22:50:01 +00:00
beard%netscape.com dd6238bc49 Officially retiring all sources in mozilla/js/rhino/org, in favor of sources in mozilla/js/rhino/src & mozilla/js/rhino/toolsrc. 2001-05-08 22:28:17 +00:00
jband%netscape.com 9ca075cad7 fix linux startup assertion due to null PRLock. Trying to cleanup the xpcdom landing! r=dbaron 2001-05-08 21:40:00 +00:00
dbaron%fas.harvard.edu 2605b46069 Attempt to fix AIX and OS/2 bustage by changing nsAReadableString (which is const) to nsAString. r=jband 2001-05-08 20:54:53 +00:00
dbaron%fas.harvard.edu 8d47a3c3fd Fix gcc 2.7.2.3 bustage (conditional with enumerated values from different anonymous enums). r=jband 2001-05-08 19:11:51 +00:00
jst%netscape.com 621060c4fd Landing the XPCDOM_20010329_BRANCH branch, changes mostly done by jband@netscape.com and jst@netscape.com, also some changes done by shaver@mozilla.org, peterv@netscape.com and markh@activestate.com. r= and sr= by vidur@netscape.com, jband@netscape.com, jst@netscpae.com, danm@netscape.com, hyatt@netscape.com, shaver@mozilla.org, dbradley@netscape.com, rpotts@netscape.com. 2001-05-08 17:42:36 +00:00
nboyd%atg.com 3faa9b4093 Change use of deprecated method. 2001-05-08 13:51:18 +00:00
nboyd%atg.com 342fb9ff6d Commit missing messages for new idswitch tool. 2001-05-08 13:42:56 +00:00
nboyd%atg.com 79e1cced0e Subject:
Rhino: optimization for NativeFunction.java
        Date:
             Mon, 07 May 2001 14:19:59 +0200
       From:
             Igor Bukanov <igor.bukanov@windriver.com>
 Organization:
             Wind River
         To:
             Norris Boyd <nboyd@atg.com>

Hi, Norris!

This is the first of 3 patches that are completly independent from each
other.

Currently in NativeFunction its name stored as the first element in the
names array. But this lead to creation of a single element array for
each FunctionObject and for each script function that does not have
arguments or variables. The attached patch splits NativeFunction names
into simple functionName and argNames arrays and adjust code elsewhere
accordingly. This patch can increase memory footprint for anonymous
script functions without arguments because it adds additional field to
each NativeFunction, but I do not think this is a case to worry about.

Regards, Igor
2001-05-08 13:40:22 +00:00
nboyd%atg.com 1ff3bdef33 Subject: Rhino: execMethod/methodArity cleanup.
Date: Mon, 07 May 2001 14:25:34 +0200
From: Igor Bukanov <igor.bukanov@windriver.com>
Organization: Wind River
To: Norris Boyd <nboyd@atg.com>

The current code that implements execMethod/methodArity for IdFunction
support returns an arbitrary value for id that is not known. This is not
very good behavior because it may hide bugs in the id support and it
also does not allow to distinguish ids that are used for function  from
ids used for properties like String.length.

To fix this I changed semantic of the methodArity method to return -1
for an unknown/non-method id and added code to throw an exception for
bad ids. This change requires to adjust all NativeSomething objects that
use IdScriptabl and after a release all such interface changes would be
no go, but is not a release yet, right?

I also eliminated the "IdFunction f" argument from
IdFunction.Master.methodArity and the tagId field from IdFunction. When
I wrote  the initial code for IdFunction.java, I added that just to be
able to use same id number in a class that implements IdFunction.Master
and its descendants via checking idTag. But that does not work in
general because IdScriptable can use id for non-function fields as well
so to avoid id clashes another way should be used. For example, if
someone would like to extend NativeMath to support more functionality,
he can use:

class Math2: extends NativeMath {
     private static idBase;

     {
         if (idBase == 0) idBase = super.getMaximumId();
     }

      public int methodArity(int methodId) {
          switch (methodId - idBase) {
             case Id_foo: return 2;
             case Id_bar: return 3;
         }
         return super.methodArity(methodId);
     }

      public Object execMethod
          (int methodId, IdFunction f,
           Context cx, Scriptable scope, Scriptable thisObj, Object[] args)
          throws JavaScriptException
      {
          switch (methodId - idBase) {
             case Id_foo: return ...;
             case Id_bar: return ...;
         }
          return super.execMethod(methodId, f, cx, scope, thisObj, args);
     }

      protected int getMaximumId() { return idBase + MAX_ID; }

      protected String getIdName(int id) {
          switch (id - idBase) {
             case Id_foo: return "for";
             case Id_bar: return "bar";
         }
         return super.getIdName(id);
     }
     ...
     private static final int
         Id_foo = 1,
         Id_bar = 2,
         MAX_ID = 2;

etc.


Note that a simpler solution to make MAX_ID field public in NativeMath
and write in Math2:
     private static final int
         Id_foo = NativeMath.MAX_ID + 1,
         Id_bar = NativeMath.MAX_ID + 2,
         MAX_ID = NativeMath.MAX_ID + 2;

does not work because in this way adding any new id to NativeMath would
break binary compatibility with Math2.
2001-05-08 13:36:16 +00:00
nboyd%atg.com e465a24df3 Subject:
Rhino: fix for race conditions in listeners code in Context.java
        Date:
             Mon, 07 May 2001 14:22:57 +0200
       From:
             Igor Bukanov <igor.bukanov@windriver.com>
 Organization:
             Wind River
         To:
             Norris Boyd <nboyd@atg.com>

The current code for listeners and contextListeners in Context.java is
not race condition free. If contextListeners Vector would be modified
during context event firing loops, the code can produce
index-out-of-bounds exception. The problem with listeners array is more
subbtle and comes from the fact that ListenerCollection.java uses code like:
         for(Enumeration enum = getAllListeners();enum.hasMoreElements();) {
             Object listener = enum.nextElement();
             if(iface.isInstance(listener)) {
                 array.addElement(listener);
             }
         }
where getAllListeners() uses Vector.elements to get element enumeration.
But to work with such enumeration in a thread safe way, one has to
synchronized against Vector, otherwise between enum.hasMoreElements()
and enum.nextElement() the last element can be removed.

Initially I thought to fix ListenerCollection and use it for
contextListeners as well, but then I realized that in its current form
ListenerCollection is very inefficient (it produces too many objects
just to get simple array to fire events), so I wrote ListenerArray.java
and use it in Context.java. It makes life simpler and shrinks code as well.
2001-05-08 13:33:43 +00:00
brendan%mozilla.org 82542b00bb - Fix bug 79054, AB-BA deadlock between rt->setSlotLock and one or more claimed scopes (r=shaver, sr=jband)
js_SetProtoOrParent should always have used a condvar in addition to a lock.
- Fix bug 79129, assert-botch in js_AllocSlot (r/sr=jband, sr=shaver)
  JS_INITIAL_NSLOTS is the minimum number of slots, js_FreeSlot guarantees it.
2001-05-08 01:31:02 +00:00
brendan%mozilla.org a496c891b3 Deoptimize JSOP_TABLESWITCH to JSOP_LOOKUPSWITCH upon first duplicate case label (74474, r=rogerl, sr=shaver). 2001-05-08 01:21:01 +00:00
pschwartau%netscape.com 7d4e1eeb4c Minor changes. 2001-05-07 21:43:38 +00:00
pschwartau%netscape.com 457b80c8d5 Initial add. Testcase by Brendan from bug 72884. 2001-05-07 20:30:59 +00:00
pschwartau%netscape.com 85347e9dcc Initial add. A testcase for the switch statement. 2001-05-07 14:31:00 +00:00
pschwartau%netscape.com b24167e755 Initial add. Regression test for bug 79129. 2001-05-07 05:35:06 +00:00
nboyd%atg.com 6a31817fc0 Fix problems noted in following mail:
Subject:
        rhino bug(s)
   Date:
        Mon, 30 Apr 2001 23:07:00 -0700
   From:
        Mike Dixon <MDixon@placeware.com>
     To:
        nboyd@atg.com




hi.  i'm a happy rhino user, and just stumbled across what looks like a
pretty basic bug in the property stuff on ScriptableObject...  (i'm running
1.5, but it looks like this code hasn't changed in CVS.)  since it looks
like you're actively developing (even though it's been a while since
1.5...) i figured you might be interested -- apologies if i missed a more
formal bug reporting process...

the symptom was that i got a "Hashtable internal error" thrown from
getSlotToSet.  reading the code, here's what i think could happen:

- create a new object (slots.length is initially 5)
- add 3 properties
- delete those 3 properties

(now count == 0, and slots[i] == REMOVED for 3 values of i)

- add 2 more properties

now assume that you're unlucky, and that these two hash to different values
than the first three; now you have 2 elements of slots[] containing real
slots, and the other three containing REMOVED.

now what happens when you try to create another slot?  getSlotToSet is only
willing to put something in a null slot[], and you haven't got one, so you
get the internal error.

writing this message encouraged me to try to write a test case to reproduce
it, and in fact it's trivial:

   js> x={}; x.a=x.b=x.c=1; delete x.a; delete x.b; delete x.c; x.d=x.e=1
   1
   js> x.whatever=1
(boom)

by the way, while reading the code i also noticed what looks like another,
less consequential bug: addSlot increments count before deciding to grow
the table, which is done with a recursive call, which will cause count to
be incremented again -- right?  as far as i can tell, setting count too big
will only cause it to grow the table a little early next time, so it
doesn't really matter, but it looks wrong.

                                                        .mike.
2001-05-06 23:56:34 +00:00
pschwartau%netscape.com 985fbd2788 Minor style changes. 2001-05-06 18:07:12 +00:00
nboyd%atg.com e43780d77f New updates from Igor. 2001-05-05 18:25:00 +00:00
pschwartau%netscape.com ef58c30b2e More getter and setter tests. These are non-ECMA and not implemented in Rhino. 2001-05-05 17:27:12 +00:00
pschwartau%netscape.com e8c2c0753f Initial add. 2001-05-05 17:24:07 +00:00
kandrot%netscape.com d5bd552195 Check in for Ron Guilmette. r=shaver, sr=waterson. For intl r=nhotta. Changes for NS_IMPL_NSGETMODULE. bug #46775. 2001-05-05 05:33:37 +00:00
brendan%mozilla.org bd12d20c84 Fix DEBUG-only bytecode stack input/output tracing, patch from Steven C. Cole <scole@planet-nospam-web.com>. 2001-05-05 01:04:19 +00:00
rginda%netscape.com 2e672b615b - not built -
updating windows build goop
2001-05-04 23:44:07 +00:00
rginda%netscape.com 05fa3133e8 part two of fix for bug 77081 r=rogerl, sr=brendan 2001-05-04 23:03:11 +00:00
beard%netscape.com 59f2a66be3 Allow building with javac from JDK 1.1.8. 2001-05-04 22:41:12 +00:00
rginda%netscape.com cab9e070b6 - not built -
remove jsdIContext and jsdIThreadstate interfaces
add TYPE_BOOLEAN to jsdIValue
update callback signatures to reflect the removal of jsdIContext and jsdIThreadstate
add errorHook and throwHook attributes to jsdIDebuggerService
2001-05-04 22:16:27 +00:00
rginda%netscape.com 58b8d4cafe - not built -
remove jsdContext and jsdThreadstate objects
2001-05-04 22:14:37 +00:00
rginda%netscape.com 80dbc00881 - not built -
remove jsdThreadState and jsdContext objects.
consolidate ExecutionHook and BreakpointHook callbacks
remove return value checking from all methods (xpconnect does this for us.)
2001-05-04 22:14:04 +00:00
rginda%netscape.com 4c606bc2eb - not built -
remove HAVE_PATCH_FROM_77081 not that 77081 is checked in.
2001-05-04 21:57:43 +00:00
rginda%netscape.com 9429126f5d fix for 77081, r=rogerl, sr=brendan. 2001-05-04 21:48:48 +00:00
rginda%netscape.com 0f20a53afc fix for bug 76574, r=rogerl, sr=brendan. 2001-05-04 21:34:21 +00:00
rginda%netscape.com 7c8d2bc302 fix for bug 77807, r=rogerl, sr=brendan 2001-05-04 21:31:48 +00:00
peterv%netscape.com c6b93e2149 Define EXPORT_JS_API. r=rginda, r=beard, sr=brendan. 2001-05-04 21:30:55 +00:00
nboyd%atg.com b7b1277d17 Make the debugger's main class be Main.java to match convention. 2001-05-04 15:22:10 +00:00
nboyd%atg.com 5d5c5d4cea Re-apply changes since repository copy. 2001-05-04 15:20:26 +00:00
peterv%netscape.com f8dfbc931f Get the JS debugger building on Mac. Not part of the build. 2001-05-02 22:15:28 +00:00
peterv%netscape.com 61be90661b Get the JS debugger building on Mac. Not part of the build. 2001-05-02 22:08:11 +00:00
pschwartau%netscape.com b93cea1370 Minor change to status message. 2001-05-02 18:15:26 +00:00
pschwartau%netscape.com 8190b73240 Initial add. Regression test for bug 74474. 2001-05-02 00:27:29 +00:00
pschwartau%netscape.com 90756d00ab Initial add. Regression test for bug 31316. 2001-05-01 23:35:15 +00:00
pschwartau%netscape.com 43b71e1c46 Initial add. Regression test for bug 76683. 2001-05-01 21:57:10 +00:00
rginda%netscape.com e53b69b6ab - not built -
add invalidate() method to jsdIScript
rework jsdIScriptHook interface
2001-05-01 21:37:24 +00:00
rginda%netscape.com 033de8731c - not built -
add debug instance counter for jsdScript
add mValid flag to jsdScript
2001-05-01 21:35:06 +00:00
rginda%netscape.com 100d86b9c1 - not built -
validate integrity of jsdScript data to guard against calling into a destroyed script.
queue up script deletes that happen during the JS GC cycle, call them when GC finishes (bug 76979.)
don't NS_IF_ADDREF objects that we get using *::FromPtr()
add jsdScript::Invalidate()
2001-05-01 21:33:43 +00:00
beard%netscape.com 88d5a8805e Now builds two sub-projects, jscore.mcp, jstools.mcp and merges the resulting jar files into js.jar. This uses the new source tree organization. 2001-05-01 17:24:48 +00:00
beard%netscape.com 1be8074e20 Builds org.mozilla.javascript.tools.* classes. 2001-05-01 17:19:16 +00:00
beard%netscape.com 7f24b09b7b Builds core org.mozilla.* classes. 2001-05-01 17:18:14 +00:00
pschwartau%netscape.com 9eefcf7c44 Initial add. Regression test for bug 78156. 2001-04-30 22:54:09 +00:00
cls%seawood.org 25c6dc1c7e Set EXPORT_LIBRARY=1 in all pertinent Makefile.ins. Allows us to build the final link list as we traverse the tree. Bug #46775 2001-04-28 19:48:12 +00:00
beard%netscape.com 427a42274b Reverted back to old directory structure. 2001-04-27 22:57:30 +00:00
beard%netscape.com 7ea45fd514 Restore revision history. 2001-04-27 19:45:52 +00:00
beard%netscape.com 5c11154b23 Restore revision history. 2001-04-27 19:37:39 +00:00
beard%netscape.com f1c90f9844 Restore revision history. 2001-04-27 18:57:38 +00:00
pschwartau%netscape.com 58e322afe1 Minor whitespace cleanup. 2001-04-26 20:49:14 +00:00
pschwartau%netscape.com df59051d57 Minor change: improving variable names for greater clarity - 2001-04-26 00:18:09 +00:00
pschwartau%netscape.com 8343975341 Minor improvement: in a shell file, keep the scope of i, j as local as possible - 2001-04-26 00:09:56 +00:00
beard%netscape.com 947e3026ac Reconstructed using new rhino/src and rhino/toolsrc directory organization. 2001-04-25 22:32:20 +00:00
rginda%netscape.com 47f18d438b - not built -
add GetService() member
2001-04-25 21:55:20 +00:00
rginda%netscape.com 402639c0b0 - not built -
register for gc callbacks
explicitly create a singleton factory
only call OnScriptLoaded() if |creating| is true
2001-04-25 21:54:59 +00:00
rginda%netscape.com 4147e2be2f - not built -
move from pc as a ulong to pc as an object wrapped around a uword (jsdIPC)
rename init() to on() on jsdIService
move lineToPc and pcToLine from jsdIThreadState to jsdIScript (where they belong)
add setBreakpoint(), clearBreakpoint(), and clearAllBreakpoints() to jsdIScript
add off(), clearAllBreakpoints(), and breakpointHook attribute to jsdIService
add creatorURL, creatorLine, constructorURL, constructorLine, and value attribut
es to jsdIObject
2001-04-25 18:29:51 +00:00
rginda%netscape.com 83f0bc57b2 - not built -
move from pc as a ulong to pc as an object wrapped around a uword
relocate jsdService constructor to jsd_xpp.cpp in order to initialize the global
 service
2001-04-25 18:22:49 +00:00
rginda%netscape.com 3850267b29 - not built -
add global service for the breakpoint callback
add breakpoint callback
move c callbacks to top of source
add creatorURL, creatorLine, constructorURL, constructorLine, and value attribut
es to jsdObject
move from pc as a ulong to pc as an object wrapped around a uword
move lineToPc and pcToLine from ThreadState to Script (where it belongs)
add setBreakpoint(), clearBreakpoint(), and clearAllBreakpoints() to jsdScript
relocate jsdService constructor from jsd_xpp.h in order to initialize the global
 service
rename init() to on() on jsdService
add off(), clearAllBreakpoints(), and breakpointHook attribute to jsdService
2001-04-25 18:20:47 +00:00
nboyd%atg.com f644f5cfc9 Finish javadoc fix. 2001-04-25 17:11:34 +00:00
nboyd%atg.com 6a729b6877 Fix javadoc with new directory structure. 2001-04-25 14:36:15 +00:00
nboyd%atg.com 255ca6d2eb UPdate name of debugger main class. 2001-04-25 13:46:46 +00:00
nboyd%atg.com 21aad9427e Fix javadoc generation. 2001-04-25 00:24:18 +00:00
rginda%netscape.com 7edbcf806c - not built -
turn off jsd_EvaluateUCScriptInStackFrame until 77081 gets checked in.
2001-04-24 23:53:59 +00:00
rginda%netscape.com e85168e1cb - not built -
patch from peterv.  We can't use js_* in this module because they're libjs' private stash.  I got away with it on Linux somehow, but not on mac, and probably not on windows.  jsd_EvaluateScriptInStackFrame now uses JS_EvaluateInStackFrame, instead of doing the inflation itself and calling JS_EvaluateUCInStackFrame.
2001-04-24 23:02:58 +00:00
nboyd%atg.com 6ba716d66a Make the default just build core. 2001-04-24 21:06:34 +00:00
nboyd%atg.com 72c856f46e Move files to rhino/toolsrc. 2001-04-24 20:43:37 +00:00
nboyd%atg.com e50dea56f3 Move files to rhino/toolsrc 2001-04-24 20:42:14 +00:00
nboyd%atg.com 8ceefef096 Move files to rhino/src. 2001-04-24 20:39:47 +00:00
nboyd%atg.com f21b47110c Somehow removed these right after I added them. 2001-04-24 20:36:58 +00:00
nboyd%atg.com 93ad2404be Massive reconfiguration of the cvs directory structure:
mozilla/js/rhino/org is now distributed between
mozilla/js/rhino/src and mozilla/js/rhino/toolsrc.
The build.xml has been split in three.
Docs now live in the project directory.

These changes mean that the cvs directories mirror the distribution and thus a distribution
will build the same way as a cvs build.
2001-04-24 20:31:31 +00:00
nboyd%atg.com 1d414b48b7 Break dependency between core and tools. 2001-04-24 18:08:46 +00:00
nboyd%atg.com aa6d1cec58 Igor's latest patches, with some regression fixes. 2001-04-24 12:57:45 +00:00
nboyd%atg.com 64101e02a5 Fix test: can only look for FunctionDeclaration syntax.
15.3.4.2 Function.prototype.toString ( )
An implementation-dependent representation of the function is returned. This representation has the syntax of a
FunctionDeclaration. Note in particular that the use and placement of white space, line terminators, and semicolons
within the representation string is implementation-dependent.
2001-04-24 12:55:25 +00:00
pschwartau%netscape.com eb30c1cbce Avoid a name conflict; getClass() is already used in js/src/liveconnect/jsj_JavaClass.c 2001-04-24 01:30:53 +00:00
rginda%netscape.com f2e8a848b6 - not built -
add line attribute to jsdIStackFrame
remove isFuction from jsdIValue
add TYPE_UNKNOWN to jsType "enumeration" so we don't fail hard if we can't figure out the type.
add hook type "enumeration" to jsdIExecutionHook
2001-04-23 19:15:55 +00:00
rginda%netscape.com d584572d07 - not built -
add line attribute to jsdStackFrame
add pcToLine and lineToPc methods to jsdStackFrame
remove isFunction attribute from jsdValue (already covered by jsType attribute)
add propertyCount attribute to jsdValue so you can get the property cound without forcing a bunch of property wrappers to be created (as in GetProperties())
2001-04-23 19:12:56 +00:00
shaver%mozilla.org ab2c095322 not built: fix compilation error due to jschar/PRUnichar mismatch 2001-04-21 15:11:02 +00:00
rginda%netscape.com 61623774d2 - not built -
implement jsdIProperty
2001-04-21 07:21:27 +00:00
brendan%mozilla.org 359b24b178 Restore reviewed code that should have been in the last checkin (76976, r=beard, sr=shaver, a=blizzard). 2001-04-21 04:37:01 +00:00
nboyd%atg.com 06a7eb7d23 Convert to IdScriptable form.
Patch from Igor.
2001-04-20 14:29:56 +00:00
pschwartau%netscape.com dfe73ef724 Minor change; see Brendan's comment at 2001-04-19 12:00 in Bugzilla bug 76634. 2001-04-20 04:57:51 +00:00
rginda%netscape.com 55a224d617 - not build -
basic methods for jsdIObject and jsdIProperty
tweak string params
most methods for jsdIScript jsdIStackFrame, jsdIThreadState, and jsdIValue
add hack methods enterNestedEventLoop and exitNestedEventLoop.  These should be moved to another interface before long.
2001-04-20 04:08:47 +00:00
rginda%netscape.com fdd4636de8 - not built -
add private data to JSDContexts and JSDScripts, add JSD_EvaluateUCScriptInStackFrame
fix comment for JSD_GetValueProperty
2001-04-20 04:03:21 +00:00
rginda%netscape.com 426f9d21de - not built -
add private data to JSDContexts and JSDScripts, add JSD_EvaluateUCScriptInStackFrame
2001-04-20 03:59:43 +00:00
rginda%netscape.com 47c334c44f - not built -
declare jsdObject, jsdProperty, jsdStackFrame, jsdThreadState, and jsdValue
2001-04-20 03:57:28 +00:00
rginda%netscape.com 93545134c2 - not built -
mmm.
skeleton jsdIObject, jsdIProperty
string tweaking
lock / unlock script sytem for JSDScript calls
imeplement jsdIStackFrame, jsdIThreadState, and jsdIValue
hacked in EnterNestedEventLoop and ExitNestedEventLoop
2001-04-20 03:54:05 +00:00
rginda%netscape.com a9757b3117 - not built -
indentation fix
2001-04-20 03:48:03 +00:00
rginda%netscape.com 85d1d58f1a - not built -
add *_EvaluateUCScriptInStackFrame
2001-04-20 03:47:09 +00:00
rginda%netscape.com b382d68805 - not built -
add private data to JSDScripts, fix unsigned vs signed warning
2001-04-20 03:45:39 +00:00
rginda%netscape.com fea369338b - not built -
quiet unix missing initializer warnings
add private data to JSDContexxt
2001-04-20 03:44:25 +00:00
rginda%netscape.com ffeae7f304 -not built-
adding private data to JSDContext, add jsd_EvaluateUCScriptInStackFrame
2001-04-20 03:43:07 +00:00
rginda%netscape.com 0f47b1091d - not built -
include <ctype.h> for toupper
2001-04-20 03:41:10 +00:00
brendan%mozilla.org c91b7a443e Restore ECMA-required Function.prototype.toString while keeping toSource/uneval fix for bug 73760 (76634, r=beard, sr=shaver, a=asa). 2001-04-19 21:57:25 +00:00
brendan%mozilla.org 8737b72c57 Fix regexp object (scope) vs GC deadlock (76233, r=beard, sr=shaver, a=asa). 2001-04-19 21:15:40 +00:00
brendan%mozilla.org 4d6e86aa13 Fix __kernel_standard prototype to match recent addition of int *err final out-param (8112, r=shaver, sr=me, prototype not used by Mozilla or embedding builds). 2001-04-19 21:05:52 +00:00
pschwartau%netscape.com aa1ab90105 Getter/setter tests are non-ECMA. Moving them from ecma_3 directory to js1_5 directory. 2001-04-19 19:09:32 +00:00
beard%netscape.com d3c5b6e963 loadClassName: use current class loader to find classes, before calling Class.forName(). 2001-04-19 17:31:34 +00:00
nboyd%atg.com 3f2c0e479a Latest patches from Igor. 2001-04-19 12:52:39 +00:00
pschwartau%netscape.com 38c1d1eb9c "for (i in myArray)" produces unintentional side effects if a test modifies Array.prototype or Object.prototype. Use for (i=0; __; i++) instead. 2001-04-18 22:33:31 +00:00
beard%netscape.com 623af164d2 Removed hard tabs, removed unnecessary cast, (Scriptable)null. 2001-04-18 20:50:58 +00:00
beard%netscape.com 1aba8adc45 fix for bug #8112, sr=brendan, r=beard 2001-04-18 03:38:58 +00:00
beard%netscape.com aa847144a6 fix for bug #60018 (prevent dangling JSContext), sr=brendan, r=edburns 2001-04-18 03:17:30 +00:00
beard%netscape.com ff318d982f Added UTCUtil library. [not part of build] 2001-04-18 02:44:01 +00:00
beard%netscape.com c2cd83508f Fix for bug #26516, load Java lazily. sr=brendan, r=edburns 2001-04-18 02:22:13 +00:00
pschwartau%netscape.com 90d358d648 Getter/setter tests are non-ECMA. Moving them from ecma_3 directory to js1_5 directory. 2001-04-17 23:56:57 +00:00
pschwartau%netscape.com 603dac1589 Getter/setter tests are non-ECMA. Moving them to js1_5 directory 2001-04-17 23:54:17 +00:00
nboyd%atg.com 73de18d72e Hi, Norris!
I attach optimization patch for NativeDate that makes all js... methods
private, removes passing of unnecessary parameters and replaces
checkInstance by realThis call with false as the third parameter.


Regards, Igor

Hi, Norris!

Here is another small optimization for NativeDate in DayFromMonth method
where it replaces arrays by few ifs.

Regards, Igor
2001-04-17 13:54:45 +00:00
rginda%netscape.com dd76eb9d54 moving xpcom wrapper from extensions/venkman/src/ and idl/ to here. 2001-04-17 08:50:41 +00:00
brendan%mozilla.org 3ab5aff04c Avoid recursive death *and* don't crash on null proto pointer (75239, r/sr=jband, r=itaj sherman <MobDotCom@hotmail.com>). 2001-04-17 07:34:39 +00:00
jband%netscape.com 844f446510 fix bug 76102. Only vend weak references from the root of a wrappedJS wrapper chain. r=dbaron sr=brendan 2001-04-17 07:22:52 +00:00
brendan%mozilla.org dad792ff6f Over-engineer byte-order macro generation to catch most PDP-endian situations (65230, r=rogerl, not part of Mozilla-the-browser-suite build). 2001-04-17 07:12:38 +00:00
nboyd%atg.com dcb19f44ab Subject:
Rhino: patch for IdScriptable.java and question about useDynamicScope
        Date:
             Mon, 16 Apr 2001 17:55:19 +0200
       From:
             Igor Bukanov <igor.bukanov@windriver.com>
 Organization:
             Wind River
         To:
             Norris Boyd <nboyd@atg.com>




Hi, Norris!

Here is a patch to IdScriptable.java that fixes sealed semantic and
makes Something.prototype.constructor to behave just as having DONTENUM
attribute, not DONTENUM|READONLY|PERMANENT. It also renames
seal_function to sealFunctions.

I also have a following question. I added nextInstanceCheck to
IdScriptable.java and its usage in realThis in NativeDate to emulate
code from FunctionObject where it looks up prototype in search for
NativeSomething instance if useDynamicScope is true. But could you
describe why it is necessary? I can understand why doing something like

var proto = new Date();
function Test() { }
Test.prototype = proto;
var test = new Test();
print(test.getDay()); // same as proto.getDay()

would be useful in ceratain situations, but what it has to do with
shared scopes?

Regards, Igor
2001-04-16 19:29:48 +00:00
rginda%netscape.com 8358704e96 -- not built --
unix make fixes
unix "missing initializer" warnings
2001-04-14 18:57:00 +00:00
beard%netscape.com b5d880087c Fix for bug #49130, a=phil 2001-04-14 17:18:14 +00:00
brendan%mozilla.org 9ced40f40b Use parent, if non-null, as scope chain with which to find default proto from Class.prototype, in js_{New,Construct}Object (75975, sr=jband&jst). 2001-04-14 07:34:58 +00:00
beard%netscape.com eebe6969a4 Remove bogus access paths. r/sr=sfraser 2001-04-14 00:16:29 +00:00
beard%netscape.com 952837af00 Fix for bug #74476: pass the actual date to PRMJ_DSTOffset() rather than 0. 2001-04-14 00:07:53 +00:00
brendan%mozilla.org 6a89af54bb Don't zap atom state on last destroy-context in a runtime if interned strings are held by atoms, and/or rooted objects reach atoms -- there may be a new-first-context in the future (72043, r=jband, sr=shaver). 2001-04-13 08:06:15 +00:00
brendan%mozilla.org 30a1f8c65a Better GC-deadlock avoidance (75141, r=shaver, sr=jband). 2001-04-12 01:52:30 +00:00
nboyd%atg.com 78ae1035ab Updates from Igor. 2001-04-11 23:29:23 +00:00
nboyd%atg.com 5c9a127d92 Need to pop activation stack. 2001-04-11 23:28:47 +00:00
brendan%mozilla.org 77c84016e1 - Don't initialize the arguments class, and do rename it to "Object" so that
arguments objects are prototyped by Object.prototype, per ECMA.  We still
  want a custom class, in order to lazily resolve active-JSStackFrame-based
  properties.
- Use a reserved slot to hold a bitmap of deleted arguments elements, so we
  don't re-resolve them after they've been deleted (which would make them seem
  to be permanent, contrary to ECMA).  This work involved sprucing up several
  fundamental types (jsbitmap) and macros (jsbitmap helper macros in jsbit.h,
  JS_HOWMANY in jstypes.h, JSVAL_INT_BITS in jsapi.h).
2001-04-11 23:07:26 +00:00
shaver%mozilla.org e2dc3d6d88 75152: Remove GetVersionNumber stub in favour of upcoming, less-invasive
preloader strategy. r=jag, sr=attinasi.
2001-04-11 14:23:13 +00:00
nboyd%atg.com 4ebaf4aa8a Fixes from Igor. 2001-04-11 13:44:09 +00:00
nboyd%atg.com 440afa2b45 Fix race condition in method. 2001-04-11 13:43:07 +00:00
nboyd%atg.com 9875ad2c6a Make default for generatingDebug flag be true for compilation and false for interpretation. 2001-04-11 13:42:26 +00:00
brendan%mozilla.org 879fbb32b8 Avoid deadlocking the GC on a scope claimed by another thread, but slated to be shared, i.e. ownercx is null but u.link is not (75141, r=shaver, sr=jband). 2001-04-11 05:45:43 +00:00
brendan%mozilla.org 4f15ce6b2c Fix uninitialized var botch (75239, r=rogerl, sr=jband). 2001-04-11 05:31:22 +00:00
nboyd%atg.com ff6cc98718 Fix incorrect for..in order dependency 2001-04-10 17:16:04 +00:00
nboyd%atg.com 8957a651f2 New file from Igor. 2001-04-10 14:21:24 +00:00
nboyd%atg.com 623f9c5944 Add Igor's changes to make generation of id strings by tool. 2001-04-10 13:20:02 +00:00
beard%netscape.com de0a348147 Synchronized with latest sources. 2001-04-10 07:09:43 +00:00
darin%netscape.com 41efbc6217 Necko API changes, bug 74221. r=valeski, sr=rpotts. 2001-04-10 06:01:08 +00:00
nboyd%atg.com d485c3424a Remove SecuritySupport code that doesn't apply to the Invoker case. 2001-04-10 01:47:50 +00:00
brendan%mozilla.org 1b196ec47f Fix Function.prototype.to{Source,String} to parenthesize function objects that were expressed rather than declared (73760, r=rogerl, sr=shaver). 2001-04-10 01:10:28 +00:00
nboyd%atg.com 94df715357 Revert default of generatingDebug back to false to fix regressions. 2001-04-09 23:52:04 +00:00
nboyd%atg.com 8f16f3bdc6 Fix NPE. 2001-04-09 23:43:19 +00:00
jband%netscape.com 0ce7f9396f fix bug 70360 - adding an additional gchook event. r=shaver sr=brendan. fix bug 73761 - property cache does *bad* things if accessed during finalization. sr=brendan. checkin patch from vidur regarding off-by-on in result code iteration. sr=jband on vidur's patch 2001-04-09 23:22:07 +00:00
brendan%mozilla.org 896f80db25 Add __lookupGetter__ and __lookupSetter__ (71992, r=rogerl, sr=shaver). 2001-04-08 23:23:34 +00:00
shaver%mozilla.org f1b7ababaa 74848: make LiveConnect objects NATIVE, to avoid startup crash, r=smfr/sr=brendan 2001-04-05 22:20:47 +00:00
dprice%netscape.com 3e31ab9946 65845 - new order files 2001-04-05 06:02:32 +00:00
brendan%mozilla.org e1a687dac5 - Add JS_GetReservedSlot, JS_SetReservedSlot, and JSCLASS_HAS_RESERVED_SLOTS(n)
to the JS API, for per class extra slots beyond JSSLOT_PRIVATE (or starting
  there for a class that lacks JSCLASS_HAS_PRIVATE).  To avoid penalizing all
  instances, these slots are allocated only upon first property-owned slot
  allocation, or upon first JS_SetReservedSlot.

  This entailed adding getRequiredSlot and setRequiredSlot hooks to the
  JSObjectOps struct, and making obj->slots self-describing, a la BSTR.  It
  also afforded me a chance to clean up obj->slots locking so that non-native
  JSObjectOps didn't risk unlocked accesses!  Now there are thread-safe hooks
  for all uses of obj.

  First consumer is the new, DOM-glue-unifying XPConnect, which needs two
  slots per wrapped function.  Hence the change to js_FunctionClass.flags'
  initializer.

- Commented the heck out of JSClass and JSObjectOps function typedefs in
  jspubtd.h.  I hope embedders see these comments!

- Fix JS_XDRValue's default case to handle int exclusively, there is no other
  possible type (and therefore no JSMSG_BAD_JVAL_TYPE error).

- Clean up tabs in select old, tab-ridden files and sections.

- s/\<fh\>/file/g for stdio FILE * canonical variable names.
2001-04-05 01:53:24 +00:00
cls%seawood.org 7508cd150c Fix jsmath.o related dependencies.
Bug #74707 a=jj@netscape.com
2001-04-04 21:00:11 +00:00
beard%netscape.com 68825cbed9 Configuration for Mac OS X final (Darwin 1.3) 2001-04-04 19:48:12 +00:00
brendan%mozilla.org 260fe09744 Quote reserved identifiers as well as non-lexical-identifier property ids in object literals (73598, r=jband, sr=shaver). 2001-04-04 07:45:22 +00:00
shaver%mozilla.org 70ae661e35 sigh, fix direct-inclusion-of-jsgc.h bustage in TestXPC 2001-04-04 05:53:58 +00:00
shaver%mozilla.org 2883b75c91 fixing bustage from fat-fingering before committing 2001-04-04 05:06:59 +00:00
shaver%mozilla.org c8a3e25062 73645: use JSDHashTable for JSRuntime.gcRootsHash and .gcLocksHash.
r=waterson-the-dhash-fiend, sr=brendan-the-other-dhash-fiend
2001-04-04 04:30:41 +00:00
shaver%mozilla.org 38e0a265ee 74637: track scc's string changes, to fix infinite recursion when manipulating
a wrapped JSString. r=smfr, sr=scc.
2001-04-04 04:02:21 +00:00
rickg%netscape.com c1ce80ae83 preloader update. r=peterl, sr=attinasi 2001-04-03 22:58:59 +00:00
scc%mozilla.org 8151cb2d95 fix torino bustage 2001-04-03 00:42:48 +00:00
scc%mozilla.org c355507eda landing string branch; see bug #73786 2001-04-02 19:40:52 +00:00
nboyd%atg.com 8b81da99f2 Subject:
Minor fix to JSDebugger
        Date:
             Wed, 28 Mar 2001 16:34:24 -0800
       From:
             Christopher Oliver <coliver@mminternet.com>
 Organization:
             Primary Interface LLC
         To:
             nboyd@atg.com




Hi Norris,

Attached is a minor fix to the JSDebugger GUI that causes the tool-bar buttons to all have the same width.
I checked out and modified a file from CVS today.  See the screenshot below.

Cheers,

Chris
2001-03-29 01:44:45 +00:00
nboyd%atg.com fdb0462420 Fix problem where errors wouldn't get source positions. 2001-03-28 14:42:37 +00:00
pinkerton%netscape.com 57dab27cad allow macs with low memory to build optimized by setting the |lowmem| option. bug 72945. r=peterv/sr=shaver. 2001-03-27 23:08:32 +00:00
mkaply%us.ibm.com 2ab67c4ef0 #73620
r=jband, sr=brendan
Fix some places where we used casts instead of CALLBACKs
2001-03-27 22:59:33 +00:00
mkaply%us.ibm.com 64518265a6 OS/2 breakage - need callback 2001-03-27 16:37:01 +00:00
mkaply%us.ibm.com 9bbaab9aef OS/2 bustage - need callback 2001-03-27 14:35:06 +00:00
nboyd%atg.com af6971af47 Fix 73555. 2001-03-27 14:01:53 +00:00
pschwartau%netscape.com e9c87a4bf1 Minor corrections to code and whitespace. 2001-03-27 07:53:14 +00:00
pschwartau%netscape.com 6acce8f960 Minor fixes to code and whitespace. 2001-03-27 07:43:17 +00:00
pschwartau%netscape.com d00fee858c Minor corrections to code and style - 2001-03-27 07:16:36 +00:00
shaver%mozilla.org 315da0eba6 correct cast to fix build bustage 2001-03-27 06:44:00 +00:00
waterson%netscape.com 3a6f221ad9 Fix windows bustage. 2001-03-27 06:39:05 +00:00
waterson%netscape.com eb0724a2e0 Bug 73540. Make sure [JS|PL]DHashTable clear live entries while finalizing. Remove induction variable from [JS|PL]_DHashEnumerate() along the way. r=brendan, sr=shaver 2001-03-27 06:24:25 +00:00
shaver%mozilla.org 0018ac7c7c 50602: Add support in XPConnect for sharing of refcounted string BufferHandles,
in both directions.
72552: Remedy overzealous CHECK_REQUEST placement in jsapi.c, to produce a
       minimal-but-complete set of engine entry points that require a Request
       for safe execution.
r=brendan, sr=jband, assist=scc,pinkerton
2001-03-27 06:04:44 +00:00
pschwartau%netscape.com 2bfdd49b98 Initial add. Testcase for the internal [[Class]] property of Objects. 2001-03-27 05:50:08 +00:00
pschwartau%netscape.com 433058f8eb Initial add. Utility functions for testing Objects. 2001-03-27 05:48:48 +00:00
shaver%mozilla.org 1fe0824c25 63027: Adding evalInSandbox to JS component loader script-context, to permit
JS components to execute script code with restricted privileges and
       controlled access to their (privileged) environment. r=brendan,
       sr=jband.
2001-03-27 05:35:52 +00:00
mkaply%us.ibm.com e82031955a #73191
r=beard, sr=brendan
Remove CRT_CALL - change to PR_CALLBACK or JS_DLL_CALLBACK appropriately
2001-03-26 23:21:53 +00:00
pschwartau%netscape.com 403c858181 In some shells, carriage returns are "\n"; in others, "\r\n". Look for either possibility - 2001-03-26 22:00:53 +00:00
disttsc%bart.nl 6e48266508 Clean up REQUIRES lines. r=cls 2001-03-25 22:59:27 +00:00
dmose%netscape.com 892509f523 Fix MOZ_TRACK_MODULE_DEPS bustage with --enable-xpctools (bug 72120). Only touches unix build-system. r=cls@seawood.org 2001-03-24 06:14:28 +00:00
brendan%mozilla.org a2a306a3c5 Fix old 1.4-era bogus code for setting JSPD_ARGUMENT or JSPD_VARIABLE given a heavyweight activation (68825, r=shaver, sr=jband). 2001-03-24 00:31:43 +00:00
nboyd%atg.com fd50474708 Fix bug 72921. 2001-03-22 21:56:12 +00:00
jband%netscape.com 2a65a69e81 [Not part of mozilla build]. Fix for bug pointed out by Celso Aguiar <caguiar@Adobe.COM>. 2001-03-22 20:11:26 +00:00
brendan%mozilla.org 27d279c118 - [jsemit.c] Fix horrid stupid bugs generating JSOP_ARGCNT and JSOP_ARGSUB,
where any occurrence of arguments.length or arguments[0], e.g., would be
  "optimized" to use those bytecodes.  This is just wrong if the occurrence
  is an operand of delete, ++, --, or the left-hand-side of an assignment
  operator!

- [jsfun.c, jsinterp.c]  args_getProperty etc. must use JS_GetInstancePrivate,
  not JS_GetPrivate, as the arguments object is exposed, and can be made a
  prototype of other objects that do not have private data, or private data
  that's a JSStackFrame*.  Same goes for fun_getProperty, js_GetArgument, etc.

- [jsfun.c, jsobj.c, jsstr.c]  No need to specialize fun_delProperty and
  str_delProperty to help convince users and ECMA conformance tests that
  fun.length and str.length are direct properties of instances, instead of
  being delegated to Function.prototype.length and String.prototype.length.
  This special case is done universally in js_DeleteProperty for all SHARED
  and PERMANENT proto-properties.

- [jshash.c]  Sneaking this followup-fix for bug 69271 in: use JS_HASH_BITS
  rather than hardcoded 32.

- [jsobj.c, jsscope.[ch]]  Fix misnamed js_HashValue (it takes a jsid, so it
  is now js_HashId).

- [jsscript.c] script_compile needs to call JS_InstanceOf, to ensure that obj
  is a Script object.
2001-03-22 02:52:42 +00:00
mkaply%us.ibm.com 810065aefd #72563
r=javier, a=jband
Change some PR_CALLBACK to JS_DLL_CALLBACK and vice versa and remove IBM cruft
2001-03-21 01:35:39 +00:00
brendan%mozilla.org 4b1afd1b62 Add JS_MapGCRoots for complete enumeration of GC roots (72465, r/sr={shaver,jband}). 2001-03-21 01:33:39 +00:00
shaver%mozilla.org fc7fa394b3 67797: add Components.isSuccessCode (r=jag, sr=jband) 2001-03-19 21:34:05 +00:00
brendan%mozilla.org f356f82d9a Fix JS_ArenaRealloc to cope with alignment shift from realloc (72034, r=shaver, sr=jband, a=asa). 2001-03-16 08:06:08 +00:00
brendan%mozilla.org cdb43c302d Fix bug 69271, r=waterson, sr=shaver:
- Don't ape java.lang.String's bogo-sampling hash function for "long" (>=16
  char) strings.
- Theory and practice comment in jsdhash.h helps analyze when to use double
  hashing (most of the time) vs. when to use chaining.
- Subroutine ChangeTable from JS_DHashTableOperate so it can be called from
  JS_DHashTableEnumerate, if the latter finds that enough entries have been
  removed to be worth a shrink or compress cycle.
2001-03-14 07:42:32 +00:00
mkaply%us.ibm.com ae7b14dd08 OS/2 TB break
Need calling convention
2001-03-14 05:28:27 +00:00
disttsc%bart.nl c16959d963 Fix MOZ_TRACK_MODULE_DEPS builds (like senna) bustage, adding "necko" to REQUIRES, r=cls 2001-03-14 03:46:23 +00:00
beard%netscape.com 3f7d76865d fix Mac build bustage. 2001-03-14 03:24:20 +00:00
rginda%netscape.com b7fee3dd43 fix for mac bustage, I think 2001-03-14 03:12:07 +00:00
Peter.VanderBeken%pandora.be ac96da18f4 part 3 of bug 48972 check in: mac changes. r=brendan, sr=shaver 2001-03-14 02:43:32 +00:00