igor%mir2.org
bb8d328be9
Extend optimization ==, !=, ===, !== against null to check null presence on any side of the test.
2004-04-21 12:00:27 +00:00
igor%mir2.org
388341c850
Fix max stack calculations in dcpLoadAsObject/dcpLoadAsNunber and optimize visitIfJumpRelOp to take advantage of the fact that left and right numerical operands force numeric context.
2004-04-20 13:00:08 +00:00
igor%mir2.org
b4bb88c434
Reuse code to generate optimized if jumps for boolean operations that return Boolean instance
2004-04-18 20:29:41 +00:00
igor%mir2.org
86dc2db1c0
Cleanups:
...
1. Added addObjectToDouble() to replace explicit code generation for object to double convertion.
2. nodeIsDirectCallParameter returns dcp register to avoid double look up of OptVariable
2004-04-18 16:29:12 +00:00
igor%mir2.org
fafc53aace
Layout cosmetics
2004-04-18 16:26:32 +00:00
igor%mir2.org
09018e0533
Trust JVM to implement "<=" and "<" according to JVM specs and replace code like
...
d1 == d1 && d2 == d2 && d1 < d2
with simple
d1 < d2
That in turn allows to simplify code generation and remove OptRuntime.cmp_ functions.
2004-04-18 14:53:34 +00:00
igor%mir2.org
719bb92768
Trust JVM to implement "<=" and "<" according to JVM specs and replace code like
...
d1 == d1 && d2 == d2 && d1 < d2
with simple
d1 < d2
2004-04-18 14:52:22 +00:00
igor%mir2.org
2e97a7df33
Remove commented out code to treat integer specially: it is not applicable any longer in any case.
2004-04-18 14:49:50 +00:00
igor%mir2.org
d79eb6342f
Work on bug 238649: no more support for ClassNameHelper and friends
2004-04-18 12:15:07 +00:00
igor%mir2.org
aee55ce695
Worj on bug 238649: removal of NotAFunctionException
2004-04-18 09:30:30 +00:00
igor%mir2.org
3c290b16dd
1. Change cmp_* functions to return boolean, not int, to simplify code.
...
2. Move optimizer-only functions from ScriptRuntime.java to optimizer/OptRuntime.java
3. Add ScriptRuntime.wrapBoolean to wrap boolean value and use it in the optimizer
2004-04-16 07:38:20 +00:00
igor%mir2.org
0adf35e44c
1. Throw IllegalArgumentException instead of EvaluatorException when argument does not belong to JS runtime types.
...
2. Optimize eq and shallowEq in ScriptRuntime to share code with optimized versions in Interpreter.
2004-04-14 14:50:24 +00:00
igor%mir2.org
9b208813a2
Layout cosmetics
2004-04-14 14:46:58 +00:00
igor%mir2.org
3b157b025b
Support for Date.now()
2004-04-14 11:04:55 +00:00
igor%mir2.org
31c7e1f54c
Fixing bug 58118 : long overdue commit of patch from Mike McCabe, mike+mozilla@meer.net
2004-03-30 12:48:29 +00:00
igor%mir2.org
023446d6c0
Since new x in Java never returns null, the check for null in date_format was redundant.
2004-03-30 10:35:42 +00:00
igor%mir2.org
0a8394388f
Faster implementation of MonthFromTime and DateFromTime:
...
1. Use day / 30 as month estimate with the following adjustment via switch()
2. Reuse year from day calculations in IsLeapYear
2004-03-29 15:19:04 +00:00
igor%mir2.org
7c417cd5e9
Fixing bug 239068: proper initialization of parent scope for functions of constructors.
2004-03-29 15:15:34 +00:00
igor%mir2.org
2306ff9f68
DaysInYear is replaced by IsLeapYear since the former was used only to determine if a particular was leap or not
2004-03-29 14:16:23 +00:00
igor%mir2.org
f394ba49d0
Cosmetics: layout fixes
2004-03-29 12:30:24 +00:00
igor%mir2.org
cd59bcde60
Starting 1.5R5.1 development
2004-03-29 12:29:11 +00:00
igor%mir2.org
03828224aa
Fixing 238823 : throw explicit IllegalArgumentException when JS source for Context.compileFunction does not contain single JS function statement instead of producing silent empty functions or throwing obscure NullPointerExceptions
2004-03-27 09:35:22 +00:00
igor%mir2.org
d48d5df72a
Better formating
2004-03-26 13:01:17 +00:00
igor%mir2.org
5c2d316845
Fixing bug 238699 : refactoring to expose simpler code generation API caused to select wrong code path when compiling functions
2004-03-26 12:42:00 +00:00
igor%mir2.org
e1c579fdb8
Explicit date in Context.getImplementationVersion() for 1.5R5 release
2004-03-25 20:37:32 +00:00
igor%mir2.org
1ac053c5c4
Reflecting 1.5R5 release
2004-03-25 19:45:56 +00:00
igor%mir2.org
de1e1ac301
Starting 1.5R6
2004-03-25 17:58:03 +00:00
igor%mir2.org
60759708f4
Removal of macbuild support: its Mac OS X time after all
2004-03-25 17:39:21 +00:00
igor%mir2.org
1174d12c74
Info about commercial support
2004-03-25 15:46:40 +00:00
igor%mir2.org
71ca64f861
*** empty log message ***
2004-03-25 11:04:04 +00:00
igor%mir2.org
e1e41ac43c
Preparations for 1.5R5
2004-03-24 15:52:55 +00:00
igor%mir2.org
732c7ab109
Updates to reflect new extension to allow to pass function to Java method expecting interface: now interface with multiple methods are allowed as long as all methods has the same signature
2004-03-24 15:44:19 +00:00
igor%mir2.org
6311b232ca
Finalizing 223435 : function can be converted to Java interface with more then one method as long as all methods has the same signature.
2004-03-24 14:15:37 +00:00
igor%mir2.org
27c2350055
More work on bug 223435 : pass method name for the interface as the last parameter to JS function so it can use for debug purposes
2004-03-23 16:24:32 +00:00
igor%mir2.org
9c0a6e0861
Making BaseFunction.decompile package private: any new public function will always find its users even if the usage is broken. It was public to allow calls from debugger but simple call to Context.toString() would do the same job.
2004-03-18 13:37:29 +00:00
igor%mir2.org
4c26393708
RUnit Software now includes a link on their page about JS (Declaimer: I work there!)
2004-03-18 13:32:52 +00:00
igor%mir2.org
6b102cf976
Added RUnit Software
2004-03-17 18:36:57 +00:00
igor%mir2.org
50cd6c7c8c
Fixing bug 237771 : allow to transfer toSource implementation to different objects
2004-03-17 18:36:39 +00:00
igor%mir2.org
209e4801b3
Documenting new Context seal API and fixing obvious English mistakes.
2004-03-09 23:34:30 +00:00
igor%mir2.org
e47574df7e
Updated file with license info from Eugene Aresteanu :
...
> Hi,
>
> Does it look right now?
>
> Regards,
> Eugene
>
> -----Original Message-----
> From: Igor Bukanov [mailto:igor@fastmail.fm]
> Sent: Friday, March 05, 2004 10:07 AM
> To: eugene aresteanu
> Subject: Re: Rhino and license for Messages_fr.properties
>
>
> eugene aresteanu wrote:
>
>>Hello,
>>
>>Here it is. I hope it is right.
>>Why do you say the default Messages.properties lacks notices?
>>I used the header of Messages.properties as a template.
>
>
> Sorry for not been clear, but what I wanted to say is that did not have
> triple MPL/GPL/LGPL but rather the old NPL/GPL pair. Could you update
> the file one more time using
> http://www.mozilla.org/MPL/boilerplate-1.1/mpl-tri-license-sh as template?
>
> Regards, Igor
2004-03-05 19:17:43 +00:00
igor%mir2.org
2cac059a8a
Resolving bug 236117 : new API to seal Context
2004-03-03 19:59:25 +00:00
igor%mir2.org
6a15c2b2bb
Resolving bug 236193: require enetered Context for compilation
2004-03-03 11:20:33 +00:00
igor%mir2.org
7cc3ebfd9c
Making javaToJS static to match the rest of API
2004-03-01 19:19:47 +00:00
igor%mir2.org
cf09991901
Fixing JavaDoc
2004-02-24 07:20:49 +00:00
igor%mir2.org
d02a51ad4c
Making NativeScript package private: if this will be controversial, then the public status can be restored
2004-02-24 07:19:56 +00:00
nboyd%atg.com
07d97e2bfb
Remove "pre" from a candidate build.
2004-02-18 17:28:40 +00:00
igor%mir2.org
765d9c1f9e
Preparations for 1.5R5
2004-02-18 12:24:27 +00:00
igor%mir2.org
b796a6fb8d
Preparations for 15R5 release.
2004-02-13 18:50:51 +00:00
igor%mir2.org
0bdc147fa8
Fixing NativeGlobal.encode: it was broken for chars beyond 0xFFFF as it sb.setLength(k) was called after k was increased to consume the second char from UTF-16 encoding to build UCS-4.
2004-02-12 19:05:47 +00:00
igor%mir2.org
52f8463b7d
Preparations for 1.5R5
2004-02-12 18:13:00 +00:00