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

3629 Коммитов

Автор SHA1 Сообщение Дата
nboyd%atg.com d60e950169 Subject:
Rhino: Problem in NativeJavaMethod
   Date:
        Tue, 14 Aug 2001 10:23:35 +0200
   From:
        felix.meschberger@day.com
     To:
        Norris Boyd <nboyd@atg.com>




Hi Norris,

While working with wrapped Java classes we discovered a problem in
NativeJavaMethod : If the public method to be called is part of a
non-public class, the Sun Java VM throws an IllegalAccessException. This
bug in the Sun VM has been reported as Bug 4071593 to Sun, but has not been
resolved since....

I implemented a circumvention, for which I provide you the patch. I quickly
tested it, and it seems to work.

Regards
Felix
2001-08-17 14:29:48 +00:00
brendan%mozilla.org dc5af729b7 Don't resolve standard classes if JSRESOLVE_ASSIGNING (NOT PART OF BUILD). 2001-08-17 10:40:15 +00:00
brendan%mozilla.org 51f1612008 Checking in khanson's patch with whitespace cleanups for bug 89443, to avoid stack overflow on too many || operators in one expression (r=rogerl, sr=me). 2001-08-17 10:29:59 +00:00
brendan%mozilla.org a384e4fdb8 Shrinking realloc can fail (95517, basic patch from epstein@tellme.com, r=brendan, sr=jband). 2001-08-17 09:56:48 +00:00
sfraser%netscape.com aaa47c9450 Project cleanup, rs=scc. Fix one or more of access paths, linking with the correct startup library, and unnecessary linkage. 2001-08-17 01:28:47 +00:00
jband%netscape.com 5192d92ebf fix bug 94752. Let xpconnect decide when to call JS_DestroyContext. It sometimes needs to defer the call until JS code running on the context is finished. r=dbradley sr=jst 2001-08-15 04:49:09 +00:00
pschwartau%netscape.com 6dfd5a7948 Removing skip for ecma_3/String/regress-83293.js. The testcase was incorrect, and is now corrected. 2001-08-14 18:28:57 +00:00
pschwartau%netscape.com 8fbd04fe28 Making extensive corrections. Testcase had not conformed to ECMA-262 Final Edition. 2001-08-14 18:02:56 +00:00
pavel%gingerall.cz c880a69b75 Context typemapping changed 2001-08-14 13:09:43 +00:00
cls%seawood.org 8405a1984e Use NS_PTR_TO_INT32 macros to do 64-bit safe pointer conversions.
Bug #20860 r=Roland.Mainz@informatik.med.uni-giessen.de sr=brendan@mozilla.org
2001-08-14 07:59:59 +00:00
pschwartau%netscape.com e50d864d59 Adding new case to the test. 2001-08-13 19:38:18 +00:00
nboyd%atg.com ade00af942 Fix 95101. 2001-08-13 18:33:25 +00:00
pschwartau%netscape.com 6cbad45cc8 Initial add. 2001-08-13 18:05:42 +00:00
nboyd%atg.com 4f24a67646 Subject:
[Fwd: Rhino 1.5.2 bug in debug support?]
        Date:
             Sun, 12 Aug 2001 14:13:26 -0700
       From:
             Christopher Oliver <coliver@mminternet.com>
 Organization:
             Primary Interface LLC
         To:
             nboyd@atg.com




Hi Norris,

Did you or are you fixing this problem?  It seems to be simply a matter
of filtering out -1 before inserting line numbers into the
lineNumberTable.  In this particular case the Parser generates -1 as a
line number for (? : ) in IRFactory.createTernary().  However the recent
changes to InterpreterData to use UintMap instead of Hashtable will not
tolerate negative numbers.  Changing Interpreter.updateLineNumber() and
InterpreterData.getOffset() to check for negative line numbers (and
avoid generating line number code or accessing the lineNumberTable in
that case) will correct the problem.

Chris


      Subject:
             Rhino 1.5.2 bug in debug support?
        Date:
             8 Aug 2001 12:47:28 -0700
       From:
             d-russo@ti.com (dave russo)
 Organization:
             http://groups.google.com/
 Newsgroups:
             netscape.public.mozilla.jseng



I'm getting the following exception when running the Rhino debugger.

java.lang.RuntimeException
        at org.mozilla.javascript.UintMap.check(UintMap.java:349)
        at org.mozilla.javascript.UintMap.put(UintMap.java:158)
        at
org.mozilla.javascript.Interpreter.updateLineNumber(Interpreter.java:234)
        at
org.mozilla.javascript.Interpreter.generateICode(Interpreter.java:300)
        at
org.mozilla.javascript.Interpreter.generateICode(Interpreter.java:926)
        at
org.mozilla.javascript.Interpreter.generateICode(Interpreter.java:302)
        at
org.mozilla.javascript.Interpreter.generateICode(Interpreter.java:302)
        at
org.mozilla.javascript.Interpreter.generateICode(Interpreter.java:302)
        at
org.mozilla.javascript.Interpreter.generateICodeFromTree(Interpreter.java:89)
        at
org.mozilla.javascript.Interpreter.generateFunctionICode(Interpreter.java:186)
        at
org.mozilla.javascript.Interpreter.generateNestedFunctions(Interpreter.java:164)
        at
org.mozilla.javascript.Interpreter.generateScriptICode(Interpreter.java:124)
        at org.mozilla.javascript.Interpreter.compile(Interpreter.java:78)
        at org.mozilla.javascript.Context.compile(Context.java:1810)
        at org.mozilla.javascript.Context.compile(Context.java:1735)
        at org.mozilla.javascript.Context.compileReader(Context.java:852)
        at org.mozilla.javascript.Context.evaluateReader(Context.java:770)
        at org.mozilla.javascript.tools.shell.Main.evaluateReader(Main.java:300)
        at org.mozilla.javascript.tools.shell.Main.processFile(Main.java:290)
        at org.mozilla.javascript.tools.shell.Main.processSource(Main.java:244)
        at org.mozilla.javascript.tools.shell.Main.exec(Main.java:104)
        at org.mozilla.javascript.tools.debugger.Main.main(Main.java:3156)


I'm using Rhino 1.5.2 prerelease
(ftp://ftp.mozilla.org/pub/js/rhino15R2pre.zip) and SUN's JDK 1.3.1
runtime for Windows.

I'm running the debugger as follows:
java -cp js.jar org.mozilla.javascript.tools.debugger.Main -f tconfini.tcf

Where the file tconfini.tcf is shown below:

function getBoard (defFile) {
    if (arguments.length > 0 ) {
        return (defFile != null ? defFile[1] : null);
    }
    return (null);
}

Any help would be appreciated.  Thanks!

dave
2001-08-12 22:56:33 +00:00
val4%cornell.edu ca655b463f Attempt to build on Unix 2001-08-11 04:57:50 +00:00
brendan%mozilla.org 2c41cd80a0 JSOP_BINDNAME needs JOF_SET flag for JSRESOLVE_ASSIGNING to be imputed (94631, r=shaver, sr=jband). 2001-08-10 23:57:07 +00:00
dbradley%netscape.com c473de394e Bug 88130: XPConnect disturbs exception state of the call-context. This is jband's patch to reorder calls and fix whitspace. r=rginda, sr=jst 2001-08-10 19:23:39 +00:00
dbradley%netscape.com 7205c461fc Bug 93790: xpconnect does not correctly reflect nsIClassInfo interface. r=dbradley, sr=jst, patch by jband 2001-08-10 14:13:17 +00:00
brendan%mozilla.org 1594424103 Check in balleysson@bigfoot.com's patch to avoid a redundant js_strlen (87271, r=shaver, sr=brendan). 2001-08-10 08:02:25 +00:00
brendan%mozilla.org dd1c5e601e Fix useless expression elimination to work with native-function-called JS_EvaluateScript (87271, r=rogerl, sr=jband). 2001-08-10 07:55:17 +00:00
pschwartau%netscape.com 3cf896c1f5 Adding two new cases to the test. 2001-08-09 23:22:16 +00:00
pschwartau%netscape.com ad1b24bae9 Corrected an error in Section 3 of the test. Improved readability. 2001-08-09 22:56:07 +00:00
pschwartau%netscape.com 73531630b9 Initial add. 2001-08-09 19:55:49 +00:00
brendan%mozilla.org 138a297e1f Shrink principals struct back to where it was last week -- but it could go further (93043, r=shaver, sr=jst). 2001-08-09 01:15:57 +00:00
pschwartau%netscape.com 34f4e77fdc Initial add. Tests to skip when testing the JS2 shell. 2001-08-08 21:58:12 +00:00
nboyd%atg.com aa649a28d2 Patches from Igor:
=================================
Rhino: use of Node.get/putIntProperty to store integer values

The patch replaces usage like
        node.putProp(PROPERTY, new Integer(int_value))
        ((Integer)node.getProp(PROPERTY))
by
        node.putIntProp(PROPERTY, int_value)
        node.getIntProp(PROPERTY, defaultValue)
        node.getExistingIntProp(PROPERTY)
to avoid creation of Integer wrapper objects while storing integer
properties in Nodes.

Patch also ads Node.removeProp to explicitly remove Node properties
=================================
The patch changes the type of the first argument of Interpreter.addByte
from byte to int so there is no need to cast int arguments, adds
addShort(int value, int iCodeTop), getShort(byte[] iCode, int pc) to
pack/unpack short values from pc array, replaces calls to
getString(stringTable, byte[] iCode, int pc) by
stringTable[getShort(iCode, pc)] and similar for getNumber

It makes Interpreter.java easy to follow and slightly shrink its class file.
2001-08-08 17:02:56 +00:00
pschwartau%netscape.com 6d88bc2982 Now able to run tests against the JS2 shell (code-named "DikDik"). 2001-08-08 00:12:50 +00:00
brendan%mozilla.org dd56c4b376 Quick followup, my reviewers missed a copy/paste error that's harmless but formally wrong. 2001-08-07 05:32:38 +00:00
brendan%mozilla.org f309276dbb Use a new JSContext option to type context-private data as nsISupports* (82845, sr=jst&waterson). 2001-08-07 05:27:42 +00:00
brendan%mozilla.org 01289b3afb Restore scriptable nsIClassInfo.classID but add fast/C++-only classIDNoAlloc; define and use nsIClassInfo::EAGER_CLASSINFO in caps (93792, sr=waterson&jst). 2001-08-07 03:59:29 +00:00
brendan%mozilla.org eb96838d19 Don't modify state until after realloc succeeds (92810, sr=jband&waterson). 2001-08-07 02:48:10 +00:00
pschwartau%netscape.com 2e2021c5c7 Minor improvement in readability - 2001-08-06 23:53:54 +00:00
nboyd%atg.com acd4cfc058 Try recommitting changes to see if they make it to the web site. 2001-08-03 13:57:05 +00:00
nboyd%atg.com 2093eb03d9 Try to tweak getting the change propagated to the web site. 2001-08-03 13:55:31 +00:00
rginda%netscape.com 366b346fdf remove js_EmitTree call (And friends) because this stuff has already been taken care of by the Statements() call.
See bug 82188
patch=brendan, r=me, sr=jband
2001-08-03 05:20:59 +00:00
rginda%netscape.com 7be0be9140 - not built -
add javadoc comments, remove jsdIScript::isActive, add jasIService::GC()
2001-08-03 05:15:27 +00:00
rginda%netscape.com cd03229855 - not built -
remove isActive attribute from jsdScript (it's the same thing as isValid)
fix bug in jsdValue::GetDoubleValue()
add jsdService::GC()
2001-08-03 05:14:21 +00:00
brendan%mozilla.org cc0ca388ba Mike Epstein's patch to make MAX_INTERP_LEVEL predefinable (93176, r=rogerl, sr=brendan) 2001-08-02 21:31:00 +00:00
dbaron%fas.harvard.edu 76db31a857 Fix leaks of JS runtime service. b=93089 r=shaver, dbradley sr=waterson 2001-08-02 01:58:33 +00:00
nboyd%atg.com a1150a2c0f New version number. 2001-08-01 20:46:46 +00:00
pschwartau%netscape.com 60bc41c155 Improving comments. 2001-08-01 17:43:12 +00:00
pschwartau%netscape.com 4b211d9f09 Adding attribution to jim@jibbering.com 2001-08-01 00:54:44 +00:00
pschwartau%netscape.com e5a14f991f Minor change to comment. 2001-07-31 20:14:30 +00:00
pschwartau%netscape.com 3813e99c60 Adding a new case to the test, from jim@jibbering.com (see bug 92942). 2001-07-31 20:05:26 +00:00
pschwartau%netscape.com e55d001cd6 Correcting an error in the testcase - 2001-07-31 19:47:19 +00:00
brendan%mozilla.org 8c7c819206 FASTLOAD_20010703_BRANCH landing, r=dbaron, sr=shaver. 2001-07-31 19:05:34 +00:00
nboyd%atg.com 17821a452d Update for 1.5R2 release. 2001-07-30 19:30:07 +00:00
nboyd%atg.com 56e795cac7 Update with new bugs unfixed in either engine. 2001-07-30 14:11:18 +00:00
timeless%mac.com 663f2bb3da Bugzilla Bug 92134 Sun Workshop 6 Update 2 _FCS_ fails to build due "jscpucfg" error
by : Roland.Mainz@informatik.med.uni-giessen.de r=cls a=dbaron
2001-07-30 06:44:43 +00:00
pschwartau%netscape.com 1a69e39188 Updated email addresses in the document. 2001-07-27 21:24:49 +00:00