4986 Commits

Author SHA1 Message Date
nboyd%atg.com
2e896de375 Fix bug 202344 (which was not fully fixed by the previous change.)
git-svn-id: svn://10.0.0.236/trunk@141525 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-21 19:43:45 +00:00
nboyd%atg.com
da0d59e06d Fix bug 202344.
git-svn-id: svn://10.0.0.236/trunk@141516 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-21 14:59:22 +00:00
nboyd%atg.com
f77ad392b4 Restore method used by Batik.
git-svn-id: svn://10.0.0.236/trunk@141515 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-21 13:38:49 +00:00
dbradley%netscape.com
50a5130563 Bug 196683 - Remove infinite recursion loop check in XPC_WN_Helper_NewResolve (And other resolvers). r=brendan, sr=jst
git-svn-id: svn://10.0.0.236/trunk@141514 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-21 13:05:25 +00:00
brendan%mozilla.org
2ebb2584b6 Fix switch case statement-list beginning line number (111352, r=shaver).
git-svn-id: svn://10.0.0.236/trunk@141474 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-20 17:10:15 +00:00
pschwartau%netscape.com
bb809c0ff0 Improving readability.
git-svn-id: svn://10.0.0.236/trunk@141469 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-20 03:36:11 +00:00
pschwartau%netscape.com
61ad61e7d6 Initial add. Regression test for bug 202678.
git-svn-id: svn://10.0.0.236/trunk@141468 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-20 03:30:04 +00:00
brendan%mozilla.org
1f99266a57 Fix call_enumerate to reflect argv/vars stack slot values into their call object properties, in case of early environment capture due to a nested function resolving an outer function's arg or var (202678, r=shaver).
git-svn-id: svn://10.0.0.236/trunk@141467 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-20 03:16:45 +00:00
pschwartau%netscape.com
424196ab10 Initial add. Regression test for bug 202564.
git-svn-id: svn://10.0.0.236/trunk@141415 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-18 22:31:12 +00:00
rginda%netscape.com
33260f7486 fix tbox bustage.
git-svn-id: svn://10.0.0.236/trunk@141410 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-18 20:48:43 +00:00
seawood%netscape.com
3b350b75cd Remove global _POSIX_SOURCE & _SVID_SOURCE defines for linux.
Bug #202510 r=darin


git-svn-id: svn://10.0.0.236/trunk@141408 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-18 20:14:17 +00:00
rginda%netscape.com
8a5d068645 bug 200591, "File Options > Don't Debug Eval/Timeouts isn't working", r=brendan
prevent any stack with a disabled frame from being debugged during single-stepping, or break-on-throw.  Also adds versioning support to the jsdIDebuggerService interface.


git-svn-id: svn://10.0.0.236/trunk@141407 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-18 20:12:11 +00:00
seawood%netscape.com
fd152f541a Implement mozcomps static build variant.
Remove unnecessary EXPORT_LIBRARY settings.
Bug #201602 r=bryner


git-svn-id: svn://10.0.0.236/trunk@141327 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-17 19:19:42 +00:00
igor%mir2.org
a13453d6a8 FunctionObject changes:
1. Disable invoker optimization for methods with variable number of arguments since currently to call optimized invoker a new argument array has to be allocated in any case which makes the optimization irrelevant.

2. Never modify elements of the args array in constructor, instead avoid allocation of the new argument array iff all js argument can be passed to java without type conversion.


git-svn-id: svn://10.0.0.236/trunk@141241 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-16 13:05:48 +00:00
igor%mir2.org
3a8ccd2c36 In NativeString.js_concat in the case of single argument call target.concat(arg) to avoid allocating StringBuffer instance.
git-svn-id: svn://10.0.0.236/trunk@141240 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-16 12:51:20 +00:00
rginda%netscape.com
211f5672bf bug 202177, "cached interrupt hook goes stale", r=brendan@mozilla.org, sr=jsengine
refresh the interruptHandler after calling out to the debugger


git-svn-id: svn://10.0.0.236/trunk@141213 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-16 00:54:03 +00:00
igor%mir2.org
41b339548c In callVarargs to test if it is called from construct use thisObj==null condition instead of using separated flag.
git-svn-id: svn://10.0.0.236/trunk@141190 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-15 18:45:57 +00:00
igor%mir2.org
b722a4059f Fixing http://bugzilla.mozilla.org/show_bug.cgi?id=200551 :
I added Context.getApplicationClassLoader() that is now used in all
cases as a parent loader for generated classes and as the default class loader
for NativeJavaPackage. The default implementation tries to use
Thread.getContextClassLoader, but only when it is available and if Rhino
classes is available through it. Otherwise the loader for Context instance is
used. In this way if Rhino is loaded through a custom loader, it will be used,
and if Rhino classes are placed in lib/ext,  Thread.getContextClassLoader still
give the application loader.

And if this default policy would not work in a particular application,
Context.getApplicationClassLoader() can be overridden to in that application.


git-svn-id: svn://10.0.0.236/trunk@141168 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-15 07:48:18 +00:00
igor%mir2.org
bf9cd6fa16 Fixing http://bugzilla.mozilla.org/show_bug.cgi?id=201989 :
use IdFunction.initAsConstructor to initialize Error constructors in
NativeGlobal.init and remove setFunctionType and corresponding getFunctionType in IdFunction and use a simple private boolean field there to mark functions that can be called as constructors since NativeGlobal.init was the only place that used that.


git-svn-id: svn://10.0.0.236/trunk@141167 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-15 07:43:30 +00:00
igor%mir2.org
1e56b29a4a Fixing http://bugzilla.mozilla.org/show_bug.cgi?id=201987 :
Use toObject() in ScriptRuntime.delete to convert non-Scriptable delete target to Object which required to pass Context and scope to the method and update Interpreter and optimizer/Codegen accordingly.


git-svn-id: svn://10.0.0.236/trunk@141165 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-15 07:33:17 +00:00
pschwartau%netscape.com
1e723c5f2e Initial add. Tests ECMA-262 Edition 3, Section 15.11.7.6.
git-svn-id: svn://10.0.0.236/trunk@141139 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-14 23:18:36 +00:00
pschwartau%netscape.com
4ca45e423c Moving from ecma_3/Object/ to ecma_3/Exceptions/ directory.
git-svn-id: svn://10.0.0.236/trunk@141138 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-14 23:14:42 +00:00
pschwartau%netscape.com
eed85edfc3 Initial add. Regression test for EMCA-262 Ed.3, Section 15.11.7.6.
git-svn-id: svn://10.0.0.236/trunk@141137 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-14 23:04:52 +00:00
pschwartau%netscape.com
e51b72950e Initial add. Tests ECMA-262 Ed.3, Section 11.4.1, the |delete| operator. See bug 201987.
git-svn-id: svn://10.0.0.236/trunk@141125 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-14 18:45:45 +00:00
igor%mir2.org
36643d7ebf Duplicated code from IdFunction and FunctionObject to initialize prototype and scope of the result of call invocation when it is used as a part of constructor code is moved to a utility method initCallResultAsNewObject in BaseFunction.
git-svn-id: svn://10.0.0.236/trunk@141122 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-14 14:38:04 +00:00
igor%mir2.org
40c010caec Replace code to generate:
if (val != null && val != Undefined.instance && val instanceof Scriptable) ...

by code to generate:

if (val instanceof Scriptable && val != Undefined.instance) ...

since (val instanceof Scriptable) => (val != null)


git-svn-id: svn://10.0.0.236/trunk@141119 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-14 13:53:18 +00:00
brendan%mozilla.org
371f05967e More cleanup/followup: eliminate single-use rt variable in js_SetProperty, move clasp decl and first-def down, fix comments, strip trailing whitespace.
git-svn-id: svn://10.0.0.236/trunk@141113 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-14 04:14:57 +00:00
brendan%mozilla.org
925d3cca96 Improve one comment slightly.
git-svn-id: svn://10.0.0.236/trunk@141112 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-14 03:32:55 +00:00
brendan%mozilla.org
1e58327c51 Quick followup to last checkin, to optimize OBJ_DROP_PROPERTY to JS_UNLOCK_SCOPE in the one place in js_SetProperty that didn't follow the comments and do that.
git-svn-id: svn://10.0.0.236/trunk@141111 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-14 03:26:47 +00:00
brendan%mozilla.org
c651fd6bef Fix ancient ECMA violation where proto-property attrs, etc., were inherited when shadowing (90596, r=rogerl).
git-svn-id: svn://10.0.0.236/trunk@141110 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-13 23:33:34 +00:00
igor%mir2.org
33b274e1b1 Instead of using the special _packages_ properties to store imported packages, use a field in ImporterTopLevel for simpler code.
git-svn-id: svn://10.0.0.236/trunk@141095 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-13 10:57:06 +00:00
igor%mir2.org
ebaaa4901c Switch to use IdFunction to define ImporterTopLevel script methods. A separated class is used to implement IdFunctionMaster interface to avoid interface clashes with possible ImporterTopLevel subclasses implementing the same interface.
git-svn-id: svn://10.0.0.236/trunk@141094 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-13 08:57:57 +00:00
igor%mir2.org
eb42645439 1. In NativeJavaPackage.init define global properties only when NativeJavaPackage instance is fully initialized.
2. Memory optimization: instead of string array for predefined known packages, use single string which is split into substrings when necessary.


git-svn-id: svn://10.0.0.236/trunk@141092 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-13 08:54:09 +00:00
igor%mir2.org
1231168d6b Switch to use the new utility IdFunction.define() method to define function properties instead of explicit code for function initialization and inlining of getMethod call since it is used only once to make code smaller.
git-svn-id: svn://10.0.0.236/trunk@141091 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-13 08:47:19 +00:00
igor%mir2.org
bba9ced6f1 I added static IdFunction.define utility method to define IdFunction instances as properties in the given scope.
git-svn-id: svn://10.0.0.236/trunk@141090 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-13 08:40:43 +00:00
igor%mir2.org
82c874ef11 Switch to use ClassFileWriter.addInvoke() taking full method signature including the result part as a single argument instead of deprecated 4-argument ClassFileWriter.add().
git-svn-id: svn://10.0.0.236/trunk@141088 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-13 08:38:52 +00:00
igor%mir2.org
b77ea8f046 Commiting Hannes Wallnoefer patch to allow LiveConnect to convert JS Date to Java Data, see http://bugzilla.mozilla.org/show_bug.cgi?id=201326
git-svn-id: svn://10.0.0.236/trunk@141064 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-12 10:48:39 +00:00
brendan%mozilla.org
1bf7edca81 Fix set-property on sealed object to throw error (94693, r=rogerl).
git-svn-id: svn://10.0.0.236/trunk@141035 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-11 21:02:29 +00:00
brendan%mozilla.org
3fdcaf7c48 Fix JS_CompileUCFunctionForPrincipals to allow null obj with non-null funAtom, for precompiling a named function against no scope (no bug, r=self trivial change).
git-svn-id: svn://10.0.0.236/trunk@141009 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-10 23:38:59 +00:00
dbradley%netscape.com
28e3276c86 Bug 201084 - [AxPlugin] mozilla crashing in new ActiveXObject(). r=adamlock, sr=alecf (Not part of build)
git-svn-id: svn://10.0.0.236/trunk@140965 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-10 07:06:52 +00:00
joshua.xia%sun.com
99ca507781 bug=201164 Crash when java applet returns a number as a string to a javascript, and the script modifyes the number.
r/sr=brendan@mozilla.org sr=beard@netscape.com


git-svn-id: svn://10.0.0.236/trunk@140964 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-10 05:45:48 +00:00
dbradley%netscape.com
c2c84b6aad bug 199122 - IDispatch logic should not depend on order of properties. r=adamlock, sr=alecf (Not part of the build)
git-svn-id: svn://10.0.0.236/trunk@140699 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-04 15:32:30 +00:00
seawood%netscape.com
f88d27351d Purge XP_PC.
Bug #74999


git-svn-id: svn://10.0.0.236/trunk@140681 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-04 05:26:58 +00:00
seawood%netscape.com
8f8fcd1684 Purge XP_PC.
Bug #74999


git-svn-id: svn://10.0.0.236/trunk@140670 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-04 03:00:58 +00:00
seawood%netscape.com
5b5202acf4 Purge XP_PC.
Bug #74999


git-svn-id: svn://10.0.0.236/trunk@140663 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-04 00:37:30 +00:00
seawood%netscape.com
3e3f8c204b Purge XP_PC.
Bug #56767 r=mkaply sr=alecf


git-svn-id: svn://10.0.0.236/trunk@140660 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-03 22:42:02 +00:00
seawood%netscape.com
57b8446137 Purge XP_PC.
Bug #74999 r=mkaply sr=brendan


git-svn-id: svn://10.0.0.236/trunk@140650 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-03 19:35:29 +00:00
igor%mir2.org
c4f42f8ba0 Working on http://bugzilla.mozilla.org/show_bug.cgi?id=198208 :
I removed deprecated methods to access ClassNameHelper functionality through Context instance.


git-svn-id: svn://10.0.0.236/trunk@140484 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-01 14:52:27 +00:00
igor%mir2.org
75c07438a8 Work for http://bugzilla.mozilla.org/show_bug.cgi?id=198208 :
I removed deprecated since 1.5R3 omj.ClassOutput and moved some of code from omj/ClassNameHelper.java to omj/optimizer/OptClassNameHelper so if one does not need the optimizer package, the jar will be smaller.


git-svn-id: svn://10.0.0.236/trunk@140481 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-01 11:39:08 +00:00
louie.zhao%sun.com
a8e1a8e6d2 fix bug 183092 "Buffer overrun calling Java from JS"
patch = joshua.xia@sun.com; r = rogerl; sr = beard; approval = asa


git-svn-id: svn://10.0.0.236/trunk@140475 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-01 03:11:53 +00:00