brendan%mozilla.org
53f0bf3fa1
Restore export/import support for 4.x signed script compatibility (249211, r=self).
...
git-svn-id: svn://10.0.0.236/trunk@159272 18797224-902f-48f8-a5cc-f745e15eee43
2004-07-15 19:21:35 +00:00
brendan%mozilla.org
9edbb0b2c1
Improve JSRESOLVE_DETECTING by treating 'terminal' uses of, e.g., document.all as detecting (248549, r=jst).
...
git-svn-id: svn://10.0.0.236/trunk@159266 18797224-902f-48f8-a5cc-f745e15eee43
2004-07-15 18:53:59 +00:00
dbaron%dbaron.org
6ba6a78f8e
Only use __attribute__ on gcc 3 or higher. Fixing bustage. b=249652
...
git-svn-id: svn://10.0.0.236/trunk@159221 18797224-902f-48f8-a5cc-f745e15eee43
2004-07-15 00:00:43 +00:00
bryner%brianryner.com
e372b2e9a3
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.
...
git-svn-id: svn://10.0.0.236/trunk@159199 18797224-902f-48f8-a5cc-f745e15eee43
2004-07-14 22:14:34 +00:00
igor%mir2.org
3dae56ac7c
Making next release to be 1.6 release 1
...
git-svn-id: svn://10.0.0.236/trunk@159057 18797224-902f-48f8-a5cc-f745e15eee43
2004-07-12 14:26:30 +00:00
igor%mir2.org
dec8ae36c7
Renaming ObjArray.setReadOnly() to ObjArray.seal() to follow the rest of Rhino code.
...
git-svn-id: svn://10.0.0.236/trunk@158942 18797224-902f-48f8-a5cc-f745e15eee43
2004-07-09 13:28:48 +00:00
igor%mir2.org
ba01b2ec28
Fixing comments text to reflect real state of code
...
git-svn-id: svn://10.0.0.236/trunk@158856 18797224-902f-48f8-a5cc-f745e15eee43
2004-07-07 14:47:46 +00:00
igor%mir2.org
e2d5a19c1a
Almost reverting the prevois commit: it was too preliminary.
...
git-svn-id: svn://10.0.0.236/trunk@158855 18797224-902f-48f8-a5cc-f745e15eee43
2004-07-07 14:46:58 +00:00
brendan%mozilla.org
0e385c551c
Enhance RegExp.prototype.to{Source,String} to escape naked slashes in the regexp source (284444, r=shaver).
...
git-svn-id: svn://10.0.0.236/trunk@158824 18797224-902f-48f8-a5cc-f745e15eee43
2004-07-07 03:58:26 +00:00
igor%mir2.org
571edfd25e
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.
...
git-svn-id: svn://10.0.0.236/trunk@158797 18797224-902f-48f8-a5cc-f745e15eee43
2004-07-06 14:37:56 +00:00
igor%mir2.org
2ae56359cc
Token.ZERO and Token.ONE are used only by interpreter and moved to Interpreter as corresponding icode constants.
...
git-svn-id: svn://10.0.0.236/trunk@158760 18797224-902f-48f8-a5cc-f745e15eee43
2004-07-05 15:08:34 +00:00
igor%mir2.org
d53669a1db
Removal of no-longer applicable comments refering to SM code
...
git-svn-id: svn://10.0.0.236/trunk@158759 18797224-902f-48f8-a5cc-f745e15eee43
2004-07-05 15:07:25 +00:00
igor%mir2.org
22dc09ca85
Removal of Token.DOT in NodeTransformer: it is always processed in IRFactory.
...
git-svn-id: svn://10.0.0.236/trunk@158758 18797224-902f-48f8-a5cc-f745e15eee43
2004-07-05 15:06:18 +00:00
igor%mir2.org
2ad87465e5
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
git-svn-id: svn://10.0.0.236/trunk@158744 18797224-902f-48f8-a5cc-f745e15eee43
2004-07-04 17:26:50 +00:00
igor%mir2.org
eef57c46db
Simplified handling of function expression statements: parser no longer
...
generate synthetic expression statement nodes for them.
git-svn-id: svn://10.0.0.236/trunk@158736 18797224-902f-48f8-a5cc-f745e15eee43
2004-07-04 14:13:47 +00:00
igor%mir2.org
23e061f6e4
Normilizing numeration of Token constants after removal of few no longer used
...
constants in the previous patches
git-svn-id: svn://10.0.0.236/trunk@158735 18797224-902f-48f8-a5cc-f745e15eee43
2004-07-04 14:12:01 +00:00
igor%mir2.org
4fa222560f
Splitting code generation in interpreter and class compiler into separated statement-only and expression only cases to add more checks.
...
git-svn-id: svn://10.0.0.236/trunk@158691 18797224-902f-48f8-a5cc-f745e15eee43
2004-07-02 15:36:13 +00:00
igor%mir2.org
15cae6f909
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.
...
git-svn-id: svn://10.0.0.236/trunk@158687 18797224-902f-48f8-a5cc-f745e15eee43
2004-07-02 13:11:06 +00:00
igor%mir2.org
49c95ac376
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.
git-svn-id: svn://10.0.0.236/trunk@158683 18797224-902f-48f8-a5cc-f745e15eee43
2004-07-02 06:55:21 +00:00
igor%mir2.org
254fec20b1
Removal of Tiken.UNDEFINED: it was not used outside Interpreter
...
git-svn-id: svn://10.0.0.236/trunk@158647 18797224-902f-48f8-a5cc-f745e15eee43
2004-07-01 16:40:44 +00:00
igor%mir2.org
9dc1b22550
Replacing state flags in TokenStream by separated boolean values to simplify
...
code and to remove flags that were set/cleared but never queried.
git-svn-id: svn://10.0.0.236/trunk@158642 18797224-902f-48f8-a5cc-f745e15eee43
2004-07-01 14:52:22 +00:00
igor%mir2.org
9e58273527
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.
git-svn-id: svn://10.0.0.236/trunk@158641 18797224-902f-48f8-a5cc-f745e15eee43
2004-07-01 10:39:28 +00:00
igor%mir2.org
be2eef23ca
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.
git-svn-id: svn://10.0.0.236/trunk@158606 18797224-902f-48f8-a5cc-f745e15eee43
2004-06-30 15:28:04 +00:00
igor%mir2.org
4dae7d8134
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.
git-svn-id: svn://10.0.0.236/trunk@158605 18797224-902f-48f8-a5cc-f745e15eee43
2004-06-30 15:23:39 +00:00
igor%mir2.org
d9b5214238
Fix menu enable/disable misbehavior.
...
git-svn-id: svn://10.0.0.236/trunk@158601 18797224-902f-48f8-a5cc-f745e15eee43
2004-06-30 13:29:41 +00:00
igor%mir2.org
dee3dab0cc
Fixing JDK 1.3 compatibility: TableModel.getRot() should not return null there.
...
git-svn-id: svn://10.0.0.236/trunk@158600 18797224-902f-48f8-a5cc-f745e15eee43
2004-06-30 09:38:54 +00:00
igor%mir2.org
be0d9e0f58
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.
git-svn-id: svn://10.0.0.236/trunk@158578 18797224-902f-48f8-a5cc-f745e15eee43
2004-06-29 15:43:01 +00:00
timeless%mozdev.org
27c47c4857
Bug 248458 Crash [@ nsJSIID::Equals] for null other
...
r=dbradley sr=shaver
git-svn-id: svn://10.0.0.236/trunk@158447 18797224-902f-48f8-a5cc-f745e15eee43
2004-06-24 23:49:08 +00:00
brendan%mozilla.org
b3757f6391
NARCISSUS-only fix from Frierich Munch <colsebas@hotmail.com>.
...
git-svn-id: svn://10.0.0.236/trunk@158383 18797224-902f-48f8-a5cc-f745e15eee43
2004-06-23 21:25:55 +00:00
bryner%brianryner.com
b9fee4bf3a
Make jsdouble hashing code strict-aliasing safe (bug 247877). r=brendan.
...
git-svn-id: svn://10.0.0.236/trunk@158258 18797224-902f-48f8-a5cc-f745e15eee43
2004-06-21 17:57:10 +00:00
brendan%mozilla.org
7cf55aa042
Mangle JS_STATIC_DLL_CALLBACK names a bit in case they're not hidden.
...
git-svn-id: svn://10.0.0.236/trunk@158200 18797224-902f-48f8-a5cc-f745e15eee43
2004-06-20 02:29:19 +00:00
bsmedberg%covad.net
f9f20186ed
Bug 239875 - fix xpconnect static guards so we can restart xpcom without crashing r=shaver sr=brendan
...
git-svn-id: svn://10.0.0.236/trunk@158170 18797224-902f-48f8-a5cc-f745e15eee43
2004-06-19 01:19:27 +00:00
brendan%mozilla.org
0b1a5abf97
My spin on Malcolm Rowe's patch for ECMA-compliant \b in regexps (247179, r=me).
...
git-svn-id: svn://10.0.0.236/trunk@158149 18797224-902f-48f8-a5cc-f745e15eee43
2004-06-18 21:59:06 +00:00
brendan%mozilla.org
368758b07a
Fix off-by-one, simplify logic in light of EOF mapping to 0 JS_CCODE.
...
git-svn-id: svn://10.0.0.236/trunk@158131 18797224-902f-48f8-a5cc-f745e15eee43
2004-06-18 20:40:54 +00:00
roc+%cs.cmu.edu
0b0fa89131
Bug 226439. Convert codebase to use AppendLiteral/AssignLiteral/LowerCaseEqualsLiteral. r+sr=darin
...
git-svn-id: svn://10.0.0.236/trunk@157992 18797224-902f-48f8-a5cc-f745e15eee43
2004-06-17 00:13:25 +00:00
brendan%mozilla.org
09d3e9ed2a
Add JSRESOLVE_DETECTING (246964, r=shaver).
...
git-svn-id: svn://10.0.0.236/trunk@157980 18797224-902f-48f8-a5cc-f745e15eee43
2004-06-16 21:15:35 +00:00
tor%cs.brown.edu
ff31f81698
Bug 153586 - Date.toLocaleString() not returning locale string.
...
r=jst, sr=brendan
git-svn-id: svn://10.0.0.236/trunk@157913 18797224-902f-48f8-a5cc-f745e15eee43
2004-06-15 16:38:43 +00:00
igor%mir2.org
ae9260af1a
Make EvaluatorException(String) public for compatibility
...
git-svn-id: svn://10.0.0.236/trunk@157893 18797224-902f-48f8-a5cc-f745e15eee43
2004-06-15 04:42:59 +00:00
brendan%mozilla.org
ad3a71f342
Give JSObjectOps.setRequiredSlot a JSBool return value so it can propagate errors (part of 245890, r=shaver).
...
git-svn-id: svn://10.0.0.236/trunk@157812 18797224-902f-48f8-a5cc-f745e15eee43
2004-06-12 01:50:09 +00:00
cbiesinger%web.de
39955b6428
bug 245673 named literal strings should be const
...
r+sr=darin
git-svn-id: svn://10.0.0.236/trunk@157773 18797224-902f-48f8-a5cc-f745e15eee43
2004-06-11 15:05:29 +00:00
brendan%mozilla.org
a8d9f404ad
Fix comment glitch pointed out by timeless (243359).
...
git-svn-id: svn://10.0.0.236/trunk@157754 18797224-902f-48f8-a5cc-f745e15eee43
2004-06-11 06:30:14 +00:00
timeless%mozdev.org
3853fc2694
Bug 238712 nsMemoryImpl::Alloc (0) in XPCConvert::JSArray2Native
...
r=dbradley sr=brendan
git-svn-id: svn://10.0.0.236/trunk@157752 18797224-902f-48f8-a5cc-f745e15eee43
2004-06-11 04:40:00 +00:00
brendan%mozilla.org
0a83ee7850
Add support for XUL preprocessor line/file coercion (243359, r=bryner).
...
git-svn-id: svn://10.0.0.236/trunk@157746 18797224-902f-48f8-a5cc-f745e15eee43
2004-06-11 00:55:59 +00:00
pschwartau%netscape.com
6a00502e91
Updating JS_GetImplementationVersion() to date of latest JS release (67111)
...
git-svn-id: svn://10.0.0.236/trunk@157685 18797224-902f-48f8-a5cc-f745e15eee43
2004-06-09 23:08:07 +00:00
brendan%mozilla.org
fa680b19ae
Back out patch for bug 245890 for now.
...
git-svn-id: svn://10.0.0.236/trunk@157670 18797224-902f-48f8-a5cc-f745e15eee43
2004-06-09 19:39:53 +00:00
igor%mir2.org
52f563c69e
Fixing regression after previous commit for bug 245882: when used as top scope ImporterTopLevel should not define constructor property not to hide Object.prototype.constructor.
...
git-svn-id: svn://10.0.0.236/trunk@157664 18797224-902f-48f8-a5cc-f745e15eee43
2004-06-09 17:01:01 +00:00
igor%mir2.org
511517cf97
1. IdFunction.methodId is no longer public as some old Java compilers have troubles with it and accessor method has to be used instead.
...
2. IdFunction constructor now takes scope argument as well to prevent initialization bugs.
git-svn-id: svn://10.0.0.236/trunk@157655 18797224-902f-48f8-a5cc-f745e15eee43
2004-06-09 12:54:04 +00:00
igor%mir2.org
66dc9e7c36
The last commit made Rhino uncompilable! Fixing that.
...
git-svn-id: svn://10.0.0.236/trunk@157648 18797224-902f-48f8-a5cc-f745e15eee43
2004-06-09 08:25:59 +00:00
igor%mir2.org
fbf52edfbd
Implementing bug 245882: now ImporterTopLevel can be constructed from JavaScript using JavaImporter to allow to have class and package collections without namespace polluting.
...
git-svn-id: svn://10.0.0.236/trunk@157646 18797224-902f-48f8-a5cc-f745e15eee43
2004-06-09 07:36:31 +00:00
igor%mir2.org
d353de1ae6
Work on bug 245882: check that scope is not this when setting scope chain
...
to prevent scope chain loops.
git-svn-id: svn://10.0.0.236/trunk@157619 18797224-902f-48f8-a5cc-f745e15eee43
2004-06-08 23:30:30 +00:00