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

3487 Коммитов

Автор SHA1 Сообщение Дата
nboyd%atg.com ef919d6f1e Somehow removed these right after I added them. 2001-04-24 20:36:58 +00:00
nboyd%atg.com 711c087f8e 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 e97e80635e Break dependency between core and tools. 2001-04-24 18:08:46 +00:00
nboyd%atg.com b6331020dc Igor's latest patches, with some regression fixes. 2001-04-24 12:57:45 +00:00
nboyd%atg.com adbdcd8987 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 f186a11a57 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 7ad3aa34ca - 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 4f9f64987a - 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 66a4e17055 not built: fix compilation error due to jschar/PRUnichar mismatch 2001-04-21 15:11:02 +00:00
rginda%netscape.com 36dba3f8d3 - not built -
implement jsdIProperty
2001-04-21 07:21:27 +00:00
brendan%mozilla.org 1773c29088 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 8584f9aa43 Convert to IdScriptable form.
Patch from Igor.
2001-04-20 14:29:56 +00:00
pschwartau%netscape.com 892a6cc261 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 9fffd13836 - 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 646299b0ad - 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 a544240950 - not built -
add private data to JSDContexts and JSDScripts, add JSD_EvaluateUCScriptInStackFrame
2001-04-20 03:59:43 +00:00
rginda%netscape.com eed107cd2c - not built -
declare jsdObject, jsdProperty, jsdStackFrame, jsdThreadState, and jsdValue
2001-04-20 03:57:28 +00:00
rginda%netscape.com 8a92caa7e5 - 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 6fccd0404a - not built -
indentation fix
2001-04-20 03:48:03 +00:00
rginda%netscape.com 2fe479c4df - not built -
add *_EvaluateUCScriptInStackFrame
2001-04-20 03:47:09 +00:00
rginda%netscape.com 71a01a1849 - not built -
add private data to JSDScripts, fix unsigned vs signed warning
2001-04-20 03:45:39 +00:00
rginda%netscape.com 3c642c3b37 - not built -
quiet unix missing initializer warnings
add private data to JSDContexxt
2001-04-20 03:44:25 +00:00
rginda%netscape.com 9ddbba17f0 -not built-
adding private data to JSDContext, add jsd_EvaluateUCScriptInStackFrame
2001-04-20 03:43:07 +00:00
rginda%netscape.com 354d761018 - not built -
include <ctype.h> for toupper
2001-04-20 03:41:10 +00:00
brendan%mozilla.org f8defeec04 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 28427e3770 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 09cab04692 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 6d221b98ab 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 426dfab4d7 loadClassName: use current class loader to find classes, before calling Class.forName(). 2001-04-19 17:31:34 +00:00
nboyd%atg.com 5199af3051 Latest patches from Igor. 2001-04-19 12:52:39 +00:00
pschwartau%netscape.com c3db8a47c0 "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 e183541072 Removed hard tabs, removed unnecessary cast, (Scriptable)null. 2001-04-18 20:50:58 +00:00
beard%netscape.com 9d02c9eb11 fix for bug #8112, sr=brendan, r=beard 2001-04-18 03:38:58 +00:00
beard%netscape.com 9f1ea34458 fix for bug #60018 (prevent dangling JSContext), sr=brendan, r=edburns 2001-04-18 03:17:30 +00:00
beard%netscape.com 5de19d97ce Added UTCUtil library. [not part of build] 2001-04-18 02:44:01 +00:00
beard%netscape.com 6ea19da1fa Fix for bug #26516, load Java lazily. sr=brendan, r=edburns 2001-04-18 02:22:13 +00:00
pschwartau%netscape.com 093eb06477 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 b4f95d7a38 Getter/setter tests are non-ECMA. Moving them to js1_5 directory 2001-04-17 23:54:17 +00:00
nboyd%atg.com 1f40b84b6c 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 5b9389c467 moving xpcom wrapper from extensions/venkman/src/ and idl/ to here. 2001-04-17 08:50:41 +00:00
brendan%mozilla.org b9f0126b31 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 3937ca299c 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 00e6bf0cdc 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 39f51f6c80 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 c7b6faefda -- not built --
unix make fixes
unix "missing initializer" warnings
2001-04-14 18:57:00 +00:00
beard%netscape.com b85b5e504f Fix for bug #49130, a=phil 2001-04-14 17:18:14 +00:00
brendan%mozilla.org ef5f23f75e 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 5583150c3d Remove bogus access paths. r/sr=sfraser 2001-04-14 00:16:29 +00:00
beard%netscape.com 6b8a7db136 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 14a268aa85 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 93fdf9a5c7 Better GC-deadlock avoidance (75141, r=shaver, sr=jband). 2001-04-12 01:52:30 +00:00
nboyd%atg.com c83b74d6be Updates from Igor. 2001-04-11 23:29:23 +00:00
nboyd%atg.com 474433c5db Need to pop activation stack. 2001-04-11 23:28:47 +00:00
brendan%mozilla.org 8d92e7ae97 - 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 a0daa1645d 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 096c704d7a Fixes from Igor. 2001-04-11 13:44:09 +00:00
nboyd%atg.com dfea48c35c Fix race condition in method. 2001-04-11 13:43:07 +00:00
nboyd%atg.com 5425d1691b Make default for generatingDebug flag be true for compilation and false for interpretation. 2001-04-11 13:42:26 +00:00
brendan%mozilla.org 20c8360306 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 bbb236a9bf Fix uninitialized var botch (75239, r=rogerl, sr=jband). 2001-04-11 05:31:22 +00:00
nboyd%atg.com d49a818ed0 Fix incorrect for..in order dependency 2001-04-10 17:16:04 +00:00
nboyd%atg.com 77435b1a17 New file from Igor. 2001-04-10 14:21:24 +00:00
nboyd%atg.com 64bdadc1e0 Add Igor's changes to make generation of id strings by tool. 2001-04-10 13:20:02 +00:00
beard%netscape.com 479d30c766 Synchronized with latest sources. 2001-04-10 07:09:43 +00:00
darin%netscape.com 00a7e27ee6 Necko API changes, bug 74221. r=valeski, sr=rpotts. 2001-04-10 06:01:08 +00:00
nboyd%atg.com a717446397 Remove SecuritySupport code that doesn't apply to the Invoker case. 2001-04-10 01:47:50 +00:00
brendan%mozilla.org f99ab5259a 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 48141e355a Revert default of generatingDebug back to false to fix regressions. 2001-04-09 23:52:04 +00:00
nboyd%atg.com 517b2d35e4 Fix NPE. 2001-04-09 23:43:19 +00:00
jband%netscape.com 7fd9e073e2 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 7c4a8fb64d Add __lookupGetter__ and __lookupSetter__ (71992, r=rogerl, sr=shaver). 2001-04-08 23:23:34 +00:00
shaver%mozilla.org f6998c25a6 74848: make LiveConnect objects NATIVE, to avoid startup crash, r=smfr/sr=brendan 2001-04-05 22:20:47 +00:00
dprice%netscape.com 8c0b9eaf97 65845 - new order files 2001-04-05 06:02:32 +00:00
brendan%mozilla.org cd37f8447b - 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 6b9b11db88 Fix jsmath.o related dependencies.
Bug #74707 a=jj@netscape.com
2001-04-04 21:00:11 +00:00
beard%netscape.com 70edd7de6a Configuration for Mac OS X final (Darwin 1.3) 2001-04-04 19:48:12 +00:00
brendan%mozilla.org e29e0e312d 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 bda16c1f58 sigh, fix direct-inclusion-of-jsgc.h bustage in TestXPC 2001-04-04 05:53:58 +00:00
shaver%mozilla.org 29ce85e14c fixing bustage from fat-fingering before committing 2001-04-04 05:06:59 +00:00
shaver%mozilla.org 7c71f778bd 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 7858a64e1c 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 169a621d42 preloader update. r=peterl, sr=attinasi 2001-04-03 22:58:59 +00:00
scc%mozilla.org 30235156ce fix torino bustage 2001-04-03 00:42:48 +00:00
scc%mozilla.org 70de2e4a46 landing string branch; see bug #73786 2001-04-02 19:40:52 +00:00
nboyd%atg.com a867dbf67d 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 8adfb2b57f Fix problem where errors wouldn't get source positions. 2001-03-28 14:42:37 +00:00
pinkerton%netscape.com c3982c4c90 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 4ed544fdd7 #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 03a1e715f0 OS/2 breakage - need callback 2001-03-27 16:37:01 +00:00
mkaply%us.ibm.com 685df10668 OS/2 bustage - need callback 2001-03-27 14:35:06 +00:00
nboyd%atg.com 0173c9bc63 Fix 73555. 2001-03-27 14:01:53 +00:00
pschwartau%netscape.com d13898379b Minor corrections to code and whitespace. 2001-03-27 07:53:14 +00:00
pschwartau%netscape.com a3239107a6 Minor fixes to code and whitespace. 2001-03-27 07:43:17 +00:00
pschwartau%netscape.com 5297fc374c Minor corrections to code and style - 2001-03-27 07:16:36 +00:00
shaver%mozilla.org 1426b1e1b4 correct cast to fix build bustage 2001-03-27 06:44:00 +00:00
waterson%netscape.com 08720a72b7 Fix windows bustage. 2001-03-27 06:39:05 +00:00
waterson%netscape.com 3e355a7cf3 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 ed22e0a7d8 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 c728cf55e2 Initial add. Testcase for the internal [[Class]] property of Objects. 2001-03-27 05:50:08 +00:00
pschwartau%netscape.com 1260fc471b Initial add. Utility functions for testing Objects. 2001-03-27 05:48:48 +00:00
shaver%mozilla.org e4dd2dcd91 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 5f5b489750 #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 d01c71b92c 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 f595ed19f3 Clean up REQUIRES lines. r=cls 2001-03-25 22:59:27 +00:00
dmose%netscape.com a143fa5a57 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 e174e2e0fe 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 53f72f3639 Fix bug 72921. 2001-03-22 21:56:12 +00:00
jband%netscape.com 44bbed25cc [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 b0da40da16 - [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 b5d1baa259 #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 d97301d838 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 40f315f196 67797: add Components.isSuccessCode (r=jag, sr=jband) 2001-03-19 21:34:05 +00:00
brendan%mozilla.org 6138a388e4 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 206a6316cd 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 7293463cd8 OS/2 TB break
Need calling convention
2001-03-14 05:28:27 +00:00
disttsc%bart.nl caf305d989 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 752a3f6947 fix Mac build bustage. 2001-03-14 03:24:20 +00:00
rginda%netscape.com f5faf87633 fix for mac bustage, I think 2001-03-14 03:12:07 +00:00
Peter.VanderBeken%pandora.be 41ef1026fe part 3 of bug 48972 check in: mac changes. r=brendan, sr=shaver 2001-03-14 02:43:32 +00:00
rginda%netscape.com d2be3bc932 part 2 of bug 48972 check in. peterv to check in mac changes. r=brendan, sr=shaver 2001-03-14 02:41:55 +00:00
rginda%netscape.com 92e3bfdeb7 part one of checkin for bug 48974, idl additions. sr=shaver, r= brendan 2001-03-14 02:39:23 +00:00
dprice%netscape.com edb387e49c 71057 sr=waterson new order files. NOT PART OF THE REGULAR BUILD 2001-03-13 10:47:37 +00:00
pschwartau%netscape.com 1a4a8aa95b Fixing minor error in one path; and fixing whitespace. 2001-03-13 02:28:04 +00:00
pschwartau%netscape.com e30e5c11cb Put js1_5/Regress/regress-68498-003.js on Rhino skip list. Rhino does not support indirect eval. 2001-03-13 02:10:47 +00:00
pschwartau%netscape.com 242d2dfad3 Rhino doesn't implement toSource(). Adding js1_5\Regress\regress-44009.js to skip list - 2001-03-13 02:02:32 +00:00
pschwartau%netscape.com 3b2b7aedcd Initial add. This is Norris' testcase from bug 56883. 2001-03-13 01:23:34 +00:00
pschwartau%netscape.com 6756cd1e2c Rhino doesn't allow indirect calls to eval; adding such tests to the Rhino skip list - 2001-03-12 21:09:14 +00:00
shaver%mozilla.org fcf7cd0d9f 67699: all your nsIClassInfo is belong to us
- teach nsGenericFactory about nsIClassInfo, and nsIClassInfo.idl to the
  builds
- add a heaping serving of macro love for classes that want to support it
- convert many modules to use nsGenericModule the new way
- handful of warning and modeline fixes
- nsSample and some XPConnect test classes now have nsIClassInfo support for
  testing
2001-03-12 20:43:02 +00:00
nboyd%atg.com 5f7badd05f Print name of function in toString 2001-03-12 19:05:36 +00:00
nboyd%atg.com 77fee58f07 Infinity/Math.min(0,-0) should produce -Infinity 2001-03-12 16:53:02 +00:00
nboyd%atg.com dfacb25c9f Close thread hazard hole. 2001-03-12 14:55:47 +00:00
pschwartau%netscape.com c5f6fdb14f Initial add of WINNT5.0.mk file (bug 71543). Copied from WINNT4.0.mk. 2001-03-11 04:59:23 +00:00
brendan%mozilla.org b1bad82b83 Fix js_LookupProperty to resolve iff the resolved-in object owns its own scope (jband private bug, r=jband, sr=shaver). 2001-03-11 02:35:10 +00:00
nboyd%atg.com f1901fba16 More changes from Igor. 2001-03-10 11:51:15 +00:00
nboyd%atg.com 4e07e9b5bf Add method to set security support after creation. 2001-03-10 11:50:50 +00:00
mkaply%us.ibm.com cea152bf84 WIN95 build breakage vis hwaara
Since Win95 can't recursively invoke NMAKE, need fdlibm in DIRS statement
2001-03-10 00:43:00 +00:00
rogerl%netscape.com 05b771613b Fix #58031. sr=brendan. Crash in Array.prototype.toLocaleString() 2001-03-10 00:20:42 +00:00
rogerl%netscape.com e0a0360d95 Fix #57187. sr=brendan,r=shaver. Reorder lines to avoid warning. 2001-03-10 00:17:37 +00:00
rogerl%netscape.com b63c641dab Fix bug #56868. sr=brendan,r=mccabe. Error object [[Class]] property. 2001-03-10 00:16:32 +00:00
pschwartau%netscape.com b44b477470 Updated JS_GetImplementationVersion() to date of latest JS release (67111, r=rginda, sr=jband). 2001-03-09 07:36:48 +00:00
mkaply%us.ibm.com 9556809498 #59855
r=pchwartau, sr=brendan
Just add an _IS_LITTLE_ENDIAN for XP_OS2 for now. Eventually, we need to figure
out how to get jstypes.h included in here, since it already has a LITTLE_ENDIAN define.
2001-03-09 04:07:15 +00:00
mkaply%us.ibm.com a313c85544 #59855
r=pchwartau, sr=brendan
Rework makefile.win and js.mak for the eventual ability to include jstypes.h in fdlibm.h
Not turned on yet because I can't get it working right on Linux
2001-03-09 04:05:44 +00:00
mkaply%us.ibm.com 816366c8e4 #59855
r=pchwartau, sr=brendan
Get JS standalong building with Makefile.ref on Win32
2001-03-09 04:02:36 +00:00
shaver%mozilla.org 24ccdbda1f 71107: make inner-peeking properly set HEAVYWEIGHT for all outer functions (r=jband,sr=brendan) 2001-03-07 03:14:25 +00:00
pschwartau%netscape.com 3806f206fa Initial add. Regression test for bug 71107. 2001-03-07 01:30:15 +00:00
matthias%sorted.org 712e352a43 replicated SpiderMonkey fix for bug 67773 2001-03-06 13:57:01 +00:00
brendan%mozilla.org a14dfbe234 I'm a Linux loser, warnings don't affect me. 2001-03-06 02:45:35 +00:00
brendan%mozilla.org dfe2d8965b Death to tabs\! 2001-03-06 02:05:03 +00:00
brendan%mozilla.org 69ab37f337 bugs 31003 and (mostly) 68045, r=rogerl, sr=shaver&hyatt
- Fix bug where script jssrcnote vector terminator was not XDRed.
- Ensure that memory is cleared by serializing zero padding bytes as needed
  under JS_XDRBytes and JS_XDRString.
- Fix JS_XDRValue to handle undefined and null JS types properly (bug 31003).
  Also make it cast from jsint to uint32 and back carefully, so as to work
  with negative numbers even on targets where jsval is a signed 64 bit type.
- Add JS_XDRScript public API.
- Optimize the per-JSXDRState class registry so it uses a JSDHashTable upon
  searching for a class-id by name in an overpopulated (for linear search)
  registry table.
- Clean up API nits such as JS_XDRNewBase => JS_XDRInitBase, with parameter
  list rotation to put cx last (JS_XDRInitBase is an infallible init helper,
  not an error-reporting, cx-comes-first, API entry point).
- Fix some XXX comments, unneeded masks, other nits.
- Make sure all JS XDR API functions start with JS_XDR.
2001-03-06 01:56:30 +00:00
beard%netscape.com 78cb105183 Bug #70883, leaks in LiveConnect. sr/r=brendan 2001-03-05 15:41:12 +00:00
matthias%sorted.org 8d348ad77e * made shell.Global a subclass of ImporterTopLevel
* fixed ImporterTopLevel constructor - it now calls
cx.initStandardObjects before defining any functions. The old
constructor is still around for backwards compatibility.
2001-03-05 08:46:10 +00:00
beard%netscape.com 88aa0bfd2c fix for bug #69210, r/sr=brendan 2001-03-04 21:26:19 +00:00
beard%netscape.com 5f32ec9e35 bug #70240, sr=beard, r=brendan 2001-03-04 21:20:31 +00:00
beard%netscape.com bb7384e98f [not part of build] fix memory leak of full_classpath. 2001-03-04 19:23:51 +00:00
beard%netscape.com 99009db752 [not part of build] use correct calling conventions when OJI is #defined. 2001-03-03 19:30:17 +00:00
beard%netscape.com 7fa29ffe23 Automatically load "xpcshell.js" if available. sr=jband 2001-03-03 01:01:20 +00:00
jband%netscape.com 81c1f91f67 [not part of build] adding placeholders for new files 2001-03-02 05:25:04 +00:00
rogerl%netscape.com e93b9c7b20 Fix #61751. sr=brendan,r=mang. #define changes to fix floating point bug
in JavaScript on NetBSD/arm32.
2001-03-02 00:20:11 +00:00
rogerl%netscape.com 0f3fdaea1e Fix bug #67773. sr=brendan, r=rginda. Fixes doubly nested quantifiers in
reg.exps when deeper sub-expression has to backup without failing. Some
other clean-up changes, too.
2001-03-02 00:17:48 +00:00
nboyd%atg.com 534fc4e412 More changes from Igor. 2001-03-01 19:28:37 +00:00
matthias%sorted.org ebbd7aaa6c fixed two instances where prefix match would return undefined instead of null 2001-03-01 16:52:23 +00:00
matthias%sorted.org 6413b694ba getInstance now uses ScriptableObject.getProperty instead of
Scriptable.get. This way Global can (again) be used in prototype
chain.
2001-03-01 13:33:55 +00:00
pschwartau%netscape.com 687b187d0b Correcting an error in the testcase - 2001-03-01 01:06:48 +00:00
brendan%mozilla.org 60a74f6168 Fix JS_ARENA_GROW_CAST so it doesn't round up both size and incr, which overestimates and wastes space (44009, r=shaver, sr=jband). 2001-02-28 00:27:10 +00:00
brendan%mozilla.org e5648f61de Fix 'import *;' (70308, r=shaver, sr=jband). 2001-02-28 00:17:19 +00:00
dprice%netscape.com 199c935b04 # 65845 sr=waterson, new order files will greatly reduce the number of link warnings. 2001-02-27 04:38:19 +00:00
pschwartau%netscape.com 32ca03bbbc Initial add. Regression test for bug 44009. 2001-02-27 03:41:13 +00:00
nboyd%atg.com a91023590b Commit new scheme for builtin objects, courtesy of
Igor Bukanov <igor@icesoft.no>. This new scheme is
faster and consumes less memory.
2001-02-26 16:16:46 +00:00
nboyd%atg.com 3f5e828b80 Change ClassOutput to take a top-level boolean parameter. 2001-02-26 15:32:15 +00:00
nboyd%atg.com b02120e058 Add top-level boolean parameter so ClassOutput implementors can determine
which class to load to execute a script.
2001-02-26 15:28:17 +00:00
pschwartau%netscape.com d3de39854b Added Stephen Ostermiller's pattern-match from bug 69989 to this test - 2001-02-24 03:23:27 +00:00
brendan%mozilla.org 55d5713602 Don't deprecate __proto__, there ain't no forward-compatible alternative (68401, r=timeless, sr=shaver). 2001-02-24 03:07:58 +00:00
brendan%mozilla.org ee954accd5 - Shaver hacked this fix with advice from me, and I carried it to check-in. We now avoid a heavyweight outer function when the inner one is defined at top-level or in an expression (is not a JSOP_CLOSURE, IOW), and it doesn't refer to any non-local names. See bug 65308 for details on the win. (r=rogerl, sr=brendan)
- Fix scope chain for nested functions at top-level (JSOP_DEFFUN), in a part of another statement (JSOP_CLOSURE), and unnamed in an expression (JSOP_ANONFUNOBJ) to match ECMA-262 13.2.  My bad: fp->varobj was used up till now, instead of fp->scopeChain; we still *bind* the name of a statement-level (top or not) nested function in fp->varobj.  This fixes bug 69559.  (r=rogerl, sr=jband)
- Add an Intern command to the shell, for GC vs. intern'ed atom testing.
2001-02-24 03:00:56 +00:00
pschwartau%netscape.com 484642e6df Initial add. Regression test for bug 69607. 2001-02-23 07:35:47 +00:00
nboyd%atg.com 446ea9e8da Real fix for last problem. 2001-02-22 14:45:10 +00:00
disttsc%bart.nl a6f2f5861a Mass REQUIRES update to synch up with string lib and xul changes in an attempt to fix senna bustage. r=jst, sr=cls 2001-02-22 09:35:51 +00:00
brendan%mozilla.org 147be84ecc Fix duplicate parsenode recycle in constant-folded if/else or ?: (69607, r=shaver, sr=jband). 2001-02-22 07:30:57 +00:00
brendan%mozilla.org 3d3ee5cbd3 Remove unused code (sr=jband, r=mozbot). 2001-02-21 10:49:35 +00:00
nboyd%atg.com 25a2852250 Subject:
Rhino Context.setTargetClassFileName() null pointer exception
        Date:
             Tue, 20 Feb 2001 15:28:20 -0800
       From:
             "Ryan Manwiller" <rdm@europa.com>
 Organization:
             Another Netscape Collabra Server User
 Newsgroups:
             netscape.public.mozilla.jseng




I'm setting the file name to compile to a file. However, on subsequent
compiles, I don't want to compile to a file, so I tried
setTargetClassFileName(null). This causes a NullPpinterException in
OptClassNameHelper.setTargetClassFileName(OptClassNameHelper.java:76)

It seems that Context.setTargetClassFileName() should check for null.

Thanks
2001-02-21 02:08:05 +00:00
pschwartau%netscape.com f9086bf830 Minor whitespace deletion - 2001-02-21 00:58:41 +00:00
pschwartau%netscape.com 5331662996 Minor change to comment - 2001-02-21 00:39:46 +00:00
pschwartau%netscape.com 538ea61c08 Improving error message - 2001-02-21 00:27:13 +00:00
jband%netscape.com a96a22f464 Avoid use of dead JSContext in dtor. bug 69463. Thanks to Waleri Todorov <waleri@gti.bg> for pointing out this bug. r=shaver sr=brendan 2001-02-21 00:01:30 +00:00
pschwartau%netscape.com f070a37023 Revising error in test. See bug 69441, where this was pointed out - 2001-02-20 22:11:44 +00:00
jband%netscape.com d242dcca69 bug 66610 - add xpconnect support for DOMStrings. r=jst sr=brendan 2001-02-20 08:09:19 +00:00
brendan%mozilla.org bcb7e8d5fd Don't flush cached properties one-by-one if GC'ing, because the GC flushes the whole thing (68735, r=jst, sr=jband). 2001-02-20 05:01:14 +00:00
brendan%mozilla.org 5f946f1796 Fix constant folder to recycle moved node, not whole tree, when simplifying 'true ? foo() : bar()' into 'foo()' (69345, r=shaver, sr=jband). 2001-02-20 01:25:39 +00:00
brendan%mozilla.org da9be4b8bb Fix related eval and setTimeout regressions caused by bug 68498's patch (69165&69175, r=jband, sr=shaver). 2001-02-19 00:31:20 +00:00
shaver%mozilla.org 9d74dff12a Fold constants correctly when emitting as we compile (TCF_COMPILING).
(#69304, r=jband, sr=brendan)
2001-02-18 20:58:08 +00:00
pschwartau%netscape.com ed3d3552d7 Regression test for bug 68498. Derived from Brendan's attachment to the bug - 2001-02-18 03:31:17 +00:00
jband%netscape.com 51e076e20b rest of the fix for bug 68971 - can't share a kungfoodeathgrip. sr=brendan r=shaver 2001-02-16 02:21:22 +00:00
brendan%mozilla.org b8a3d1e3ef Don't crash on a newborn object (68971, r=jband, sr=shaver). 2001-02-16 02:09:42 +00:00
brendan%mozilla.org e0c2c3974f The rest of the fix for bug 68498, see the extensive comments in that bug (r=jband, sr=shaver). 2001-02-16 02:04:12 +00:00
brendan%mozilla.org fd8a6ea21b Restore the much-loved, albeit non-ECMA, function caller property (65683, r=rogerl, sr=jband). 2001-02-14 22:33:26 +00:00
brendan%mozilla.org cefe9bfa0d Don't assert about leaked atoms, do DEBUG fprints instead (68765, r=timeless, sr=jband). 2001-02-14 22:25:30 +00:00
brendan%mozilla.org 8aa6c94c12 Crash fix (first part, two more files to come) for old-style obj.eval in a function (68498, r=bryner, sr=jband). 2001-02-14 09:11:09 +00:00
dprice%netscape.com 997fb091c7 65845 first cut of the order files 2001-02-13 02:48:02 +00:00
brendan%mozilla.org 5fcc8a1adc - Keep interned string atoms around across zero-context episodes on a runtime,
until JS_DestroyRuntime is called (68450, r=rginda, sr=jband).
- NUL-terminate tagbuf in tagify, for the HTML helpers such as string.big()
  (66648, r=timeless, sr=jband).
2001-02-13 00:57:10 +00:00
beard%netscape.com 7f321c0039 fix for bug #63466, r=mstoltz, sr=brendan, a=leaf 2001-02-12 07:47:28 +00:00
nboyd%atg.com 82bd85bfce Fix for problem:
Subject:
             Rhino Exception Handling: Inconsistency btw Old/New Versions of 1.5
        Date:
             Mon, 05 Feb 2001 06:07:07 -0800
       From:
             Timothy Bergeron <bergeron@resumerabbit.com>
 Organization:
             Another Netscape Collabra Server User
 Newsgroups:
             netscape.public.mozilla.jseng




I've been using Rhino for about a year with almost no problems. However,
I downloaded the latest Rhino tip (rhino15R2pre) and discovered a
significant difference in exception handling.

I rely heavily on JavaScript code like the following:

try {
   var em  = new ExceptionMaker();
   em.npe();  // method throws a java.lang.NullPointerException
   //em.ae();  // method throws a Packages.AutomationException
}
catch (e if (e instanceof java.lang.NullPointerException)) {
   java.lang.System.out.println("Caught a NullPointerException");
   e.printStackTrace();
}
catch (e if (e instanceof Packages.AutomationException)) {
   java.lang.System.out.println("Caught an AutomationException");
}
catch (e) {
   java.lang.System.out.println("Caught an unexpected exception: "+e);
}
finally {
   java.lang.System.out.println("Finally!");
}

Previous Rhino versions worked as expected. The exception thrown from
within the host object would be caught and the appropriate actions could
be taken.

With the most recent tip, the thrown exceptions simply are not caught
within the JavaScript. They propagate back to the Java function invoking
the (in my case) Context.evaluateReader() method.

Running the above JS fragement with the older tip displayed the
following stack trace (when the NullPointerException was caught):

Rhino Version: JavaScript-Java 1.5 release 1 2000 03 15
Caught a NullPointerException
java.lang.NullPointerException
        at java.lang.Throwable.<init>(Throwable.java:84)
        at java.lang.Exception.<init>(Exception.java:35)
        at java.lang.RuntimeException.<init>(RuntimeException.java:39)
        at
java.lang.NullPointerException.<init>(NullPointerException.java:45)
        at ExceptionMaker.jsFunction_npe(ExceptionMaker.java:13)
        at java.lang.reflect.Method.invoke(Native Method)
        at
org.mozilla.javascript.FunctionObject.call(FunctionObject.java:497)
        at
org.mozilla.javascript.ScriptRuntime.call(ScriptRuntime.java:1205)
        at org.mozilla.javascript.gen.c1.call(exception.js:3)
        at org.mozilla.javascript.gen.c1.exec(exception.js)
        at
org.mozilla.javascript.Context.evaluateReader(Context.java:739)
        at js.main(js.java:14)
Finally!

When run with the latest tip, the output is:

Rhino Version: JavaScript-Java 1.5 release 1 2000 03
15                                          Finally!
Exception in thread "main" java.lang.NullPointerException
        at java.lang.Throwable.<init>(Throwable.java:84)
        at java.lang.Exception.<init>(Exception.java:35)
        at java.lang.RuntimeException.<init>(RuntimeException.java:39)
        at
java.lang.NullPointerException.<init>(NullPointerException.java:45)
        at ExceptionMaker.jsFunction_npe(ExceptionMaker.java:13)
        at inv2.invoke()
        at
org.mozilla.javascript.FunctionObject.doInvoke(FunctionObject.java:843)
        at
org.mozilla.javascript.FunctionObject.call(FunctionObject.java:486)
        at
org.mozilla.javascript.ScriptRuntime.call(ScriptRuntime.java:1199)
        at org.mozilla.javascript.gen.c1.call(Unknown Source)
        at org.mozilla.javascript.gen.c1.exec(Unknown Source)
        at
org.mozilla.javascript.Context.evaluateReader(Context.java:778)
        at js.main(js.java:14)

Curiously, both Rhino versions seem to be returning the same string from
Context.getImplementionVerison();

Anyway, the results from the two runs are clearly different: In the
first case, the exception is thown, the correct catch block is invoked
(hence the stace trace), and the finally block is invoked. In the second
case, the exception is thrown, the finally block is invoked, and the
exception is handled by the calling Java method rather than being
handled by the JavaScript code.

After some research, it appears this change was introducted by a
modification to FunctionObject.call()  (See
http://bugzilla.mozilla.org/show_bug.cgi?id=64788) which used to have:

       try {
            Object result = (method != null)
                            ? method.invoke(thisObj, invokeArgs)
                            : ctor.newInstance(invokeArgs);
            return hasVoidReturn ? Undefined.instance : result;
        }

but now has:

            Object result = method == null ?
ctor.newInstance(invokeArgs)
                                           : doInvoke(thisObj,
invokeArgs);

If I comment out the new code and replace it with the old, the expected
exception handling returns. Is this just an oversight or the new
expected behavior? Are there any negative side effects (other then the
speed decrease in method invocation) if I use the latest tip but use the
old method invocation procedure in FunctionObject.call() rather than the
new?
2001-02-08 18:56:58 +00:00
pschwartau%netscape.com 106efc7817 Exported functionality common to RegExp tests to new file js/tests/ecma_3/RegExp/shell.js 2001-02-08 04:04:48 +00:00
pschwartau%netscape.com 5cc9cfb919 Exported functionality common to RegExp testing to new file js/tests/ecma_3/RegExp/shell.js 2001-02-08 04:03:02 +00:00
pschwartau%netscape.com 766e838c4f Initial add. Contains functionality common to RegExp testing 2001-02-08 03:58:58 +00:00
pschwartau%netscape.com f65b30a051 Whitespace cleanup 2001-02-08 01:32:58 +00:00
pschwartau%netscape.com ad6952fe99 *** empty log message *** 2001-02-08 01:30:15 +00:00
pschwartau%netscape.com a4c1795cc3 More minor adjustments - 2001-02-08 01:18:55 +00:00
pschwartau%netscape.com e3608c31cf Minor adjustments - 2001-02-08 01:05:23 +00:00
pschwartau%netscape.com 39d6604a1c Initial add. Regression test for bug 67773 2001-02-07 23:19:12 +00:00
waldemar%netscape.com 8f98bed0e7 Added more semantics 2001-02-07 05:08:44 +00:00
waldemar%netscape.com d341117db6 Added read-eval-print loop 2001-02-07 05:08:09 +00:00
waldemar%netscape.com ae3e51a0c2 Updated to correspond to js2 site 2001-02-07 05:07:37 +00:00
waldemar%netscape.com d0363e3b99 Added :semantic-comment and :vector-construct. 2001-02-07 05:07:05 +00:00
waldemar%netscape.com 42217499f5 Added vector comprehensions. Changed compiler to emit globals of functional type into the lisp function rather than value slots of symbols; this simplifies debugging. 2001-02-07 05:06:22 +00:00
waldemar%netscape.com ffce7baf94 Added vector comprehensions and extra mode parameter for %section, %subsection, and %text. 2001-02-07 05:05:39 +00:00
brendan%mozilla.org e23a1be36f Fix for bug 44009 (r=rogerl, sr=shaver)
- Remove bogus JS_ASSERT(!outermost) from the code that deals with a "#n="
  type string being returned from js_EnterSharpObject, where the hash entry
  is not yet sharp (because we haven't seen the object twice during depth
  first search).  This case trivially arises for the outermost object in,
  e.g., 'o={}; o.foo=o; uneval(o)'.
- Avoid parenthesizing #n={...} object initializers for uneval, as they are
  not ambiguous (whereas {foo:1}, e.g., is ambiguous because it could be a
  block statement containing a labeled expression statement, or it could be
  an object initializer).
- Death to tabs!
2001-02-06 23:19:44 +00:00
pschwartau%netscape.com 4cd5b867fb Made this testcase acknowledge that indirect eval is LEGAL; see bug 38512. 2001-02-06 07:57:17 +00:00
pschwartau%netscape.com 8e1d1ab4d9 Made this testcase acknowledge that indirect eval is LEGAL; see bug 38512. 2001-02-06 07:33:28 +00:00
pschwartau%netscape.com 8ab3095a6c Made this testase acknowledge that indirect eval is LEGAL; see bug 38512. 2001-02-06 06:52:59 +00:00
pschwartau%netscape.com 8097b07638 Deleting this testcase. It expected indirect eval to throw an exception. Wrong - this is legal: see bug 38512. 2001-02-06 06:06:18 +00:00
brendan%mozilla.org b28624e231 Fix compile-statements-as-we-go to work with warn-about-missing-final-return (66928, r=jband, sr=shaver). 2001-02-06 01:23:29 +00:00
pschwartau%netscape.com 44623057a1 Deleting this testcase, which expected this.eval() to throw an exception. On the contrary: indirect eval is LEGAL; see Bugzilla bug 38512. 2001-02-05 18:27:36 +00:00
pschwartau%netscape.com d84d79d43e Changed comma expresions in this testcase from trivial to non-trivial. Explanation is in the introduction. 2001-02-05 04:58:39 +00:00
jband%netscape.com ab1f2436af fix bug 67557 - bad use of NS_LITERAL_STRING to initialize static const PRUnichar* literals. r=jag sr=brendan 2001-02-04 06:47:44 +00:00
cls%seawood.org 02d1ad6807 Fix fdlibm/mozjs dependency problem by making sure that fdlibm is always built before mozjs. 2001-02-04 06:27:59 +00:00
brendan%mozilla.org eabd8c6171 Include function total size in JS profiler output (67467, r=hyatt, sr=jband). 2001-02-02 20:52:06 +00:00
nboyd%atg.com e5473d8fda Subject:
Re: [Rhino in Java] compiling .js to class file gives "bad local" error
        Date:
             Wed, 31 Jan 2001 09:41:45 +0100
       From:
             "Sylvia E. Schleutermann" <ses@h-m-s.com>
 Organization:
             .hms Health Management Systems
 Newsgroups:
             netscape.public.mozilla.jseng
  References:
             1 , 2




I have found out some more. Looking really quickly over the JVM specs, I
found that
indeed the astore-command requires that the variables index be below 128.
However,
the book also said that if more index space is needed, a "wide" command can
be used to
be able to address up to 65xxx variables.
Question: is there a possibility to integrate this "wide"-command into the
class compiler?
Some option, that can be set?  Or am I on the wrong tracks?

Please help, since I want to avoid spreading the script over many classes to
avoid the
size limitation. Cheers, Sylvia


Sylvia E. Schleutermann <ses@h-m-s.com> wrote in message
news:956sv9$9g53@secnews.netscape.com...
> I have found out that it is definitely the number of variables.
> I removed all variables and then the script compiled into class files
> with one base class and inner classes for each function in the script.
>
> What is the limitation exactly, i.e. does anyone know how many (global)
> variables
> I can use? Or is there some other kind of work around?
>
> Cheers, Sylvia
>
>
> Sylvia E. Schleutermann <ses@h-m-s.com> wrote in message
> news:956qtv$6kh3@secnews.netscape.com...
> > Hello,
> > when compiling a *.js file to class file, I get a "bad local" runtime
> > exception.
> > Stepping through the source, the following happens in reverse order:
> >
> > Codegen.xstore (75, 58, 209)
> >     -> in the switch - default case, there is a comparison
> >         for local (=209), which is compared to Byte.MAX_VALUE (=127).
> >         When greater, the above exception is thrown.
> >
> > Codegen.astore (209)
> >     -> calls Codegen.xstore (ByteCode.ASTORE_0, ByteCode.ASTORE, 209)
> >
> > Codegen.generatePrologue (<context>, <tree>, true, -1) // -1 is
> > directParameterCount
> >     -> sets itsZeroArgArray = getNewWordLocal(); // here, the 209 is
> > produced
> >     -> calls astore (itsZeroArgArray)
> >
> > From what I can read from the source code, the 209 seems to be a counter
> for
> > "locals", perhaps
> > local variables?? The function that is being compiled does initialize
many
> > variables - would it help
> > to move the initialize code out of the function into separate code
blocks?
> >
> > The function looks like this
> >
> > function rule_Disclaimer()
> > {
> >     try { VAR1 = <init code 1>;} catch (exception) { VAR1 = <default
init
> > code 1>; }
> >     try { VAR2 = <init code 2>;} catch (exception) { VAR2 = <default
init
> > code 2>;}
> >         ... (about 58 such variables)
> >
> >     var cond = true;
> >
> >     < rest of code>
> > }
> >
> > When I compile the script for interpreted mode, all works well. The
> > variables VAR1 to VAR58 are to be global
> > variables (global to the whole script).
> >
> > I appreciate any help! Thanks, Sylvia
> >
> >
>
>
2001-02-02 15:20:03 +00:00
mkaply%us.ibm.com a36df8834a OS/2 TB breakage
Need cast to pass C++ function
2001-02-02 13:54:03 +00:00
jband%netscape.com bd58ec8cea the rest of the fix for bug 66950 to add nsISupportsWeakReference support of xpconnect wrapped JSObjects. r=rogerl sr=brendan 2001-02-02 10:01:56 +00:00
jband%netscape.com e7fcc8fd7f the rest of the fix for bug 67258 to avoid empry Components.results and the similar pattern in nsJSIID. r=dmose sr=brendan 2001-02-02 08:57:47 +00:00
jband%netscape.com 8ccfada88a backing out two changed inadvertantly committed! 2001-02-02 08:52:22 +00:00
jband%netscape.com 1d263ae630 part of the fix for bug 67258 to avoid empry Components.results. r=dmose sr=brendan xpccomponents.cpp 2001-02-02 08:48:28 +00:00
jband%netscape.com 39d156eef0 part of the fix to bug 66950. Add support for cheaply tracking the lifetime of arbitrary JSObject by extending the GC callback mechanism to notify after marking is done but before sweeping, and by providing an api function that can be called at that point to determine if any given gcthing is about to be finalized. r=rogerl sr=brendan 2001-02-02 08:44:24 +00:00
rogerl%netscape.com cb289ae2e2 Fixed case, sorry 2001-02-02 01:08:06 +00:00
rogerl%netscape.com 5276f5b818 Added ICodeEmitter 2001-02-02 01:06:30 +00:00
rogerl%netscape.com 7ea0f3cbba Added icodeEmitter to VC++ build 2001-02-02 01:05:38 +00:00
rogerl%netscape.com 61579b22f3 Re-structuring some ICG details. 2001-02-02 01:04:22 +00:00
mkaply%us.ibm.com 63b9a9f4be OS/2 TB break
Need JS_STATIC_DLL_CALLBACK
2001-02-01 18:39:38 +00:00
disttsc%bart.nl 91a08f8c82 Fix senna bustage, add REQUIRES line. r=mkaply 2001-02-01 18:07:08 +00:00
sspitzer%netscape.com e21ba186fe fix for #67205. get --enable-xpctools to work again.
it will build the JS profiler.  r=leaf,bryner, sr=cls
2001-02-01 15:36:59 +00:00
waldemar%netscape.com 76e61d873f Fixed comment 2001-02-01 03:42:25 +00:00
waldemar%netscape.com f2ae41c491 Added make-and-compile-grammar cache 2001-02-01 03:41:54 +00:00
waldemar%netscape.com 0bcf6402f0 Added hash-table-= 2001-02-01 03:41:18 +00:00
waldemar%netscape.com 76d55e8bc2 Added the id type 2001-02-01 03:40:56 +00:00
waldemar%netscape.com a53b1af653 Removed namespace inheritance. Begun implementing semantics. 2001-02-01 03:39:26 +00:00
rogerl%netscape.com 23fda0a73e Removed unused parameter. 2001-02-01 01:06:53 +00:00
rogerl%netscape.com f13e0741a0 Changed Cast to take a JSValue containing a type instead of type directly.
Added LoadType to help support that. Also added LoadNull.
2001-02-01 00:59:21 +00:00
mkaply%us.ibm.com 77c253f1d3 Putting it back until I figure out the bustage 2001-02-01 00:03:12 +00:00
mkaply%us.ibm.com 1c00ee937b OS/2 only
r=dbaron
Add static to OS/2 JS_STATIC_CALLBACK so I don't break the build like I did yesterday
2001-01-31 23:40:42 +00:00
mkaply%us.ibm.com 2ae966c468 #59855
r=mccabe, sr=brendan
Proper building of fdlibm standalone
2001-01-31 23:26:00 +00:00
mkaply%us.ibm.com 71b9af79d7 #59855
r=mccabe, sr=brendan
OS/2 needs fdlibm copysign
2001-01-31 23:24:27 +00:00