Commit Graph

4796 Commits

Author SHA1 Message Date
timeless%mozdev.org
b6b14bf40e Bug 180783 nsDependentCString filename(PR_GetEnv("MOZILLA_JS_PROFILER_OUTPUT")) => ASSERTION: nsDependentCString must wrap a non-NULL buffer: 'aPtr'
r=dbradley sr=bz
2002-11-19 05:06:27 +00:00
timeless%mozdev.org
384066e98e Bug 58221 don't use strlen to check if a string is of length 0
patch by aaronl@vitelus.com r=timeless sr=bz
2002-11-17 05:16:49 +00:00
dbradley%netscape.com
1621e27d5b 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 2002-11-15 13:57:16 +00:00
igor%mir2.org
9be5d10e5c 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.
2002-11-14 21:12:36 +00:00
seawood%netscape.com
cb349b9ce3 Drop unneeded java build rules & variables since blackwood now builds using ant.
Bug #161617 r=edburns sr=beard
2002-11-14 19:36:28 +00:00
pschwartau%netscape.com
c02c7a1373 Adding comments. 2002-11-14 02:12:15 +00:00
brendan%mozilla.org
9258804a58 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). 2002-11-13 22:59:15 +00:00
igor%mir2.org
cd8a03eb8a Fixing in Interpreter.dumpICode reading of index from a wrong offset 2002-11-13 10:22:46 +00:00
igor%mir2.org
b09ef875a4 Fixing misspellings comments 2002-11-13 10:13:40 +00:00
brendan%mozilla.org
5335692809 Make enumeration const unless PL_DHASH_REMOVE is returned by the etor callback; improve several comments (174859, r=waterson, sr=beard). 2002-11-13 04:35:37 +00:00
pschwartau%netscape.com
15e1115a55 Removing redundant variable declarations. 2002-11-13 00:19:57 +00:00
pschwartau%netscape.com
1187aaf4bd Adding more sections to cover str.search(), str.replace(). 2002-11-12 23:14:17 +00:00
brendan%mozilla.org
a901dbac42 Fix s.match('re', 'g') and similar cases to use the right local root (179524, r=rogerl). 2002-11-12 19:25:01 +00:00
pschwartau%netscape.com
df3d9676c2 Comment fix. 2002-11-12 19:02:18 +00:00
pschwartau%netscape.com
302d45cc44 str.match() CAN take a 2nd parameter, if the 1st one is a string instead of a RegExp object. Added cases to cover that. 2002-11-12 18:33:39 +00:00
dbradley%netscape.com
7af59e4deb NOT PART OF BUILD. Corrected scriptability tests. 2002-11-12 10:38:17 +00:00
igor%mir2.org
efd9f298ab Call NativeArray.getLength() instead of deprecated NativeArray.jsGet_length() 2002-11-12 09:41:09 +00:00
igor%mir2.org
6e859f553a Cosmetics: use consistent naming and layout for internal methods providing JS library implementation. 2002-11-12 09:37:43 +00:00
igor%mir2.org
8cd90d6557 1. Deprecation jsGet_length in favour of getLength
2. Cosmetics: use consistent naming and layout for internal methods providing JS library implementation.
2002-11-12 09:36:40 +00:00
igor%mir2.org
594696279f 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.
2002-11-12 09:33:48 +00:00
igor%mir2.org
82ea401577 Cosmetics: use consistent naming and layout for internal methods providing JS library implementation 2002-11-12 09:29:57 +00:00
igor%mir2.org
99c0da59df 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.
2002-11-12 09:24:54 +00:00
igor%mir2.org
f8386f2604 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.
2002-11-12 09:20:09 +00:00
dbradley%netscape.com
64676a5373 Bug 173146 - Add support to XPConnect for IDispatch interface. Second round of changes. r=adamlock, sr=jst. Most changes are not part of build. 2002-11-12 08:22:35 +00:00
pschwartau%netscape.com
26a248a84f Initial add. Regression test for bug 179524. 2002-11-12 01:52:25 +00:00
pschwartau%netscape.com
3668bb8dc8 Initial add. Regression test by igor@icesoft.no for bug 31255, bug 179366. 2002-11-10 20:56:42 +00:00
pschwartau%netscape.com
c7e3fdd24c Initial add. Regression test for bug 179068. 2002-11-10 20:31:36 +00:00
seawood%netscape.com
23b69e08db JS is a C only library and should be linked as such. 2002-11-09 08:18:25 +00:00
pschwartau%netscape.com
ab79e573d9 A more accurate inRhino() function. The previous one failed to distinguish Rhino from LiveConnect. 2002-11-08 22:42:25 +00:00
pschwartau%netscape.com
185d03fd80 New engine command for JS2: was dikdik, now epimetheus. 2002-11-08 21:56:41 +00:00
igor%mir2.org
7ef61113d0 Cosmetics: refactor decompile without changing its functionality so a possible future patch to allow literal strings greater then 64K would be less intrusive. 2002-11-08 12:08:52 +00:00
pschwartau%netscape.com
64c94e6ca0 Tweaking sort function. 2002-11-07 23:02:06 +00:00
pschwartau%netscape.com
98309865b8 Reinstituting check on |arr instanceof Array && arr.length === 0| from version 1.1 of test; this is necessary. 2002-11-07 22:57:40 +00:00
pschwartau%netscape.com
9df7ab3cec Adding comments - 2002-11-07 22:43:52 +00:00
pschwartau%netscape.com
936e75d5ba Adding cases with non-default sorting. 2002-11-07 19:40:26 +00:00
pschwartau%netscape.com
e870d0ac24 Improving readability. 2002-11-07 19:25:42 +00:00
pschwartau%netscape.com
c6e6895734 Improving test: arr, arr.sort() must be more than just two arrays of the same length, they must be equal as objects. 2002-11-07 19:15:28 +00:00
pschwartau%netscape.com
eebb7b9c11 Improving readability. 2002-11-07 19:05:57 +00:00
brendan%mozilla.org
a9769c6f1d Check in rogerl's patch for bug 178722, r=me. 2002-11-07 10:51:23 +00:00
pschwartau%netscape.com
139e351850 Initial add. Regression test for bug 178722. 2002-11-07 04:20:27 +00:00
dbaron%fas.harvard.edu
788db3b6c0 Fix leaks of references to jsdService. r=rginda sr=alecf b=170194 2002-11-06 12:59:21 +00:00
igor%mir2.org
af3cca93fd 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
e33d132a12 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
9b6ae7fdf7 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
6c91eb5274 Cosmetics: use uniform indentation in switch statements 2002-11-02 14:54:35 +00:00
igor%mir2.org
9c88f342b2 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
498ccb82fe 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
b34f9a9f49 New version of the test, by igor@icesoft.no; uses less memory. 2002-11-02 01:26:08 +00:00
igor%mir2.org
85132aacd6 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
b6ce949e06 Initial add. Regression test for bug 159334. 2002-11-01 02:00:08 +00:00
pschwartau%netscape.com
6a60c444fd Improving comments. 2002-10-31 21:24:25 +00:00
igor%mir2.org
b9a8bd50ee 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
8bef1acaa9 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
3133a1cf8b Initial add. Regression test for bug 177314. 2002-10-30 20:34:13 +00:00
igor%mir2.org
902aee2f8d 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
d0f045a722 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
43d2a96f5e Initial add. Testcases created by Brendan in the course of fixing bug 96526. 2002-10-30 02:09:53 +00:00
pschwartau%netscape.com
d2258fdb8a 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
1f35a0e9af Fixed small bug in reporting of skipped tests. 2002-10-28 03:44:09 +00:00
pschwartau%netscape.com
396d6db9e7 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
173a525faa 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
e42e0041f5 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
127cbb19c8 don't require release specific configuration for Darwin [not part of build] 2002-10-25 01:01:34 +00:00
brendan%mozilla.org
96d61b1511 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
86a5bceb04 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
a086d887a9 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
32dcd895ba 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
7fe4fdbc33 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
ac30877a25 Fixed buffer overrun bug 174555 r=brendan, a=shaver 2002-10-18 23:03:16 +00:00
waldemar%netscape.com
8d2fc1a5ca 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
06e7d3af45 Whitespace cleanup. 2002-10-17 19:25:40 +00:00
seawood%netscape.com
57e08a3f3a 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
520a622bbd 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
12685fb2da Comment improvements motivated by bug 173797, no code changes. 2002-10-13 19:08:07 +00:00
pschwartau%netscape.com
640f5875cf 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
6a0dad6ae6 Use -x &xp_path() more consistently. 2002-10-12 02:08:02 +00:00
pschwartau%netscape.com
78963a5459 Re-factoring the last fix into the existing function xp_path(). 2002-10-12 01:57:16 +00:00
pschwartau%netscape.com
668e25f0ae 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
9294141b6b Improving readability. 2002-10-09 20:43:35 +00:00
brendan%mozilla.org
163460b45c 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
fb0a6b9596 Initial add. Regression test for bug 172699. 2002-10-08 00:37:49 +00:00
timeless%mac.com
380b2ab510 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
949817944e Duh. Fixed C++ style comment, sorry. 2002-10-05 04:38:42 +00:00
rogerl%netscape.com
41f828a797 Bug #172699. r=rogerl, sr=brendan. Detect illegal (overlong) utf-8. 2002-10-05 04:05:56 +00:00
dbaron%fas.harvard.edu
29c30c5f3e 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
d1ccbb3319 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
874efdd48d Simplifying test. 2002-09-28 02:52:28 +00:00
alecf%netscape.com
d9bb16951e remove JSLoader.xml as its no longer part of the build 2002-09-27 18:33:38 +00:00
alecf%netscape.com
7398d2a8f9 fix for bug 79175, merge jsloader into xpconnect
r=dbradley, sr=brendan
2002-09-27 18:33:02 +00:00
igor%mir2.org
5c85c4f1ae 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
984ec2e982 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
igor%mir2.org
a63ccf0cc5 In newObject pass top level scope to the constructor, not ctor.getParentScope() to take into account hasCompileFunctionsWithDynamicScope() 2002-09-24 14:14:00 +00:00
igor%mir2.org
6f4b833c59 In getClassPrototype replace ScriptRuntime.getTopLevelProp by getProperty to avoid double call to getTopLevelScope 2002-09-24 14:10:53 +00:00
igor%mir2.org
e3402dd61f In jsFunction_concat inline ScriptRuntime.newObject to throw JavaScriptException if array constructor throws one and avoid double call to ScriptableObject.getTopLevelScope() 2002-09-24 14:08:22 +00:00
igor%mir2.org
0a4b0ef2af Change ScriptRuntime.getTopLevelPropery to call ScriptableObject.getProperty in place of explicit loop over the prototype chain. It makes sure that all Scriptable.get(property, start) on the prototype chain are called with a proper start value.
Add getExistingCtor to get existing constructor property or throw an exception.
2002-09-24 14:05:24 +00:00
igor%mir2.org
8e32c0c8a1 Remove the minimalAllocation field and instead pre-allocate data array in the constructor if necessary. 2002-09-24 11:21:19 +00:00
igor%mir2.org
5f6a565762 Change NativeArray.getLengthProperty to return long instead of double as its results are always uint32 and adjust its usage accordingly . Fix Context.getElements documentation to state that it returns empty array, not null, if object does not have a reasonable length property. 2002-09-24 09:29:27 +00:00
brendan%mozilla.org
26c06ddc42 - String.prototype.match, .search, and .replace all use match_or_replace as
a common subroutine, but only replace might need to dereference the regexp
  created from a non-regexp-type argument, which is converted to string and
  compiled into a regexp data struct unowned by any rooted object.  This case
  was broken: a dangling GlobData.regexp pointer could be dereferenced in the
  "lambda replace" code under str_replace, in find_replen, *after* the call
  to match_or_replace had destroyed the regexp and returned to str_replace.
  Bug 167658 reported the symptoms.
- Consolidate GlobData members into a flags word, avoiding yet another ad hoc
  paramter to m_or_r (forceFlat).
- Use a local root in str_match to avoid adding and removing a global root.
2002-09-23 18:33:17 +00:00
pschwartau%netscape.com
383f647573 Initial add. Regression test for bug 170193. 2002-09-22 22:11:40 +00:00
brendan%mozilla.org
42b7fa026d Fix middle-delete-function-with-duplicate-formals (170193, r=shaver). 2002-09-22 19:34:07 +00:00
pschwartau%netscape.com
08cfa906c6 Initial add. Regression test for bug 169534. 2002-09-21 03:17:25 +00:00
brendan%mozilla.org
f623f23ac9 Fix Array.prototype.concat to special-case and flatten Array arguments (including |this|) only, not any object with array-like .length (169795, r=rogerl, who fixed my tired morning patch). 2002-09-20 18:45:05 +00:00
pschwartau%netscape.com
7416e9c180 Adding two new sections by igor@icesoft.no. 2002-09-20 17:43:16 +00:00
pschwartau%netscape.com
90bd32754f Fixing typos. 2002-09-20 17:04:08 +00:00
seawood%netscape.com
67aff13c77 Adding placeholders to silence cvs warnings 2002-09-20 09:14:42 +00:00
pschwartau%netscape.com
3b7c2ca41f Initial add. Tests ECMA-262 Edition 3 Section 15.4.4.4. See bug 169795. 2002-09-20 03:35:24 +00:00
pschwartau%netscape.com
9dadcb8c2d Initial add. Regression test for bug 169497. 2002-09-19 01:24:45 +00:00
brendan%mozilla.org
d58abba5ce Cosmetic nit-picks: respect 80-column limit, use NULL, not 0, for ptr init. 2002-09-18 18:44:47 +00:00
caillon%returnzero.com
1c6a6a549a Bug 169321 - Passing strings generated by .match or .substr into Components.lookupMethod() was throwing exceptions because those strings
are not atomized.
Checking in for Johnny Stenback <jst@netscape.com>
r=dbradley@netscape.com, jaggernaut@netscape.com
sr=brendan@mozilla.org
2002-09-18 13:44:43 +00:00
igor%mir2.org
6c61080e81 Reduce "new X" usage by inlining few classes or packing their members into long field 2002-09-18 12:57:09 +00:00
igor%mir2.org
afd43edcb3 C relics removal: no need to check for null after "new X" 2002-09-18 12:50:51 +00:00
brendan%mozilla.org
4b0d8710d7 Fix blunder in obj_propertyIsEnumerable from last checkin (156354, r=shaver). 2002-09-16 23:00:03 +00:00
pschwartau%netscape.com
951cb238b8 Initial add. Regression test for bug 156354. 2002-09-16 22:24:42 +00:00
pschwartau%netscape.com
02d91213a0 Moving all comments to the top of the file. 2002-09-16 19:13:43 +00:00
pschwartau%netscape.com
2121ec1365 Trivial change: more efficiency in detecting Rhino shell. 2002-09-16 18:57:22 +00:00
brendan%mozilla.org
6fbe78bc37 Better macro name, nit-pick on last checkin. 2002-09-14 06:40:59 +00:00
pschwartau%netscape.com
1d81e803b2 Initial add. Regression test for bug 168347. 2002-09-14 00:12:25 +00:00
brendan%mozilla.org
40c6526d2e Followup fix for 168347, r=rogerl: avoid temporary bloat due to QuoteString without sprinter offset retract. 2002-09-13 22:40:27 +00:00
brendan%mozilla.org
fb67784b9c Restore correct form of assertion removed by last rev. 2002-09-13 22:32:59 +00:00
brendan%mozilla.org
b6148c9194 Reorder QuoteString calls added for bug 58274 to avoid overwriting just-popped strings in the string-stack (168347, r=shaver). 2002-09-13 06:58:24 +00:00
brendan%mozilla.org
22a6fda999 Followup fix to op vs. implicit JSOP_GETELEM blunder in last checkin (168302, r=sspitzer). 2002-09-12 21:38:07 +00:00
brendan%mozilla.org
d02561c5d2 Restore enumeable, permanent, readonly single-char elements to string objects; fix propertyIsEnumerable to work with shared permanent proto-properties (167910, r=rogerl). 2002-09-12 19:34:59 +00:00
brendan%mozilla.org
178463efe0 Limit code generator recursion using iterative techniques; also limit js_EmitTree frame size using arena allocation of cg2 (96526, r=shaver). 2002-09-12 07:56:35 +00:00
brendan%mozilla.org
6f3bedb546 Remove unused variable left from last checkin (not part of build). 2002-09-09 23:24:48 +00:00
pschwartau%netscape.com
e142defbd5 Initial add. Tests ECMA-262 Edition 3 Section 8.6.2.6 (default value of objects). See bug 167325. 2002-09-09 21:14:28 +00:00
brendan%mozilla.org
df74dcc41c Fix old bogus error reporting suppression around shell's implicit ToString on command result values, and clean up related #if 0 cruft after it (167325, not part of default build). 2002-09-08 21:46:13 +00:00
dougt%netscape.com
68faeb5241 166917. Clean up xpcom SDK includes. r=rpotts@netscape.com, sr=alecf@netscape.com, a=rjesup@wgate.com 2002-09-07 17:13:19 +00:00
dougt%netscape.com
fae89c4077 Fixes up the timer interface. b157136, r=rpotts@netscape.com, sr=alecf@netscape.com, a=rjesup@wgate.com 2002-09-07 05:38:16 +00:00
brendan%mozilla.org
f5f5efc50b Fix error.stack computation to avoid toString as well as toSource on objects (166743, r=rginda, a=rjesup). 2002-09-05 22:25:48 +00:00
pschwartau%netscape.com
89cb19ca6d Have factored skip regress-96526.js into three separate tests. Skip them. 2002-09-04 22:56:39 +00:00
pschwartau%netscape.com
c99a7cdfd6 Breaking up test regress-96526.js into separate testcases - 2002-09-04 21:56:13 +00:00
pschwartau%netscape.com
8a42be778d Removing this test to break it up into three separate tests: regress-96526-001.js, -002.js, -003.js 2002-09-04 21:53:40 +00:00
igor%mir2.org
c0c5171c48 Store line number and operation type as int field instead of wrapping them into Integer; use Node subclass for nodes with string data; add few explicit checks about node structure assumptions. 2002-09-04 09:28:58 +00:00
brendan%mozilla.org
4710765b36 Checking in rogerl's patch for 141078, to restore pre-ECMA perl-ish octal escape sequences in regexps (r=me). 2002-09-04 06:05:56 +00:00
dougt%netscape.com
f2a00efc93 Move FROZEN ContractID into nsXPCOM.h and define r=rpotts, sr=alec, b=166426 2002-09-03 23:36:13 +00:00
igor%mir2.org
9068084e6a Use Node subclass to represent number literals to avoid creation of Double object. 2002-09-03 12:34:56 +00:00
brendan%mozilla.org
e89c55ad77 Store lastIndex in a reserved slot in each regexp instance, mapped by a shared singleton property in RegExp.prototype, for ultimate thread-safety and best sharing (76717, r=rogerl [NB: SpiderMonkey is now a restricted module, a la NSPR]). 2002-09-01 19:57:50 +00:00
bryner%netscape.com
9f214d42df Use -mdynamic-no-pic when building non-PIC code with gcc 3.1 on MacOS 10.2 (bug 165851). r=cls. 2002-08-31 04:33:02 +00:00
pschwartau%netscape.com
6458af3db0 Whitespace fix. 2002-08-31 01:20:40 +00:00
pschwartau%netscape.com
afa6b9aee7 Initial add. Regression test for bug 165353. 2002-08-31 01:05:09 +00:00
brendan%mozilla.org
926ca2b98f Disable new fp->objAtomMap code to relieve blocker bug 165201. 2002-08-28 18:53:25 +00:00
brendan%mozilla.org
9d5d112cf4 Fix for embeddings that precompile and execute using different globals/standard-classes: clone regexp objects at runtime, on demand, to have the right parentage (164697, r=rogerl, sr=shaver). 2002-08-27 23:28:59 +00:00
igor%mir2.org
5381cd9877 Workaround in JS Math.pow implementation for java.lang.Math.pow brokeness in some JVM. 2002-08-27 08:14:49 +00:00
igor%mir2.org
21946b7034 Fixing a bug reported by Steven Beal where Interpreter.icodeTokenLength() and In
terpreter.dumpICode() used wrong size for CLOSURE opcode arguments.
2002-08-27 08:12:25 +00:00
seawood%netscape.com
5c78f48e09 Use $(patsubst) instead of $(shell echo | sed) to force certain files to be built with a specific optimization level. This avoids potential bustage arising from certain characters not being properly escaped when the commandline flags are evaluated multiple times.
Fixing Irix tinderbox bustage.
2002-08-27 01:37:52 +00:00
dougt%netscape.com
22ffaadb79 exports frozen interface to dist/sdk using new SDK variable. 164717. r=cls, sr=alec 2002-08-27 01:05:21 +00:00
alecf%netscape.com
dc6d6e3736 bug 157624 - freeze nsISupportsPrimitives, which includes changing nsISupport[C]String over to using A[C]String and fixing consumers
r=dougt, sr=darin
2002-08-26 21:20:34 +00:00
dougt%netscape.com
4f8934ad1d Freezes the nsIProperties interface. 162114. r=ccarlen, sr=alecf. Freezes the mozIJSSubScriptLoader interface. 157136. r=rginda, sr=alec. 2002-08-26 20:36:44 +00:00
rogerl%netscape.com
35b76fe46c Bug 58274. Support double byte characters for toSource identifiers.
r=khanson, sr=brendan.
2002-08-26 20:07:58 +00:00
igor%mir2.org
265a588aaf Fixing a bug reported by Steven Beal where Interpreter.icodeTokenLength() and Interpreter.dumpICode() used wrong size for REGEXP opcode arguments. 2002-08-26 09:11:54 +00:00
igor%mir2.org
dd4a08ede4 Renaming the TokenStream.OBJECT constant to TokenStream.REGEXP for better reflection of semantics. 2002-08-26 08:06:27 +00:00
brendan%mozilla.org
3b91b3f362 One-character fix to a comment, use modulus with %, not mask. 2002-08-24 22:14:15 +00:00
pschwartau%netscape.com
68e848167e Removing this testcase from skip list; I have adapted it to run in Rhino. 2002-08-23 22:52:20 +00:00
pschwartau%netscape.com
ac3898be9a Editing comments. 2002-08-23 22:48:38 +00:00
pschwartau%netscape.com
8bd1604dae Rhino can't seem to handle the largest array, so we'll skip this case in Rhino - 2002-08-23 22:38:45 +00:00
pschwartau%netscape.com
d8d0373489 Re-ordering the sections to try the largest possible array first. 2002-08-23 22:12:12 +00:00
pschwartau%netscape.com
4272d07398 Editing comments in the test. 2002-08-23 21:56:21 +00:00
pschwartau%netscape.com
4d0aad511a Removing two extraneous lines. 2002-08-23 21:47:05 +00:00
pschwartau%netscape.com
cb652e487a Adapted the test to run in Rhino. 2002-08-23 21:42:32 +00:00
brendan%mozilla.org
f3faeb8796 My tweaks on top of a patch from Mark Hawlitzeck <mhawlitzeck1@earthlink.net> to avoid last-ditch gc failure (162779, sr=jband/shaver). 2002-08-23 07:56:11 +00:00
dbradley%netscape.com
cde2b461c1 Bug 160602 - Patch sets FPU precision to 53 bit mantissa. r=khanson, sr=brendan 2002-08-20 12:56:30 +00:00
pschwartau%netscape.com
f79a4cab84 Re-factoring for greater clarity. 2002-08-20 04:42:33 +00:00
pschwartau%netscape.com
ac4a38830a Modifying test to handle Function.prototype.toString() output whether it is escaped or not. 2002-08-20 01:57:55 +00:00
pschwartau%netscape.com
402b7220b0 Adding a comment. 2002-08-19 21:46:26 +00:00
igor%mir2.org
b481986e42 Fixing line number generation for the empty return statement which was reported by Steven Beal. It was caused by missed update of lineno in statementHelper when dealing with return;. 2002-08-16 06:42:27 +00:00
rginda%netscape.com
00ab5c046c apply scole@planetweb.com's fix for JS_InitClass (bug 162946) 2002-08-16 05:11:36 +00:00
igor%mir2.org
7ad5c25d66 Fixing ArrayIndexOutOfBoundsException reported by Steven Beal caused by broken code to setup endLine in SourceInfo.updateLineInfo. 2002-08-15 06:42:45 +00:00
brendan%mozilla.org
08bb9cab14 Avoid reloading rt->interruptHandler on each cycle of the bytecode interpreter (121414, r=rginda, sr=jband). 2002-08-14 00:17:27 +00:00
pschwartau%netscape.com
04e6c6fd15 Amending testcase to expect a run-time "out of memory" error. Still tests that we don't crash. 2002-08-14 00:12:54 +00:00
seawood%netscape.com
322da773fb Removing old nmake build makefiles. Bug #158528 r=pavlov 2002-08-10 07:55:43 +00:00
timeless%mac.com
89ff5bdc9e sorting pure js engine includes alphabetically to match js engine prevailing style
rs=brendan
2002-08-09 00:49:44 +00:00
timeless%mac.com
b3565bc10e ### Building "Viper1-Disk:Source Tree:mozilla:js:macbuild:_JavaScript.mcp" (Thu Aug 8 15:19:17 2002)
Error   : function has no prototype
jslock.c line 854   js_FinishDtoa();
adding an include and hoping it works
2002-08-08 22:36:15 +00:00
brendan%mozilla.org
873971ec4c Fix js_NewObject not to share proto's map if proto and obj don't have the same number of reserved slots (112974, r=rogerl, sr=jband). 2002-08-08 21:51:54 +00:00
seawood%netscape.com
2dd8386976 Misc build cleanup v1:
Cleanup win32 configure output. Remove EMACS
Bug #161461 r=bryner
2002-08-08 21:35:45 +00:00
timeless%mac.com
2e645bfdd7 Bug 148171 js_FinishDtoa() not called unless JS_THREADSAFE is set
patch by scole@planetweb.com r=khanson sr=shaver
2002-08-08 20:53:14 +00:00
jdunn%netscape.com
b9a04ca106 fixing AIX optimization issue with jsatom.c
# 161542
r=cls@seawood.org
submitted by pkw@austin.ibm.com, checking in for khanson@netscape.com
2002-08-08 13:22:51 +00:00
brendan%mozilla.org
65405aa551 Fix a couple of jsemit.h glitches, and a benign but confusing hard case to do with extended switch jumps in jsemit.c's OptimizeSpanDeps (158382, r=khanson, sr=shaver). 2002-08-08 00:30:20 +00:00
dbradley%netscape.com
d64eed2142 Bug 159667 - xpconnect needs support for finding *real* wrapped native methods. r=dbradley, sr=jst patch=jband 2002-08-07 23:39:11 +00:00
brendan%mozilla.org
a099682b6e Fix a macro name (LIMIT, not MAX -- fencepost, not maximum value; r=lumpy, sr=jack). 2002-08-07 20:22:38 +00:00
seawood%netscape.com
301b1a4ca8 Remove unused defines:
_IMPL_NS_HTML
_IMPL_NS_RDF
_IMPL_NS_WEB
USE_NSREG

Patches for removing above defines contributed by Stephen Walker <walk84@yahoo.com>.
Bug #125118 r=cls sr=bryner
Bug #160397 r=cls sr=bryner
Bug #160628 r=cls
Bug #160451 r=cls sr=bryner

_IMPL_NS_VIEW

Patches for removing above define contributed by Brian Ryner <bryner@netscape.com>
Bug #160416 r=cls
2002-08-07 06:08:00 +00:00
alecf%netscape.com
f7ad4265ef bug 157624 - prep for freezing nsISupports* primitives by renaming the string classes appropriately
nsISupportsString  -> nsISupportsCString
nsISupportsWString -> nsISupportsString
r=dougt, sr=jag
2002-08-06 00:53:19 +00:00
pschwartau%netscape.com
9a8f03f10b Correcting a mistake in the test. 2002-08-02 22:01:35 +00:00
pschwartau%netscape.com
5bbe7d36d7 Initial add. Testing regexps containing octal escape sequences. See bug 141078. 2002-08-02 21:27:12 +00:00
brendan%mozilla.org
c2dc7271c9 Steven Don's patch for bug 160592, opt:noicf linker option required for release builds (not part of Mozilla build). 2002-08-02 05:34:41 +00:00
pschwartau%netscape.com
880fd70566 Adding a comment 2002-08-02 00:13:00 +00:00
jdunn%netscape.com
b3c11d95b2 removing antiquated aix/jdk1.1.6 hackery
sr=brendan@mozilla.org
r=rogerl@netscape.com
a=asa@mozilla.org
# 158115
2002-08-01 11:04:21 +00:00
brendan%mozilla.org
4cbe5aceda khanson's patch with a comment elaboration for bug 157652 (r=rogerl, sr=me, a=rjesup). 2002-07-31 21:42:12 +00:00
dbradley%netscape.com
7e203d102e Added makefile.in to prepare for nmake going away. This is built separately, not part of the mozilla build process. 2002-07-29 20:47:02 +00:00
brendan%mozilla.org
4e32a6ca06 Finally fix 137000, which requires working around an MSVC ISO-C violation ('identical COMDAT folding', 151066, r=brendan/jrgm, sr=bryner/shaver, a=asa). 2002-07-24 01:48:40 +00:00
rogerl%netscape.com
fd5470f403 Changed decimal escape handling to backward compatible rather than ECMA3
conforming. (Bug#158159)
2002-07-23 21:38:03 +00:00
brendan%mozilla.org
bdbc5696c2 Don't return 1 cast to JSProperty* for a property found in a non-LiveConnect prototype object (155740, r=rogerl, sr=jband, a=chofmann/blizzard/scc). 2002-07-19 22:00:03 +00:00
pschwartau%netscape.com
7f3babd028 Initial add. Regression test for bug 141078. 2002-07-18 18:36:44 +00:00
seawood%netscape.com
fe2f4b55ff Remove DARWIN define from osx builds as it cripples the feature set provided by OSX headers.
Bug #154232 r=wtc sr=scc a=scc
2002-07-18 04:09:30 +00:00
pschwartau%netscape.com
08029cc604 Skip testcase for bug 157652. Will not fix this in Rhino; the OOM error is reasonable. 2002-07-17 18:20:58 +00:00
pschwartau%netscape.com
ea91f9a8ab Changing summary text. 2002-07-16 21:35:30 +00:00
pschwartau%netscape.com
efd856b77d Initial add. Regression test for bug 157652. 2002-07-16 21:23:58 +00:00
igor%mir2.org
012b28330e Serialization fixes to correctly restore members and related fields in NativeJavaClass. 2002-07-16 21:17:09 +00:00
igor%mir2.org
0257e231a5 Fixing the bug 157196: custom serialization of ScriptableObject not to save deleted/empty slot. 2002-07-16 21:15:51 +00:00
igor%mir2.org
5335225a4e Checking for 1.2 version in toString for objects and arrays is replaced by calling cx.hasFeature(Context.FEATURE_TO_STRING_AS_SOURCE) to allow to control toString from applications without switching on other JS 1.2 features. 2002-07-16 17:42:18 +00:00
igor%mir2.org
091a93a0a4 I removed startString/getString and their support code as TokenStream uses its own buffer and fixed the bug 151337 which was cause by incorrect getLine 2002-07-16 17:37:46 +00:00