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

6172 Коммитов

Автор SHA1 Сообщение Дата
igor%mir2.org 3f5b0b9d22 Minimizing memory footprint by eliminating class fields:
1. IdScriptableObject.maxInstanceId is replaced by overridden getMaxInstanceId()

2. BaseFunction.argumentsProperty is replaced by storing when necessary explicit "arguments" property in ScriptableObject hashmap.

3. NativeFunction.(argNames|argCount|version) is replaced by code that reconstruct the necessary values from embedded in class file or InterpreterData (see bug 264637)
2004-10-25 15:44:24 +00:00
igor%mir2.org 6449692d51 Preparations for Rhino 1.6R1 RC3 2004-10-22 13:34:44 +00:00
igor%mir2.org e68a272765 Directory with external jars is renamed from jarlib to lib for consistency with other projects. 2004-10-22 12:36:36 +00:00
brendan%mozilla.org 5248f09cb7 Auto-mark parent if it's revised by PreCreate in XPCWrappedNative::GetNewOrUsed (264577, r=dbradley). 2004-10-22 07:49:29 +00:00
igor%mir2.org bb9a8bf35e Fixing smalljar target implementation to include all the necessary classes and updating documentation about its usage. 2004-10-22 07:49:15 +00:00
brendan%mozilla.org ab877fd889 Checking in dbradley's patch for bug 265545 (r=jst, sr=me). 2004-10-22 07:29:44 +00:00
igor%mir2.org 7e0e605b99 Compatibility with Rhino+Continuation fork: in ScriptableObject.callMethod always use object as scope source even if the scope from function does not belong to its prototype chain. 2004-10-21 17:55:14 +00:00
brendan%mozilla.org 2ad87c0fa8 Fix HasFinalReturn to handle labeled statements (265042, r=self). 2004-10-20 02:16:36 +00:00
brendan%mozilla.org 0fed5cd084 Home sp above right JSOP_IN operand to protect it from GC (264995, rs=shaver). 2004-10-19 01:45:44 +00:00
igor%mir2.org bf7c485bb4 Patch from Attila Szegedi <szegedia@freemail.hu> to adress bug 264637 :
Reducing InterpretedFunction footprint
2004-10-17 14:18:19 +00:00
igor%mir2.org c67a443fc9 Fixing bug 263978: for compatibility with BSF usage IllegalArgumentException is not thrown on negative line numbers. 2004-10-16 00:37:05 +00:00
igor%mir2.org ab9a876cd8 For compatibility wrap numbers always as Double instances. 2004-10-15 20:41:01 +00:00
igor%mir2.org 3bf7dc7d59 Fixing initialization bug: Continuation.initImplementation() can be called with null arg! 2004-10-15 20:38:21 +00:00
igor%mir2.org f61aa46b59 Compatibility with Rhino+Continuations fork: Continuation class is moved to continuations package. 2004-10-15 20:33:45 +00:00
igor%mir2.org 96afa61ad3 Compatiblility with Rhno+Continuations fork: added Main.setSize(Dimension) 2004-10-15 20:06:22 +00:00
igor%mir2.org e95400f9d9 For compatibility with Rhino+Continuations fork Continuation is made public 2004-10-15 19:59:55 +00:00
igor%mir2.org d1e5635847 Compatibility change: allow to use Context.enter/exit when thread already has associated Context with factory. 2004-10-15 18:34:24 +00:00
igor%mir2.org 014c2a7140 New public API Context.getDebuggableView to extract DebuggableScript implementation. 2004-10-15 18:27:38 +00:00
igor%mir2.org f6e7b51ba2 *** empty log message *** 2004-10-15 13:33:02 +00:00
igor%mir2.org 5047c343d5 Compatibility with Cocoon and its usage of Rhino debugger. 2004-10-14 09:15:19 +00:00
igor%mir2.org 90de2b091f Added GeneratedClassLoader 2004-10-14 07:34:54 +00:00
igor%mir2.org effa03602d Changing (XML|XMLList).(propertyIsEnumeratable|attribute|child) to confirm to the published ECMA 357 specification. 2004-10-14 07:34:13 +00:00
igor%mir2.org 79994fc900 I added ContextFactory.createClassLoader that is called from Context.createClassLoader to remove the need to subclass Context if a custom ClassLoader is required. 2004-10-14 07:31:00 +00:00
igor%mir2.org 1f731ff554 Regression tests for Rhino bugs 2004-10-14 07:09:22 +00:00
igor%mir2.org 7abc4eb855 Test suite for E4X from AgileDelta Inc, http://agiledelta.com/ : see bug 251113 2004-10-13 21:35:32 +00:00
igor%mir2.org bf18aea97b Fixing https://bugzilla.mozilla.org/show_bug.cgi?id=258844#c25 2004-10-12 13:58:52 +00:00
jst%mozilla.jstenback.com 0e6e277e45 Fixing bug 246892. Prevent crash in xpconnect code due to a scriptable plugins being deleted while calling through a scriptable method on the plugin. r=dbradley@gmail.com, sr=brendan@mozilla.org 2004-10-12 04:30:09 +00:00
shaver%mozilla.org 08eea60ca0 build bustage fix, how mortifying 2004-10-12 03:49:28 +00:00
shaver%mozilla.org 1b352a64d6 Bug 262189: fix JS component loader's error reporting up to be less-often
useless.  Also some warning fixes for gcc and quelling some
	    spew for myself.  r+sr=brendan.
2004-10-12 03:37:20 +00:00
brendan%mozilla.org c616097e20 Yet more JOF_DETECTING (259935, r=self). 2004-10-11 19:21:05 +00:00
igor%mir2.org 648f936a6c Removal of autowrapping of XmlObject as XML as it prevents to use full API of XmlObject in JS. Use XML(jsWrapOfXmObject) to get XML corresponding to XmlObject. 2004-10-10 22:54:01 +00:00
igor%mir2.org c5134974b1 Better information about continuation support 2004-10-10 22:51:10 +00:00
igor%mir2.org 6ecac9b8be Work on bug 258844: Continuation by default 2004-10-09 22:07:04 +00:00
brendan%mozilla.org f19769983d Fix E4X bustage where object property ids aren't converted to strings (263258, r=self). 2004-10-09 02:22:23 +00:00
igor%mir2.org bf3840028d Implementing Wrapper interface in XML to unwrap to XmlObject and back 2004-10-08 21:04:41 +00:00
igor%mir2.org 4acd4d04e2 Changing the license to NPL/GPL duo for consistency with the rest of the sources:
-------- Original Message --------
Subject: RE: www.mozilla.org/rhino: NPL license Messages_fr.properties?
Date: Fri, 8 Oct 2004 13:52:39 -0400
From: Aresteanu, Eugene <eugenea@avivasolutions.com>
To: 'Igor Bukanov' <igor@fastmail.fm>

	Hi Igor,
	Yes, I agree,
	Eugene Aresteanu


Do you agree to change the license as expressed in the license header
for the file:

mozilla/js/rhino/src/org/mozilla/javascript/resources/Messages_fr.properties

located at cvs.mozilla.org:/cvsroot to the following text:

#
# French JavaScript messages file.
#
# The contents of this file are subject to the Netscape Public
# License Version 1.1 (the "License"); you may not use this file
# except in compliance with the License. You may obtain a copy of
# the License at http://www.mozilla.org/NPL/
#
# Software distributed under the License is distributed on an "AS
# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
# implied. See the License for the specific language governing
# rights and limitations under the License.
#
# The Original Code is Aviva Inc. code, released March 5, 2004.
#
# The Initial Developer of the Original Code is Aviva Inc.
# Portions created by Aviva Inc. are Copyright (C) 2004 Aviva Inc.
# All Rights Reserved.
#
# Contributor(s):
# Eugene Aresteanu
#
# Alternatively, the contents of this file may be used under the
# terms of the GNU Public License (the "GPL"), in which case the
# provisions of the GPL are applicable instead of those above.
# If you wish to allow use of your version of this file only
# under the terms of the GPL and not to allow others to use your
# version of this file under the NPL, indicate your decision by
# deleting the provisions above and replace them with the notice
# and other provisions required by the GPL.  If you do not delete
# the provisions above, a recipient may use your version of this
# file under either the NPL or the GPL.


The change shall apply only to CVS HEAD version of the file.
2004-10-08 21:02:47 +00:00
igor%mir2.org c5c5ad4255 License change to NPL 1.1/GPL duo for consistency with the rest of Rhino:
-------- Original Message --------
Subject: Re: www.mozilla.org/rhino: Changing the license for Delegator
Date: Fri, 08 Oct 2004 16:08:01 +0100
From: Matthias Radestock <matthias@sorted.org>
To: Igor Bukanov <igor@fastmail.fm>
References: <41668055.2050404@fastmail.fm> <4166830A.3010900@sorted.org> <4166AD80.6070806@fastmail.fm>

Igor Bukanov wrote:

> Thanks, I would like to change the license header from the current:
>
> /* -*- Mode: java; tab-width: 8; indent-tabs-mode: nil; c-basic-offset:
> 4 -*-
>  * The contents of this file are subject to the Mozilla Public License
>  * Version 1.1 (the "License"); you may not use this file except in
>  * compliance with the License. You may obtain a copy of the License at
>  * http://www.mozilla.org/MPL/
>  *
>  * Software distributed under the License is distributed on an "AS IS"
>  * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
>  * License for the specific language governing rights and limitations
>  * under the License.
>  *
>  * The Original Code is Delegator.java, released Sep 27, 2000.
>  *
>  * The Initial Developer of the Original Code is Matthias Radestock.
>  * <matthias@sorted.org>. Portions created by Matthias Radestock are
>  * Copyright (C) 2000 Matthias Radestock. All Rights Reserved.
>  *
>  * Contributor(s):
>  *      Redfig Ltd (http://www.redfig.com)
>  *      LShift Ltd (http://www.lshift.net)
>  *
>  * Alternatively, the contents of this file may be used under the terms
>  * of the GNU Public License (the  "GPL License"), in which case the
>  * provisions of the GPL License are applicable instead of those
>  * above.  If you wish to allow use of your version of this file only
>  * under the terms of the GPL License and not to allow others to use
>  * your version of this file under the MPL, indicate your decision by
>  * deleting  the provisions above and replace  them with the notice and
>  * other provisions required by the GPL License.  If you do not delete
>  * the provisions above, a recipient may use your version of this file
>  * under either the MPL or the GPL License.
>  */
>
>
> to the following one:
>
>
> /* -*- Mode: java; tab-width: 8; indent-tabs-mode: nil; c-basic-offset:
> 4 -*-
>  *
>  * The contents of this file are subject to the Netscape Public
>  * License Version 1.1 (the "License"); you may not use this file
>  * except in compliance with the License. You may obtain a copy of
>  * the License at http://www.mozilla.org/NPL/
>  *
>  * Software distributed under the License is distributed on an "AS
>  * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
>  * implied. See the License for the specific language governing
>  * rights and limitations under the License.
>  *
>  * The Original Code is Delegator.java, released Sep 27, 2000.
>  *
>  * The Initial Developer of the Original Code is Matthias Radestock.
>  * <matthias@sorted.org>. Portions created by Matthias Radestock are
>  * Copyright (C) 2000 Matthias Radestock. All Rights Reserved.
>  *
>  * Contributor(s):
>  *
>  * Matthias Radestock, Redfig Ltd (http://www.redfig.com)
>  * Matthias Radestock, LShift Ltd (http://www.lshift.net)
>  *
>  * Alternatively, the contents of this file may be used under the
>  * terms of the GNU Public License (the "GPL"), in which case the
>  * provisions of the GPL are applicable instead of those above.
>  * If you wish to allow use of your version of this file only
>  * under the terms of the GPL and not to allow others to use your
>  * version of this file under the NPL, indicate your decision by
>  * deleting the provisions above and replace them with the notice
>  * and other provisions required by the GPL.  If you do not delete
>  * the provisions above, a recipient may use your version of this
>  * file under either the NPL or the GPL.
>  */
>
>
>
> Note that the new version replaces:
>
>  * Contributor(s):
>  *      Redfig Ltd (http://www.redfig.com)
>  *      LShift Ltd (http://www.lshift.net)
>
> by the following text:
>
>  * Contributor(s):
>  *
>  * Matthias Radestock, Redfig Ltd (http://www.redfig.com)
>  * Matthias Radestock, LShift Ltd (http://www.lshift.net)
>
> since Contributors section should contain at lease the name of the
> person contributing.
>
> If it is Ok, then I need your authorisation to perform such license
> change for the following files:
>
> mozilla/js/rhino/src/org/mozilla/javascript/Delegator.java
> mozilla/js/rhino/src/org/mozilla/javascript/.java
>
> located at the CVS repository at cvs.mozilla.org:/cvsroot
>
> The license change shall apply only to the CVS HEAD version of the files.
>

Igor,

that's all fine. Go ahead and make the changes.


Matthias.
2004-10-08 15:20:04 +00:00
brendan%mozilla.org 467e1b9d62 Instrument allocation a bit, DEBUG_brendan or METERING only change. 2004-10-06 21:03:35 +00:00
brendan%mozilla.org 577ee95cc0 Better XML string exclusion, plus js_default_str, based on codesighs (followup to 246441). 2004-10-05 16:57:13 +00:00
brendan%mozilla.org be79e6c74c Use &dummy_sprop consistently (followup to 246441). 2004-10-05 11:44:14 +00:00
brendan%mozilla.org dea0bf9edb Initial E4X check-in, configured off (246441, rs=shaver). 2004-10-05 10:19:07 +00:00
igor%mir2.org e35e735319 Yet another reference reorganization:
References now are represented by the pairs (ref, ref_target) where ref is Ref (former Reference) instance and ref_target is Scriptable to apply the reference for.

To return the pair from Reference creation function Context.scratchRefTarget is used to store the target part.

This change allowed to extend XMLName from Ref eliminating the need for XMLReference.
2004-10-03 23:55:04 +00:00
igor%mir2.org f3ddfa7ac6 Fixing bug 262687: patch from Kurt Huwig, bugzilla@huwig.de , to make the source compatible with JDK 1.5. 2004-10-03 11:23:07 +00:00
igor%mir2.org 66523d9651 Better error reporting for undefined access:
I changes just added toObject(Contetx cx, Object obj) to
toObjectOrNull(Contetx cx, Object obj) which returns null when obj is undefined
or null. It forces the caller to check to the return status but then much
better error report can be generated since the caller knows the operation that was called upon the undefined or null value.
2004-10-02 22:14:02 +00:00
igor%mir2.org 79222f002b Removal of scope argument of runtime functions to access|modify object members. The only reason for the argument was the need to call toObject to convert target object to Scriptable, but since now there is topCallScope available, that one can always be used instead. 2004-10-02 09:45:44 +00:00
igor%mir2.org 5cec178ab1 Change ScriptRuntime.get(Elem|Prop)FunctionAndThis to treat XML objects specially to follow ECMA 357, 11.2.2.1, CalMethod. This is done to minimize the overhead of method calls as otherwise someXmlObject.method() would first construct XMLList and apply () to it later.
To implement the function call redirection functionality XMLObject.getExtraMethodSource is added() to return an additional object to use as method source.
2004-10-01 22:07:12 +00:00
brendan%mozilla.org 4d73d5c4e6 Skip enumeration of properties deleted after for..in begins (261887, r=shaver). 2004-10-01 21:58:15 +00:00
brendan%mozilla.org 017979cd80 ECMA conformance fix: evaluate rvalue delete operands that might have side effects (261886, r=shaver). 2004-10-01 21:51:49 +00:00
igor%mir2.org 51da0ce769 RUnit Software AS as the single owner of copyrights for the following list of files present in Mozilla CVS as of 2004-10-01 15:10 UTC changes the license of the files to NPL/GPL. This is done for consistency with the rest of the source code in Rhino.
List of the affected files:

mozilla/js/rhino/src/org/mozilla/javascript/Callable.java
mozilla/js/rhino/src/org/mozilla/javascript/ClassCache.java
mozilla/js/rhino/src/org/mozilla/javascript/CompilerEnvirons.java
mozilla/js/rhino/src/org/mozilla/javascript/ContextAction.java
mozilla/js/rhino/src/org/mozilla/javascript/ContextFactory.java
mozilla/js/rhino/src/org/mozilla/javascript/Kit.java
mozilla/js/rhino/src/org/mozilla/javascript/Reference.java
mozilla/js/rhino/src/org/mozilla/javascript/SpecialRef.java
mozilla/js/rhino/toolsrc/org/mozilla/javascript/tools/debugger/GuiCallback.java
mozilla/js/rhino/toolsrc/org/mozilla/javascript/tools/debugger/test.js
mozilla/js/rhino/xmlimplsrc/org/mozilla/javascript/xmlimpl/XMLReference.java

Please contact igor@runitsoft.com if you have any questions about this.
2004-10-01 15:11:01 +00:00
igor%mir2.org 397acb96aa Fixing bug 262447: bad implementation of trying-hard-to-avoid-map-allocation idea in ScriptableObject.getPropertyIds 2004-10-01 14:59:45 +00:00