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

3518 Коммитов

Автор SHA1 Сообщение Дата
pschwartau%netscape.com cd0bda80e4 Skipping two new tests with large switch statements. See bug 81086. 2001-05-17 18:52:43 +00:00
nboyd%atg.com 3ab27cd6f6 Mail gateway info. 2001-05-17 18:36:59 +00:00
jband%netscape.com 6bf8f29608 fix bug 81117. allow unsecure access to creating xpconnect wrappers around nsXPCException objects and expose the 'code' property. This saves us from cryptic errors in the JSConsole and DOMExceptions that don't work. r=mstoltz sr=jst 2001-05-17 18:25:06 +00:00
nboyd%atg.com b0c58e7858 Just remove commented-out "final". 2001-05-17 17:29:19 +00:00
beard%netscape.com d5528f0d1b bug #77856, r/sr=brendan. 2001-05-17 05:45:51 +00:00
beard%netscape.com 7be3ee4da5 bug #77247, r/sr=brendan 2001-05-17 05:42:18 +00:00
vidur%netscape.com 7b4e1ce855 Reverting bogus assert. r/sr=brendan,jband 2001-05-17 04:55:49 +00:00
brendan%mozilla.org 6756302c8a Unified resolve recursion damping (70358) and resolve-from-js_SetProperty (72354), r/sr=jband,jst,shaver. 2001-05-17 01:43:58 +00:00
brendan%mozilla.org 13047e9df7 STORE_NUMBER's final param must be a jsdouble; fix INTEGER_OPs (81245, r=rogerl, sr=jband). 2001-05-17 01:40:32 +00:00
pschwartau%netscape.com 59e4a786e2 Whitespace cleanup. 2001-05-16 22:45:11 +00:00
brendan%mozilla.org 06f0438169 Fix ChangeTable and how it's called (74883, r=gordon, sr=waterson, mcafee approved). 2001-05-16 21:41:52 +00:00
pschwartau%netscape.com 4adbbdc4cd Initial add. Regression test for bug 76054 in SpiderMonkey and bug 78706 in Rhino. 2001-05-16 19:01:42 +00:00
nboyd%atg.com a3b732253c Fix bug 78706 2001-05-16 14:07:00 +00:00
Xiaobin.Lu%eng.Sun.com 756c0b5663 r=timeless sr=shaver
bug 72807 "c++ style comment warning"
2001-05-16 02:24:44 +00:00
beard%netscape.com 27aad76ca1 Removed:
ScopeInitializer.java
2001-05-16 01:10:19 +00:00
nboyd%atg.com 7e6a408e26 2 additional issues:
1. In that patch I forgot to remove "import org.mozilla.classfile.*" and
simply catch Exception in newInvokerMaster which is not a good practice.
The attached patch FunctionObject_patch fixes that and removes other
unused imports.

2. In org.mozilla.classfile.DefiningClassLoader defineClass method first
tries to call via ClassManager the defineClass method in a class loader
that loaded DefiningClassLoader itself. But this would define new
classes in that class loader so they would not be subject of the garbage
collection until a classloader that loads DefiningClassLoader would go
away even if a DefiningClassLoader instance is gone. The
DefiningClassLoader_patch removes that and simply calls super.defineClass.

The patch also change the order of class search in loadClass so the
loader first looks for a class among its defined classes and only after
that in parent loaders.

Regards, Igor
2001-05-16 00:24:37 +00:00
pschwartau%netscape.com a65a6f3bb9 Initial add. Regression test for bug 74474. 2001-05-15 22:01:39 +00:00
pschwartau%netscape.com 7e1ec21bff Renaming this file as regress-74474-001.js 2001-05-15 22:00:42 +00:00
brendan%mozilla.org 3de6d8412c Add optional JSDHashTableOps.initEntry hook, spruce up comments (74883, r=waterson, sr=shaver). 2001-05-15 21:07:10 +00:00
sfraser%netscape.com 39abe1a751 Testing, NOT PART OF ANYTHING 2001-05-15 20:57:01 +00:00
rginda%netscape.com 9d4b8b8128 bug 76050, use the same module name across the module. Fix senna bustage. r=cls 2001-05-15 20:40:43 +00:00
rginda%netscape.com a7060622bf bug 76050, fix REQUIRES for jsd unix makefile. r=cls 2001-05-15 20:39:35 +00:00
rginda%netscape.com db388b7464 bug 76050, build js/jsd from toplevel makefile so we're sure we've got an xpidl compiler. r=cls 2001-05-15 20:38:26 +00:00
brendan%mozilla.org 7f433d7aea Re-init pinned atoms after 1=>0=>1 contexts-in-runtime transition (80619, sr=jband&shaver). 2001-05-15 19:39:16 +00:00
jband%netscape.com 6823a77ccc remove commented out code 2001-05-15 19:15:30 +00:00
nboyd%atg.com 6a2409561b 2 additional issues:
1. In that patch I forgot to remove "import org.mozilla.classfile.*" and
simply catch Exception in newInvokerMaster which is not a good practice.
The attached patch FunctionObject_patch fixes that and removes other
unused imports.

2. In org.mozilla.classfile.DefiningClassLoader defineClass method first
tries to call via ClassManager the defineClass method in a class loader
that loaded DefiningClassLoader itself. But this would define new
classes in that class loader so they would not be subject of the garbage
collection until a classloader that loads DefiningClassLoader would go
away even if a DefiningClassLoader instance is gone. The
DefiningClassLoader_patch removes that and simply calls super.defineClass.

The patch also change the order of class search in loadClass so the
loader first looks for a class among its defined classes and only after
that in parent loaders.

Regards, Igor
2001-05-15 16:58:08 +00:00
beard%netscape.com f9ac4a4f5d Removed: src/org/mozilla/javascript/optimizer/JavaScriptClassLoader.java Added: src/org/mozilla/javascript/optimizer/InvokerImpl.java src/org/mozilla/classfile/DefiningClassLoader.java 2001-05-15 15:41:44 +00:00
nboyd%atg.com f3a596d65d New file, mostly moved from org.mozilla.javascript.optimizer.JavaScriptClassLoader 2001-05-15 13:12:43 +00:00
nboyd%atg.com 64798ecbb6 Norris Boyd wrote:
> Igor Bukanov wrote:
>
>
>>Norris Boyd wrote:
>>
>>
>>>The intention was to keep classfile and JavaAdapter optional. Those
>>>dependencies crept in. We can use Invoker optionally--perhaps I should do
>>>some performance numbers to see if it's worth it.
>>>
>>I implemented that patch, it splits Invoker.java into Invoker.java and
>>its implementation in optimizer/InvokerImpl.java The reason to put it
>>into optimizer package is that Invoker is very similar in spirit to
>>NativeScript: it generates classes to speed up access and in this way
>>there is no need to have separated option not to use: one can simply
>>remove optimizer all together.
>>
>
> Yes, that sounds great.
>
>
>>
>>I noticed during implementation that JavaAdapter.DefiningClassLoader and
>>optimizer/JavaScriptClassLoader contains the same code, so maybe they
>>can be moved to org.mozilla.classfile package under one name?
>>
>
> Yes, that sounds like a good change too. Thanks for noticing that.


The update is pretty messy: it touches FunctionObject which I changed to
remove the special treatment of NativeWith in the previous patch, and it
also add/removes files.

Here is a description:
DefiningClassLoader.java should go to org/mozilla/classfile. It is the
same code that was in omj/optimizer/JavaScriptClassLoader.java with
class rename and adding public attribute and correspondingly
omj.optimizer/JavaScriptClassLoader.java should be removed. I guess it
would be nice to preserve logs/history in CVS during the move.

InvokerImpl.java should go to omj/optimizer. It is mostly what
omj.Invoker was.

invoker_changes_patch was generated via
cvs diff -u Invoker.java JavaAdapter.java optimizer/Codegen.java
and contains changes against the current CVS

FunctionObject_invoker_patch was generated via
diff -u ../../mozilla.1/javascript/FunctionObject.java FunctionObject.java
and contains changes against that With patch.

Igor
2001-05-15 13:10:38 +00:00
rginda%netscape.com 6da2fab05f fix to help senna tinderbox find PRClist 2001-05-15 07:55:34 +00:00
rginda%netscape.com 270be09339 fix ports bustage 2001-05-15 07:42:58 +00:00
rginda%netscape.com 4531873faa disable js debugger until I can figure out what's going on with shrike 2001-05-15 07:07:36 +00:00
rginda%netscape.com ce5fcf9974 bug 76050, js debugger unix make system changes, r=cls 2001-05-15 05:48:08 +00:00
nboyd%atg.com 1ff4e60251 The attached patch makes NativeWith to use IdFunction for its
constructor, removes the special treatment of the With object from
IdScriptable and FunctionObject, adds to IdFunction the
initAsConstructor method similar in spirit to
FunctionObject.addAsConstructor (it is called now from IdScriptable and
NativeWith) and replaces in Context.java lazy initialization of
NativeWith by direct call of NativeWith.scopeInit.
2001-05-15 01:17:51 +00:00
pschwartau%netscape.com 024f7144c7 Whitespace cleanup - 2001-05-15 00:08:27 +00:00
rginda%netscape.com 78f5f69a15 - not built -
add required libraries to unix make
2001-05-14 21:59:01 +00:00
beard%netscape.com 97d606e02c Added idswitch tool sources. 2001-05-14 06:52:39 +00:00
beard%netscape.com 5ae8ff2f57 Added IdFunctionMaster.java to keep Mac build working. 2001-05-14 06:48:07 +00:00
rginda%netscape.com 732a56c73c - not built -
check for valid PC in ClearBreakpoint
Lock script subsystem while clearing all breakpoints
2001-05-13 21:08:06 +00:00
rginda%netscape.com 7b66a6f592 - not built -
Convert JS_SetTrap closure to a jsval so it works like a GC thing.
2001-05-13 21:07:03 +00:00
nboyd%atg.com 829403bf15 Hi, Norris!
The attached patch moves the IdFunction.Master interface to the
separated file IdFunctionMaster and eliminates getParentScope from the
interface: it is simpler to set scope explicitly.

The patch assumes the changes in IdFunction.java from the previous patch
  and were produced via:

diff -uP javascript.2000-05-10 javascript

Regards, Igor
2001-05-12 13:15:39 +00:00
pschwartau%netscape.com 47583f78b2 Making the test driver work correctly on the Mac. 2001-05-12 03:52:20 +00:00
jband%netscape.com b8ada255ac bug 80062. Various post xpcdom branch landing fixes. r=dbradley sr=jst 2001-05-12 02:56:47 +00:00
pschwartau%netscape.com 97a07465ca Updated JS_GetImplementationVersion() to date of latest JS release (67111). 2001-05-11 20:05:34 +00:00
nboyd%atg.com 8149783552 Hi, Norris!
The attached patch allows subclasses of IdScriptable to override
hasIdValur/deleteIdValue and uses lazy initialization for idMapData
array to avoid its creation when an IdScriptable descendant does not
have any functions. The patch also touches NativeMath.java to replace in
its scopeInit method
        super.scopeInit(cx, scope, sealed);
by
        activateIdMap(cx, sealed);
This is the only reason NativeMath needs to call
IdScriptable.scopeInit() which is intended for creation
constructor/prototype pair.

Regards, Igor
2001-05-11 17:41:00 +00:00
jband%netscape.com 7e4ebed4f1 fix bug 79907.r=rginda sr=jst 2001-05-10 09:45:28 +00:00
shaver%mozilla.org 56c8aa2285 76659: make JSRegExps use JSClass.mark instead of GCThing locking, sr=brendan, r=rogerl 2001-05-10 08:05:45 +00:00
cls%seawood.org 0436fce4cf Do not attempt to compile lock_SunOS.s on Solaris Intel. (Native compiler only)
Bug #79598
2001-05-10 06:40:58 +00:00
pschwartau%netscape.com ead8a37b7f Initial add. Regression test for bug 72773. 2001-05-09 21:57:15 +00:00
nboyd%atg.com 8bc5ed389a Update implementation version, make non-final. 2001-05-09 17:57:05 +00:00
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