mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-06 00:10:25 +00:00
e4294421c9
in fields of the object itself instead of using the standard property hashtable in ScriptableObject.java. This saves 3 object instances per NativeError (2 slot entries and hashtable array itself) and given the fact that NativeGlobal defines a few permanent Error instances, it is visible saving even after taking into account code size increase. The change also gives a good test of IdScriptable implementation. ----- This patch introduces the uniform decompile method for NativeFunction and IdFunction with the signature: public String decompile(Context cx, int indent, boolean justbody) instead of NativeFunction.decompile(int indent, boolean toplevel, boolean justbody) and IdScriptable.toStringForScript(Context cx) and replaces the special treatment of NativeJavaMethod in NativeFunction.jsFunction_toString by overriding decompile in NativeJavaMethod ----- This patch adds getFunctionName to NativeFunction to return function name and replaces few places with jsGet_name usage by getFunctionName The patch was made via diff -ru javascript.0 javascript > name_patch from org/mozilla directory |
||
---|---|---|
.. | ||
benchmarks | ||
js2 | ||
jsd | ||
jsdj | ||
jsj | ||
macbuild | ||
ref | ||
rhino | ||
semantics | ||
src | ||
tests | ||
.cvsignore | ||
landbranch.pl | ||
Makefile.in | ||
makefile.win |