827 Commits

Author SHA1 Message Date
rogerl%netscape.com
900de8bfd5 Added base to ScriptRuntime.numberToString, NativeNumber.toString()
Bug #7625


git-svn-id: svn://10.0.0.236/trunk@34534 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-10 01:54:28 +00:00
rogerl%netscape.com
44ea3bf179 New
git-svn-id: svn://10.0.0.236/trunk@34357 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-09 03:10:30 +00:00
rogerl%netscape.com
06986144aa tried adding some lexical scoping to the leftmost identifier
git-svn-id: svn://10.0.0.236/trunk@34356 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-09 03:10:09 +00:00
jband%netscape.com
fcf49b32de removing unused file
git-svn-id: svn://10.0.0.236/trunk@34253 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-08 21:05:19 +00:00
norris%netscape.com
83c191892d Small reduction in code size.
git-svn-id: svn://10.0.0.236/trunk@34248 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-08 20:57:19 +00:00
cbegle%netscape.com
bfd3a64713 Fix constructor test to match the constructors in DataTypeClass.java
git-svn-id: svn://10.0.0.236/trunk@34210 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-08 18:07:15 +00:00
cbegle%netscape.com
a076943e46 Add constructor tests.
git-svn-id: svn://10.0.0.236/trunk@34209 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-08 18:06:28 +00:00
cbegle%netscape.com
1654607cbd Object getters should return the same object set in the object setters,
and not create a new object.


git-svn-id: svn://10.0.0.236/trunk@34200 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-08 16:27:43 +00:00
brendan%netscape.com
2802b8d1f6 - "varargs" counterpart to JS_ConvertArguments, JS_ConvertArgumentsVA.
- JS_PushArguments{,VA} and JS_PopArguments to convert a list of C/C++ values
  passed as actual arguments into an 'jsval *argv' on the JS stack.
- Clean up and robustify ConvertArgs test command in the js shell.


git-svn-id: svn://10.0.0.236/trunk@34159 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-08 02:15:57 +00:00
waldemar%netscape.com
348f792fe4 Fixed several semantic errors. Added (?= and (?!.
git-svn-id: svn://10.0.0.236/trunk@34147 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-08 00:45:49 +00:00
waldemar%netscape.com
3fd19af552 Added statement showing number of grammar states
git-svn-id: svn://10.0.0.236/trunk@34146 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-08 00:44:52 +00:00
briano%netscape.com
0f0c501180 SunOS 4.x doesn't have libsocket either.
git-svn-id: svn://10.0.0.236/trunk@34132 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-08 00:15:02 +00:00
rogerl%netscape.com
ccf097f432 Fixed bug #7703, typeof<var> wasn't referencing activation frame vars
correctly.


git-svn-id: svn://10.0.0.236/trunk@34108 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-07 22:29:41 +00:00
waldemar%netscape.com
57a8f8ffc6 Simplified grammar by using lookahead constraints. Fixed \dd bugs. Made all errors occur at pattern compile time.
git-svn-id: svn://10.0.0.236/trunk@34096 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-07 22:00:09 +00:00
waldemar%netscape.com
bed46b51e0 Simplified grammar by using lookahead constraints.
git-svn-id: svn://10.0.0.236/trunk@34095 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-07 21:58:24 +00:00
waldemar%netscape.com
e5731ff736 Simplified grammar by using lookahead constraints. Removed requirement for an underscore before unit name.
git-svn-id: svn://10.0.0.236/trunk@34094 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-07 21:57:29 +00:00
norris%netscape.com
fff5b7216c Clean up formatting.
git-svn-id: svn://10.0.0.236/trunk@33996 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-07 18:14:15 +00:00
norris%netscape.com
0f1b29664f Optimization: avoid allocating a Vector object for every LiveConnect call.
git-svn-id: svn://10.0.0.236/trunk@33995 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-07 18:13:15 +00:00
jband%netscape.com
34ce93323c allow for mapping both directions between NULL and JSVAL_NULL for all pointer type objects (string, wstring, nsid, as well as interface pointers
git-svn-id: svn://10.0.0.236/trunk@33973 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-07 05:09:38 +00:00
mccabe%netscape.com
7db0124e7d Change the emacs /* Mode: */ comment for many .cpp files from C to C++. A .js file snuck in there too, but I like seeing my .js in c++-mode anyway...
git-svn-id: svn://10.0.0.236/trunk@33951 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-06 04:25:58 +00:00
mccabe%netscape.com
10951415b5 Patches courtesy Jeremy Lea <reg@shale.csir.co.za>
To wit:

Attached are a couple of small fixes for building in the js/ subdir.

These are for FreeBSD-CURRENT, and for building in a seperate OBJDIR.

The FreeBSD one is a quick and dirty.  The real fix is pobably just to
use OS_LDFLAGS as defined by configure...


git-svn-id: svn://10.0.0.236/trunk@33950 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-06 04:10:33 +00:00
beard%netscape.com
56211264dc added NativeJavaConstructor.java
git-svn-id: svn://10.0.0.236/trunk@33913 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-05 08:20:54 +00:00
frankm%eng.sun.com
d82f107a0a Replace *.class with ScriptRuntime.*Class; added ScriptRuntime.ClassClass
git-svn-id: svn://10.0.0.236/trunk@33897 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-05 01:48:24 +00:00
briano%netscape.com
f68bc74338 Fix for SunOS 4.x.
git-svn-id: svn://10.0.0.236/trunk@33896 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-05 01:46:10 +00:00
jdunn%netscape.com
c4bf59ddf0 need to handle building in a separate directory from where the source is...
git-svn-id: svn://10.0.0.236/trunk@33859 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-04 23:40:02 +00:00
mccabe%netscape.com
14ae3aa186 Backing out demo cvs checkin.
git-svn-id: svn://10.0.0.236/trunk@33811 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-04 22:27:50 +00:00
briano%netscape.com
a5a074461d Handle the (Unix) platform-specific DLL naming conventions properly.
git-svn-id: svn://10.0.0.236/trunk@33800 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-04 22:17:30 +00:00
jdunn%netscape.com
85dfb1be6c This file can't be optimized on AIX and so just like the NSPR file (prdtoa.c)
we turn off optimizing while compiling.


git-svn-id: svn://10.0.0.236/trunk@33785 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-04 21:50:09 +00:00
norris%netscape.com
90348e63ec Add benchmarks.
git-svn-id: svn://10.0.0.236/trunk@33758 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-04 18:44:17 +00:00
beard%netscape.com
7e586f42e5 added top-level "environment" associative array - which provides JavaScript access to Java System properties.
git-svn-id: svn://10.0.0.236/trunk@33757 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-04 18:06:25 +00:00
beard%netscape.com
a640fc495b First Checked In.
git-svn-id: svn://10.0.0.236/trunk@33756 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-04 18:03:06 +00:00
beard%netscape.com
dbf0fe69c6 File Removed.
git-svn-id: svn://10.0.0.236/trunk@33753 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-04 17:43:35 +00:00
beard%netscape.com
8a0fe4a93e added Environment.java
git-svn-id: svn://10.0.0.236/trunk@33752 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-04 17:43:17 +00:00
norris%netscape.com
960871aa12 Subject:
Re: netscape.javascript.JSObject ?
        Date:
             Thu, 03 Jun 1999 17:52:42 -0700
       From:
             Frank Mitchell <frankm@eng.Sun.COM>
 Organization:
             Java Products Engineering
         To:
             Norris Boyd <norris@netscape.com>
  References:
             1 , 2 , 3 , 4 , 5 , 6 , 7 , 8




Norris Boyd wrote:
>
> Sorry--missed the checkin of a new file. It's there now.
>
> I'd also added a small change for the "inheritance" of JavaScript array methods.

Actually, I've already done that (and for String as well).  It still
fails some LC3 regression tests, though.

I'm including a tarfile that includes the previous changes and the new
ones.

Frank


git-svn-id: svn://10.0.0.236/trunk@33744 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-04 16:25:41 +00:00
norris%netscape.com
1090d221af Add NativeJavaConstructor.java
git-svn-id: svn://10.0.0.236/trunk@33743 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-04 16:06:14 +00:00
ducarroz%netscape.com
add3524194 add nsIXPCSecurityManager to fix build bustage
git-svn-id: svn://10.0.0.236/trunk@33728 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-04 06:39:33 +00:00
jband%netscape.com
cc9525fa15 added nsIXPCSecurityManager interface and support to xpconnect - with tests.
git-svn-id: svn://10.0.0.236/trunk@33725 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-04 05:46:48 +00:00
mang%subcarrier.org
a904c07dc4 Added doc comment
git-svn-id: svn://10.0.0.236/trunk@33670 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-03 23:39:57 +00:00
norris%netscape.com
b8fb6e472a LC3 support: make Java arrays have Array.prototype as a prototype.
git-svn-id: svn://10.0.0.236/trunk@33669 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-03 23:38:47 +00:00
norris%netscape.com
589a2f1182 Subject:
Re: Rhino LiveConnect: need help?
        Date:
             Wed, 02 Jun 1999 19:33:37 -0700
       From:
             Frank Mitchell <frankm@eng.Sun.COM>
 Organization:
             Java Products Engineering
         To:
             Scott Furman <fur@netscape.com>, Norris Boyd <norris@netscape.com>
         CC:
             mallen@eng.Sun.COM
  References:
             1 , 2 , 3 , 4




Scott Furman wrote:
> In order to bring Rhino LiveConnect support up to the level of the
> C-engine, the features of LiveConnect version 2 and version 3 would
> need to be added.  You can see some details of LC2 and LC3 features
> here.  I would guess that 80% of the time would be spent implementing
> one feature: LC3's new method overload resolution scheme.


OK, I think I have something that implements the new overloaded method
resolution scheme ... I'm still working on getting the regression tests
running smoothly, but from command-line testing it seems to work.  It's
not the *cleanest* code I've ever done, though: in particular, it has
too many static methods and type-checking code for my tastes.  (Hey,
should we spin the type coercion and comparison stuff to some other
module entirely?  Right now it's mostly in JavaNativeObject, with the
preference stuff in JavaNativeMethod.)  I'm also not sure why some of
this stuff is public, and whether there might be backward-compatibility
problems with what I've done, particularly in repurposing the
COMPARISON_* constants.

Would you guys be kind enough to review this for me?  I'm hoping to
check it in once I get an ID, but it wouldn't hurt to have another pair
of eyes or three (pairs, I mean).  I've attached a tar/gzip of the
source files I've changed (or added), plus a diff.

Thanks,
Frank


git-svn-id: svn://10.0.0.236/trunk@33667 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-03 23:38:00 +00:00
rogerl%netscape.com
453b90c2aa Blew off 'caller' property - it was deemed a security risk, bug #7224
git-svn-id: svn://10.0.0.236/trunk@33661 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-03 23:24:39 +00:00
norris%netscape.com
315a12dd58 Subject:
Re: Rhino LiveConnect: need help?
        Date:
             Wed, 02 Jun 1999 19:33:37 -0700
       From:
             Frank Mitchell <frankm@eng.Sun.COM>
 Organization:
             Java Products Engineering
         To:
             Scott Furman <fur@netscape.com>, Norris Boyd <norris@netscape.com>
         CC:
             mallen@eng.Sun.COM
  References:
             1 , 2 , 3 , 4




Scott Furman wrote:
> In order to bring Rhino LiveConnect support up to the level of the
> C-engine, the features of LiveConnect version 2 and version 3 would
> need to be added.  You can see some details of LC2 and LC3 features
> here.  I would guess that 80% of the time would be spent implementing
> one feature: LC3's new method overload resolution scheme.


OK, I think I have something that implements the new overloaded method
resolution scheme ... I'm still working on getting the regression tests
running smoothly, but from command-line testing it seems to work.  It's
not the *cleanest* code I've ever done, though: in particular, it has
too many static methods and type-checking code for my tastes.  (Hey,
should we spin the type coercion and comparison stuff to some other
module entirely?  Right now it's mostly in JavaNativeObject, with the
preference stuff in JavaNativeMethod.)  I'm also not sure why some of
this stuff is public, and whether there might be backward-compatibility
problems with what I've done, particularly in repurposing the
COMPARISON_* constants.

Would you guys be kind enough to review this for me?  I'm hoping to
check it in once I get an ID, but it wouldn't hurt to have another pair
of eyes or three (pairs, I mean).  I've attached a tar/gzip of the
source files I've changed (or added), plus a diff.

Thanks,
Frank


git-svn-id: svn://10.0.0.236/trunk@33660 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-03 23:22:27 +00:00
jband%netscape.com
714db32d2e use the newly-FRIEND-ized js_AllocStack, js_FreeStack, and js_Invoke functions instead of JS_CallFunctionName to assure that the gcthing converted args we accumulate before making the call are properly rooted. This is a lot more efficient than the alternative of explicitly rooting them with JS_AddRoot. Up to this point these gcthings (doubles and strings) were dangling. Thanks to brendan for this suggstion.
git-svn-id: svn://10.0.0.236/trunk@33598 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-03 21:44:37 +00:00
jband%netscape.com
edbf476869 make js_AllocStack, js_FreeStack, and js_Invoke, FRIEND functions so that they can be used by our good friend xpconnect.
git-svn-id: svn://10.0.0.236/trunk@33594 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-03 21:39:08 +00:00
waldemar%netscape.com
278f1afe6b First Checked In.
git-svn-id: svn://10.0.0.236/trunk@33580 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-03 20:53:14 +00:00
waldemar%netscape.com
43df2e7833 Added support for lookahead constraints
git-svn-id: svn://10.0.0.236/trunk@33579 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-03 20:52:04 +00:00
waldemar%netscape.com
038abfdf29 Added general-grammar-symbol? predicate
git-svn-id: svn://10.0.0.236/trunk@33578 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-03 20:50:21 +00:00
waldemar%netscape.com
4d092e8b8c Moved pieces of file around
git-svn-id: svn://10.0.0.236/trunk@33577 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-03 20:49:13 +00:00
waterson%netscape.com
095d917a3a Single public include directory on Win32.
git-svn-id: svn://10.0.0.236/trunk@33538 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-03 18:34:27 +00:00
rogerl%netscape.com
795f76c118 Changed behaviour of Script.exec so that it gains access to the current
scope when invoked, rather than grabbing the topmost. Prevented exec from
being called indirectly.


git-svn-id: svn://10.0.0.236/trunk@33437 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-03 00:08:00 +00:00