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

4605 Коммитов

Автор SHA1 Сообщение Дата
igor%mir2.org 49661822bb I made FunctionNode to inherit from Node instead of Node.StringNode as FunctionNode is never used as a string source. 2002-11-03 01:26:29 +00:00
igor%mir2.org c27bf53f4e I removed method duplication in Node where getNext() was duplicated as getNextSibling() and code was using both of them and similarly for getFirstChild()/getFirst(). 2002-11-02 22:08:00 +00:00
igor%mir2.org 00fbdbeb1f 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. 2002-11-02 18:01:26 +00:00
igor%mir2.org 39c11eb5ff Cosmetics: use uniform indentation in switch statements 2002-11-02 14:54:35 +00:00
igor%mir2.org 542ef1dbaf 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. 2002-11-02 12:52:11 +00:00
igor%mir2.org 70475da4ec Clear reference to sourceBuffer array as soon as it is no longer needed to allow its earlier GC. 2002-11-02 12:46:28 +00:00
pschwartau%netscape.com 52250b83fa New version of the test, by igor@icesoft.no; uses less memory. 2002-11-02 01:26:08 +00:00
igor%mir2.org cbf53f2e8f Fixing 159334: store bytecode indexes as uint16 to extend limit on maximum number of different strings to 64K 2002-11-01 14:43:34 +00:00
pschwartau%netscape.com 21843212dc Initial add. Regression test for bug 159334. 2002-11-01 02:00:08 +00:00
pschwartau%netscape.com 63b2190524 Improving comments. 2002-10-31 21:24:25 +00:00
igor%mir2.org d67e88e84d 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. 2002-10-31 01:19:53 +00:00
pschwartau%netscape.com b7c019a6a2 Don't ever run shell.js files as tests; they are only utility files. 2002-10-31 01:01:20 +00:00
pschwartau%netscape.com 0980e7538f Initial add. Regression test for bug 177314. 2002-10-30 20:34:13 +00:00
igor%mir2.org 2b7d0e47c2 Fixing 177314:
TokenStream.java: third octal digit is a part of the octal escape in strings only if the result is <= 0377.

resources/Messages.properties: removal of unused msg.oct.esc.too.large
2002-10-30 09:20:00 +00:00
mstoltz%netscape.com 291b95491f Bug 168316 - When calling from Java into JS, add a "dummy" JS stack frame with
principal information for the security manager. r=dveditz, sr=jst, a=chofmann.
2002-10-30 03:15:59 +00:00
pschwartau%netscape.com b19175a575 Initial add. Testcases created by Brendan in the course of fixing bug 96526. 2002-10-30 02:09:53 +00:00
pschwartau%netscape.com ddee960fdf Initial add. Utility file needed for certain tests in js/tests/js1_5/Expressions/. 2002-10-30 02:08:46 +00:00
pschwartau%netscape.com 0267efc4b9 Fixed small bug in reporting of skipped tests. 2002-10-28 03:44:09 +00:00
pschwartau%netscape.com e3f0af7614 Improving efficiency by calling xp_path() as little as possible. Also, never call xp_path() on a user-provided path.
Improving consistency of style in the get_xxx_engine_command() functions.
2002-10-28 03:31:03 +00:00
pschwartau%netscape.com 6544ca9be9 Improving efficiency. Make $win_sep a global variable so we only have to call get_win_sep() once. And then, only use $win_sep if it differs from $path_sep. 2002-10-26 01:24:21 +00:00
pschwartau%netscape.com b0ad732663 Removing two calls to xp_path(). They are unnecessary, since xp_path() gets called again later in the program on the same paths. This also fixes a couple of new bugs. Rev 1.41 of jsDriver made xp_path() more subtle on Windows: it may now return paths containing backslashes instead of forward slashes. But backslashes cause the Perl methods |join| and |grep|, both of which are used in jsDriver, to fail. So we are now delaying any calls to xp_path() until after those methods are used. 2002-10-26 00:11:50 +00:00
beard%netscape.com 898a901707 don't require release specific configuration for Darwin [not part of build] 2002-10-25 01:01:34 +00:00
brendan%mozilla.org 148815ba49 Fix bug where lightweight function expression-statement result would contaminate caller result via js_Interpret's *result pigeon-hole, via better JSOP_POP vs. JSOP_POPV instruction selection (176125, r=shaver, a=dbaron). 2002-10-24 21:57:40 +00:00
igor%mir2.org 3b79862ea3 Fixing http://bugzilla.mozilla.org/show_bug.cgi?id=173906: change Codegen.visitCall to check for dynamic scope flag when calling
direct call target
2002-10-24 10:05:36 +00:00
igor%mir2.org ba3a798e63 Using ThreadLocal under JDK >= 1.2 in Context.enter/Context.exit so they do not need to synchronize on global Context.threadContexts object as java.lang.ThreadLocal allows to associate a Context instance with the current thread in a completely synchronization-free way.
When ThreadLocal is not available (JDK 1.1), the old way of doing things is used.
2002-10-24 10:04:30 +00:00
igor%mir2.org d7a9329429 I modified Context.enter/Context.exit to remove explicit synchronization on threadContexts as implicit implicit synchronization when calling threadContexts.get/threadContexts.put/threadContexts.remove is enough to ensure thread safety. It reduces time spend in synchronized code so Context.enter/Context.exit is less problematic with script execution on many threads.
The change also allows with simple modifications of Context.getCurrentContext and Context.setThreadContext to use java.lang.ThreadLocal from JDK 1.2 to remove any synchronization on global data structures during Context.enter/Context.exit/Context.getCurrentContext.
2002-10-23 09:56:26 +00:00
igor%mir2.org 8bd679943a Fixing http://bugzilla.mozilla.org/show_bug.cgi?id=173180
Merges utf8ToOneUcs4Char body into the decode method and adds checks
for overlongs to follow SpiderMonkey.
2002-10-22 21:22:44 +00:00
waldemar%netscape.com 771a01cbc3 Fixed buffer overrun bug 174555 r=brendan, a=shaver 2002-10-18 23:03:16 +00:00
waldemar%netscape.com 6e3e5b7817 MacOSX version of the build files; work with CodeWarrior 8.2 to create a Carbon JSRef. Doesn't build mach-o yet. 2002-10-18 01:40:40 +00:00
pschwartau%netscape.com 9c3bde33d4 Whitespace cleanup. 2002-10-17 19:25:40 +00:00
seawood%netscape.com d1bef3cbe0 Define WIN32_LEAN_AND_MEAN globally for win32 builds.
Thanks to Stephen Walker <walk84@yahoo.com> for the patch.
Bug #172898 r=cls a=asa
2002-10-17 06:47:01 +00:00
dbradley%netscape.com 080324cf7b Bug 173146 - add support to XPConnect for IDispatch interface. r=jband@netscape.com, sr=brendan@mozilla.org, a=shaver@mozilla.org
NOTE: Most of this code is not built by default
2002-10-17 05:29:03 +00:00
brendan%mozilla.org 73c5d5279f Comment improvements motivated by bug 173797, no code changes. 2002-10-13 19:08:07 +00:00
pschwartau%netscape.com bf9f37c6fe Remove the -x check on the absolute path to xpcshell. In Perl 5.005 on Windows, the -x operator returns |false| on absolute paths, even if they are valid. 2002-10-12 02:43:17 +00:00
pschwartau%netscape.com 870b3af87e Use -x &xp_path() more consistently. 2002-10-12 02:08:02 +00:00
pschwartau%netscape.com c43acfbb74 Re-factoring the last fix into the existing function xp_path(). 2002-10-12 01:57:16 +00:00
pschwartau%netscape.com 47b581cb99 Don't hard-code "\"as the path separator for Windows (rev. 1.36). Some Windows shells (e.g. Cygwin 1.1.8) require "/". 2002-10-11 23:31:23 +00:00
pschwartau%netscape.com cb9fe22828 Improving readability. 2002-10-09 20:43:35 +00:00
brendan%mozilla.org 1dd75eec31 Don't redefine date_methods in each instance created from native code via js_NewDateObject{,Msec}, shadowing the perfectly fine date_methods in Date.prototype (173423, r=hyatt). 2002-10-09 05:50:23 +00:00
pschwartau%netscape.com 13f69bd216 Initial add. Regression test for bug 172699. 2002-10-08 00:37:49 +00:00
timeless%mac.com f1ea69808e Bug 172846 QueryInterface should not throw Components.results.NS_NOINTERFACE for Components.interfaces.nsISupports
r=caillon sr=bz
2002-10-06 23:14:25 +00:00
rogerl%netscape.com 3c5b6f7265 Duh. Fixed C++ style comment, sorry. 2002-10-05 04:38:42 +00:00
rogerl%netscape.com 0dc96262a3 Bug #172699. r=rogerl, sr=brendan. Detect illegal (overlong) utf-8. 2002-10-05 04:05:56 +00:00
dbaron%fas.harvard.edu 630ee775dd Porting fixes for gcc trunk (to become 3.3): Eliminate C-only option from CXXFLAGS. Don't use pasting for things that are still separate tokens. Don't pass objects of non-POD type through |...|. Don't include strstream.h, which isn't used anymore anyway. b=170250 r=bbaetz sr=alecf 2002-09-30 14:18:27 +00:00
bryner%netscape.com 54be890aa8 Bug 165602 - define MACOS_DEPLOYMENT_TARGET (default to 10.1) for mach-o, and don't test for or reference 10.2-specific functions when building for 10.1. r=cls, wtc. 2002-09-28 09:19:58 +00:00
pschwartau%netscape.com 233fcec52a Simplifying test. 2002-09-28 02:52:28 +00:00
alecf%netscape.com 04309b9a82 remove JSLoader.xml as its no longer part of the build 2002-09-27 18:33:38 +00:00
alecf%netscape.com 6d569ff270 fix for bug 79175, merge jsloader into xpconnect
r=dbradley, sr=brendan
2002-09-27 18:33:02 +00:00
igor%mir2.org 735058d371 Add isGeneratedScript to DebuggableScript and its implementations to allow debuger to distinguish between scripts and functions coming from external files or ones defined vvia exec or new Function() 2002-09-26 20:19:39 +00:00
igor%mir2.org 32cc308b30 Fixing 169830: I replaced in jsFunction_concat calls to hasLengthPropert by ScriptRuntime.instanceOf and as hasLengthPropert is no longer used, I removed it as well. 2002-09-24 15:57:58 +00:00