igor%mir2.org
a06c84f791
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
5a691b58fa
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
c39f4108d7
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
8231a39a23
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
2957c844ca
Layout cosmetics
2004-04-18 16:26:32 +00:00
igor%mir2.org
97dc2f98e4
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
b9219ca745
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
d6576c5892
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
d62ad77af5
Work on bug 238649: no more support for ClassNameHelper and friends
2004-04-18 12:15:07 +00:00
igor%mir2.org
b71427a6ae
Worj on bug 238649: removal of NotAFunctionException
2004-04-18 09:30:30 +00:00
igor%mir2.org
534c7d51d6
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
81470d5283
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
cb3ccb29b3
Layout cosmetics
2004-04-14 14:46:58 +00:00
igor%mir2.org
153f7be2a2
Support for Date.now()
2004-04-14 11:04:55 +00:00
igor%mir2.org
c685edc692
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
701ea21521
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
eef0796b8a
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
021b376688
Fixing bug 239068: proper initialization of parent scope for functions of constructors.
2004-03-29 15:15:34 +00:00
igor%mir2.org
3a93fa2e8e
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
ba8f69355a
Cosmetics: layout fixes
2004-03-29 12:30:24 +00:00
igor%mir2.org
dfdd5ab46c
Starting 1.5R5.1 development
2004-03-29 12:29:11 +00:00
igor%mir2.org
40db418d07
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
e229fd6ab4
Better formating
2004-03-26 13:01:17 +00:00
igor%mir2.org
78ec796300
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
0292a753a1
Explicit date in Context.getImplementationVersion() for 1.5R5 release
2004-03-25 20:37:32 +00:00
igor%mir2.org
1aafe09612
Reflecting 1.5R5 release
2004-03-25 19:45:56 +00:00
igor%mir2.org
cbce2b4745
Starting 1.5R6
2004-03-25 17:58:03 +00:00
igor%mir2.org
420074b3a1
Removal of macbuild support: its Mac OS X time after all
2004-03-25 17:39:21 +00:00
igor%mir2.org
afe5a6cd9d
Info about commercial support
2004-03-25 15:46:40 +00:00
igor%mir2.org
abf0a3a1ac
*** empty log message ***
2004-03-25 11:04:04 +00:00
igor%mir2.org
37c396db64
Preparations for 1.5R5
2004-03-24 15:52:55 +00:00
igor%mir2.org
533e9f8489
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
ae3df9d02a
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
76316f18dd
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
f4ff06f911
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
0cbfdabe29
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
f040fa2436
Added RUnit Software
2004-03-17 18:36:57 +00:00
igor%mir2.org
46abef99b9
Fixing bug 237771 : allow to transfer toSource implementation to different objects
2004-03-17 18:36:39 +00:00
igor%mir2.org
6b70acca26
Documenting new Context seal API and fixing obvious English mistakes.
2004-03-09 23:34:30 +00:00
igor%mir2.org
ecfd54c02f
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
5586a28481
Resolving bug 236117 : new API to seal Context
2004-03-03 19:59:25 +00:00
igor%mir2.org
58db1d9fd5
Resolving bug 236193: require enetered Context for compilation
2004-03-03 11:20:33 +00:00
igor%mir2.org
e0a2c2536d
Making javaToJS static to match the rest of API
2004-03-01 19:19:47 +00:00
igor%mir2.org
40f5e70cee
Fixing JavaDoc
2004-02-24 07:20:49 +00:00
igor%mir2.org
a3d001e0e8
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
98a70b8580
Remove "pre" from a candidate build.
2004-02-18 17:28:40 +00:00
igor%mir2.org
4b836891b2
Preparations for 1.5R5
2004-02-18 12:24:27 +00:00
igor%mir2.org
8f085f363e
Preparations for 15R5 release.
2004-02-13 18:50:51 +00:00
igor%mir2.org
adeccbc67c
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
1e3f7aaaed
Preparations for 1.5R5
2004-02-12 18:13:00 +00:00