igor%mir2.org
fbd31b0fe2
Cosmetics: removal of EOL blanks
2003-09-03 14:26:39 +00:00
igor%mir2.org
2956f5b69d
Work for http://bugzilla.mozilla.org/show_bug.cgi?id=213279 :
...
Code for NativeJavaPackage.TopLevelPackage is moved to a separated file NativeJavaTopPackage.java
2003-09-03 10:42:36 +00:00
brendan%mozilla.org
214fac7ac4
Fix js_FinishTakingSrcNotes edge-case (bug 216320, r=shaver, a=asa).
2003-09-03 02:10:38 +00:00
igor%mir2.org
6e967acb16
Fix from Merten Schumann to initialize lineNumber/sourceName in the constructor, see http://bugzilla.mozilla.org/show_bug.cgi?id=217584 .
2003-09-02 12:32:41 +00:00
igor%mir2.org
57f50e5f8d
Fixing http://bugzilla.mozilla.org/show_bug.cgi?id=214594 :
...
In IRFactory.createLoop propagate line number information to the condition subtree for "while" and "for" loops so exceptions generated in a loop condition would have proper line number.
2003-09-02 06:23:20 +00:00
igor%mir2.org
0b3c7a2041
Fix from Olivier Oeuillot to address http://bugzilla.mozilla.org/show_bug.cgi?id=212395 .
2003-09-01 13:32:33 +00:00
igor%mir2.org
1dadf61103
Fix from Ming-Yee Iu to address http://bugzilla.mozilla.org/show_bug.cgi?id=217951
2003-09-01 11:06:03 +00:00
igor%mir2.org
2aa340aba8
Fixing http://bugzilla.mozilla.org/show_bug.cgi?id=217379 :
...
The code in RegExpImpl.findReplen did not take into account that a particular
parenthesis pair can be null if it is not captured. The patch fixes that to
send undefined to the replace function for that case.
2003-09-01 09:05:52 +00:00
igor%mir2.org
6814bf31f0
Fix for DToA.JS_dtoa() to resolve http://bugzilla.mozilla.org/show_bug.cgi?id=217268
2003-08-31 19:42:58 +00:00
igor%mir2.org
46c31c6a73
Fixing http://bugzilla.mozilla.org/show_bug.cgi?id=217346 :
...
I changed DToA.JS_dtobasestr to use BigInteger for its integer part when it does not fit long.
2003-08-30 15:34:44 +00:00
igor%mir2.org
4936fa3877
Finalizing work on http://bugzilla.mozilla.org/show_bug.cgi?id=198086 :
...
Now optimizer generates exactly one class per script and all its functions.
2003-08-30 12:02:19 +00:00
igor%mir2.org
d1be8de8ca
Changing ScriptRuntime to return vois since it does not and should not change scope
2003-08-30 12:02:18 +00:00
igor%mir2.org
b8655920a5
More fixing for http://bugzilla.mozilla.org/show_bug.cgi?id=217584 :
...
Use Context.getSourcePositionFromStack in the EvaluatorException(String details) constructor to get line number information.
2003-08-30 11:59:15 +00:00
pkw%us.ibm.com
48c6e651e5
Bug 217499: Clean up AIX libpath and configure script
...
r=cls@seawood.org , a=asa@mozilla.org
2003-08-29 17:15:06 +00:00
igor%mir2.org
cd2ce4c17c
Cosmetics: removal end-of-line blanks
2003-08-29 15:28:08 +00:00
igor%mir2.org
965090841f
Fixing http://bugzilla.mozilla.org/show_bug.cgi?id=217584 :
...
Implementation of Merten Schumann suggestion to add to EvaluatorException and JavaScripException information about script source name and error line .
2003-08-29 13:19:37 +00:00
igor%mir2.org
37375e32cf
More work for http://bugzilla.mozilla.org/show_bug.cgi?id=198086 :
...
The patch changes omj.NativeScript to represent only instances of Script object
in scripts and removes its second role to server as a superclass for compiled
forms of JS scripts. In is not only allow to make optimizer to generate only
single class but also would make instances of Script generated by optimizer not
to depend on the scope. The later is essential for Script object reuse to
execute it against different scopes.
2003-08-29 10:42:23 +00:00
igor%mir2.org
3c9b841737
Working on http://bugzilla.mozilla.org/show_bug.cgi?id=198086 :
...
Now optimizer will generate only one class for all functions a script contains instead of class per function.
2003-08-28 12:40:10 +00:00
igor%mir2.org
89468875b8
Changing signature of addConstant from short to int and updating the code correspondingly to allow for constant indexes to exceed 32K since their type is unsigned short, not short and int allows to cover that while removing casts.
2003-08-28 12:29:01 +00:00
igor%mir2.org
6dd4d70e56
1. Removal of NativeScript.initScript which was empty and was never overridden by script function implementations.
...
2. Using in NativeScript.compile Context.compileString instead of compileReader to avoid unnecessary construction of StringReader.
3. Overriding NativeFunction.getEncodedSource() in NativeScript to call this method on the delegated script object so decompilation of scripts constructed via script.compile would work.
2003-08-27 11:53:01 +00:00
igor%mir2.org
18456e5ca1
NativeFunction.decompile abd NativeFunction.initScriptFunction are final since script function implementations should not override them.
2003-08-27 11:47:19 +00:00
igor%mir2.org
894383d75f
New form of markTableSwitchCase that allows to mark a switch case jump target and adjust stack top.
2003-08-27 11:44:46 +00:00
igor%mir2.org
51bf324448
Added NativeFunction.initScriptFunction to initialize NativeFunction.argNames, NativeFunction.version and its usage in InterpretedFunction/InterpretedScript.
...
It will allow to make the protected fields in NativeFunction private when the optimizer will be updated to use the new function.
2003-08-26 18:06:10 +00:00
igor%mir2.org
2709c61a4d
Using ScriptRuntime.emptyStrings to return emoty var array
2003-08-26 15:45:16 +00:00
igor%mir2.org
cb46fe1b41
Added public static final String[] emptyStrings to denote zero-length string array
2003-08-26 15:45:15 +00:00
igor%mir2.org
7d0e681b6a
Fixing http://bugzilla.mozilla.org/show_bug.cgi?id=217257 :
...
Patch from Larry Blair to fix decodeURIComponent()
2003-08-26 15:45:14 +00:00
igor%mir2.org
f9b335bf06
Making createObject public so optimizer implementation can access it outside BaseFunction subclass
2003-08-26 15:45:13 +00:00
igor%mir2.org
856b7cabb4
1. Support for generation tableswitch code
...
2. Utility method addLoadThis() as an alias for add(ByteCode.ALOAD_0)
2003-08-26 15:43:11 +00:00
igor%mir2.org
a803853242
Fixing line-table initialization issue: set itsLineNumberTableTop to 0 at the end of stopMethod so generation of multiple methods with source line information would work.
2003-08-22 09:10:14 +00:00
caillon%returnzero.com
f8e8aed8a7
Backing out the patch to bug 83536.
...
I will reland this when 1.6a re-opens.
r+sr=jst@netscape.com
a=chofmann
2003-08-22 03:06:53 +00:00
igor%mir2.org
9983fdb0e8
Cosmetics: removal of end-of-line blanks
2003-08-20 11:11:00 +00:00
igor%mir2.org
9be83bb44c
Splitting Codegen into 2 Codegen and BodyCodegen where the second class contains code to generate butecode for the body of script.
2003-08-20 10:52:54 +00:00
igor%mir2.org
b6c1d3644c
1. Codegen.classNameToSignature is removed and call to the methods are replaced by cfw.classNameToSignature.
...
2. Calls to ClassFileWriter.fullyQualifiedForm are removed since all ClassFileWriter API accepts both dotted and slashed forms of Java class names.
3. Few identation fixes
2003-08-20 07:36:33 +00:00
igor%mir2.org
43cbf72f08
1. Added ClassFileWriter.classNameToSignature to convert Java class name into JVM signature.
...
2. The public method getFullyQualifieedForm that was used to replace . to / is removed since all classname API accepts both form of class names and convertion to the internal /-form can be done in ClassFileWriter in a more efficient way.
2003-08-20 07:32:48 +00:00
pschwartau%netscape.com
60a8469472
Correcting a typo.
2003-08-19 16:45:03 +00:00
pschwartau%netscape.com
19674c814c
Initial add. Regression test for bug 216591.
2003-08-19 16:36:54 +00:00
igor%mir2.org
040923febc
More renames and preparations for code split.
2003-08-19 15:37:50 +00:00
igor%mir2.org
32e0764d1c
More preparations for separating code to generate main script method and the rest of methods.
2003-08-19 13:19:57 +00:00
igor%mir2.org
bd2594e6eb
1. Renaming Codegen.classFile to Codegen.cfw and removal of methods like push/load/store in favour of directly calling ClassFileMethods.
...
2. Move all code related to generating of prologue for main function implementation to Codegen.generatePrologue.
In this way the following patch to split Codegen into 2 classes to factor away all generation code for the main function will look smaller.
2003-08-19 08:21:36 +00:00
igor%mir2.org
810aa53fd8
Renaming [ilfda]load/store into add[ILFDA]Load/Store for consistency and moving package-private functions from ByteCode to ClassFileWriter so JVM does not need to load ByteCode since it includes only constants.
2003-08-19 08:15:33 +00:00
igor%mir2.org
ed64a67527
Replace few usages of Node.cloneNode by a more explicit code to create a fesh childless node copy.
2003-08-18 14:27:51 +00:00
igor%mir2.org
abefa99b1e
Using simple Token.<op> instead of (Token.EQOP, Token.<op>) to denote parser nodes for equality operations. It allowed to remove sharing of Node.intValue to mean line number and operation type so it was renamed to Node.lineno.
2003-08-18 11:53:00 +00:00
igor%mir2.org
5f6517906c
Added store/load function to shortcut add(ByteCode.x, i)
2003-08-18 11:49:39 +00:00
igor%mir2.org
041149139b
Using simple Token.<op> instead of (Token.RELOP, Token.<op>) to denote parser nodes for relational operation.
2003-08-18 09:55:19 +00:00
igor%mir2.org
5be8c599eb
Move code to classify binary and relation operation tokens to IRFactory so parser does not need to know about details of tree implementation.
2003-08-18 08:05:06 +00:00
igor%mir2.org
0ee771b8c2
Changing order of parameters in ScriptRuntime.instanceOf to match order in ScriptRuntime.in to use simpler code in optimizer.
2003-08-18 08:00:55 +00:00
igor%mir2.org
7c70d93492
Removal of unnecessary instanceOf: Scriptable does not have such method and Undefined does not need to override it.
2003-08-18 07:57:40 +00:00
cls%seawood.org
1b51ba858c
Set MODULE in makefiles at the top of a heirarchy so that module-deps lists are more precise and builds will have the proper order if some subdirs contain other modules.
2003-08-16 00:42:35 +00:00
igor%mir2.org
fe402a8124
Make all convertions from == to === to support JavaScript 1.2 to single place in Parser
2003-08-15 16:48:56 +00:00
igor%mir2.org
b96ac683c8
Added explicit IRFactory.createIncDec to create ++/-- subtree which removed need to have Token.PRE/Token.POST.
2003-08-15 11:19:47 +00:00