6157 Commits

Author SHA1 Message Date
igor%mir2.org
995e7c70dc For VARARG methods wrap the result in the same way as for other methods: in this way VARARG method returning non-JS-type will get its results properly wrapped as LiveConnect object
git-svn-id: svn://10.0.0.236/trunk@165425 18797224-902f-48f8-a5cc-f745e15eee43
2004-11-17 16:48:57 +00:00
brendan%mozilla.org
036b7c131b E4X, configured off, code-complete.
git-svn-id: svn://10.0.0.236/trunk@165420 18797224-902f-48f8-a5cc-f745e15eee43
2004-11-17 07:43:01 +00:00
igor%mir2.org
ef7659d950 XML no longer implements Wrapper interface. Instead getXmlObject method
is added to access the implementation. In this way all functionality
of Java API in XmlObject is available to scripts if they need it.


git-svn-id: svn://10.0.0.236/trunk@165234 18797224-902f-48f8-a5cc-f745e15eee43
2004-11-10 23:13:04 +00:00
timeless%mozdev.org
77453f609f Bug 207309 nsMemoryImpl::Alloc of 0: 'size' in jsdValue::GetProperties
r=shaver sr=shaver


git-svn-id: svn://10.0.0.236/trunk@165227 18797224-902f-48f8-a5cc-f745e15eee43
2004-11-10 21:58:00 +00:00
darin%meer.net
3d52b0860b fixes bug 219400 "remove callers of nsServiceManager:: methods" r=bsmedberg
git-svn-id: svn://10.0.0.236/trunk@165089 18797224-902f-48f8-a5cc-f745e15eee43
2004-11-07 23:59:35 +00:00
brendan%mozilla.org
ad1b8e7c08 Home sp before all OBJ_* call-outs (267797, r=shaver).
git-svn-id: svn://10.0.0.236/trunk@165042 18797224-902f-48f8-a5cc-f745e15eee43
2004-11-05 23:16:37 +00:00
brendan%mozilla.org
0d3f6e9a04 Skip deleted/misidentified properties in js_obj_toSource (233483, patch from shaver+timeless, r=me).
git-svn-id: svn://10.0.0.236/trunk@164901 18797224-902f-48f8-a5cc-f745e15eee43
2004-11-04 01:52:28 +00:00
brendan%mozilla.org
61eb757bad Toggle JSFRAME_ASSIGNING around setter call from inc/dec ops (267216, r=shaver).
git-svn-id: svn://10.0.0.236/trunk@164886 18797224-902f-48f8-a5cc-f745e15eee43
2004-11-03 22:54:50 +00:00
darin%meer.net
ed9e4d3d7a eliminating uses of deprecated nsComponentManager:: methods (bug 267040), r=bsmedberg
git-svn-id: svn://10.0.0.236/trunk@164735 18797224-902f-48f8-a5cc-f745e15eee43
2004-11-01 18:50:36 +00:00
igor%mir2.org
8e049d600b Implement specially NativeJavaObject.getDefaultValue for java.lang.Boolean to match the behavior of JS Boolean object.
git-svn-id: svn://10.0.0.236/trunk@164682 18797224-902f-48f8-a5cc-f745e15eee43
2004-10-31 00:15:57 +00:00
igor%mir2.org
07c4059b7d Disabling invoker optimization by default: under jdk >= 1.4 and especially with 1.5 it does not bring noticeable benefits with typical usage while increasing loading time and memory consumption and introducing class loading issues.
git-svn-id: svn://10.0.0.236/trunk@164681 18797224-902f-48f8-a5cc-f745e15eee43
2004-10-31 00:12:25 +00:00
igor%mir2.org
b512f708b9 Work for bug 261278: splitting STRICT_MODE into STRICT_VARS and STRICT_EVAL to allow for better compatibility in future if strictness would be exetended to other areas.
git-svn-id: svn://10.0.0.236/trunk@164554 18797224-902f-48f8-a5cc-f745e15eee43
2004-10-28 14:13:05 +00:00
igor%mir2.org
c93791d762 Fixing bug 266418: making RegExp serializable
git-svn-id: svn://10.0.0.236/trunk@164551 18797224-902f-48f8-a5cc-f745e15eee43
2004-10-28 11:31:38 +00:00
igor%mir2.org
0c4f9dfb42 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)


git-svn-id: svn://10.0.0.236/trunk@164361 18797224-902f-48f8-a5cc-f745e15eee43
2004-10-25 15:44:24 +00:00
igor%mir2.org
03fc9ac792 Preparations for Rhino 1.6R1 RC3
git-svn-id: svn://10.0.0.236/trunk@164186 18797224-902f-48f8-a5cc-f745e15eee43
2004-10-22 13:34:44 +00:00
igor%mir2.org
791d8440e5 Directory with external jars is renamed from jarlib to lib for consistency with other projects.
git-svn-id: svn://10.0.0.236/trunk@164185 18797224-902f-48f8-a5cc-f745e15eee43
2004-10-22 12:36:36 +00:00
brendan%mozilla.org
2d7a970a13 Auto-mark parent if it's revised by PreCreate in XPCWrappedNative::GetNewOrUsed (264577, r=dbradley).
git-svn-id: svn://10.0.0.236/trunk@164182 18797224-902f-48f8-a5cc-f745e15eee43
2004-10-22 07:49:29 +00:00
igor%mir2.org
d906e4aa9c Fixing smalljar target implementation to include all the necessary classes and updating documentation about its usage.
git-svn-id: svn://10.0.0.236/trunk@164181 18797224-902f-48f8-a5cc-f745e15eee43
2004-10-22 07:49:15 +00:00
brendan%mozilla.org
4fd0805428 Checking in dbradley's patch for bug 265545 (r=jst, sr=me).
git-svn-id: svn://10.0.0.236/trunk@164178 18797224-902f-48f8-a5cc-f745e15eee43
2004-10-22 07:29:44 +00:00
igor%mir2.org
5a36480424 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.
git-svn-id: svn://10.0.0.236/trunk@164149 18797224-902f-48f8-a5cc-f745e15eee43
2004-10-21 17:55:14 +00:00
brendan%mozilla.org
936bda4b08 Fix HasFinalReturn to handle labeled statements (265042, r=self).
git-svn-id: svn://10.0.0.236/trunk@164068 18797224-902f-48f8-a5cc-f745e15eee43
2004-10-20 02:16:36 +00:00
brendan%mozilla.org
144ae876f5 Home sp above right JSOP_IN operand to protect it from GC (264995, rs=shaver).
git-svn-id: svn://10.0.0.236/trunk@164002 18797224-902f-48f8-a5cc-f745e15eee43
2004-10-19 01:45:44 +00:00
igor%mir2.org
6ad7413fff Patch from Attila Szegedi <szegedia@freemail.hu> to adress bug 264637 :
Reducing InterpretedFunction footprint


git-svn-id: svn://10.0.0.236/trunk@163929 18797224-902f-48f8-a5cc-f745e15eee43
2004-10-17 14:18:19 +00:00
igor%mir2.org
6c562fcbe6 Fixing bug 263978: for compatibility with BSF usage IllegalArgumentException is not thrown on negative line numbers.
git-svn-id: svn://10.0.0.236/trunk@163878 18797224-902f-48f8-a5cc-f745e15eee43
2004-10-16 00:37:05 +00:00
igor%mir2.org
b2231892bb For compatibility wrap numbers always as Double instances.
git-svn-id: svn://10.0.0.236/trunk@163845 18797224-902f-48f8-a5cc-f745e15eee43
2004-10-15 20:41:01 +00:00
igor%mir2.org
4f589b3f7c Fixing initialization bug: Continuation.initImplementation() can be called with null arg!
git-svn-id: svn://10.0.0.236/trunk@163844 18797224-902f-48f8-a5cc-f745e15eee43
2004-10-15 20:38:21 +00:00
igor%mir2.org
3a65efb413 Compatibility with Rhino+Continuations fork: Continuation class is moved to continuations package.
git-svn-id: svn://10.0.0.236/trunk@163843 18797224-902f-48f8-a5cc-f745e15eee43
2004-10-15 20:33:45 +00:00
igor%mir2.org
e63ae1a5c7 Compatiblility with Rhno+Continuations fork: added Main.setSize(Dimension)
git-svn-id: svn://10.0.0.236/trunk@163841 18797224-902f-48f8-a5cc-f745e15eee43
2004-10-15 20:06:22 +00:00
igor%mir2.org
b02d0c26e2 For compatibility with Rhino+Continuations fork Continuation is made public
git-svn-id: svn://10.0.0.236/trunk@163840 18797224-902f-48f8-a5cc-f745e15eee43
2004-10-15 19:59:55 +00:00
igor%mir2.org
532f42f0ae Compatibility change: allow to use Context.enter/exit when thread already has associated Context with factory.
git-svn-id: svn://10.0.0.236/trunk@163836 18797224-902f-48f8-a5cc-f745e15eee43
2004-10-15 18:34:24 +00:00
igor%mir2.org
2cba537545 New public API Context.getDebuggableView to extract DebuggableScript implementation.
git-svn-id: svn://10.0.0.236/trunk@163834 18797224-902f-48f8-a5cc-f745e15eee43
2004-10-15 18:27:38 +00:00
igor%mir2.org
eba1bc1883 *** empty log message ***
git-svn-id: svn://10.0.0.236/trunk@163822 18797224-902f-48f8-a5cc-f745e15eee43
2004-10-15 13:33:02 +00:00
igor%mir2.org
68d43e346f Compatibility with Cocoon and its usage of Rhino debugger.
git-svn-id: svn://10.0.0.236/trunk@163730 18797224-902f-48f8-a5cc-f745e15eee43
2004-10-14 09:15:19 +00:00
igor%mir2.org
a05650d12d Added GeneratedClassLoader
git-svn-id: svn://10.0.0.236/trunk@163725 18797224-902f-48f8-a5cc-f745e15eee43
2004-10-14 07:34:54 +00:00
igor%mir2.org
01890ad20b Changing (XML|XMLList).(propertyIsEnumeratable|attribute|child) to confirm to the published ECMA 357 specification.
git-svn-id: svn://10.0.0.236/trunk@163724 18797224-902f-48f8-a5cc-f745e15eee43
2004-10-14 07:34:13 +00:00
igor%mir2.org
73dc3f0a98 I added ContextFactory.createClassLoader that is called from Context.createClassLoader to remove the need to subclass Context if a custom ClassLoader is required.
git-svn-id: svn://10.0.0.236/trunk@163723 18797224-902f-48f8-a5cc-f745e15eee43
2004-10-14 07:31:00 +00:00
igor%mir2.org
5646871a4f Regression tests for Rhino bugs
git-svn-id: svn://10.0.0.236/trunk@163722 18797224-902f-48f8-a5cc-f745e15eee43
2004-10-14 07:09:22 +00:00
igor%mir2.org
d3e04439c1 Test suite for E4X from AgileDelta Inc, http://agiledelta.com/ : see bug 251113
git-svn-id: svn://10.0.0.236/trunk@163674 18797224-902f-48f8-a5cc-f745e15eee43
2004-10-13 21:35:32 +00:00
igor%mir2.org
a2960f5abb Fixing https://bugzilla.mozilla.org/show_bug.cgi?id=258844#c25
git-svn-id: svn://10.0.0.236/trunk@163596 18797224-902f-48f8-a5cc-f745e15eee43
2004-10-12 13:58:52 +00:00
jst%mozilla.jstenback.com
3314465c6e 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
git-svn-id: svn://10.0.0.236/trunk@163580 18797224-902f-48f8-a5cc-f745e15eee43
2004-10-12 04:30:09 +00:00
shaver%mozilla.org
1f95d0d545 build bustage fix, how mortifying
git-svn-id: svn://10.0.0.236/trunk@163576 18797224-902f-48f8-a5cc-f745e15eee43
2004-10-12 03:49:28 +00:00
shaver%mozilla.org
3e60d28c9f 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.


git-svn-id: svn://10.0.0.236/trunk@163575 18797224-902f-48f8-a5cc-f745e15eee43
2004-10-12 03:37:20 +00:00
brendan%mozilla.org
5302853512 Yet more JOF_DETECTING (259935, r=self).
git-svn-id: svn://10.0.0.236/trunk@163535 18797224-902f-48f8-a5cc-f745e15eee43
2004-10-11 19:21:05 +00:00
igor%mir2.org
698ee68aeb 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.
git-svn-id: svn://10.0.0.236/trunk@163509 18797224-902f-48f8-a5cc-f745e15eee43
2004-10-10 22:54:01 +00:00
igor%mir2.org
bfe17a1027 Better information about continuation support
git-svn-id: svn://10.0.0.236/trunk@163508 18797224-902f-48f8-a5cc-f745e15eee43
2004-10-10 22:51:10 +00:00
igor%mir2.org
4a51548fd5 Work on bug 258844: Continuation by default
git-svn-id: svn://10.0.0.236/trunk@163488 18797224-902f-48f8-a5cc-f745e15eee43
2004-10-09 22:07:04 +00:00
brendan%mozilla.org
cb772a336a Fix E4X bustage where object property ids aren't converted to strings (263258, r=self).
git-svn-id: svn://10.0.0.236/trunk@163458 18797224-902f-48f8-a5cc-f745e15eee43
2004-10-09 02:22:23 +00:00
igor%mir2.org
4b937388c1 Implementing Wrapper interface in XML to unwrap to XmlObject and back
git-svn-id: svn://10.0.0.236/trunk@163430 18797224-902f-48f8-a5cc-f745e15eee43
2004-10-08 21:04:41 +00:00
igor%mir2.org
8487f3e30e 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.


git-svn-id: svn://10.0.0.236/trunk@163429 18797224-902f-48f8-a5cc-f745e15eee43
2004-10-08 21:02:47 +00:00
igor%mir2.org
9e27e744d3 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.


git-svn-id: svn://10.0.0.236/trunk@163420 18797224-902f-48f8-a5cc-f745e15eee43
2004-10-08 15:20:04 +00:00