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

2536 Коммитов

Автор SHA1 Сообщение Дата
rogerl%netscape.com 2e3359c741 Added op= support. 2000-06-15 16:03:54 +00:00
nboyd%atg.com 813e60ba07 Wrapping a class produces a NativeJavaClass. 2000-06-15 14:00:31 +00:00
rogerl%netscape.com 22b93140d6 Mark top-level execution as 'script' rather than function - to handle
vars correctly.
2000-06-14 23:28:38 +00:00
rogerl%netscape.com f32f769135 Added 'Function' instruction, plus suppresses class output if there is
no super specified. (ok it's a hack, but it works)
2000-06-14 23:27:28 +00:00
rogerl%netscape.com dae9b1607b Adding support for Functions and Vars, preXcrement, object literals. 2000-06-14 23:26:15 +00:00
nboyd%atg.com 94e1edf2e9 Fix bug 42097 2000-06-14 13:39:44 +00:00
pavel%gingerall.cz 34337bd829 - fixes in original version of perlconnect (JSVALToSV SVToJSVAL etc.)
- object delegation (like JSCreateObject) Perl->JS
- ParlValue handles PerlObject correctly
- undef values handled correctly (in both directions)
- JS arrays may be tied to perl arrays
- error handlers supported on Perl side
- no globals
- several minor fixes
2000-06-14 07:23:58 +00:00
pavel%gingerall.cz 122e709f36 - minor change of jsperl.h inclusion, matters for perlconnect build only 2000-06-14 07:18:41 +00:00
rginda%netscape.com b135be69a0 -- NOT PART OF THE BUILD --
Conditionally build lcshell w/ jdk 1.1.8 or 1.2.2 on windows
2000-06-14 00:14:56 +00:00
mkaply%us.ibm.com 739f68cd6d # 37239
r = mccabe, a = brendan
OS/2 bring-up - PR_CALLBACK for VisualAge
2000-06-14 00:07:08 +00:00
mccabe%netscape.com 9eeb8e5a67 First part of fix for 38495, support for exposing plugin methods to JavaScript.
This patch teaches XPConnected objects to look in their JavaScript __proto__ chain for any names they can't resolve themselves.  The rest of the fix to this bug sets the original DOM node object as the prototype of a new xpconnect-exposed plugin object, so javascript accesses will see names from both objects.

r=jst,brendan
a=beard
2000-06-13 23:18:21 +00:00
nboyd%atg.com a56f1e6373 Begin 1.5R2 effort.
Commit the following contributions:
* Andi Vajda's changes to allow embedders to capture the generated bytecode (and thus control
generated class names).
* Marshall Cline's changes to allow embedders to override the default Java object wrapping
behavior
* Kurt Westerfeld's change to handle calling static methods better
2000-06-13 14:33:54 +00:00
scc%mozilla.org 55650a35b3 fix type equivalence between |PRUnichar| and |jschar| now that |PRUnchar| may be |wchar_t| on select platforms 2000-06-12 23:52:31 +00:00
rogerl%netscape.com 76fb0716ce Added check for FORMAT characters in new unicode cr/lf handling code. 2000-06-12 17:56:05 +00:00
brendan%mozilla.org c01c46739f Comply with weird ECMA nit: call (o.f)() (note parens around the function expression) must bind 'this' to the global object, not to o\! (41864, r=shaver). 2000-06-08 06:46:18 +00:00
nboyd%atg.com 6d2408fa37 Fix formatting. 2000-06-07 14:51:08 +00:00
nboyd%atg.com 9cb3a95e5d Fix the following problem:
Subject:
        Odd behaviour on placement of .jar files?!
   Date:
        Mon, 05 Jun 2000 10:46:08 -0700
   From:
        John Raykowski <xski@xski.org>
     To:
        nboyd@atg.com




Hello,

I didn't want to post this directly as a rhino bug 'coz I think it may
be more of a JDK thing, but I thought I'd toss it to you as well.

The goal is to create a JavaScript object that implements a Java
interface. Straightforward enough and the example on the page using
ActionListener works without a hitch.  However, when I try to do the
same with my own interface, I get an error message: error instantiating
({0}): class {1} is interface or abstract (coming from
NativeJavaClass.construct).

Here's where it gets a bit strange.  Normally, I run with the jar files
in jre/lib/ext.  When I remove the rhino files from jre/lib/ext and
reference them explicitly on the commandline with the -cp option, it
works as expected and my script can implement the interface just fine.
Go figure.

Anyhoo, there ya go.  Like I said, I think its a JDK issue, but I
thought you'd be interested.  The attached zipfile contains a set of
sample code to demonstrate this problem.

Thanks heaps,

-jmr
2000-06-07 14:50:47 +00:00
brendan%mozilla.org 71d336d3a2 Use localizable error message for out of memory. 2000-06-06 04:54:04 +00:00
brendan%mozilla.org 254d95a427 Better fix, really (r=shaver for sure). 2000-06-06 04:41:05 +00:00
brendan%mozilla.org 53389789d1 Better control flow for catch clause code generation (r=shaver). 2000-06-06 04:27:37 +00:00
mccabe%netscape.com 95640360aa Fix to potential leak introduced with fix to 40406.
Be conservative in handling the lifetime of the safe context created by XPConnect to execute JS Components, and save it off to be destroyed at cleanup time, even if some other safe context is registered with XPConnect via SetSafeJSContext.

r=vishy, a=brendan
2000-06-06 00:01:25 +00:00
brendan%mozilla.org 25b2dee02f Fix missing $ bug when testing test_dir. 2000-06-03 19:20:03 +00:00
brendan%mozilla.org a6d231a46a Avoid zero-length malloc (and assertbotch) in array_sort, just return true early\! 2000-06-03 19:00:28 +00:00
warren%netscape.com 958ed96edd Renaming nsIAllocator to nsIMemory (and nsAllocator to nsMemory). API cleanup/freeze. Bug #18433 2000-06-03 09:46:12 +00:00
waldemar%netscape.com 2c96ad5323 Added parsing and printing of classes, interfaces, and namespaces 2000-06-02 04:35:44 +00:00
brendan%mozilla.org a9f1d30ada Fix ECMA DontDelete compliance problems, which create getter/setter security holes (40760, r=shaver). 2000-06-02 00:02:46 +00:00
nboyd%atg.com 5580e3ec96 Fix "in" operator for compiled mode. 2000-06-01 23:40:29 +00:00
nboyd%atg.com cce820de9c Add column number and line source information to the EcmaError object. 2000-06-01 17:30:28 +00:00
mkaply%us.ibm.com c99a5a0599 # 40177
r = leaf, a = brendan
Fix tab in makefile
2000-06-01 14:15:39 +00:00
waldemar%netscape.com 7812dc9a8e Widened default line width to 30 2000-06-01 03:31:17 +00:00
waldemar%netscape.com 4fc6a829b4 Added function and constructor parsing and printing; fixed printing of blocks, compound statements, and :: 2000-06-01 03:30:58 +00:00
waldemar%netscape.com 17668e8a07 Added two-argument linearBreak 2000-06-01 03:30:19 +00:00
brendan%mozilla.org fae789131e Use JS_ValueToId to go from user to internal property id, for integer-id optimality (40731, r=shaver). 2000-05-31 22:10:53 +00:00
brendan%mozilla.org 5cad625cd0 Make JS_ExecuteScriptPart call the debugger hooks (41066, r=MyNGs@HotMail.com). 2000-05-31 21:57:46 +00:00
nboyd%atg.com 156c349f5c check for null scope 2000-05-30 21:50:44 +00:00
nboyd%atg.com 52cdcf4338 Fix bug 40844 2000-05-29 16:57:13 +00:00
nboyd%atg.com b0072ff365 Fix bug 39906 2000-05-28 19:01:24 +00:00
nboyd%atg.com 9c618cc232 Remove tests obsoleted by the change that access to nonexistent properties of Java objects
returns undefined rather than causing an error
2000-05-28 18:50:58 +00:00
nboyd%atg.com 53971d9482 for Java methods, print the signatures of the overloaded methods in a comment when
the JavaScript function wrapper's toString method is called
2000-05-28 04:25:07 +00:00
brendan%mozilla.org eda440d4f6 Fix unreviewed changes made to fix 'Uninitialized variable compiler warnings'. 2000-05-28 00:02:26 +00:00
jst%netscape.com 1065a83626 Fixing bustage on solaris native builds. reported and reviewed by Tomi.Leppikangas@oulu.fi 2000-05-27 13:14:31 +00:00
edburns%acm.org 3d7b682c98 r=brendan
a=brendan
bug: 27362

This fix makes it so nsCLiveconnect.cpp doesn't #include
files within an extern "C" {} block.  To make this work, I
simply moved the extern "C" {} to the minimum necessary
range.  This required placing an "ifdef __cplusplus extern "C""
block in jsj_private.h, since nsCLiveconnect.cpp is the only
c++ file that includes jsj_private.h.
2000-05-27 01:12:40 +00:00
rogerl%netscape.com 6e0db88822 Removed old branches, changed offset printing to handle NULL operand. 2000-05-26 22:35:36 +00:00
rogerl%netscape.com 7535f22230 Update to new icg constructor etc. 2000-05-26 22:34:42 +00:00
rogerl%netscape.com a7d428fee6 Statement fun 2000-05-26 22:33:05 +00:00
waldemar%netscape.com fe2b190592 Added var, const, and for statements 2000-05-26 06:20:11 +00:00
shaver%mozilla.org d7e842a0c5 use NS_METHOD for register/unregister callback, for Win32 2000-05-26 05:55:00 +00:00
shaver%mozilla.org 5cab829a39 fix build bustage -- I'm an ass 2000-05-26 05:18:31 +00:00
shaver%mozilla.org c681e00cf1 remove useless nsIModule paste (#22922), add debug() for JS components, use categories for component loaders, XPCONNECT_STANDALONE (#39875), r=dp,waterson a=brendan 2000-05-26 04:56:23 +00:00
mkaply%us.ibm.com 2609bf3c3a # 34106
r = leaf, a = brendan
Mistake was made with an earlier makefile checkin - removing double definition of EXTRA_DSO_OPTS
2000-05-25 14:25:04 +00:00
mccabe%netscape.com c362ca7ae7 Fix the fix to 40406, fixing bustage.
Don't destroy the per-thread safe JS context on cleanup if that context was provided through the setter.

r=waterson
2000-05-25 08:33:53 +00:00
mccabe%netscape.com cb41d34427 Fix for 40406. Add setter to XPConnect to set default JS context used to execute JS components when no appropriate context can be found.
The setter changes per-thread data - for the DOM/UI thread, this means that we can set the JS Context to one with DOM magic.  This magic allows some DOM JS <-> XPConnect JS conversions to succeed, and in particular allows creation of a DOM window from within a JS component.

Unblocks nsbeta2 work by Vishy and Pavlov.

r=mccabe,vishy.  a=brendan,sleestack.
2000-05-24 22:54:57 +00:00
nboyd%atg.com 220fce4815 Add rhino9 and rhinoms9. 2000-05-24 18:10:55 +00:00
waldemar%netscape.com e5a692e62d Fixed case/default indenting 2000-05-24 02:18:57 +00:00
rogerl%netscape.com bbd7ed8e62 Codegen for statements. Blew off old statement API and most of the test
functions for now, sorry.
2000-05-24 02:11:39 +00:00
waldemar%netscape.com 01a830b36d Turned on statement parsing and printing 2000-05-24 01:51:32 +00:00
waldemar%netscape.com ef0a0075ca Added statement parsing 2000-05-24 01:51:20 +00:00
waldemar%netscape.com 2d2b4d1e40 Added using std::fmod declaration 2000-05-24 00:55:23 +00:00
waldemar%netscape.com 758d1aa2a0 Fixed Mac warning 2000-05-24 00:54:56 +00:00
waldemar%netscape.com ffe032b94e Fixed Mac warnings 2000-05-24 00:54:40 +00:00
waldemar%netscape.com 0409172259 Fixed syntax errors: can't use qualified names in class definitions, and 'not' is a C++ reserved word 2000-05-24 00:54:28 +00:00
nboyd%atg.com ab98d3b083 Remove unused constructor. 2000-05-23 21:03:50 +00:00
nboyd%atg.com 369ad1461c Fix up bug where direct calls were getting the parent scope when they shouldn't have,
resulting in a NullPointerException on the following code when run on the MS VM with -opt 9:

var testcases = getTestCases();

function getTestCases() {
    return new Boolean(new MyObject(true));
}

function MyObject( value ) {
    this.value = value;
    this.valueOf = new Function( "return this.value" );
    return this;
}
2000-05-23 20:59:13 +00:00
rginda%netscape.com 0fa9224054 apparently windows is too 2000-05-23 00:15:06 +00:00
rginda%netscape.com b8139b714f linux is so picky 2000-05-23 00:13:48 +00:00
rogerl%netscape.com bf553c65fb COMPARE_GT etc are gone. 2000-05-23 00:09:44 +00:00
rogerl%netscape.com 6c379c9539 Fall out from operator overloading. 2000-05-23 00:09:02 +00:00
rogerl%netscape.com 8bde6514f2 Added operator overloading support 2000-05-23 00:08:29 +00:00
rogerl%netscape.com 8ce92c9a4a Fix bug #39309 - parameters must be AnyType, also vars used before def. 2000-05-23 00:06:24 +00:00
rginda%netscape.com ab1f2aeef2 quieting linux warnings and fixing build bustage 2000-05-22 21:05:35 +00:00
nboyd%atg.com 0ff306b168 Fix formatting. 2000-05-22 03:03:37 +00:00
nboyd%atg.com d30c12731f Fix 38590. 2000-05-22 00:10:10 +00:00
cls%seawood.org 29367c81f1 More OS/2 changes. Batches 19 & 20 of Bug #34106 r=pavlov 2000-05-21 13:32:11 +00:00
brendan%mozilla.org c099365219 Fix remove-while-enumerating, beef up metering and add JS_DHashTableDumpMeter (these files are not part of the client build). 2000-05-20 18:42:22 +00:00
brendan%mozilla.org 31e48aabc5 Fix old stddev calc bug (#ifdef'd code, not part of build). 2000-05-20 18:41:13 +00:00
cls%seawood.org b129e998c9 Finishing off the standalone modules framework.
List js/src/liveconnect & js/src/xpconnect in toplevel Makefile.in to allow js to be built using the standalone framework.
Use the <module>_STANDALONE defines anytime BUILD_MODULES != all.
r=slamm
2000-05-20 02:45:59 +00:00
brendan%mozilla.org 3e2bb3db78 Use int for shift type consistently; optimize primary hash match (NOT PART OF BUILD). 2000-05-19 18:26:37 +00:00
rogerl%netscape.com 8b137399a7 Playing with operator overloading & Type types. 2000-05-19 17:41:10 +00:00
beard%netscape.com af00ce0353 fix const cast away linux breakage 2000-05-19 05:38:29 +00:00
brendan%mozilla.org 65a3d9575a Don't clear memory gratuitously (after create-error; after destroy). 2000-05-19 05:10:58 +00:00
brendan%mozilla.org 5873c77a22 Don't destroy what hasn't been created (NOT PART OF BUILD). 2000-05-19 03:49:32 +00:00
brendan%mozilla.org c7e55e24c1 Experimental double-hashing code, hope to donate to nsprpub/lib/ds (NOT PART OF BUILD). 2000-05-19 02:51:20 +00:00
mccabe%netscape.com 9dd8c20ce2 Patch xpcshell.cpp to not try to call JS_malloc with 0 bytes.
Patch courtesy Mark G. Adams <madams@livepage.com>

r=mccabe

This code is part of xpcshell, and doesn't go into the mozilla product.  Prior to this fix, xpcshell crashed on startup.
2000-05-19 00:34:46 +00:00
rogerl%netscape.com c4b6a652d5 Bunch o' expression ops. 2000-05-18 00:04:15 +00:00
rogerl%netscape.com 4ec5cba5d9 Moved genExpr to ICodeGenerator - added most expression ops. 2000-05-18 00:03:23 +00:00
rogerl%netscape.com ad5c33b8e4 Moved genExpr to ICodeGenerator 2000-05-18 00:01:33 +00:00
beard%netscape.com 168fd5eca2 added on run handler 2000-05-17 20:02:17 +00:00
beard%netscape.com e717dd2ca6 Removing obsolete project file. This is supplanted by js.mcp.xml. 2000-05-17 20:01:08 +00:00
cls%seawood.org 1165ad3a33 Mass replace of -lmozjs with $(MOZ_JS_LIBS) needed for OS/2 and consistency. 2000-05-17 06:45:45 +00:00
brendan%mozilla.org b428bdcc8f Include jsstddef.h first in all js*.c files (r=tlundeen@webcrossing.com). 2000-05-17 06:24:45 +00:00
brendan%mozilla.org 7ec8bd2b9d JS_DestroyRuntime nukes all contexts; add JS_G/SetRuntimePrivate (r=tlundeen@webcrossing.com). 2000-05-17 06:23:03 +00:00
pavlov%netscape.com 0c75802384 changes all usages of NS_NewTimer to CreateInstance 2000-05-17 02:49:35 +00:00
sfraser%netscape.com 758611a321 Fix to only broadcast to the autoreg observer if we are really registering. 2000-05-17 01:54:18 +00:00
mkaply%us.ibm.com 04f5a1c6d5 # 37239
r= rogerl
OS/2 bring up continues - fix for floating point trap
2000-05-16 22:51:12 +00:00
beard%netscape.com 351bd72f09 ensuring both arguments to max are the same type 2000-05-16 22:23:15 +00:00
rayw%netscape.com 1a08e06897 Added the fixes for 35866 and one older bug to the js component loader.
This means it is more careful about how it writes binary filenames in
the registry and it calls an observer to report autoregistrations.

This should have gone out with equivalent Native Component Loader fixes,
but it didn't.
2000-05-16 05:09:31 +00:00
cls%seawood.org 962f4851b8 Latest OS/2 makefile changes. Bug 34106. Batch 14, 15, & 16. 2000-05-16 04:41:54 +00:00
brendan%mozilla.org cde1ff4429 Fix GC request debiting to cope with multiple JSContexts on the same thread (39321, r=shaver). 2000-05-16 02:44:27 +00:00
rogerl%netscape.com 345804582d Bug #39034. Fixed stupid logic that broke \n, sorry. 2000-05-15 21:48:00 +00:00
brendan%mozilla.org 74b92d79e0 Common a string literal (js_call_str; r=shaver). 2000-05-15 20:21:05 +00:00
brendan%mozilla.org 11f2b967f5 Remove deadwood brought to my attention by tlundeen@webcrossing.com (r=shaver). 2000-05-15 20:04:41 +00:00
brendan%mozilla.org 66f16c7662 Fix stupid 0-for-enumerator-equal-to-0 warning (r=shaver). 2000-05-15 20:03:13 +00:00
mscott%netscape.com 681e89f874 backing out rayw's checkin because the tree WAS CLOSED! Shame on you =). 2000-05-15 18:07:36 +00:00
rayw%netscape.com 62565a9c19 I needed to add a better comment for the prior version I checked in.
Bug 3690, I added the native character writing / escaping logic to
the javascript components as it was added to native components.

r=dveditz
2000-05-15 17:29:20 +00:00
rayw%netscape.com bbea185af6 The remaining fix for international characters in component names. 2000-05-15 17:26:18 +00:00
brendan%mozilla.org 2cc44b24b1 Enforce interCaps Mozilla XPIDL style (r=shaver). 2000-05-15 07:03:46 +00:00
brendan%mozilla.org abe80212f1 Update JS_InitClass to match signature. 2000-05-15 06:07:10 +00:00
brendan%mozilla.org 77e3687daa Comment the need for rooted JS_NewScriptObject; whitespace/comment cleanup. 2000-05-15 06:06:12 +00:00
brendan%mozilla.org 96e08e9fe3 Cleanups from tlundeen@webcrossing.com, plus fun->call=>native renaming. 2000-05-15 03:54:50 +00:00
brendan%mozilla.org eaa1e364fe Forgot to check this in with the last batch! 2000-05-14 23:04:33 +00:00
brendan%mozilla.org 240be7a3b0 GC synchronization and lock fixes, plus comments (37983, r=waterson@netscape.com). 2000-05-14 23:00:51 +00:00
shaver%mozilla.org b6fe117b32 remove bogus CHECK_REQUEST in JS_ClearRegexpStatics (16128) 2000-05-14 15:38:04 +00:00
brendan%mozilla.org 2cdcef05eb Set newborn to root of object tree created by literal (followup to waterson nsJSEnvironment.cpp fix). 2000-05-14 05:38:51 +00:00
brendan%mozilla.org 19ff28a612 Avoid zero-length mallocs (prompted by ped@nospam.cadence.com). 2000-05-14 05:35:19 +00:00
beard%netscape.com 0a0acdcf76 fix for linux bustage 2000-05-13 02:14:52 +00:00
waldemar%netscape.com 23816b0170 Simplified grammar without changing syntax 2000-05-13 00:18:56 +00:00
beard%netscape.com 73c8cba40e added jsc/Main.java. 2000-05-12 06:23:43 +00:00
waldemar%netscape.com d3acc733e0 Fixed ?: parsing bug and pretty-printing offsets 2000-05-12 05:39:28 +00:00
waldemar%netscape.com b1a75a201a Fixed build flags 2000-05-12 05:16:08 +00:00
waldemar%netscape.com f2965154c2 Fixed parser errors 2000-05-12 05:15:52 +00:00
waldemar%netscape.com c8b3c01b71 Worked around Visual C++ problem 2000-05-12 05:15:17 +00:00
waldemar%netscape.com c17f899a83 Interchanged linearBreak and fillBreak 2000-05-12 03:43:35 +00:00
waldemar%netscape.com 3be5d6b79c Turned on expression parsing and printing 2000-05-12 03:26:43 +00:00
waldemar%netscape.com 80084c8eb5 Added expression parsing and printing code 2000-05-12 03:26:24 +00:00
waldemar%netscape.com 1f0d17398b Added RawArrayBuffer::reserve_advance_back 2000-05-12 03:25:49 +00:00
beard%netscape.com 34678ad655 removed unnecessary #include <iomanip> 2000-05-12 01:46:16 +00:00
beard%netscape.com d4060c6bef InterpretStage -> Context::Event. 2000-05-12 01:20:34 +00:00
beard%netscape.com e7503b10fb Fixed signed/unsigned warning. InterpretStage -> Context::Event. Context::removeListener now using find() from <algorithm>. 2000-05-12 01:19:39 +00:00
beard%netscape.com 171d878a64 InterpretStage -> Context::Event. Added typedefs for ListenerList and ListenerIterator. 2000-05-12 01:17:32 +00:00
beard%netscape.com 10e19444a4 turned off extra comma warnings. 2000-05-12 00:31:48 +00:00
rogerl%netscape.com 48f6891a39 post inc/dec 2000-05-11 00:35:43 +00:00
rogerl%netscape.com 33370b0248 Added post inc/dec for properties & names. 2000-05-11 00:35:06 +00:00
mccabe%netscape.com be51bb5b1c Mark 'clear' function exposed thru shell global object PR_CALLBACK, like other similar functions.
Patch courtesy Skip Nizinski <snizinsk@us.ibm.com>.
2000-05-10 23:58:51 +00:00
rogerl%netscape.com 97aead9971 Bug #38384, fix from norris (which I tweaked a little) to handle a bug in
recursive reseting of the thisObj in InterpreterData.
2000-05-10 22:03:15 +00:00
brendan%mozilla.org da321a0e18 Reword comment to fix typo (missing 'to'). 2000-05-10 20:05:17 +00:00
brendan%mozilla.org e73260b22d More minor style cleanups, plus a teeny optimization from tlundeen@webcrossing.com. 2000-05-10 19:58:28 +00:00
brendan%mozilla.org c697742103 Fix the TOO_MUCH_GC define (optional for GC stress-testing, not part of build). 2000-05-10 19:56:21 +00:00
brendan%mozilla.org 204a8cfeee Minor style improvements (80th column, over-parenthesization, better variable names). 2000-05-10 19:55:48 +00:00
mccabe%netscape.com 7b64369c95 Add pithy quote. 2000-05-10 00:35:30 +00:00
rogerl%netscape.com f8f64a0575 Bug #31316, didn't reset paren state after failed alt. 2000-05-09 23:47:18 +00:00
rogerl%netscape.com 4cfd991214 Bug #32937, toLocaleString added to Number class. 2000-05-09 23:46:13 +00:00
rogerl%netscape.com fdba51a861 Bug #22866, support \u2028 \u2029 line terminators 2000-05-09 23:44:49 +00:00
waldemar%netscape.com abe74d890c Added 'public' to the list of qualifiers 2000-05-09 20:55:09 +00:00
rogerl%netscape.com 908ce34c76 playing with gencode 2000-05-09 19:01:00 +00:00
beard%netscape.com a90cac7e92 Needed to transfer ownwership of iCode from ICodeGenerator to ICodeModule 2000-05-09 18:59:12 +00:00
beard%netscape.com 8b37e3f091 generalized gc_allocator copy constructor 2000-05-09 18:32:14 +00:00
beard%netscape.com 698cbbf51d removed JSFunction::operator delete 2000-05-09 18:31:43 +00:00
rogerl%netscape.com 737ea3d9ab Fixed leakage of ICodeModule via JSFunction 2000-05-09 18:09:33 +00:00
beard%netscape.com d991eb363d Need to modify string BEFORE caching iterators. 2000-05-09 06:39:39 +00:00
beard%netscape.com 1f06b15acc ensure that source buffer is always terminated by a uni::null (which isn't automatically true for basic_string<T>). 2000-05-09 06:31:54 +00:00
beard%netscape.com 6a4d27e9e3 map::find() works just fine on all platforms. 2000-05-09 05:55:30 +00:00
beard%netscape.com c5dcfed7a0 generating code rather than showing tokens, printing generic result rather than assuming it's a float64. 2000-05-09 05:46:26 +00:00
beard%netscape.com 2a42ae2d9b LoadString now has JSString* as second operand 2000-05-09 05:38:48 +00:00
beard%netscape.com 9acc5cacea Added JSString(const String&) and operator<<(Formatter&, const JSString&) 2000-05-09 05:37:58 +00:00
beard%netscape.com 69e170c16b LOAD_STRING now has String as second operand rather than String* 2000-05-09 05:18:16 +00:00
beard%netscape.com 052dad7118 VC6 bustage: can't initialize refs using construction form 2000-05-09 04:29:32 +00:00
beard%netscape.com 5e9296ee19 std::numeric_limits isn't working... 2000-05-09 04:26:44 +00:00
beard%netscape.com f8c91a8cf2 JSNativeFunction::mCode returns JSValue now to avoid leaking 2000-05-09 03:57:28 +00:00
beard%netscape.com c5e54d1f21 print now returns JSValue, added space between args when printing 2000-05-09 03:56:56 +00:00
beard%netscape.com 3c70fd5a83 CASE(string) 2000-05-09 03:56:08 +00:00
beard%netscape.com e3056982ab g++ basic_string annoyances 2000-05-09 03:55:43 +00:00
beard%netscape.com ec32a56539 needed deallocate(void*, size_type) on XP_UNIX for basic_string. 2000-05-09 03:46:03 +00:00
beard%netscape.com 5511c85685 Fixed leaks by changing JSValue::toString()/toNumber() to return JSValue rather than JSValue*. LOAD_STRING now creates a JSString from a String*. 2000-05-09 03:11:54 +00:00
beard%netscape.com 17bcf1f4d9 Added JSString for gc-able UNICODE strings, changed toString(), toNumber() to return JSValue rather than JSValue*. 2000-05-09 03:10:04 +00:00
beard%netscape.com 9e824b3492 make wchar_t an atomic type, for JSString. 2000-05-09 03:06:49 +00:00
waldemar%netscape.com b6ad6e0d78 Changed default constructor name from 'new' to the same name as its class 2000-05-09 00:10:50 +00:00
rogerl%netscape.com 9da7770958 testing native 'print' function 2000-05-08 23:12:10 +00:00
rogerl%netscape.com 70fd2e12cf Added more string handling + valueToString/Number code.
NativeFunction support.
2000-05-08 22:59:42 +00:00
waldemar%netscape.com 32a487e8ba Fixed syntax errors 2000-05-06 03:47:35 +00:00
waldemar%netscape.com 7ec407aaec Reordered includes to ensure that systemtypes.h is always included first; that's needed for Visual C++ 2000-05-06 03:47:13 +00:00
waldemar%netscape.com 45d64f11e9 Reordered files back to dependency order. Added gc_allocator.h. 2000-05-06 03:33:25 +00:00
waldemar%netscape.com f92842a971 Fixed syntax error 2000-05-06 03:31:50 +00:00
waldemar%netscape.com 9258b98a99 Added formatters, zones, and other miscellaneous utilities 2000-05-06 03:31:35 +00:00
waldemar%netscape.com 172513021f Fixed mac warning 2000-05-06 03:30:37 +00:00
rogerl%netscape.com 73705a8af1 Load_String 2000-05-05 23:23:13 +00:00
rogerl%netscape.com 25d9160b79 Basic string literal & value support 2000-05-05 23:22:31 +00:00
rogerl%netscape.com 0abfa73fd7 New arithmetic ops. 2000-05-05 21:38:16 +00:00
rogerl%netscape.com 05b4422677 Bunch more arithmetic ops etc.
Also fixed case munging when class name was only 2 letters long.
2000-05-05 21:36:36 +00:00
beard%netscape.com d1e0d062d0 Added debugger source 2000-05-05 18:20:05 +00:00
norris%netscape.com 81b17aee64 Fix bug of IndexOutOfRangeException for
function query(query, text) {}
2000-05-05 16:38:16 +00:00
norris%netscape.com 0d3fd7c846 Make NativeJavaPackage.class optional. 2000-05-05 16:37:40 +00:00
beard%netscape.com f346f8d86c No need to use string, now that size_t LineReader::readLine(String& wstr) exists. 2000-05-05 05:25:00 +00:00
beard%netscape.com 094e8c7500 added size_t LineReader::readLine(String& wstr) for convenience. 2000-05-05 05:24:02 +00:00
beard%netscape.com 15d927bcb1 regenerated dependencies 2000-05-05 04:58:56 +00:00
beard%netscape.com 6e4e5d59d1 LineReader returns at least '\n' 2000-05-05 04:50:45 +00:00
beard%netscape.com a95951573d stdin rather than cin 2000-05-05 04:45:39 +00:00
beard%netscape.com 7ff3a71924 Needed to use namespace Interpreter to see Context, using LineReader instead of istream. 2000-05-05 04:44:51 +00:00
beard%netscape.com f9843b94da remove unnecessary #include <iostream> 2000-05-05 04:44:01 +00:00
beard%netscape.com 1a0c42b62f Use FILE* instead of istream& for better line handling 2000-05-05 04:43:12 +00:00
beard%netscape.com 1210745bf0 EOF handling 2000-05-05 04:19:20 +00:00
beard%netscape.com d473e75f91 can't use std::getline() with a String on all platforms. 2000-05-05 04:10:01 +00:00
beard%netscape.com 34072e3ec7 forward declaring std::istream. 2000-05-05 04:08:59 +00:00
beard%netscape.com 6a814bf3a1 fixed ICodeGenerator/ICodeModule::print on Mac, which seems to be getting confused when using operator<< in another namespace. 2000-05-05 04:05:56 +00:00
beard%netscape.com 3bee0e64c4 removed unused macro NS_JSICG. 2000-05-05 04:04:23 +00:00
rginda%netscape.com ace8bcaf1e much debugger spankage; parse and execute step, continue, set, and print (kind-of) commands.
push implementation details of ICodeGenerator::print() into InstructionStream so they can be shared with ICodeModule.

copy variableList from ICodeGenerator to ICodeModule.

s/ScringAtom/const StringAtom/ in gencode.pl, regenerate vmtypes.h
2000-05-04 22:42:49 +00:00
rogerl%netscape.com f0a527348f Added const to the StringAtom usage.
Propagated variableList to ICodeModule
2000-05-04 22:08:38 +00:00
cls%seawood.org 772286e0af More OS/2 Makefile changes. Bug #34106 Batch 12 2000-05-04 11:00:47 +00:00
norris%netscape.com 2361f09464 Add missing files. 2000-05-03 22:00:22 +00:00
norris%netscape.com 77b4d82355 Clean up; remove need for synchronize 2000-05-03 21:55:09 +00:00
beard%netscape.com 638c7e68c2 fix assert bustage in DEBUG build. 2000-05-03 01:41:37 +00:00
cls%seawood.org 7188e4e94c MOZ_JS_LIBS doesn't set the linker path so put it after MOZ_COMPONENT_LIBS. 2000-05-03 00:21:08 +00:00
thayes%netscape.com 305c17893f Replace implementation of nsISupports with thread-safe version. This allows
SSL/HTTPS operations to complete on debug builds with thread-safety checking.
r=bryner
2000-05-03 00:04:48 +00:00
mkaply%us.ibm.com 6d0ec2f2c9 # 34082
r= rogerl
OS/2 bring up continues - support for debugging asserts on OS/2
2000-05-02 23:18:32 +00:00
mkaply%us.ibm.com 24ea211304 # 34082
r= rogerl
OS/2 bring up continues - VisualAge fixes
2000-05-02 22:44:23 +00:00
rogerl%netscape.com c5ae7fcab1 Cleaning up some label stuff 2000-05-02 21:36:28 +00:00
norris%netscape.com 0332a47564 Fix bug: All the standard object constructors were showing up as enumerable properties of the global object. 2000-05-02 17:36:47 +00:00
cls%seawood.org 58aac2e6af OS/2 Makefile.in tweaks. Batch 10 & 11. Bug #34106 2000-05-02 01:18:46 +00:00
rogerl%netscape.com 6408cd1ab7 r=norris@netscape.com. Add ASSERT/ASSERT_NOT cases to fixNext child
processing - was running into garbage when processing these as children
of a '|'
2000-05-01 21:57:22 +00:00
rogerl%netscape.com c85e0eeeaf r=norris@netscape.com
Bug #34187, adding 'eval' as property of global object.
Bug #31864, decompiler failure when attempting to invoke a non-function
where that object is accessed via an incoming argument of the current
function.
2000-05-01 21:55:52 +00:00
rogerl%netscape.com 96c66a2bba r=norris@netscape.com; Bug#32174
Prevent recursive death when user has a function 'Object'.
2000-05-01 21:53:20 +00:00
beard%netscape.com e57aaf2941 warnings on Linux 2000-05-01 17:18:49 +00:00
beard%netscape.com d3a405ae82 fixing breakage on Linux 2000-05-01 17:18:23 +00:00
beard%netscape.com a38befc82a removed unnecessary casts to int32 in ICodeGenerator::setLabel() which were generating warnings. 2000-05-01 17:11:36 +00:00
waldemar%netscape.com 67d784459e Changed syntax of identifiers, attributes, expressions, functions, and packages. Added export, use, constructor, namespace, import. 2000-05-01 06:21:39 +00:00
beard%netscape.com b8c58d5968 made startsWith() static, to fix no prototype warning. 2000-04-30 14:56:31 +00:00
beard%netscape.com a7d1d8240d added debugger.cpp/h. 2000-04-30 14:55:51 +00:00
beard%netscape.com d1626bab75 Removed setGlobalObject(), as only the interpreter should be mucking with it after initial creation. Added getWorld(), made getICode() out of line, removed mICode since it's part of Activation record. 2000-04-29 14:44:42 +00:00
beard%netscape.com 99e50b3eb4 Implemented WITHIN, WITHOUT instructions, removed mICode from Context since it's part of Activation. No longer deleteing mActivation, just clearing it, since Activation objects are garbage collected. 2000-04-29 14:43:36 +00:00
beard%netscape.com a49b031e34 Added JSScope::getParent(). 2000-04-29 14:39:50 +00:00
beard%netscape.com 154414a0ee JSNamespace -> JSScope. 2000-04-29 14:14:28 +00:00
beard%netscape.com 5e49b8d13f JSValue::operator==(const JSValue&) 2000-04-29 14:13:43 +00:00
beard%netscape.com 1603cc24d3 Added JSValue::operator==(const JSValue&), renamed JSNamespace JSScope. 2000-04-29 14:13:08 +00:00
beard%netscape.com 275ac8e2bf moved kUndefinedValue to jstypes.cpp, where it belongs. 2000-04-29 14:11:27 +00:00
beard%netscape.com dce8602831 added WITHIN, WITHOUT instructions. 2000-04-29 14:10:53 +00:00
beard%netscape.com 28a0b3bb92 fixing windows bustage. 2000-04-29 00:29:56 +00:00
rginda%netscape.com c9f14ba1b4 somewhat weak debugger console hookup.
build shouldn't *look* different yet.

Moved Context::interpret() local vars into Context private, added accessors for
stuff, using JavaScript::Lexer to lex debugger commands.

Fixed sign comparison warning in icg.cpp
2000-04-29 00:23:06 +00:00
beard%netscape.com cd2ea3d3e4 Added jstypes.cpp 2000-04-28 23:10:06 +00:00
beard%netscape.com af56dac3b4 Merged JSMap & JSObject. Introduced JSNamespace. 2000-04-28 23:04:43 +00:00
rginda%netscape.com 69e9b0ee35 80 column nit picked, comment fixed 2000-04-28 15:32:54 +00:00
beard%netscape.com 4e41834f75 Don't print BRANCH operands. 2000-04-28 13:46:01 +00:00
beard%netscape.com 8ff65a3852 tightened up spacing in printOperands(), changed GenericBranch.printOperands() to conditionally print condition register contents. 2000-04-28 13:44:59 +00:00
beard%netscape.com 2efc159d82 tightened up spacing in printOperands(). 2000-04-28 13:43:49 +00:00
beard%netscape.com 082ad168b4 Added Tracer to testFunctionCall(). 2000-04-28 13:31:39 +00:00
beard%netscape.com c4a7011cdf const ArgList& makes gcc happy. 2000-04-28 13:25:57 +00:00
beard%netscape.com 734c2d1779 Added jstypes.o 2000-04-28 13:25:24 +00:00
beard%netscape.com 1d0cfaf144 added ArgList helper struct to print Call operands, regenerated printOperands() methods to reduce warnings. 2000-04-28 13:20:26 +00:00
beard%netscape.com bbe2f74bd7 operator<< (Formatter& f, ArgList& al) 2000-04-28 13:18:03 +00:00
beard%netscape.com 2ccb1db4e8 support for printing ArgLists. 2000-04-28 13:17:35 +00:00
beard%netscape.com 02fccb52ca Unused. 2000-04-28 13:16:23 +00:00
beard%netscape.com 0a6482a9e4 regenerated dependencies 2000-04-28 05:46:22 +00:00
beard%netscape.com b3dc38ee22 tracing now prints instruction operands. 2000-04-28 05:44:38 +00:00
beard%netscape.com 99956a6429 using JSValue::tag to do simple operand validation. 2000-04-28 05:43:33 +00:00
beard%netscape.com f3d2f8c11d forward declaring ICodeModule, to break circularity. JSValue is now a tagged union. 2000-04-28 05:42:46 +00:00
beard%netscape.com a166644e29 Instruction::count(), Instruction::printOperands(), plus newly generated instruction classes. 2000-04-28 05:41:54 +00:00
beard%netscape.com 0dee053bef added jstypes.cpp 2000-04-28 05:40:42 +00:00
beard%netscape.com cf5bda1bec operator<<(Formatter&, const JSValue&) 2000-04-28 05:40:16 +00:00
beard%netscape.com dc524f8331 generates printOperands() 2000-04-28 05:39:27 +00:00
beard%netscape.com bc2e56b97c runs gencode.pl with MW Perl. 2000-04-28 05:39:04 +00:00
waldemar%netscape.com 192b3c45c8 Changed attributes and 'language' statement syntax, added interfaces, and removed ^*, ^?, |*, and |?. 2000-04-28 02:34:14 +00:00
rginda%netscape.com 5ab596c1c3 don't generate print_args if super_has_print
comment fixes
2000-04-28 02:33:36 +00:00