brendan%mozilla.org
764e5da258
Skip enumeration of properties deleted after for..in begins (261887, r=shaver).
2004-10-01 21:58:15 +00:00
brendan%mozilla.org
cf0a841dad
ECMA conformance fix: evaluate rvalue delete operands that might have side effects (261886, r=shaver).
2004-10-01 21:51:49 +00:00
igor%mir2.org
2208dc8f95
RUnit Software AS as the single owner of copyrights for the following list of files present in Mozilla CVS as of 2004-10-01 15:10 UTC changes the license of the files to NPL/GPL. This is done for consistency with the rest of the source code in Rhino.
...
List of the affected files:
mozilla/js/rhino/src/org/mozilla/javascript/Callable.java
mozilla/js/rhino/src/org/mozilla/javascript/ClassCache.java
mozilla/js/rhino/src/org/mozilla/javascript/CompilerEnvirons.java
mozilla/js/rhino/src/org/mozilla/javascript/ContextAction.java
mozilla/js/rhino/src/org/mozilla/javascript/ContextFactory.java
mozilla/js/rhino/src/org/mozilla/javascript/Kit.java
mozilla/js/rhino/src/org/mozilla/javascript/Reference.java
mozilla/js/rhino/src/org/mozilla/javascript/SpecialRef.java
mozilla/js/rhino/toolsrc/org/mozilla/javascript/tools/debugger/GuiCallback.java
mozilla/js/rhino/toolsrc/org/mozilla/javascript/tools/debugger/test.js
mozilla/js/rhino/xmlimplsrc/org/mozilla/javascript/xmlimpl/XMLReference.java
Please contact igor@runitsoft.com if you have any questions about this.
2004-10-01 15:11:01 +00:00
igor%mir2.org
3aaa416d55
Fixing bug 262447: bad implementation of trying-hard-to-avoid-map-allocation idea in ScriptableObject.getPropertyIds
2004-10-01 14:59:45 +00:00
igor%mir2.org
59af2f367b
More Reference clenups: Reference.delete now returns boolean to follow JS semantic clother and Reference implementation for __proto__|__parent__ is moved to a separated file SpecialRef.
2004-10-01 13:32:14 +00:00
peterv%propagandism.org
5009ca4eb7
Fix for bug 110263 (static const NS_NAMED_LITERAL_STRING is not thread safe). Patch by dbradley, r=darin, sr=jst.
2004-10-01 09:08:15 +00:00
igor%mir2.org
e048fa7512
Replacing calls to XMLLib to construct special name objects to represent qulified names, attributes and descendants by calls to object to get Reference based on name type. It allowed to implement proper namespace resolution in qulified name without forcing activation creation and simplified code.
...
In addition XMLName is no longer leaked to interpretation stack which would allow to remove unnecessary casts to XMLName in future.
2004-09-30 22:52:40 +00:00
igor%mir2.org
9f63611ce1
1. Reference cleanup:
...
Signatures in Reference are changed to include Context and reference-related methods in ScriptRuntime accept/return explicit Reference type instead of generic Object as code generation ensure proper type.
2. x..y use explicit reference instead of special descendants mark XMLName:
In this way less code is necessary to support x..y operations and support for .. in non-xml objects is possible.
2004-09-29 20:58:16 +00:00
igor%mir2.org
fa2d593b85
Transform name access to var access only if function does not require activation: previously the tests missed the check for .() that caused activation to be created.
2004-09-29 20:49:05 +00:00
igor%mir2.org
5421cfce46
Define var and arguments as PERMANENT properties as required by ECMA.
2004-09-29 19:04:47 +00:00
igor%mir2.org
dfa85f90dd
1. I fixed a recent regression that caused "arguments" array to be constructed before initialization of standard objects: Global.init() should be called in procesFiles as well.
...
2. I replaced a couple of anonymous classes implementing ContextAction by Use single IProxy class to shrink compiled code size.
2004-09-29 05:41:00 +00:00
igor%mir2.org
31962091d1
Store optimization level and language version in ShellContextFactory
...
so all Context instances created on other threads or from JavaAdapter
calls would have proper setup.
2004-09-28 21:58:01 +00:00
igor%mir2.org
1f3b183f24
1. Pass Context argument to XMLReference creation method to use it later
...
to check for strict mode.
2. Fix name lokup bug in XMLReference that caused in cases like
foo.(@bar == 'something') to throw runtime exception if bar attribute
does not exist in foo.
2004-09-28 21:56:33 +00:00
igor%mir2.org
835fe30439
I added methods to check for valid version and optimization levels that
...
Rhino embeddings can use to check the validity of data.
2004-09-28 21:52:19 +00:00
igor%mir2.org
e394b15872
NotAFuctionException is not deprecated for now
2004-09-28 07:20:27 +00:00
igor%mir2.org
8650308ed6
*** empty log message ***
2004-09-27 23:24:27 +00:00
igor%mir2.org
81746e1776
Use Context.emptyArgs, not null to denote null-arity method call for consistency.
2004-09-27 20:48:44 +00:00
igor%mir2.org
e75e7213d3
In ScriptableObject.callMethod use object itself as possible top scope source for to support of dynamic scoping.
2004-09-27 12:08:24 +00:00
igor%mir2.org
2490dd1652
Removal of OptLocalVariable: the class is replaced by varRegisters array in Codegen and numberVarFlags in OptFunctionNode. The later is initilized only when optimizer deduces that there are variables used in pure number context.
2004-09-27 12:04:52 +00:00
igor%mir2.org
9ca481e40b
Replace explicit parse tree walk to associate OptLocalVariable with tree nodes by lazy initialization of the association on first OptLocalVariable access. It shrinks code while making optimization to run slightly faster.
2004-09-27 09:33:50 +00:00
igor%mir2.org
1284815da8
Updating links to xmlbeans home and refer to xbean.jar, not xmlbeans.jar in the documentation.
2004-09-26 22:35:29 +00:00
igor%mir2.org
f2e4f3318c
I added ScriptRuntime.setObjectProtoAndParent to initialize prototype and parent of objects created outside the standard constructor calls. It allowed to replace scattered setPrototype/setParentScope and shrink code size.
2004-09-26 14:36:01 +00:00
igor%mir2.org
9cd57f1550
Avoid duplicated getMessage* code in ScriptRuntime and Context: now all the necessary code is moved to ScriptRuntime and the rest of code is updated to call ScriptRuntime
2004-09-25 18:11:44 +00:00
igor%mir2.org
924295d56c
Better compatibility of continuation implementation with the version from cocoondev.org: use current top call scope as scope for Continuation, not library scope.
2004-09-25 10:34:05 +00:00
igor%mir2.org
33b74641f5
For compatibility allow jsFunction_* to return non-scriptable type. Not to
...
perform type conversion checks for methods that do return proper JS type the
type check is done only once in the constructor and if necessary a flag is set
to call WrapFaactory.wrap on method return.
2004-09-25 09:24:43 +00:00
igor%mir2.org
744bc2b079
Allow to specify explicit ContextFactory with the debugger.
2004-09-24 20:35:42 +00:00
igor%mir2.org
9c900143cf
Make sure that all functionality that Main.(main|mainEmbedded) use to initialize debug GUI is available for applications through public methods.
2004-09-24 16:46:50 +00:00
igor%mir2.org
243ce99e7c
More compatibility changes: added Main.isVisible
2004-09-24 16:38:09 +00:00
igor%mir2.org
b8bfe43a65
Move getObjectIndex/setObjectIndex that take double as index from optimizer/OptRuntime to ScriptRuntime and use it in the Interpreter to avoid code duplication.
2004-09-24 16:27:27 +00:00
igor%mir2.org
3f3a80499c
Revert wrong commit of build.properties with temporary changes
2004-09-24 16:19:26 +00:00
igor%mir2.org
7523c5c791
Added few methods to redirect calls from main to DebugGui for compatibility.
2004-09-24 16:14:02 +00:00
igor%mir2.org
4a1d88a604
Use single function, Kit.xDigitToInt, to convert character representing hex digit to number. The function replaces duplicated code in TokenStream/NativeGlobal/NativeRegExp.
2004-09-24 13:14:01 +00:00
igor%mir2.org
511eb6c0fc
Code reorganisation to shrink the size of JVM class files.
2004-09-24 13:11:02 +00:00
brendan%mozilla.org
bfe57c6297
Undo last change, it broke ports and is not strictly speaking part of the fix for bug 253241.
2004-09-24 03:31:15 +00:00
brendan%mozilla.org
21e7fbb4fd
Home sp always before calling js_ConcatStrings (261321, r/a=me).
2004-09-24 02:16:49 +00:00
brendan%mozilla.org
763d651165
Check in patch from Nicholas Miell <nmiell@comcast.net> for bug 253241 (r=shaver, a=asa).
2004-09-23 23:32:51 +00:00
igor%mir2.org
49a53cd5e9
Resolving bug 261278: strict mode implementation
2004-09-23 21:34:22 +00:00
igor%mir2.org
81fcf9bcdf
Preparations for RC2 for 1.6R1
2004-09-22 10:59:39 +00:00
igor%mir2.org
ea6f7ae6b8
Added some information about experimental support for continuations
2004-09-22 10:43:52 +00:00
igor%mir2.org
21f0e29bbd
1. Extend index and offset jump limits to 2^16 - 1 from 2^15 - 1 using unsigned indexes.
...
2. Use linked list of read-only REPogState to implement state stack instead of array of struct. It fixes bug 258417 while making creation of back track stack data much cheaper since there is no need to copy read-only structures.
2004-09-22 09:48:17 +00:00
igor%mir2.org
bfc17d4124
In NativeRegExp.executeREBytecode I moved code to manipulate regexp program
...
stack to separated pushProgStack|popProgStack methods to localize changes to
for the following patch to use linked list for state stack.
2004-09-21 18:38:46 +00:00
igor%mir2.org
86848a99b8
I merged REMatchState into REGlobalData and replaced all REMatchState usages as function return type by boolean. It simplified matching code while reducing code bloat.
2004-09-21 15:00:43 +00:00
brendan%mozilla.org
b52b04ab35
Avoid recursive death in exn_toString (260541, r=shaver).
2004-09-21 01:18:00 +00:00
brendan%mozilla.org
c57499697a
Make JSOP_SET{PROP,ELEM} be detecting (259935, r=shaver).
2004-09-21 00:25:46 +00:00
igor%mir2.org
cc4eeda146
1. Use direct reference to backTraceStack top to save/restore backTraceStack reference when matching REOP_ASSERT/REOP_ASSERT_NOT
...
2. Coalesce duplicated code in NativeRegExp.executeREBytecode
2004-09-20 22:44:51 +00:00
igor%mir2.org
ed81e19108
Resolving bug 258844: implementation of continuation support for Rhino interpret
...
er inspired by Christopher Oliver work for custom Rhino version for cocoon.apach
e.org.
2004-09-16 19:04:34 +00:00
igor%mir2.org
c4916822f7
Resolving bug 258844: implementation of continuation support for Rhino interpreter inspired by Christopher Oliver work for custom Rhino version for cocoon.apache.org.
2004-09-16 18:27:42 +00:00
igor%mir2.org
12828edc5e
Replacing back track array in RegExp matching code by linked list to address bug 258419.
2004-09-16 17:30:01 +00:00
igor%mir2.org
a30abea90c
1. Using explicit ShellContextFactory in shell to avoid interference from changes in global ContextFactory.
...
2. Initializing global scope before the first execution to allow to customize ShellContextFactory before calls to Context.initStandardObjects()
2004-09-15 16:00:30 +00:00
igor%mir2.org
91f7a07a68
1. Call contextData.pushFrame(this) from StackFrame.onEnter and not from StackFrame.constructor to allow multiple invocations of enter/exit per single debug frame. The continuation support will use it.
...
2. Expand tabs
2004-09-15 14:59:36 +00:00