norris%netscape.com
81b17aee64
Fix bug of IndexOutOfRangeException for
...
function query(query, text) {}
2000-05-05 16:38:16 +00:00
norris%netscape.com
0d3fd7c846
Make NativeJavaPackage.class optional.
2000-05-05 16:37:40 +00:00
beard%netscape.com
f346f8d86c
No need to use string, now that size_t LineReader::readLine(String& wstr) exists.
2000-05-05 05:25:00 +00:00
beard%netscape.com
094e8c7500
added size_t LineReader::readLine(String& wstr) for convenience.
2000-05-05 05:24:02 +00:00
beard%netscape.com
15d927bcb1
regenerated dependencies
2000-05-05 04:58:56 +00:00
beard%netscape.com
6e4e5d59d1
LineReader returns at least '\n'
2000-05-05 04:50:45 +00:00
beard%netscape.com
a95951573d
stdin rather than cin
2000-05-05 04:45:39 +00:00
beard%netscape.com
7ff3a71924
Needed to use namespace Interpreter to see Context, using LineReader instead of istream.
2000-05-05 04:44:51 +00:00
beard%netscape.com
f9843b94da
remove unnecessary #include <iostream>
2000-05-05 04:44:01 +00:00
beard%netscape.com
1a0c42b62f
Use FILE* instead of istream& for better line handling
2000-05-05 04:43:12 +00:00
beard%netscape.com
1210745bf0
EOF handling
2000-05-05 04:19:20 +00:00
beard%netscape.com
d473e75f91
can't use std::getline() with a String on all platforms.
2000-05-05 04:10:01 +00:00
beard%netscape.com
34072e3ec7
forward declaring std::istream.
2000-05-05 04:08:59 +00:00
beard%netscape.com
6a814bf3a1
fixed ICodeGenerator/ICodeModule::print on Mac, which seems to be getting confused when using operator<< in another namespace.
2000-05-05 04:05:56 +00:00
beard%netscape.com
3bee0e64c4
removed unused macro NS_JSICG.
2000-05-05 04:04:23 +00:00
rginda%netscape.com
ace8bcaf1e
much debugger spankage; parse and execute step, continue, set, and print (kind-of) commands.
...
push implementation details of ICodeGenerator::print() into InstructionStream so they can be shared with ICodeModule.
copy variableList from ICodeGenerator to ICodeModule.
s/ScringAtom/const StringAtom/ in gencode.pl, regenerate vmtypes.h
2000-05-04 22:42:49 +00:00
rogerl%netscape.com
f0a527348f
Added const to the StringAtom usage.
...
Propagated variableList to ICodeModule
2000-05-04 22:08:38 +00:00
cls%seawood.org
772286e0af
More OS/2 Makefile changes. Bug #34106 Batch 12
2000-05-04 11:00:47 +00:00
norris%netscape.com
2361f09464
Add missing files.
2000-05-03 22:00:22 +00:00
norris%netscape.com
77b4d82355
Clean up; remove need for synchronize
2000-05-03 21:55:09 +00:00
beard%netscape.com
638c7e68c2
fix assert bustage in DEBUG build.
2000-05-03 01:41:37 +00:00
cls%seawood.org
7188e4e94c
MOZ_JS_LIBS doesn't set the linker path so put it after MOZ_COMPONENT_LIBS.
2000-05-03 00:21:08 +00:00
thayes%netscape.com
305c17893f
Replace implementation of nsISupports with thread-safe version. This allows
...
SSL/HTTPS operations to complete on debug builds with thread-safety checking.
r=bryner
2000-05-03 00:04:48 +00:00
mkaply%us.ibm.com
6d0ec2f2c9
# 34082
...
r= rogerl
OS/2 bring up continues - support for debugging asserts on OS/2
2000-05-02 23:18:32 +00:00
mkaply%us.ibm.com
24ea211304
# 34082
...
r= rogerl
OS/2 bring up continues - VisualAge fixes
2000-05-02 22:44:23 +00:00
rogerl%netscape.com
c5ae7fcab1
Cleaning up some label stuff
2000-05-02 21:36:28 +00:00
norris%netscape.com
0332a47564
Fix bug: All the standard object constructors were showing up as enumerable properties of the global object.
2000-05-02 17:36:47 +00:00
cls%seawood.org
58aac2e6af
OS/2 Makefile.in tweaks. Batch 10 & 11. Bug #34106
2000-05-02 01:18:46 +00:00
rogerl%netscape.com
6408cd1ab7
r=norris@netscape.com. Add ASSERT/ASSERT_NOT cases to fixNext child
...
processing - was running into garbage when processing these as children
of a '|'
2000-05-01 21:57:22 +00:00
rogerl%netscape.com
c85e0eeeaf
r=norris@netscape.com
...
Bug #34187 , adding 'eval' as property of global object.
Bug #31864 , decompiler failure when attempting to invoke a non-function
where that object is accessed via an incoming argument of the current
function.
2000-05-01 21:55:52 +00:00
rogerl%netscape.com
96c66a2bba
r=norris@netscape.com; Bug#32174
...
Prevent recursive death when user has a function 'Object'.
2000-05-01 21:53:20 +00:00
beard%netscape.com
e57aaf2941
warnings on Linux
2000-05-01 17:18:49 +00:00
beard%netscape.com
d3a405ae82
fixing breakage on Linux
2000-05-01 17:18:23 +00:00
beard%netscape.com
a38befc82a
removed unnecessary casts to int32 in ICodeGenerator::setLabel() which were generating warnings.
2000-05-01 17:11:36 +00:00
waldemar%netscape.com
67d784459e
Changed syntax of identifiers, attributes, expressions, functions, and packages. Added export, use, constructor, namespace, import.
2000-05-01 06:21:39 +00:00
beard%netscape.com
b8c58d5968
made startsWith() static, to fix no prototype warning.
2000-04-30 14:56:31 +00:00
beard%netscape.com
a7d1d8240d
added debugger.cpp/h.
2000-04-30 14:55:51 +00:00
beard%netscape.com
d1626bab75
Removed setGlobalObject(), as only the interpreter should be mucking with it after initial creation. Added getWorld(), made getICode() out of line, removed mICode since it's part of Activation record.
2000-04-29 14:44:42 +00:00
beard%netscape.com
99e50b3eb4
Implemented WITHIN, WITHOUT instructions, removed mICode from Context since it's part of Activation. No longer deleteing mActivation, just clearing it, since Activation objects are garbage collected.
2000-04-29 14:43:36 +00:00
beard%netscape.com
a49b031e34
Added JSScope::getParent().
2000-04-29 14:39:50 +00:00
beard%netscape.com
154414a0ee
JSNamespace -> JSScope.
2000-04-29 14:14:28 +00:00
beard%netscape.com
5e49b8d13f
JSValue::operator==(const JSValue&)
2000-04-29 14:13:43 +00:00
beard%netscape.com
1603cc24d3
Added JSValue::operator==(const JSValue&), renamed JSNamespace JSScope.
2000-04-29 14:13:08 +00:00
beard%netscape.com
275ac8e2bf
moved kUndefinedValue to jstypes.cpp, where it belongs.
2000-04-29 14:11:27 +00:00
beard%netscape.com
dce8602831
added WITHIN, WITHOUT instructions.
2000-04-29 14:10:53 +00:00
beard%netscape.com
28a0b3bb92
fixing windows bustage.
2000-04-29 00:29:56 +00:00
rginda%netscape.com
c9f14ba1b4
somewhat weak debugger console hookup.
...
build shouldn't *look* different yet.
Moved Context::interpret() local vars into Context private, added accessors for
stuff, using JavaScript::Lexer to lex debugger commands.
Fixed sign comparison warning in icg.cpp
2000-04-29 00:23:06 +00:00
beard%netscape.com
cd2ea3d3e4
Added jstypes.cpp
2000-04-28 23:10:06 +00:00
beard%netscape.com
af56dac3b4
Merged JSMap & JSObject. Introduced JSNamespace.
2000-04-28 23:04:43 +00:00
rginda%netscape.com
69e9b0ee35
80 column nit picked, comment fixed
2000-04-28 15:32:54 +00:00
beard%netscape.com
4e41834f75
Don't print BRANCH operands.
2000-04-28 13:46:01 +00:00
beard%netscape.com
8ff65a3852
tightened up spacing in printOperands(), changed GenericBranch.printOperands() to conditionally print condition register contents.
2000-04-28 13:44:59 +00:00
beard%netscape.com
2efc159d82
tightened up spacing in printOperands().
2000-04-28 13:43:49 +00:00
beard%netscape.com
082ad168b4
Added Tracer to testFunctionCall().
2000-04-28 13:31:39 +00:00
beard%netscape.com
c4a7011cdf
const ArgList& makes gcc happy.
2000-04-28 13:25:57 +00:00
beard%netscape.com
734c2d1779
Added jstypes.o
2000-04-28 13:25:24 +00:00
beard%netscape.com
1d0cfaf144
added ArgList helper struct to print Call operands, regenerated printOperands() methods to reduce warnings.
2000-04-28 13:20:26 +00:00
beard%netscape.com
bbe2f74bd7
operator<< (Formatter& f, ArgList& al)
2000-04-28 13:18:03 +00:00
beard%netscape.com
2ccb1db4e8
support for printing ArgLists.
2000-04-28 13:17:35 +00:00
beard%netscape.com
02fccb52ca
Unused.
2000-04-28 13:16:23 +00:00
beard%netscape.com
0a6482a9e4
regenerated dependencies
2000-04-28 05:46:22 +00:00
beard%netscape.com
b3dc38ee22
tracing now prints instruction operands.
2000-04-28 05:44:38 +00:00
beard%netscape.com
99956a6429
using JSValue::tag to do simple operand validation.
2000-04-28 05:43:33 +00:00
beard%netscape.com
f3d2f8c11d
forward declaring ICodeModule, to break circularity. JSValue is now a tagged union.
2000-04-28 05:42:46 +00:00
beard%netscape.com
a166644e29
Instruction::count(), Instruction::printOperands(), plus newly generated instruction classes.
2000-04-28 05:41:54 +00:00
beard%netscape.com
0dee053bef
added jstypes.cpp
2000-04-28 05:40:42 +00:00
beard%netscape.com
cf5bda1bec
operator<<(Formatter&, const JSValue&)
2000-04-28 05:40:16 +00:00
beard%netscape.com
dc524f8331
generates printOperands()
2000-04-28 05:39:27 +00:00
beard%netscape.com
bc2e56b97c
runs gencode.pl with MW Perl.
2000-04-28 05:39:04 +00:00
waldemar%netscape.com
192b3c45c8
Changed attributes and 'language' statement syntax, added interfaces, and removed ^*, ^?, |*, and |?.
2000-04-28 02:34:14 +00:00
rginda%netscape.com
5ab596c1c3
don't generate print_args if super_has_print
...
comment fixes
2000-04-28 02:33:36 +00:00
waldemar%netscape.com
c0b3a0c99c
Changed period to dot
2000-04-28 02:31:41 +00:00
waldemar%netscape.com
ef5540e948
Fixed syntax of (bottom)
2000-04-28 02:30:44 +00:00
waldemar%netscape.com
5e5a923879
First Checked In.
2000-04-28 02:30:19 +00:00
rginda%netscape.com
9c217a25f0
moved comment so it made more sense
2000-04-28 02:26:14 +00:00
beard%netscape.com
df05dec418
reordered inheritance graph of Linkage.
2000-04-28 02:23:08 +00:00
rginda%netscape.com
5701c02682
printarg stubbed out
2000-04-28 02:20:23 +00:00
beard%netscape.com
7293a17b91
testProto()
2000-04-28 01:43:03 +00:00
rogerl%netscape.com
b28efe5b88
try/catch exercise changes
2000-04-28 00:11:18 +00:00
rogerl%netscape.com
11e9424ecd
fixed bad constructor thing.
2000-04-28 00:10:22 +00:00
norris%netscape.com
927c1fe19b
Propagate changes from 1.21.2.3 into tip.
2000-04-27 18:39:10 +00:00
rogerl%netscape.com
62485331a6
More exception handling handling.
2000-04-27 01:27:09 +00:00
norris%netscape.com
cc8de52de5
Allow multiple uses of importClass on the same class.
2000-04-26 23:47:15 +00:00
norris%netscape.com
c21f8c696f
Fix bug 37317.
2000-04-26 23:33:25 +00:00
norris%netscape.com
f1caa8664f
Fix NullPointerException caused by clearing cache
2000-04-26 22:48:48 +00:00
beard%netscape.com
427dc1a8eb
oops.
2000-04-26 22:10:20 +00:00
beard%netscape.com
758222941a
removed JSMap::operator[], added set/getPrototype().
2000-04-26 22:06:17 +00:00
beard%netscape.com
36a2941e26
oops getProperty() can't be const unless map.find() is used everywhere.
2000-04-26 21:48:04 +00:00
beard%netscape.com
94c129e6fd
Using getProperty/setProperty rather than JSMap::operator[]. This follows the prototype chain.
2000-04-26 21:38:14 +00:00
beard%netscape.com
c7426026d9
added JSMap::setProperty()/getProperty(), and a prototype field.
2000-04-26 21:27:44 +00:00
rginda%netscape.com
a0058d1d8d
initial add of debugger vapors
2000-04-26 06:04:02 +00:00
beard%netscape.com
77ef914838
Fixing windows bustage in Linkage.
2000-04-26 05:56:20 +00:00
beard%netscape.com
563b59ef15
fixing bug: js2.cpp:328: Internal compiler error in scope_die_for, at dwarf2out.c:7794 Please submit a full bug report. See <URL: http://www.gnu.org/software/gcc/faq.html#bugreport > for instructions.
2000-04-26 05:43:24 +00:00
beard%netscape.com
8a97a98204
testFactorial() now installs a Context::Listener to trace execution.
2000-04-26 05:37:00 +00:00
beard%netscape.com
4ae9bfec81
JSActivation -> Activation, JSLinkage --> Linkage. Linkage now implements the Context::Frame interface. Implemented simple Context::Listener support.
2000-04-26 05:35:07 +00:00
beard%netscape.com
36879f0ce5
Added Context::Frame, Context::Listener abstract classes. Initial support for debugger.
2000-04-26 05:29:35 +00:00
beard%netscape.com
4cb6fe2a7b
JSFrame -> JSLinkage, using explicit linked list rather than a stack.
2000-04-26 01:42:00 +00:00
beard%netscape.com
9b7ed9578b
removed intentionally private JSActivation/JSFrame types. The debugger should be able to ask questions of the interpreter to obtain this information.
2000-04-26 01:39:56 +00:00
jband%netscape.com
7e27d3faff
be less aggresive in shutdown cleanup to avoid shutdown crashes. See bug 37058 for an example stack.
2000-04-25 07:26:02 +00:00
jband%netscape.com
f7dc9f09e9
release the threadcontextstack to avoid a shutdown leak
2000-04-25 04:59:21 +00:00
jband%netscape.com
42defd8cf1
Cleanup at shutdown the JSContexts that xpconnect manages on a per thread basis. This should fix some shutdown leaks.
2000-04-25 04:57:32 +00:00
beard%netscape.com
27fc318bb1
changed Context constructor to take JSObject* not JSObject&, to be able to control lifetime a little more carefully.
2000-04-25 03:32:53 +00:00
beard%netscape.com
6a4bca91fe
warning removal
2000-04-25 03:28:41 +00:00
beard%netscape.com
39551bc785
fixing mac bustage (we do reference argc/argv, to initialize them to something sensible).
2000-04-25 02:58:30 +00:00
beard%netscape.com
9d7aed4cd0
renamed not() -> complement() (not is a keyword in C++), implemented complement().
2000-04-25 02:55:08 +00:00
brendan%mozilla.org
99896c816a
Final destroy-context must await racing GCs before freeing atom state (32525, r=jband).
2000-04-25 01:12:36 +00:00
rogerl%netscape.com
1b75c7efbb
Fixes for handling missing params.
2000-04-24 22:40:53 +00:00
rginda%netscape.com
5edf52ba65
adding comments
2000-04-24 21:43:49 +00:00
rginda%netscape.com
5945808db5
NotARegister check in GenericBranch::print()
2000-04-24 20:08:16 +00:00
norris%netscape.com
45ea2bb652
Patch from Matthias Radestock <rade@logee.com>:
...
Subject:
JavaAdapter return type conversion
Date:
Wed, 19 Apr 2000 12:12:47 +0100
From:
Matthias Radestock <rade@logee.com>
Organization:
Logee
To:
norris@netscape.com
CC:
mccabe@netscape.com , beard@netscape.com , rogerl@netscape.com
Dear Rhino team,
When returning an array from a scripted Java object (i.e. a JS object
that implements a Java interface), no type conversion is performed, ie.
a NativeArray is returned instead of a Java array. Example:
Java:
interface Foo {
public String[] boo();
}
JS:
FooI = {
boo: function() { return ["Boo"];}
}
myFoo = new Packages.Foo(FooI);
myFoo.boo(); //==> breaks with a ClassCastException
Looking at the JavaAdapter code, there is no code for array conversion.
This is particularly bad because precisely such a conversion *does*
happen when calling a Java method from JS. So we end up with a
discrepancy.
See attachment for a patch to fix this and little test program. The
patch works by calling the coerceType function on NativeJavaObject,
which is the function responsible for doing the conversion when calling
from JS to Java. I've simplified the code so that this function gets
called for all non-primitive return type, not just arrays. There are
probably more efficient solutions but I'm not a Java bytecode hacker.
Matthias
PS: I didn't open a bug for this because I wasn't sure whether you guys
would agree that this is indeed a problem ;)
public interface JSReturnTest {
public boolean returnBoolean();
public char returnChar();
public int returnInt();
public String returnString();
public org.mozilla.javascript.Scriptable returnScriptable();
public Object returnObject();
public boolean[] returnBooleanA();
public char[] returnCharA();
public int[] returnIntA();
public String[] returnStringA();
public org.mozilla.javascript.Scriptable[] returnScriptableA();
public Object[] returnObjectA();
public Object[][] returnObjectAA();
}
Index: JavaAdapter.java
===================================================================
RCS file: /cvsroot/mozilla/js/rhino/org/mozilla/javascript/JavaAdapter.java,v
retrieving revision 1.21
diff -r1.21 JavaAdapter.java
54c54,59
<
---
>
> public static Object convertResult(Object result, String classname)
> throws ClassNotFoundException {
> return NativeJavaObject.coerceType(Class.forName(classname),
> result);
> }
467,474c472,474
< } else if (retType.equals(String.class)) {
< cfw.add(ByteCode.INVOKESTATIC,
< "org/mozilla/javascript/Context",
< "toString", "(Ljava/lang/Object;)",
< "Ljava/lang/String;");
< cfw.add(ByteCode.ARETURN);
< } else if (retType.equals(Scriptable.class)) {
< cfw.add(ByteCode.ALOAD_0); // load 'this' to find scope from
---
> } else {
> String retTypeStr = retType.getName();
> cfw.addLoadConstant(retTypeStr);
476,477c476,477
< "org/mozilla/javascript/Context",
< "toObject",
---
> "org/mozilla/javascript/JavaAdapter",
> "convertResult",
479,500c479,480
< "Lorg/mozilla/javascript/Scriptable;)",
< "Lorg/mozilla/javascript/Scriptable;");
< cfw.add(ByteCode.ARETURN);
< } else {
< // If it is a wrapped type, cast to Wrapper and call unwrap()
< cfw.add(ByteCode.DUP);
< cfw.add(ByteCode.INSTANCEOF, "org/mozilla/javascript/Wrapper");
< // skip 3 for IFEQ, 3 for CHECKCAST, and 5 for INVOKEINTERFACE
< cfw.add(ByteCode.IFEQ, 11);
< cfw.add(ByteCode.CHECKCAST, "org/mozilla/javascript/Wrapper");
< cfw.add(ByteCode.INVOKEINTERFACE,
< "org/mozilla/javascript/Wrapper",
< "unwrap", "()", "Ljava/lang/Object;");
<
< // If Undefined, return null
< cfw.add(ByteCode.DUP);
< cfw.add(ByteCode.INSTANCEOF, "org/mozilla/javascript/Undefined");
< // skip 3 for IFEQ, 1 for ACONST_NULL, 1 for ARETURN
< cfw.add(ByteCode.IFEQ, 5);
< cfw.add(ByteCode.ACONST_NULL);
< cfw.add(ByteCode.ARETURN);
<
---
> "Ljava/lang/String;)",
> "Ljava/lang/Object;");
502,503c482
< String retTypeStr = retType.getName().replace('.', '/');
< cfw.add(ByteCode.CHECKCAST, retTypeStr);
---
> cfw.add(ByteCode.CHECKCAST, retTypeStr.replace('.', '/'));
testpatch.js
Name:
testpatch.js
Type:
JavaScript Program (application/x-javascript)
Encoding:
7bit
2000-04-24 19:36:51 +00:00
rginda%netscape.com
66299105f3
quieting linux warnings
2000-04-24 18:41:05 +00:00
jband%netscape.com
04051a0da0
belt and suspenders check of WITH_SERVICE results
2000-04-23 23:04:40 +00:00
jband%netscape.com
c9fbfe6b3f
fix a dangerous looking (but harmless) warning on Mac opt
2000-04-22 01:06:42 +00:00
rogerl%netscape.com
f516a5722d
Added a beginning for exception handling.
2000-04-21 22:52:52 +00:00
mccabe%netscape.com
b83e22e2ea
Fix to 23532. Check validity of JS_ARENA_ALLOCATE call before using it as an argument of memcpy in JS_ArenaGrow.
...
Thanks to wyeung@real.com for noticing we were being unsafe here and suggesting the fix.
2000-04-21 09:25:43 +00:00
brendan%mozilla.org
c4dc0a590b
Spruce up a couple of comments.
2000-04-21 01:49:49 +00:00
brendan%mozilla.org
c65d2d6a93
Functions that use unqualified __parent__ or __proto__ must be heavyweight (36625, r=shaver).
2000-04-21 01:47:20 +00:00
rginda%netscape.com
d6c8ec2a89
Add nsIScriptError.idl. Build it here rather than back in xpfe/components/console.
Checkin by McCabe, on rginda's mac.
2000-04-21 00:57:27 +00:00
rogerl%netscape.com
ca67259713
oops
2000-04-21 00:46:48 +00:00
rogerl%netscape.com
5e238bd7a5
Added labelled statements, fixed some VC++'isms
2000-04-21 00:37:51 +00:00
rginda%netscape.com
7615ee9226
icodegenerator.cpp
...
add m prefix to base and offset label members
interpreter.cpp,h
dual license
wrap interpret in a Context class
add RETURN_VOID case
js2.cpp
update to use context class
remove #if 0 code that'll probably never be used anyway.
jstypes.h
add defineProperty/function to JSObject
vmtypes.h
regerated opcode classes:
added RETURN_VOID, removed LOAD/SAVE_VAR
reverted bacl to the smaller print function (thanks to RETURN_VOID)
fixed branch printing issue
inherit print() from super if possible
tools/gencode.pl
generate smaller print functions again
don't generate print function if superclass can take care of it.
2000-04-21 00:04:14 +00:00
norris%netscape.com
0bca489fe4
Clean up new methods.
2000-04-20 23:08:07 +00:00
beard%netscape.com
d7ad5021eb
Simple dependency tracking with make depend target.
2000-04-20 23:02:19 +00:00
rogerl%netscape.com
215b1e19c7
Added ASSERT cases to FixNext child handling.
2000-04-20 23:00:37 +00:00
beard%netscape.com
30971c4c45
Simple dependencies list. Rebuilt with make depend target.
2000-04-20 22:58:23 +00:00
norris%netscape.com
35a0af1014
Fix build error.
2000-04-20 22:36:46 +00:00
norris%netscape.com
e8b7e89546
Subject:
...
contextClassloader problem in ScriptRuntime.java
Date:
Tue, 11 Apr 2000 09:45:36 -0400
From:
"Howard Lin" <howard@softcom.com>
To:
"Norris Boyd" <norris@netscape.com>
CC:
"Andrew Wason" <aw@softcom.com>
Hi, Norris, we are trying to create a Java class in JavaScript. When security manager is on, everything works fine. But when security
manager is off, we got an error saying the "... is not defined". The problem is that in ScriptRuntime.java, when security is on,
getContextClassLoader is null due to SecurityException and Class.forName is used to find the class, which works fine. When security
is off, ContextClassLoaderMethod is invoked to find the class. Since we use a separate thread to load third party jar files,
ContextClassLoaderMethod will throw a ClassNotFound exception.
To illustrate this problem, I wrote a simple applet, evaluating a simple js file in its paint method, which is running on a separate thread.
When security is off, I got the following:
ReferenceError: "Global" is not defined.
at org.mozilla.javascript.NativeGlobal.constructError(NativeGlobal.java:
494)
at org.mozilla.javascript.ScriptRuntime.name(ScriptRuntime.java, Compile
d Code)
at org.mozilla.javascript.Interpreter.interpret(Interpreter.java, Compil
ed Code)
at org.mozilla.javascript.InterpretedScript.call(InterpretedScript.java:
67)
at org.mozilla.javascript.InterpretedScript.exec(InterpretedScript.java:
54)
at org.mozilla.javascript.Context.evaluateReader(Context.java:739)
at test.evaluate(test.java:26)
at test.paint(test.java:16)
at sun.awt.windows.WComponentPeer.handleEvent(WComponentPeer.java:117)
at java.awt.Component.dispatchEventImpl(Component.java:2447)
at java.awt.Container.dispatchEventImpl(Container.java:1035)
at java.awt.Component.dispatchEvent(Component.java:2307)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:287)
at java.awt.EventDispatchThread.pumpOneEvent(EventDispatchThread.java:10
1)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:92)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:83)
When security is on, it runs fine. Or if the code moved to init method, it works fine regardless of security. We are using JDK 1.2.2.
Howard
2000-04-20 19:53:16 +00:00
jband%netscape.com
9b08d1ac85
Had the wrong clazz for the root! So it was better when the caching was broken. Now it works on MI objects with caching fixed. My bad copy/paste error from long ago.
2000-04-20 12:16:45 +00:00
jband%netscape.com
9c1badb1ca
backing out little fix from earlier today because it causes crashes in some MI cases. I'll investigate and do the right fix
2000-04-20 11:06:48 +00:00
brendan%mozilla.org
3d6de092fd
Check access and redeclaration legality when defining a getter/setter (36117, r=norris)
2000-04-20 07:10:14 +00:00
beard%netscape.com
9acaa398fe
removed extraneous semi-colons after namespace declarations.
2000-04-20 06:20:31 +00:00
beard%netscape.com
bb0348e64d
warnings: commented out unused parameter name.
2000-04-20 06:19:43 +00:00
jband%netscape.com
d727af1bbe
fix typo bug that was causing wrapper cache misses on wrapper around objects implementing multiple interfaces when the first wrapper is made for an interface that is not leftmost
2000-04-20 03:38:47 +00:00
norris%netscape.com
62efd62f19
Add line number information.
2000-04-19 23:24:04 +00:00
rogerl%netscape.com
5199f6e49c
Removing variables.
2000-04-19 22:45:57 +00:00
rogerl%netscape.com
772eb43e2e
Added hasOwnProperty, propertyIsEnumerable, isPrototypeOf to Object.
2000-04-19 22:32:50 +00:00
rogerl%netscape.com
7b7fc3829f
Began moving away from variables, fixed compare/branch ordering.
...
Testcases working.
2000-04-19 02:09:06 +00:00
scc%netscape.com
995abb7f46
making string conversions explicit
2000-04-18 23:53:10 +00:00
rginda%netscape.com
3a06b96f97
formatting changes. use only one tab regardless of nested namespaces
2000-04-18 21:51:45 +00:00
norris%netscape.com
5b52db907b
Add missing method for 1.4R3 compatibility.
2000-04-18 16:53:28 +00:00
norris%netscape.com
1931f31f5b
Fix bug where a bean property can conflict with a method name.
2000-04-18 16:52:00 +00:00
norris%netscape.com
f10587a521
Fix bug:
...
var a = Math.abs;
a(-245);
gets the following error :
org.mozilla.javascript.EvaluatorException: Method "abs" called on
incompatible object.
2000-04-18 16:34:36 +00:00
rginda%netscape.com
1952e14ff8
removed superfluous ;s after namespace decs.
2000-04-18 07:14:49 +00:00
rginda%netscape.com
531ede4f17
regenerated opcode classes after grncode.pl changes
2000-04-18 07:06:25 +00:00
rginda%netscape.com
33d0848741
modified to print R~ if NotARegister
2000-04-18 07:04:24 +00:00
dp%netscape.com
366ecea0fc
Implemented component unregister.
2000-04-18 05:26:40 +00:00
mccabe%netscape.com
4c637c806e
added files: mozilla/js/src/xpconnect/src/nsScriptError.cpp
2000-04-18 02:35:06 +00:00
mccabe%netscape.com
b93c689e66
Move nsIConsoleService and implementation into xpcom/base, and nsIScriptError and implementation into js/src/xpconnect. (A place for JavaScript-specific XPCOM would be better, but xpconnect will do).
2000-04-18 02:34:54 +00:00
rogerl%netscape.com
fce9fa62b1
added '(' for RegisterList output
2000-04-18 01:46:32 +00:00
rginda%netscape.com
8ac24b9045
regenerated opcodenames to include padding, added label printing back into icg::print
2000-04-18 01:31:24 +00:00
rginda%netscape.com
b0eca07a47
space out opcodenames array
2000-04-18 01:19:12 +00:00
beard%netscape.com
52d7e01394
std::pair
2000-04-18 00:52:07 +00:00
beard%netscape.com
7add6915a1
moved initConsole() out to :: namespace.
2000-04-18 00:51:53 +00:00
beard%netscape.com
c18125076f
added vmtypes.h,.cpp
2000-04-18 00:50:58 +00:00
rogerl%netscape.com
f163805c99
added vmtypes/jstypes
2000-04-18 00:46:18 +00:00
rogerl%netscape.com
0e17feea55
Fixed WINDOZE build issues
2000-04-18 00:38:26 +00:00
rginda%netscape.com
73017de6a1
initial add of perl script to generate icode classes
2000-04-18 00:22:51 +00:00
rginda%netscape.com
5a6fd84159
removing bogus file
2000-04-18 00:20:10 +00:00
rginda%netscape.com
0fac613959
adding files for namespace change
2000-04-18 00:19:09 +00:00
rginda%netscape.com
66cb26879d
added js::VM, ICG, JSTypes, and Interpreter namespaces; messed around with lots of code.
...
Created class for each ICode, adding a print() method (using formatters)
2000-04-18 00:17:34 +00:00
beard%netscape.com
02798c9177
FASTLOCK changes.
2000-04-17 23:58:28 +00:00
braddr%puremagic.com
97d2f19960
Implicit types are evil. Add PRUint32.
...
r=mccabe
2000-04-16 00:21:07 +00:00
jband%netscape.com
70c7e60b98
add a test with an 'out' array of strings
2000-04-15 18:44:22 +00:00
mccabe%netscape.com
73dd1ab098
Print error diagnostics to stderr even when non-debug, to support those folks
...
that want to debug with the -console flag.
2000-04-15 06:59:21 +00:00
brendan%mozilla.org
ec5a9e9229
Always call resolve for each object in a prototype chain (35738, r=shaver).
2000-04-15 02:01:02 +00:00
shaver%mozilla.org
024dad8f12
Replace stupid and evil BYTECODE_ITER hack with proper use of back-patch
...
chained PatchGotos goodness. (PatchGotos seasoned to taste.)
r=brendan
2000-04-14 23:27:09 +00:00
norris%netscape.com
a3caa18f07
Fix
...
28390, 28866, 34364
r=brendan@mozilla.org
35701
r=jst@netscape.com
2000-04-14 03:14:53 +00:00
rogerl%netscape.com
1e558f10e2
Fxied oboscure bug when user defines function Object(), the next new Object
...
gets a stack crash looking for the prototype. (bug #32174 )
2000-04-13 17:58:18 +00:00
beard%netscape.com
e82b4e2532
gc_base now used as common base class of GC allocated objects.
2000-04-13 04:54:41 +00:00
beard%netscape.com
56d97a71e9
added gc_base, which defines a more generic operator new().
2000-04-13 04:53:56 +00:00
beard%netscape.com
d92905d034
builds gc
2000-04-13 00:37:00 +00:00
beard%netscape.com
1468acd8d1
Added gc_allocator.h to project and gc.lib to link against.
2000-04-13 00:28:40 +00:00
beard%netscape.com
a1bed20974
linking in gc.lib from ../../gc/boehm
2000-04-13 00:16:58 +00:00
beard%netscape.com
2922707730
enabling GC on all platforms
2000-04-13 00:14:23 +00:00
norris%netscape.com
1316603f7b
Fix bug 33841.
2000-04-12 17:30:32 +00:00
norris%netscape.com
5999d2b51d
Remove obsolete statement from javadoc.
2000-04-11 18:24:08 +00:00
norris%netscape.com
eda51b9f12
Update javadoc
2000-04-11 18:22:36 +00:00
beard%netscape.com
12ccc48ec4
JSActivation, JSFunction
2000-04-11 05:11:58 +00:00
beard%netscape.com
95604b5bff
Added JSFunction, defineFunction()
2000-04-11 05:10:40 +00:00
beard%netscape.com
c721ec102b
defineFunction, added assert
2000-04-11 05:09:38 +00:00
beard%netscape.com
b574e77f13
_Charalloc, deallocate(void*) for _WIN32 only
2000-04-11 04:55:27 +00:00
beard%netscape.com
92ec71fb35
defineGlobalProperty
2000-04-11 03:11:47 +00:00
beard%netscape.com
af1f41fb7d
JSObject, JSArray : public JSMap, gc_object<T>. Frame -> JSFrame. Added JSFrameStack which is an std:stack<JSFrame*, std:vector<JSFrame*> >.
2000-04-11 03:11:00 +00:00
beard%netscape.com
8ef180ab04
use gc_allocator<T> everywhere, addGlobalProperty -> defineGlobalProperty
2000-04-11 03:07:39 +00:00
beard%netscape.com
2930dfd621
removed commented out GET_PROP/SET_PROP.
2000-04-11 02:59:52 +00:00
beard%netscape.com
8bd406efae
added gc_object.
2000-04-11 02:59:14 +00:00
beard%netscape.com
f7fdcbff8b
fixing an assert and warnings
2000-04-11 01:10:26 +00:00
rogerl%netscape.com
2757a2004e
CALL opcode & frames etc. (r=beard)
2000-04-11 00:32:17 +00:00
waldemar%netscape.com
84bdf052ab
Fixed delete/delete[] mismatch
2000-04-10 22:23:17 +00:00
waldemar%netscape.com
d1e89106de
Fixed memory leak
2000-04-10 22:20:00 +00:00
beard%netscape.com
1edba28c48
Fixed warnings about member initializers on Linux. Whatever.
2000-04-08 04:49:41 +00:00
beard%netscape.com
14a585783b
Reduced size of args arrays to minimum.
2000-04-08 04:41:19 +00:00
beard%netscape.com
138afee3b4
Reordered parameters to getProperty()/setProperty() to be consistent with operand ordering. Added array allocation/indexing to testObjects().
2000-04-08 04:15:02 +00:00
beard%netscape.com
6337059f6f
JSArray::elements(1), operator[](const JSValue&), fixed register-indexing.
2000-04-08 04:12:28 +00:00
beard%netscape.com
f589a1ab24
Fixed NEW_ARRAY, GET_ELEMENT, SET_ELEMENT printing.,
2000-04-08 04:11:16 +00:00
beard%netscape.com
8c93fb3d06
NEW_ARRAY
2000-04-08 03:37:49 +00:00
beard%netscape.com
0822793571
Reordered GetProp/SetProp operands to base, name. Added NewArray, GetElement, SetElement instructions.
2000-04-08 03:37:18 +00:00
beard%netscape.com
afd93b4e07
added JSArray, GET_ELEMENT, SET_ELEMENT, changed some ops to dest/src.
2000-04-08 03:23:44 +00:00
beard%netscape.com
468bc29100
added JSArray, comments.
2000-04-08 02:44:34 +00:00
beard%netscape.com
95cb0e8b9d
Changed boilerplate, chmod -x
2000-04-08 02:29:07 +00:00