4716 Commits

Author SHA1 Message Date
dbradley%netscape.com
879f140cc4 Bug 180098 - "--enable-activex-scripting" option seems to break composition window. Error was in enumeration when IDispatch logic was turned on. r=adamlock, sr=jst
git-svn-id: svn://10.0.0.236/trunk@133901 18797224-902f-48f8-a5cc-f745e15eee43
2002-11-15 13:57:16 +00:00
igor%mir2.org
ece1ec437f Replace getScriptable() by getFunctionName() in omj/debug/DebuggableScript.java as the debugger used DebuggableScript.getScriptable() only to query function names.
It allows to implement the DebuggableScript interface only  by omj/InterpreterData instead of 2 identical implementations by InterpretedFunction and InterpretedScript.


git-svn-id: svn://10.0.0.236/trunk@133851 18797224-902f-48f8-a5cc-f745e15eee43
2002-11-14 21:12:36 +00:00
seawood%netscape.com
6163c33b1c Drop unneeded java build rules & variables since blackwood now builds using ant.
Bug #161617 r=edburns sr=beard


git-svn-id: svn://10.0.0.236/trunk@133837 18797224-902f-48f8-a5cc-f745e15eee43
2002-11-14 19:36:28 +00:00
pschwartau%netscape.com
3193f8fabf Adding comments.
git-svn-id: svn://10.0.0.236/trunk@133807 18797224-902f-48f8-a5cc-f745e15eee43
2002-11-14 02:12:15 +00:00
brendan%mozilla.org
e0ef268766 Remove l10n_debug cruft, expand tabs, eliminate else-after-break, don't invade the standard C namespace with leading _ in identifiers, etc. (173827, r=scole@planetweb.com).
git-svn-id: svn://10.0.0.236/trunk@133784 18797224-902f-48f8-a5cc-f745e15eee43
2002-11-13 22:59:15 +00:00
igor%mir2.org
460d1f1c00 Fixing in Interpreter.dumpICode reading of index from a wrong offset
git-svn-id: svn://10.0.0.236/trunk@133740 18797224-902f-48f8-a5cc-f745e15eee43
2002-11-13 10:22:46 +00:00
igor%mir2.org
3bc7187bf3 Fixing misspellings comments
git-svn-id: svn://10.0.0.236/trunk@133739 18797224-902f-48f8-a5cc-f745e15eee43
2002-11-13 10:13:40 +00:00
brendan%mozilla.org
1a91c38fee Make enumeration const unless PL_DHASH_REMOVE is returned by the etor callback; improve several comments (174859, r=waterson, sr=beard).
git-svn-id: svn://10.0.0.236/trunk@133733 18797224-902f-48f8-a5cc-f745e15eee43
2002-11-13 04:35:37 +00:00
pschwartau%netscape.com
bf1aaef14a Removing redundant variable declarations.
git-svn-id: svn://10.0.0.236/trunk@133713 18797224-902f-48f8-a5cc-f745e15eee43
2002-11-13 00:19:57 +00:00
pschwartau%netscape.com
af53e8c6b9 Adding more sections to cover str.search(), str.replace().
git-svn-id: svn://10.0.0.236/trunk@133706 18797224-902f-48f8-a5cc-f745e15eee43
2002-11-12 23:14:17 +00:00
brendan%mozilla.org
41e9a80c9f Fix s.match('re', 'g') and similar cases to use the right local root (179524, r=rogerl).
git-svn-id: svn://10.0.0.236/trunk@133682 18797224-902f-48f8-a5cc-f745e15eee43
2002-11-12 19:25:01 +00:00
pschwartau%netscape.com
c3ce684503 Comment fix.
git-svn-id: svn://10.0.0.236/trunk@133667 18797224-902f-48f8-a5cc-f745e15eee43
2002-11-12 19:02:18 +00:00
pschwartau%netscape.com
43359f5192 str.match() CAN take a 2nd parameter, if the 1st one is a string instead of a RegExp object. Added cases to cover that.
git-svn-id: svn://10.0.0.236/trunk@133666 18797224-902f-48f8-a5cc-f745e15eee43
2002-11-12 18:33:39 +00:00
dbradley%netscape.com
664e4a6037 NOT PART OF BUILD. Corrected scriptability tests.
git-svn-id: svn://10.0.0.236/trunk@133651 18797224-902f-48f8-a5cc-f745e15eee43
2002-11-12 10:38:17 +00:00
igor%mir2.org
a9d29a14f5 Call NativeArray.getLength() instead of deprecated NativeArray.jsGet_length()
git-svn-id: svn://10.0.0.236/trunk@133645 18797224-902f-48f8-a5cc-f745e15eee43
2002-11-12 09:41:09 +00:00
igor%mir2.org
7e3dfdd461 Cosmetics: use consistent naming and layout for internal methods providing JS library implementation.
git-svn-id: svn://10.0.0.236/trunk@133644 18797224-902f-48f8-a5cc-f745e15eee43
2002-11-12 09:37:43 +00:00
igor%mir2.org
971ac0bb35 1. Deprecation jsGet_length in favour of getLength
2. Cosmetics: use consistent naming and layout for internal methods providing JS library implementation.


git-svn-id: svn://10.0.0.236/trunk@133643 18797224-902f-48f8-a5cc-f745e15eee43
2002-11-12 09:36:40 +00:00
igor%mir2.org
d576005582 1. In js_concat determine the the size of the resulting string to avoid reallocations in StringBuffer .
2. Cosmetics: use consistent naming and layout for internal methods providing JS library implementation.


git-svn-id: svn://10.0.0.236/trunk@133641 18797224-902f-48f8-a5cc-f745e15eee43
2002-11-12 09:33:48 +00:00
igor%mir2.org
e0d97e7664 Cosmetics: use consistent naming and layout for internal methods providing JS library implementation
git-svn-id: svn://10.0.0.236/trunk@133639 18797224-902f-48f8-a5cc-f745e15eee43
2002-11-12 09:29:57 +00:00
igor%mir2.org
9f64b76c40 Fixing http://bugzilla.mozilla.org/show_bug.cgi?id=179068
Allow to use char sequences exceeding 64K when storing source for decompilation

The current 64K limit for string literals comes from omj/Parser.java where it constructs the internal script presentation for future decompilation. The patch extends this form to allow string sequences with more then 64K characters and modifes decompilation code in omj/NativeFunction.java accordingly.


git-svn-id: svn://10.0.0.236/trunk@133638 18797224-902f-48f8-a5cc-f745e15eee43
2002-11-12 09:24:54 +00:00
igor%mir2.org
618232cc79 Fixing http://bugzilla.mozilla.org/show_bug.cgi?id=179366
Assume --> after a possible whitespace after line start means comments to end-of-line. The change follows the SpiderMonkey solution.


git-svn-id: svn://10.0.0.236/trunk@133637 18797224-902f-48f8-a5cc-f745e15eee43
2002-11-12 09:20:09 +00:00
dbradley%netscape.com
8342029c26 Bug 173146 - Add support to XPConnect for IDispatch interface. Second round of changes. r=adamlock, sr=jst. Most changes are not part of build.
git-svn-id: svn://10.0.0.236/trunk@133631 18797224-902f-48f8-a5cc-f745e15eee43
2002-11-12 08:22:35 +00:00
pschwartau%netscape.com
e444ceb885 Initial add. Regression test for bug 179524.
git-svn-id: svn://10.0.0.236/trunk@133610 18797224-902f-48f8-a5cc-f745e15eee43
2002-11-12 01:52:25 +00:00
pschwartau%netscape.com
7e4e0fd61d Initial add. Regression test by igor@icesoft.no for bug 31255, bug 179366.
git-svn-id: svn://10.0.0.236/trunk@133544 18797224-902f-48f8-a5cc-f745e15eee43
2002-11-10 20:56:42 +00:00
pschwartau%netscape.com
ce621ae6cc Initial add. Regression test for bug 179068.
git-svn-id: svn://10.0.0.236/trunk@133543 18797224-902f-48f8-a5cc-f745e15eee43
2002-11-10 20:31:36 +00:00
seawood%netscape.com
c3d4380b65 JS is a C only library and should be linked as such.
git-svn-id: svn://10.0.0.236/trunk@133461 18797224-902f-48f8-a5cc-f745e15eee43
2002-11-09 08:18:25 +00:00
pschwartau%netscape.com
c7d97152de A more accurate inRhino() function. The previous one failed to distinguish Rhino from LiveConnect.
git-svn-id: svn://10.0.0.236/trunk@133422 18797224-902f-48f8-a5cc-f745e15eee43
2002-11-08 22:42:25 +00:00
pschwartau%netscape.com
b7ba32bae5 New engine command for JS2: was dikdik, now epimetheus.
git-svn-id: svn://10.0.0.236/trunk@133417 18797224-902f-48f8-a5cc-f745e15eee43
2002-11-08 21:56:41 +00:00
igor%mir2.org
00ce524c60 Cosmetics: refactor decompile without changing its functionality so a possible future patch to allow literal strings greater then 64K would be less intrusive.
git-svn-id: svn://10.0.0.236/trunk@133396 18797224-902f-48f8-a5cc-f745e15eee43
2002-11-08 12:08:52 +00:00
pschwartau%netscape.com
ac243ee0ec Tweaking sort function.
git-svn-id: svn://10.0.0.236/trunk@133333 18797224-902f-48f8-a5cc-f745e15eee43
2002-11-07 23:02:06 +00:00
pschwartau%netscape.com
f901a44784 Reinstituting check on |arr instanceof Array && arr.length === 0| from version 1.1 of test; this is necessary.
git-svn-id: svn://10.0.0.236/trunk@133332 18797224-902f-48f8-a5cc-f745e15eee43
2002-11-07 22:57:40 +00:00
pschwartau%netscape.com
bab0976795 Adding comments -
git-svn-id: svn://10.0.0.236/trunk@133329 18797224-902f-48f8-a5cc-f745e15eee43
2002-11-07 22:43:52 +00:00
pschwartau%netscape.com
c66c983e30 Adding cases with non-default sorting.
git-svn-id: svn://10.0.0.236/trunk@133309 18797224-902f-48f8-a5cc-f745e15eee43
2002-11-07 19:40:26 +00:00
pschwartau%netscape.com
9d85f91395 Improving readability.
git-svn-id: svn://10.0.0.236/trunk@133308 18797224-902f-48f8-a5cc-f745e15eee43
2002-11-07 19:25:42 +00:00
pschwartau%netscape.com
4506bad90c Improving test: arr, arr.sort() must be more than just two arrays of the same length, they must be equal as objects.
git-svn-id: svn://10.0.0.236/trunk@133307 18797224-902f-48f8-a5cc-f745e15eee43
2002-11-07 19:15:28 +00:00
pschwartau%netscape.com
5d25a5041f Improving readability.
git-svn-id: svn://10.0.0.236/trunk@133306 18797224-902f-48f8-a5cc-f745e15eee43
2002-11-07 19:05:57 +00:00
brendan%mozilla.org
3ebbe7b166 Check in rogerl's patch for bug 178722, r=me.
git-svn-id: svn://10.0.0.236/trunk@133286 18797224-902f-48f8-a5cc-f745e15eee43
2002-11-07 10:51:23 +00:00
pschwartau%netscape.com
5a95a22f7b Initial add. Regression test for bug 178722.
git-svn-id: svn://10.0.0.236/trunk@133254 18797224-902f-48f8-a5cc-f745e15eee43
2002-11-07 04:20:27 +00:00
dbaron%fas.harvard.edu
acb32e9f60 Fix leaks of references to jsdService. r=rginda sr=alecf b=170194
git-svn-id: svn://10.0.0.236/trunk@133150 18797224-902f-48f8-a5cc-f745e15eee43
2002-11-06 12:59:21 +00:00
igor%mir2.org
ea39f0bd0b I made FunctionNode to inherit from Node instead of Node.StringNode as FunctionNode is never used as a string source.
git-svn-id: svn://10.0.0.236/trunk@132918 18797224-902f-48f8-a5cc-f745e15eee43
2002-11-03 01:26:29 +00:00
igor%mir2.org
6d57a6e4be I removed method duplication in Node where getNext() was duplicated as getNextSibling() and code was using both of them and similarly for getFirstChild()/getFirst().
git-svn-id: svn://10.0.0.236/trunk@132913 18797224-902f-48f8-a5cc-f745e15eee43
2002-11-02 22:08:00 +00:00
igor%mir2.org
10e43018b5 Allow for TokenStream.COMMA node in the parsed tree to contain more then 2 children to avoid too-deep recursion during code generation for long array and object initialization lists.
git-svn-id: svn://10.0.0.236/trunk@132910 18797224-902f-48f8-a5cc-f745e15eee43
2002-11-02 18:01:26 +00:00
igor%mir2.org
cf34b6d673 Cosmetics: use uniform indentation in switch statements
git-svn-id: svn://10.0.0.236/trunk@132908 18797224-902f-48f8-a5cc-f745e15eee43
2002-11-02 14:54:35 +00:00
igor%mir2.org
cc5b13cdcc Avoid potentially expensive calls to Node.addChildBefore which may need to traverse a long child list to find the previous child when a reference to the previous child is available from context.
git-svn-id: svn://10.0.0.236/trunk@132907 18797224-902f-48f8-a5cc-f745e15eee43
2002-11-02 12:52:11 +00:00
igor%mir2.org
b81b0ee917 Clear reference to sourceBuffer array as soon as it is no longer needed to allow its earlier GC.
git-svn-id: svn://10.0.0.236/trunk@132906 18797224-902f-48f8-a5cc-f745e15eee43
2002-11-02 12:46:28 +00:00
pschwartau%netscape.com
1ab9c767b9 New version of the test, by igor@icesoft.no; uses less memory.
git-svn-id: svn://10.0.0.236/trunk@132872 18797224-902f-48f8-a5cc-f745e15eee43
2002-11-02 01:26:08 +00:00
igor%mir2.org
ab50c0aa1c Fixing 159334: store bytecode indexes as uint16 to extend limit on maximum number of different strings to 64K
git-svn-id: svn://10.0.0.236/trunk@132817 18797224-902f-48f8-a5cc-f745e15eee43
2002-11-01 14:43:34 +00:00
pschwartau%netscape.com
c053b91ca6 Initial add. Regression test for bug 159334.
git-svn-id: svn://10.0.0.236/trunk@132807 18797224-902f-48f8-a5cc-f745e15eee43
2002-11-01 02:00:08 +00:00
pschwartau%netscape.com
3653104675 Improving comments.
git-svn-id: svn://10.0.0.236/trunk@132793 18797224-902f-48f8-a5cc-f745e15eee43
2002-10-31 21:24:25 +00:00
igor%mir2.org
5c6f1453af Fixing regression introduced by 1.93: during generation of code for NEW and CALL do not assume that function name index would be the index of the last string in the string table as due to name sharing it can be any index. Instead NEW and CALL generator uses lastStringIndex which is updated in addString and holds the last used string index.
git-svn-id: svn://10.0.0.236/trunk@132746 18797224-902f-48f8-a5cc-f745e15eee43
2002-10-31 01:19:53 +00:00