dbaron%fas.harvard.edu
0aaa1704e7
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
...
git-svn-id: svn://10.0.0.236/trunk@130797 18797224-902f-48f8-a5cc-f745e15eee43
2002-09-30 14:18:27 +00:00
bryner%netscape.com
4f8582db8e
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.
...
git-svn-id: svn://10.0.0.236/trunk@130650 18797224-902f-48f8-a5cc-f745e15eee43
2002-09-28 09:19:58 +00:00
pschwartau%netscape.com
73308ebb51
Simplifying test.
...
git-svn-id: svn://10.0.0.236/trunk@130639 18797224-902f-48f8-a5cc-f745e15eee43
2002-09-28 02:52:28 +00:00
alecf%netscape.com
18e828cdfc
remove JSLoader.xml as its no longer part of the build
...
git-svn-id: svn://10.0.0.236/trunk@130595 18797224-902f-48f8-a5cc-f745e15eee43
2002-09-27 18:33:38 +00:00
alecf%netscape.com
b05dbf8f5b
fix for bug 79175, merge jsloader into xpconnect
...
r=dbradley, sr=brendan
git-svn-id: svn://10.0.0.236/trunk@130594 18797224-902f-48f8-a5cc-f745e15eee43
2002-09-27 18:33:02 +00:00
igor%mir2.org
3f28ac64b8
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()
...
git-svn-id: svn://10.0.0.236/trunk@130529 18797224-902f-48f8-a5cc-f745e15eee43
2002-09-26 20:19:39 +00:00
igor%mir2.org
1802d4ebe7
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.
...
git-svn-id: svn://10.0.0.236/trunk@130356 18797224-902f-48f8-a5cc-f745e15eee43
2002-09-24 15:57:58 +00:00
igor%mir2.org
61f94cb3bf
In newObject pass top level scope to the constructor, not ctor.getParentScope() to take into account hasCompileFunctionsWithDynamicScope()
...
git-svn-id: svn://10.0.0.236/trunk@130351 18797224-902f-48f8-a5cc-f745e15eee43
2002-09-24 14:14:00 +00:00
igor%mir2.org
537ca4e14f
In getClassPrototype replace ScriptRuntime.getTopLevelProp by getProperty to avoid double call to getTopLevelScope
...
git-svn-id: svn://10.0.0.236/trunk@130349 18797224-902f-48f8-a5cc-f745e15eee43
2002-09-24 14:10:53 +00:00
igor%mir2.org
98b5068af7
In jsFunction_concat inline ScriptRuntime.newObject to throw JavaScriptException if array constructor throws one and avoid double call to ScriptableObject.getTopLevelScope()
...
git-svn-id: svn://10.0.0.236/trunk@130348 18797224-902f-48f8-a5cc-f745e15eee43
2002-09-24 14:08:22 +00:00
igor%mir2.org
1304179314
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.
git-svn-id: svn://10.0.0.236/trunk@130347 18797224-902f-48f8-a5cc-f745e15eee43
2002-09-24 14:05:24 +00:00
igor%mir2.org
653b9e5706
Remove the minimalAllocation field and instead pre-allocate data array in the constructor if necessary.
...
git-svn-id: svn://10.0.0.236/trunk@130339 18797224-902f-48f8-a5cc-f745e15eee43
2002-09-24 11:21:19 +00:00
igor%mir2.org
78f34a47e7
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.
...
git-svn-id: svn://10.0.0.236/trunk@130338 18797224-902f-48f8-a5cc-f745e15eee43
2002-09-24 09:29:27 +00:00
brendan%mozilla.org
1c2f1880d2
- 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.
git-svn-id: svn://10.0.0.236/trunk@130257 18797224-902f-48f8-a5cc-f745e15eee43
2002-09-23 18:33:17 +00:00
pschwartau%netscape.com
97e39025a6
Initial add. Regression test for bug 170193.
...
git-svn-id: svn://10.0.0.236/trunk@130222 18797224-902f-48f8-a5cc-f745e15eee43
2002-09-22 22:11:40 +00:00
brendan%mozilla.org
63662b25cc
Fix middle-delete-function-with-duplicate-formals (170193, r=shaver).
...
git-svn-id: svn://10.0.0.236/trunk@130219 18797224-902f-48f8-a5cc-f745e15eee43
2002-09-22 19:34:07 +00:00
pschwartau%netscape.com
4dc1f5add5
Initial add. Regression test for bug 169534.
...
git-svn-id: svn://10.0.0.236/trunk@130197 18797224-902f-48f8-a5cc-f745e15eee43
2002-09-21 03:17:25 +00:00
brendan%mozilla.org
f948d775f1
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).
...
git-svn-id: svn://10.0.0.236/trunk@130160 18797224-902f-48f8-a5cc-f745e15eee43
2002-09-20 18:45:05 +00:00
pschwartau%netscape.com
9e90727c56
Adding two new sections by igor@icesoft.no.
...
git-svn-id: svn://10.0.0.236/trunk@130156 18797224-902f-48f8-a5cc-f745e15eee43
2002-09-20 17:43:16 +00:00
pschwartau%netscape.com
aa87fc7695
Fixing typos.
...
git-svn-id: svn://10.0.0.236/trunk@130154 18797224-902f-48f8-a5cc-f745e15eee43
2002-09-20 17:04:08 +00:00
seawood%netscape.com
8a9d8d56e5
Adding placeholders to silence cvs warnings
...
git-svn-id: svn://10.0.0.236/trunk@130136 18797224-902f-48f8-a5cc-f745e15eee43
2002-09-20 09:14:42 +00:00
pschwartau%netscape.com
99c2132e14
Initial add. Tests ECMA-262 Edition 3 Section 15.4.4.4. See bug 169795.
...
git-svn-id: svn://10.0.0.236/trunk@130109 18797224-902f-48f8-a5cc-f745e15eee43
2002-09-20 03:35:24 +00:00
pschwartau%netscape.com
1625f1b218
Initial add. Regression test for bug 169497.
...
git-svn-id: svn://10.0.0.236/trunk@129994 18797224-902f-48f8-a5cc-f745e15eee43
2002-09-19 01:24:45 +00:00
brendan%mozilla.org
5a73bfb9f8
Cosmetic nit-picks: respect 80-column limit, use NULL, not 0, for ptr init.
...
git-svn-id: svn://10.0.0.236/trunk@129926 18797224-902f-48f8-a5cc-f745e15eee43
2002-09-18 18:44:47 +00:00
caillon%returnzero.com
7067e3488c
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
git-svn-id: svn://10.0.0.236/trunk@129900 18797224-902f-48f8-a5cc-f745e15eee43
2002-09-18 13:44:43 +00:00
igor%mir2.org
ff7745a6a8
Reduce "new X" usage by inlining few classes or packing their members into long field
...
git-svn-id: svn://10.0.0.236/trunk@129899 18797224-902f-48f8-a5cc-f745e15eee43
2002-09-18 12:57:09 +00:00
igor%mir2.org
1721ff345f
C relics removal: no need to check for null after "new X"
...
git-svn-id: svn://10.0.0.236/trunk@129898 18797224-902f-48f8-a5cc-f745e15eee43
2002-09-18 12:50:51 +00:00
brendan%mozilla.org
bf0fcffc71
Fix blunder in obj_propertyIsEnumerable from last checkin (156354, r=shaver).
...
git-svn-id: svn://10.0.0.236/trunk@129759 18797224-902f-48f8-a5cc-f745e15eee43
2002-09-16 23:00:03 +00:00
pschwartau%netscape.com
23bcbe08a0
Initial add. Regression test for bug 156354.
...
git-svn-id: svn://10.0.0.236/trunk@129756 18797224-902f-48f8-a5cc-f745e15eee43
2002-09-16 22:24:42 +00:00
pschwartau%netscape.com
70d5df7e04
Moving all comments to the top of the file.
...
git-svn-id: svn://10.0.0.236/trunk@129733 18797224-902f-48f8-a5cc-f745e15eee43
2002-09-16 19:13:43 +00:00
pschwartau%netscape.com
1ff19bd4ab
Trivial change: more efficiency in detecting Rhino shell.
...
git-svn-id: svn://10.0.0.236/trunk@129732 18797224-902f-48f8-a5cc-f745e15eee43
2002-09-16 18:57:22 +00:00
brendan%mozilla.org
a15af1d979
Better macro name, nit-pick on last checkin.
...
git-svn-id: svn://10.0.0.236/trunk@129601 18797224-902f-48f8-a5cc-f745e15eee43
2002-09-14 06:40:59 +00:00
pschwartau%netscape.com
2933f305da
Initial add. Regression test for bug 168347.
...
git-svn-id: svn://10.0.0.236/trunk@129586 18797224-902f-48f8-a5cc-f745e15eee43
2002-09-14 00:12:25 +00:00
brendan%mozilla.org
1f4ca86d7b
Followup fix for 168347, r=rogerl: avoid temporary bloat due to QuoteString without sprinter offset retract.
...
git-svn-id: svn://10.0.0.236/trunk@129575 18797224-902f-48f8-a5cc-f745e15eee43
2002-09-13 22:40:27 +00:00
brendan%mozilla.org
d8c0e69a55
Restore correct form of assertion removed by last rev.
...
git-svn-id: svn://10.0.0.236/trunk@129571 18797224-902f-48f8-a5cc-f745e15eee43
2002-09-13 22:32:59 +00:00
brendan%mozilla.org
4d0bfed156
Reorder QuoteString calls added for bug 58274 to avoid overwriting just-popped strings in the string-stack (168347, r=shaver).
...
git-svn-id: svn://10.0.0.236/trunk@129507 18797224-902f-48f8-a5cc-f745e15eee43
2002-09-13 06:58:24 +00:00
brendan%mozilla.org
c16a4b2946
Followup fix to op vs. implicit JSOP_GETELEM blunder in last checkin (168302, r=sspitzer).
...
git-svn-id: svn://10.0.0.236/trunk@129421 18797224-902f-48f8-a5cc-f745e15eee43
2002-09-12 21:38:07 +00:00
brendan%mozilla.org
20fd8b549e
Restore enumeable, permanent, readonly single-char elements to string objects; fix propertyIsEnumerable to work with shared permanent proto-properties (167910, r=rogerl).
...
git-svn-id: svn://10.0.0.236/trunk@129389 18797224-902f-48f8-a5cc-f745e15eee43
2002-09-12 19:34:59 +00:00
brendan%mozilla.org
ea4e97abf7
Limit code generator recursion using iterative techniques; also limit js_EmitTree frame size using arena allocation of cg2 (96526, r=shaver).
...
git-svn-id: svn://10.0.0.236/trunk@129327 18797224-902f-48f8-a5cc-f745e15eee43
2002-09-12 07:56:35 +00:00
brendan%mozilla.org
ae0f269f63
Remove unused variable left from last checkin (not part of build).
...
git-svn-id: svn://10.0.0.236/trunk@129118 18797224-902f-48f8-a5cc-f745e15eee43
2002-09-09 23:24:48 +00:00
pschwartau%netscape.com
07482ae2d1
Initial add. Tests ECMA-262 Edition 3 Section 8.6.2.6 (default value of objects). See bug 167325.
...
git-svn-id: svn://10.0.0.236/trunk@129108 18797224-902f-48f8-a5cc-f745e15eee43
2002-09-09 21:14:28 +00:00
brendan%mozilla.org
3668fd0d34
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).
...
git-svn-id: svn://10.0.0.236/trunk@129073 18797224-902f-48f8-a5cc-f745e15eee43
2002-09-08 21:46:13 +00:00
dougt%netscape.com
e289284076
166917. Clean up xpcom SDK includes. r=rpotts@netscape.com, sr=alecf@netscape.com, a=rjesup@wgate.com
...
git-svn-id: svn://10.0.0.236/trunk@129050 18797224-902f-48f8-a5cc-f745e15eee43
2002-09-07 17:13:19 +00:00
dougt%netscape.com
db8cc9c7ec
Fixes up the timer interface. b157136, r=rpotts@netscape.com, sr=alecf@netscape.com, a=rjesup@wgate.com
...
git-svn-id: svn://10.0.0.236/trunk@129037 18797224-902f-48f8-a5cc-f745e15eee43
2002-09-07 05:38:16 +00:00
brendan%mozilla.org
0e1b53a4dc
Fix error.stack computation to avoid toString as well as toSource on objects (166743, r=rginda, a=rjesup).
...
git-svn-id: svn://10.0.0.236/trunk@128918 18797224-902f-48f8-a5cc-f745e15eee43
2002-09-05 22:25:48 +00:00
pschwartau%netscape.com
34582fc06d
Have factored skip regress-96526.js into three separate tests. Skip them.
...
git-svn-id: svn://10.0.0.236/trunk@128847 18797224-902f-48f8-a5cc-f745e15eee43
2002-09-04 22:56:39 +00:00
pschwartau%netscape.com
e491264a22
Breaking up test regress-96526.js into separate testcases -
...
git-svn-id: svn://10.0.0.236/trunk@128845 18797224-902f-48f8-a5cc-f745e15eee43
2002-09-04 21:56:13 +00:00
pschwartau%netscape.com
3f21a1fd0c
Removing this test to break it up into three separate tests: regress-96526-001.js, -002.js, -003.js
...
git-svn-id: svn://10.0.0.236/trunk@128844 18797224-902f-48f8-a5cc-f745e15eee43
2002-09-04 21:53:40 +00:00
igor%mir2.org
cf6e89d89b
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.
...
git-svn-id: svn://10.0.0.236/trunk@128822 18797224-902f-48f8-a5cc-f745e15eee43
2002-09-04 09:28:58 +00:00
brendan%mozilla.org
685415a931
Checking in rogerl's patch for 141078, to restore pre-ECMA perl-ish octal escape sequences in regexps (r=me).
...
git-svn-id: svn://10.0.0.236/trunk@128812 18797224-902f-48f8-a5cc-f745e15eee43
2002-09-04 06:05:56 +00:00