Commit Graph

5925 Commits

Author SHA1 Message Date
timeless%mozdev.org
0529aed045 reverting 3.176 per brendan 2004-07-20 16:11:53 +00:00
brendan%mozilla.org
e65c24c40b Fix unused variable problem. 2004-07-17 02:44:37 +00:00
brendan%mozilla.org
ac625391e0 - Add JS_Has*Property and JS_HasElement APIs, for unambiguous testing of whether an object or one of its prototypes has an identified property.
- Add JS_ReportPendingException, and fix its js_ReportUncaughtException subroutine to (a) not return false on vacuous success; (b) fail to clear the pending exception it reports.
2004-07-17 02:39:55 +00:00
brendan%mozilla.org
97501ed611 White space policing. 2004-07-17 02:31:11 +00:00
tor%cs.brown.edu
6905e4af37 Bug 165200 - Number.toLocaleString() localization. r=brendan 2004-07-16 21:17:50 +00:00
timeless%mozdev.org
3b48e20deb Bug 243869 js_ReportUncaughtException doesn't propagate filename/lineno from error object
These changes are a last ditch effort to provide filename info for certain failures.
r=shaver
2004-07-16 17:30:23 +00:00
brendan%mozilla.org
d9756dec41 Restore export/import support for 4.x signed script compatibility (249211, r=self). 2004-07-15 19:21:35 +00:00
brendan%mozilla.org
c654a3f978 Improve JSRESOLVE_DETECTING by treating 'terminal' uses of, e.g., document.all as detecting (248549, r=jst). 2004-07-15 18:53:59 +00:00
dbaron%dbaron.org
4c9caa3458 Only use __attribute__ on gcc 3 or higher. Fixing bustage. b=249652 2004-07-15 00:00:43 +00:00
bryner%brianryner.com
23089547be Add a NS_FASTCALL macro that specifies regparm(3) and stdcall on gcc/x86 to improve performance (passing up to 3 arguments in registers instead of on the stack, and having the caller pop any stack arguments). Apply NS_FASTCALL to our most frequently called non-public methods and functions. Also add NS_CDECL to explicitly specify the default calling convention and make it part of NS_IMETHOD, since xptcall can't deal with NS_FASTCALL. Bug 249652, r=darin, sr=dbaron. 2004-07-14 22:14:34 +00:00
igor%mir2.org
fa889e8215 Making next release to be 1.6 release 1 2004-07-12 14:26:30 +00:00
igor%mir2.org
2c3f8b4844 Renaming ObjArray.setReadOnly() to ObjArray.seal() to follow the rest of Rhino code. 2004-07-09 13:28:48 +00:00
igor%mir2.org
fe6620df87 Fixing comments text to reflect real state of code 2004-07-07 14:47:46 +00:00
igor%mir2.org
faa2cc87fe Almost reverting the prevois commit: it was too preliminary. 2004-07-07 14:46:58 +00:00
brendan%mozilla.org
1b411ff802 Enhance RegExp.prototype.to{Source,String} to escape naked slashes in the regexp source (284444, r=shaver). 2004-07-07 03:58:26 +00:00
igor%mir2.org
4588cccd39 Changing the way Java getter and setter are stored: a new special class ComplexValue is used to indicate a controllable value that may have associated getter/setter methods. In this way getter can be added after slot creation without the need to replace slots. 2004-07-06 14:37:56 +00:00
igor%mir2.org
80b96958c9 Token.ZERO and Token.ONE are used only by interpreter and moved to Interpreter as corresponding icode constants. 2004-07-05 15:08:34 +00:00
igor%mir2.org
3ffab68246 Removal of no-longer applicable comments refering to SM code 2004-07-05 15:07:25 +00:00
igor%mir2.org
cfec98bb95 Removal of Token.DOT in NodeTransformer: it is always processed in IRFactory. 2004-07-05 15:06:18 +00:00
igor%mir2.org
b0e98cbca8 When support for Context.FEATURE_MEMBER_EXPR_AS_FUNCTION_NAME is enables,
decompiler now does not turn them into assignment statements but keeps
original code with extension when printing function source. It allows for
better emulation of this JScript extension
2004-07-04 17:26:50 +00:00
igor%mir2.org
a084aaa65f Simplified handling of function expression statements: parser no longer
generate synthetic expression statement nodes for them.
2004-07-04 14:13:47 +00:00
igor%mir2.org
15426336fd Normilizing numeration of Token constants after removal of few no longer used
constants in the previous patches
2004-07-04 14:12:01 +00:00
igor%mir2.org
53864e64b8 Splitting code generation in interpreter and class compiler into separated statement-only and expression only cases to add more checks. 2004-07-02 15:36:13 +00:00
igor%mir2.org
b91ef7e8a2 Replacing generic Token.EXPRSTMT by Token.EXPR_VOID and Token.EXPR_RESULT and removal of Token.POP and Token.POPV. Now parser creates appropriate expression statements itself so there is no need to replace the time in NodeTransformer. 2004-07-02 13:11:06 +00:00
igor%mir2.org
4ad826a35e Fixing bug 249471:
Fixing parseFloat logic and Context usage cleanup.

I changed number start detection code in parseFloat to check properly for lone
+/- while making the code IMO more redable.

In addtion patch removes unused Context parameter from various functions in
NativeGlobal including parseFloat which was remainder from pre IdFunction
code.
2004-07-02 06:55:21 +00:00
igor%mir2.org
4035bd2c91 Removal of Tiken.UNDEFINED: it was not used outside Interpreter 2004-07-01 16:40:44 +00:00
igor%mir2.org
f0ca03fe7c Replacing state flags in TokenStream by separated boolean values to simplify
code and to remove flags that were set/cleared but never queried.
2004-07-01 14:52:22 +00:00
igor%mir2.org
21a1489b59 Change IRFactory to return/accept Node, not Object as the type for parse tree
nodes. Parser already assumes in a few places that such Node and it is not
worth to pretend otherwise.
2004-07-01 10:39:28 +00:00
igor%mir2.org
05a6149911 Fixing JavaDoc: the previous changes removed Context(ContextFactory)
constructor as factory is associated automatically with Context but JavaDoc
continied to refer to this constructor form.
2004-06-30 15:28:04 +00:00
igor%mir2.org
f32fceb8a1 Deprecation of ContextListener in favour of ContextFactory.Listener:
the later is stored in the factory and not in static variables.
For compatibility an instance of ContextFactory stored in static variables
is used to provide support for old Context.addContextListener etc. API.

The static instance of the factory is also used by Context.enter to create
Context instances providing simple way to customize Context: one just need
to initialize the global static factory.
2004-06-30 15:23:39 +00:00
igor%mir2.org
012fd05901 Fix menu enable/disable misbehavior. 2004-06-30 13:29:41 +00:00
igor%mir2.org
4cc8c9cd28 Fixing JDK 1.3 compatibility: TableModel.getRot() should not return null there. 2004-06-30 09:38:54 +00:00
igor%mir2.org
c1a3a327c2 Fixing scope problems with IdFunction when IdScriptable is top scope itself:
scope for IdFunction instances is determined through getTopScope,
not getParentScope() which can be null.

To prevent null scope initialization problems in future IdFunction constructor
now throws an exception if scope argument is null.
2004-06-29 15:43:01 +00:00
timeless%mozdev.org
e29b29c0ba Bug 248458 Crash [@ nsJSIID::Equals] for null other
r=dbradley sr=shaver
2004-06-24 23:49:08 +00:00
brendan%mozilla.org
735cc13421 NARCISSUS-only fix from Frierich Munch <colsebas@hotmail.com>. 2004-06-23 21:25:55 +00:00
bryner%brianryner.com
bf8138fe2b Make jsdouble hashing code strict-aliasing safe (bug 247877). r=brendan. 2004-06-21 17:57:10 +00:00
brendan%mozilla.org
e68295a5fe Mangle JS_STATIC_DLL_CALLBACK names a bit in case they're not hidden. 2004-06-20 02:29:19 +00:00
bsmedberg%covad.net
4d342dc548 Bug 239875 - fix xpconnect static guards so we can restart xpcom without crashing r=shaver sr=brendan 2004-06-19 01:19:27 +00:00
brendan%mozilla.org
77e05267a4 My spin on Malcolm Rowe's patch for ECMA-compliant \b in regexps (247179, r=me). 2004-06-18 21:59:06 +00:00
brendan%mozilla.org
edb764650d Fix off-by-one, simplify logic in light of EOF mapping to 0 JS_CCODE. 2004-06-18 20:40:54 +00:00
roc+%cs.cmu.edu
0f4150a4e5 Bug 226439. Convert codebase to use AppendLiteral/AssignLiteral/LowerCaseEqualsLiteral. r+sr=darin 2004-06-17 00:13:25 +00:00
brendan%mozilla.org
bb87816784 Add JSRESOLVE_DETECTING (246964, r=shaver). 2004-06-16 21:15:35 +00:00
tor%cs.brown.edu
9f26f1dadb Bug 153586 - Date.toLocaleString() not returning locale string.
r=jst, sr=brendan
2004-06-15 16:38:43 +00:00
igor%mir2.org
d9fd2cc2b9 Make EvaluatorException(String) public for compatibility 2004-06-15 04:42:59 +00:00
brendan%mozilla.org
1a78cd61c8 Give JSObjectOps.setRequiredSlot a JSBool return value so it can propagate errors (part of 245890, r=shaver). 2004-06-12 01:50:09 +00:00
cbiesinger%web.de
a4396ff7b4 bug 245673 named literal strings should be const
r+sr=darin
2004-06-11 15:05:29 +00:00
brendan%mozilla.org
913606c84e Fix comment glitch pointed out by timeless (243359). 2004-06-11 06:30:14 +00:00
timeless%mozdev.org
9b9a5c1692 Bug 238712 nsMemoryImpl::Alloc (0) in XPCConvert::JSArray2Native
r=dbradley sr=brendan
2004-06-11 04:40:00 +00:00
brendan%mozilla.org
7184dfb8b0 Add support for XUL preprocessor line/file coercion (243359, r=bryner). 2004-06-11 00:55:59 +00:00
pschwartau%netscape.com
f35801c28d Updating JS_GetImplementationVersion() to date of latest JS release (67111) 2004-06-09 23:08:07 +00:00