Commit Graph

4556 Commits

Author SHA1 Message Date
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