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

4580 Коммитов

Автор SHA1 Сообщение Дата
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
igor%mir2.org fcaecf752d 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 772d42aff7 In getClassPrototype replace ScriptRuntime.getTopLevelProp by getProperty to avoid double call to getTopLevelScope 2002-09-24 14:10:53 +00:00
igor%mir2.org 0e22f177f1 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 0b6e1ef741 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 846c9cdfd3 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 11edce55c2 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 59d108da82 - 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 4b80eca043 Initial add. Regression test for bug 170193. 2002-09-22 22:11:40 +00:00
brendan%mozilla.org 08cc28881a Fix middle-delete-function-with-duplicate-formals (170193, r=shaver). 2002-09-22 19:34:07 +00:00
pschwartau%netscape.com 84e53d1eff Initial add. Regression test for bug 169534. 2002-09-21 03:17:25 +00:00
brendan%mozilla.org a96179b15f 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 581d06bb3b Adding two new sections by igor@icesoft.no. 2002-09-20 17:43:16 +00:00
pschwartau%netscape.com 7c133e48e5 Fixing typos. 2002-09-20 17:04:08 +00:00
seawood%netscape.com 3a6afee554 Adding placeholders to silence cvs warnings 2002-09-20 09:14:42 +00:00
pschwartau%netscape.com a631b00772 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 4541940e34 Initial add. Regression test for bug 169497. 2002-09-19 01:24:45 +00:00
brendan%mozilla.org 8439ac2b0f 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 8413e578a9 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 6bd97db281 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 bfc5c0bbee C relics removal: no need to check for null after "new X" 2002-09-18 12:50:51 +00:00
brendan%mozilla.org 399042088f Fix blunder in obj_propertyIsEnumerable from last checkin (156354, r=shaver). 2002-09-16 23:00:03 +00:00
pschwartau%netscape.com 63bee85c59 Initial add. Regression test for bug 156354. 2002-09-16 22:24:42 +00:00
pschwartau%netscape.com 6b8bdd0bc3 Moving all comments to the top of the file. 2002-09-16 19:13:43 +00:00
pschwartau%netscape.com 40023632cf Trivial change: more efficiency in detecting Rhino shell. 2002-09-16 18:57:22 +00:00
brendan%mozilla.org 3f993ab41a Better macro name, nit-pick on last checkin. 2002-09-14 06:40:59 +00:00