[javascriptlint-commit] SF.net SVN: javascriptlint: [143] vendorsrc/Mozilla.org/js/current
Status: Beta
Brought to you by:
matthiasmiller
|
From: <mat...@us...> - 2008-03-01 17:04:27
|
Revision: 143
http://javascriptlint.svn.sourceforge.net/javascriptlint/?rev=143&view=rev
Author: matthiasmiller
Date: 2008-03-01 09:04:20 -0800 (Sat, 01 Mar 2008)
Log Message:
-----------
Load js-1.7.0 into vendorsrc/Mozilla.org/js/current.
Modified Paths:
--------------
vendorsrc/Mozilla.org/js/current/src/jsapi.c
vendorsrc/Mozilla.org/js/current/src/jsarray.c
vendorsrc/Mozilla.org/js/current/src/jsemit.c
vendorsrc/Mozilla.org/js/current/src/jsgc.c
vendorsrc/Mozilla.org/js/current/src/jsobj.c
vendorsrc/Mozilla.org/js/current/src/jsopcode.c
vendorsrc/Mozilla.org/js/current/src/jsscript.c
vendorsrc/Mozilla.org/js/current/src/jsxdrapi.h
Added Paths:
-----------
vendorsrc/Mozilla.org/js/current/README
vendorsrc/Mozilla.org/js/current/jsd/
vendorsrc/Mozilla.org/js/current/jsd/.cvsignore
vendorsrc/Mozilla.org/js/current/jsd/CVS/
vendorsrc/Mozilla.org/js/current/jsd/CVS/Entries
vendorsrc/Mozilla.org/js/current/jsd/CVS/Entries.Log
vendorsrc/Mozilla.org/js/current/jsd/CVS/Repository
vendorsrc/Mozilla.org/js/current/jsd/CVS/Root
vendorsrc/Mozilla.org/js/current/jsd/CVS/Tag
vendorsrc/Mozilla.org/js/current/jsd/Makefile.in
vendorsrc/Mozilla.org/js/current/jsd/README
vendorsrc/Mozilla.org/js/current/jsd/idl/
vendorsrc/Mozilla.org/js/current/jsd/idl/.cvsignore
vendorsrc/Mozilla.org/js/current/jsd/idl/CVS/
vendorsrc/Mozilla.org/js/current/jsd/idl/CVS/Entries
vendorsrc/Mozilla.org/js/current/jsd/idl/CVS/Repository
vendorsrc/Mozilla.org/js/current/jsd/idl/CVS/Root
vendorsrc/Mozilla.org/js/current/jsd/idl/CVS/Tag
vendorsrc/Mozilla.org/js/current/jsd/idl/Makefile.in
vendorsrc/Mozilla.org/js/current/jsd/idl/jsdIDebuggerService.idl
vendorsrc/Mozilla.org/js/current/jsd/jsd.h
vendorsrc/Mozilla.org/js/current/jsd/jsd.mak
vendorsrc/Mozilla.org/js/current/jsd/jsd.pkg
vendorsrc/Mozilla.org/js/current/jsd/jsd1640.def
vendorsrc/Mozilla.org/js/current/jsd/jsd1640.rc
vendorsrc/Mozilla.org/js/current/jsd/jsd3240.rc
vendorsrc/Mozilla.org/js/current/jsd/jsd_atom.c
vendorsrc/Mozilla.org/js/current/jsd/jsd_high.c
vendorsrc/Mozilla.org/js/current/jsd/jsd_hook.c
vendorsrc/Mozilla.org/js/current/jsd/jsd_java.c
vendorsrc/Mozilla.org/js/current/jsd/jsd_lock.c
vendorsrc/Mozilla.org/js/current/jsd/jsd_lock.h
vendorsrc/Mozilla.org/js/current/jsd/jsd_obj.c
vendorsrc/Mozilla.org/js/current/jsd/jsd_scpt.c
vendorsrc/Mozilla.org/js/current/jsd/jsd_stak.c
vendorsrc/Mozilla.org/js/current/jsd/jsd_step.c
vendorsrc/Mozilla.org/js/current/jsd/jsd_text.c
vendorsrc/Mozilla.org/js/current/jsd/jsd_val.c
vendorsrc/Mozilla.org/js/current/jsd/jsd_xpc.cpp
vendorsrc/Mozilla.org/js/current/jsd/jsd_xpc.h
vendorsrc/Mozilla.org/js/current/jsd/jsdebug.c
vendorsrc/Mozilla.org/js/current/jsd/jsdebug.h
vendorsrc/Mozilla.org/js/current/jsd/jsdshell.mak
vendorsrc/Mozilla.org/js/current/jsd/jsdstubs.c
vendorsrc/Mozilla.org/js/current/jsd/mkshell.bat
vendorsrc/Mozilla.org/js/current/jsd/resource.h
vendorsrc/Mozilla.org/js/current/src/CVS/
vendorsrc/Mozilla.org/js/current/src/CVS/Entries
vendorsrc/Mozilla.org/js/current/src/CVS/Repository
vendorsrc/Mozilla.org/js/current/src/CVS/Root
vendorsrc/Mozilla.org/js/current/src/CVS/Tag
vendorsrc/Mozilla.org/js/current/src/config/CVS/
vendorsrc/Mozilla.org/js/current/src/config/CVS/Entries
vendorsrc/Mozilla.org/js/current/src/config/CVS/Repository
vendorsrc/Mozilla.org/js/current/src/config/CVS/Root
vendorsrc/Mozilla.org/js/current/src/config/CVS/Tag
vendorsrc/Mozilla.org/js/current/src/editline/CVS/
vendorsrc/Mozilla.org/js/current/src/editline/CVS/Entries
vendorsrc/Mozilla.org/js/current/src/editline/CVS/Repository
vendorsrc/Mozilla.org/js/current/src/editline/CVS/Root
vendorsrc/Mozilla.org/js/current/src/editline/CVS/Tag
vendorsrc/Mozilla.org/js/current/src/fdlibm/CVS/
vendorsrc/Mozilla.org/js/current/src/fdlibm/CVS/Entries
vendorsrc/Mozilla.org/js/current/src/fdlibm/CVS/Repository
vendorsrc/Mozilla.org/js/current/src/fdlibm/CVS/Root
vendorsrc/Mozilla.org/js/current/src/fdlibm/CVS/Tag
vendorsrc/Mozilla.org/js/current/src/liveconnect/
vendorsrc/Mozilla.org/js/current/src/liveconnect/.cvsignore
vendorsrc/Mozilla.org/js/current/src/liveconnect/CVS/
vendorsrc/Mozilla.org/js/current/src/liveconnect/CVS/Entries
vendorsrc/Mozilla.org/js/current/src/liveconnect/CVS/Repository
vendorsrc/Mozilla.org/js/current/src/liveconnect/CVS/Root
vendorsrc/Mozilla.org/js/current/src/liveconnect/CVS/Tag
vendorsrc/Mozilla.org/js/current/src/liveconnect/LiveConnect.dsp
vendorsrc/Mozilla.org/js/current/src/liveconnect/LiveConnectShell.dsp
vendorsrc/Mozilla.org/js/current/src/liveconnect/LiveConnectShell.dsw
vendorsrc/Mozilla.org/js/current/src/liveconnect/Makefile.in
vendorsrc/Mozilla.org/js/current/src/liveconnect/Makefile.ref
vendorsrc/Mozilla.org/js/current/src/liveconnect/README.html
vendorsrc/Mozilla.org/js/current/src/liveconnect/_jni/
vendorsrc/Mozilla.org/js/current/src/liveconnect/_jni/CVS/
vendorsrc/Mozilla.org/js/current/src/liveconnect/_jni/CVS/Entries
vendorsrc/Mozilla.org/js/current/src/liveconnect/_jni/CVS/Repository
vendorsrc/Mozilla.org/js/current/src/liveconnect/_jni/CVS/Root
vendorsrc/Mozilla.org/js/current/src/liveconnect/_jni/CVS/Tag
vendorsrc/Mozilla.org/js/current/src/liveconnect/_jni/netscape_javascript_JSException.h
vendorsrc/Mozilla.org/js/current/src/liveconnect/_jni/netscape_javascript_JSObject.h
vendorsrc/Mozilla.org/js/current/src/liveconnect/classes/
vendorsrc/Mozilla.org/js/current/src/liveconnect/classes/.cvsignore
vendorsrc/Mozilla.org/js/current/src/liveconnect/classes/CVS/
vendorsrc/Mozilla.org/js/current/src/liveconnect/classes/CVS/Entries
vendorsrc/Mozilla.org/js/current/src/liveconnect/classes/CVS/Repository
vendorsrc/Mozilla.org/js/current/src/liveconnect/classes/CVS/Root
vendorsrc/Mozilla.org/js/current/src/liveconnect/classes/CVS/Tag
vendorsrc/Mozilla.org/js/current/src/liveconnect/classes/Makefile.in
vendorsrc/Mozilla.org/js/current/src/liveconnect/classes/Makefile.ref
vendorsrc/Mozilla.org/js/current/src/liveconnect/classes/netscape/
vendorsrc/Mozilla.org/js/current/src/liveconnect/classes/netscape/CVS/
vendorsrc/Mozilla.org/js/current/src/liveconnect/classes/netscape/CVS/Entries
vendorsrc/Mozilla.org/js/current/src/liveconnect/classes/netscape/CVS/Repository
vendorsrc/Mozilla.org/js/current/src/liveconnect/classes/netscape/CVS/Root
vendorsrc/Mozilla.org/js/current/src/liveconnect/classes/netscape/CVS/Tag
vendorsrc/Mozilla.org/js/current/src/liveconnect/classes/netscape/Makefile.ref
vendorsrc/Mozilla.org/js/current/src/liveconnect/classes/netscape/javascript/
vendorsrc/Mozilla.org/js/current/src/liveconnect/classes/netscape/javascript/CVS/
vendorsrc/Mozilla.org/js/current/src/liveconnect/classes/netscape/javascript/CVS/Entries
vendorsrc/Mozilla.org/js/current/src/liveconnect/classes/netscape/javascript/CVS/Repository
vendorsrc/Mozilla.org/js/current/src/liveconnect/classes/netscape/javascript/CVS/Root
vendorsrc/Mozilla.org/js/current/src/liveconnect/classes/netscape/javascript/CVS/Tag
vendorsrc/Mozilla.org/js/current/src/liveconnect/classes/netscape/javascript/JSException.java
vendorsrc/Mozilla.org/js/current/src/liveconnect/classes/netscape/javascript/JSObject.java
vendorsrc/Mozilla.org/js/current/src/liveconnect/classes/netscape/javascript/JSProxy.java
vendorsrc/Mozilla.org/js/current/src/liveconnect/classes/netscape/javascript/JSRunnable.java
vendorsrc/Mozilla.org/js/current/src/liveconnect/classes/netscape/javascript/JSUtil.java
vendorsrc/Mozilla.org/js/current/src/liveconnect/classes/netscape/javascript/Makefile.ref
vendorsrc/Mozilla.org/js/current/src/liveconnect/config/
vendorsrc/Mozilla.org/js/current/src/liveconnect/config/AIX4.1.mk
vendorsrc/Mozilla.org/js/current/src/liveconnect/config/AIX4.2.mk
vendorsrc/Mozilla.org/js/current/src/liveconnect/config/AIX4.3.mk
vendorsrc/Mozilla.org/js/current/src/liveconnect/config/CVS/
vendorsrc/Mozilla.org/js/current/src/liveconnect/config/CVS/Entries
vendorsrc/Mozilla.org/js/current/src/liveconnect/config/CVS/Repository
vendorsrc/Mozilla.org/js/current/src/liveconnect/config/CVS/Root
vendorsrc/Mozilla.org/js/current/src/liveconnect/config/CVS/Tag
vendorsrc/Mozilla.org/js/current/src/liveconnect/config/HP-UXB.10.10.mk
vendorsrc/Mozilla.org/js/current/src/liveconnect/config/HP-UXB.10.20.mk
vendorsrc/Mozilla.org/js/current/src/liveconnect/config/HP-UXB.11.00.mk
vendorsrc/Mozilla.org/js/current/src/liveconnect/config/IRIX6.2.mk
vendorsrc/Mozilla.org/js/current/src/liveconnect/config/IRIX6.3.mk
vendorsrc/Mozilla.org/js/current/src/liveconnect/config/IRIX6.5.mk
vendorsrc/Mozilla.org/js/current/src/liveconnect/config/Linux_All.mk
vendorsrc/Mozilla.org/js/current/src/liveconnect/config/OSF1V4.0.mk
vendorsrc/Mozilla.org/js/current/src/liveconnect/config/OSF1V5.0.mk
vendorsrc/Mozilla.org/js/current/src/liveconnect/config/SunOS5.5.1.mk
vendorsrc/Mozilla.org/js/current/src/liveconnect/config/SunOS5.6.mk
vendorsrc/Mozilla.org/js/current/src/liveconnect/config/SunOS5.7.mk
vendorsrc/Mozilla.org/js/current/src/liveconnect/config/SunOS5.8.mk
vendorsrc/Mozilla.org/js/current/src/liveconnect/config/WINNT4.0.mk
vendorsrc/Mozilla.org/js/current/src/liveconnect/jsj.c
vendorsrc/Mozilla.org/js/current/src/liveconnect/jsj.msg
vendorsrc/Mozilla.org/js/current/src/liveconnect/jsj_JSObject.c
vendorsrc/Mozilla.org/js/current/src/liveconnect/jsj_JavaArray.c
vendorsrc/Mozilla.org/js/current/src/liveconnect/jsj_JavaClass.c
vendorsrc/Mozilla.org/js/current/src/liveconnect/jsj_JavaMember.c
vendorsrc/Mozilla.org/js/current/src/liveconnect/jsj_JavaObject.c
vendorsrc/Mozilla.org/js/current/src/liveconnect/jsj_JavaPackage.c
vendorsrc/Mozilla.org/js/current/src/liveconnect/jsj_array.c
vendorsrc/Mozilla.org/js/current/src/liveconnect/jsj_class.c
vendorsrc/Mozilla.org/js/current/src/liveconnect/jsj_convert.c
vendorsrc/Mozilla.org/js/current/src/liveconnect/jsj_field.c
vendorsrc/Mozilla.org/js/current/src/liveconnect/jsj_hash.c
vendorsrc/Mozilla.org/js/current/src/liveconnect/jsj_hash.h
vendorsrc/Mozilla.org/js/current/src/liveconnect/jsj_method.c
vendorsrc/Mozilla.org/js/current/src/liveconnect/jsj_nodl.c
vendorsrc/Mozilla.org/js/current/src/liveconnect/jsj_private.h
vendorsrc/Mozilla.org/js/current/src/liveconnect/jsj_simpleapi.c
vendorsrc/Mozilla.org/js/current/src/liveconnect/jsj_utils.c
vendorsrc/Mozilla.org/js/current/src/liveconnect/jsjava.h
vendorsrc/Mozilla.org/js/current/src/liveconnect/liveconnect.pkg
vendorsrc/Mozilla.org/js/current/src/liveconnect/netscape_javascript_JSObject.h
vendorsrc/Mozilla.org/js/current/src/liveconnect/nsCLiveconnect.cpp
vendorsrc/Mozilla.org/js/current/src/liveconnect/nsCLiveconnect.h
vendorsrc/Mozilla.org/js/current/src/liveconnect/nsCLiveconnectFactory.cpp
vendorsrc/Mozilla.org/js/current/src/liveconnect/nsCLiveconnectFactory.h
vendorsrc/Mozilla.org/js/current/src/liveconnect/nsILiveconnect.h
vendorsrc/Mozilla.org/js/current/src/liveconnect/nsISecureLiveconnect.h
vendorsrc/Mozilla.org/js/current/src/liveconnect/nsISecurityContext.h
vendorsrc/Mozilla.org/js/current/src/liveconnect/win32.order
Property Changed:
----------------
vendorsrc/Mozilla.org/js/current/src/config/Darwin1.3.mk
vendorsrc/Mozilla.org/js/current/src/config/Darwin1.4.mk
vendorsrc/Mozilla.org/js/current/src/config/Darwin5.2.mk
vendorsrc/Mozilla.org/js/current/src/config/Mac_OS10.0.mk
Added: vendorsrc/Mozilla.org/js/current/README
===================================================================
--- vendorsrc/Mozilla.org/js/current/README (rev 0)
+++ vendorsrc/Mozilla.org/js/current/README 2008-03-01 17:04:20 UTC (rev 143)
@@ -0,0 +1,7 @@
+1. The latest release notes for SpiderMonkey can be found at:
+
+ http://www.mozilla.org/js/spidermonkey/release-notes/
+
+
+2. js/jsd contains code for debugging support for the C-based JavaScript engine in js/src.
+
Property changes on: vendorsrc/Mozilla.org/js/current/README
___________________________________________________________________
Name: svn:eol-style
+ native
Added: vendorsrc/Mozilla.org/js/current/jsd/.cvsignore
===================================================================
--- vendorsrc/Mozilla.org/js/current/jsd/.cvsignore (rev 0)
+++ vendorsrc/Mozilla.org/js/current/jsd/.cvsignore 2008-03-01 17:04:20 UTC (rev 143)
@@ -0,0 +1 @@
+Makefile
Property changes on: vendorsrc/Mozilla.org/js/current/jsd/.cvsignore
___________________________________________________________________
Name: svn:eol-style
+ native
Added: vendorsrc/Mozilla.org/js/current/jsd/CVS/Entries
===================================================================
--- vendorsrc/Mozilla.org/js/current/jsd/CVS/Entries (rev 0)
+++ vendorsrc/Mozilla.org/js/current/jsd/CVS/Entries 2008-03-01 17:04:20 UTC (rev 143)
@@ -0,0 +1,30 @@
+/.cvsignore/1.1/Sat Dec 5 09:02:27 1998//TJS_170
+/Makefile.in/1.26/Tue Apr 5 18:26:06 2005//TJS_170
+/README/3.3/Sun Sep 30 08:52:04 2001//TJS_170
+/jsd.h/3.19.2.1/Fri Jul 7 02:12:01 2006//TJS_170
+/jsd.mak/3.2/Thu Apr 3 22:42:02 2003//TJS_170
+/jsd.pkg/1.2/Wed Jan 7 01:21:43 2004//TJS_170
+/jsd1640.def/3.3/Sun Apr 18 21:57:30 2004//TJS_170
+/jsd1640.rc/3.6/Sun Apr 18 21:57:30 2004//TJS_170
+/jsd3240.rc/3.6/Sun Apr 18 21:57:30 2004//TJS_170
+/jsd_atom.c/3.6/Sun Apr 18 21:57:30 2004//TJS_170
+/jsd_high.c/3.12/Sun Apr 18 21:57:30 2004//TJS_170
+/jsd_hook.c/3.10/Sun Apr 18 21:57:30 2004//TJS_170
+/jsd_java.c/3.8/Thu Jul 7 22:35:38 2005//TJS_170
+/jsd_lock.c/3.8/Sun Apr 18 21:57:30 2004//TJS_170
+/jsd_lock.h/3.7/Sun Apr 18 21:57:30 2004//TJS_170
+/jsd_obj.c/3.8/Sun Apr 18 21:57:30 2004//TJS_170
+/jsd_scpt.c/3.13/Tue Aug 2 15:53:59 2005//TJS_170
+/jsd_stak.c/3.21.20.1/Fri Aug 25 14:02:55 2006//TJS_170
+/jsd_step.c/3.16/Tue Aug 2 18:46:14 2005//TJS_170
+/jsd_text.c/3.8/Sun Apr 18 21:57:30 2004//TJS_170
+/jsd_val.c/3.9.28.1/Fri Jul 7 02:12:01 2006//TJS_170
+/jsd_xpc.cpp/1.72.2.1/Tue Jun 20 15:54:58 2006//TJS_170
+/jsd_xpc.h/1.21/Sun Apr 18 21:57:31 2004//TJS_170
+/jsdebug.c/3.15/Tue Aug 2 15:53:59 2005//TJS_170
+/jsdebug.h/3.19/Tue Aug 2 15:53:59 2005//TJS_170
+/jsdshell.mak/3.2/Thu Apr 3 22:42:02 2003//TJS_170
+/jsdstubs.c/3.8/Thu Jul 7 22:35:38 2005//TJS_170
+/mkshell.bat/3.1/Thu Nov 5 08:57:03 1998//TJS_170
+/resource.h/3.6/Sun Apr 18 21:57:31 2004//TJS_170
+D
Property changes on: vendorsrc/Mozilla.org/js/current/jsd/CVS/Entries
___________________________________________________________________
Name: svn:eol-style
+ native
Added: vendorsrc/Mozilla.org/js/current/jsd/CVS/Entries.Log
===================================================================
--- vendorsrc/Mozilla.org/js/current/jsd/CVS/Entries.Log (rev 0)
+++ vendorsrc/Mozilla.org/js/current/jsd/CVS/Entries.Log 2008-03-01 17:04:20 UTC (rev 143)
@@ -0,0 +1,13 @@
+A D/classes////
+A D/corba////
+A D/idl////
+A D/java////
+A D/javawrap////
+A D/jsdb////
+A D/macbuild////
+R D/macbuild////
+R D/jsdb////
+R D/javawrap////
+R D/java////
+R D/corba////
+R D/classes////
Property changes on: vendorsrc/Mozilla.org/js/current/jsd/CVS/Entries.Log
___________________________________________________________________
Name: svn:eol-style
+ native
Added: vendorsrc/Mozilla.org/js/current/jsd/CVS/Repository
===================================================================
--- vendorsrc/Mozilla.org/js/current/jsd/CVS/Repository (rev 0)
+++ vendorsrc/Mozilla.org/js/current/jsd/CVS/Repository 2008-03-01 17:04:20 UTC (rev 143)
@@ -0,0 +1 @@
+mozilla/js/jsd
Property changes on: vendorsrc/Mozilla.org/js/current/jsd/CVS/Repository
___________________________________________________________________
Name: svn:eol-style
+ native
Added: vendorsrc/Mozilla.org/js/current/jsd/CVS/Root
===================================================================
--- vendorsrc/Mozilla.org/js/current/jsd/CVS/Root (rev 0)
+++ vendorsrc/Mozilla.org/js/current/jsd/CVS/Root 2008-03-01 17:04:20 UTC (rev 143)
@@ -0,0 +1 @@
+:pserver:ano...@cv...:/cvsroot
Property changes on: vendorsrc/Mozilla.org/js/current/jsd/CVS/Root
___________________________________________________________________
Name: svn:eol-style
+ native
Added: vendorsrc/Mozilla.org/js/current/jsd/CVS/Tag
===================================================================
--- vendorsrc/Mozilla.org/js/current/jsd/CVS/Tag (rev 0)
+++ vendorsrc/Mozilla.org/js/current/jsd/CVS/Tag 2008-03-01 17:04:20 UTC (rev 143)
@@ -0,0 +1 @@
+NJS_170
Property changes on: vendorsrc/Mozilla.org/js/current/jsd/CVS/Tag
___________________________________________________________________
Name: svn:eol-style
+ native
Added: vendorsrc/Mozilla.org/js/current/jsd/Makefile.in
===================================================================
--- vendorsrc/Mozilla.org/js/current/jsd/Makefile.in (rev 0)
+++ vendorsrc/Mozilla.org/js/current/jsd/Makefile.in 2008-03-01 17:04:20 UTC (rev 143)
@@ -0,0 +1,110 @@
+#!gmake
+#
+# ***** BEGIN LICENSE BLOCK *****
+# Version: MPL 1.1/GPL 2.0/LGPL 2.1
+#
+# The contents of this file are subject to the Mozilla Public License Version
+# 1.1 (the "License"); you may not use this file except in compliance with
+# the License. You may obtain a copy of the License at
+# http://www.mozilla.org/MPL/
+#
+# Software distributed under the License is distributed on an "AS IS" basis,
+# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
+# for the specific language governing rights and limitations under the
+# License.
+#
+# The Original Code is mozilla.org code.
+#
+# The Initial Developer of the Original Code is
+# Netscape Communications Corporation.
+# Portions created by the Initial Developer are Copyright (C) 1998
+# the Initial Developer. All Rights Reserved.
+#
+# Contributor(s):
+#
+# Alternatively, the contents of this file may be used under the terms of
+# either the GNU General Public License Version 2 or later (the "GPL"), or
+# the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
+# in which case the provisions of the GPL or the LGPL are applicable instead
+# of those above. If you wish to allow use of your version of this file only
+# under the terms of either the GPL or the LGPL, and not to allow others to
+# use your version of this file under the terms of the MPL, indicate your
+# decision by deleting the provisions above and replace them with the notice
+# and other provisions required by the GPL or the LGPL. If you do not delete
+# the provisions above, a recipient may use your version of this file under
+# the terms of any one of the MPL, the GPL or the LGPL.
+#
+# ***** END LICENSE BLOCK *****
+
+
+
+DEPTH = ../..
+topsrcdir = @top_srcdir@
+VPATH = @srcdir@
+srcdir = @srcdir@
+
+include $(DEPTH)/config/autoconf.mk
+
+MODULE = jsdebug
+LIBRARY_NAME = jsd
+FORCE_SHARED_LIB= 1
+ifeq ($(OS_ARCH)$(MOZ_ENABLE_LIBXUL),WINNT)
+LIBRARY_NAME = jsd$(MOZ_BITS)$(VERSION_NUMBER)
+endif
+
+# REQUIRES = java js
+REQUIRES = js
+
+ifndef JSD_STANDALONE
+REQUIRES += \
+ string \
+ xpcom \
+ xpconnect \
+ widget \
+ dom \
+ $(NULL)
+
+PACKAGE_FILE = jsd.pkg
+endif
+
+EXTRA_DSO_LDOPTS += \
+ $(MOZ_COMPONENT_LIBS) \
+ $(MOZ_JS_LIBS) \
+ $(NULL)
+EXPORTS = jsdebug.h
+
+ifdef JS_THREADSAFE
+DEFINES += -DJS_THREADSAFE
+endif
+
+CSRCS = \
+ jsdebug.c \
+ jsd_atom.c \
+ jsd_high.c \
+ jsd_hook.c \
+ jsd_lock.c \
+ jsd_obj.c \
+ jsd_scpt.c \
+ jsd_stak.c \
+ jsd_step.c \
+ jsd_text.c \
+ jsd_val.c \
+ $(NULL)
+
+ifdef JSD_STANDALONE
+DIRS += jsdb
+else
+DIRS += idl
+CPPSRCS = jsd_xpc.cpp
+IS_COMPONENT = 1
+LIBXUL_LIBRARY = 1
+
+ifdef MOZ_ENABLE_LIBXUL
+FORCE_SHARED_LIB=
+MODULE_NAME = JavaScript_Debugger
+endif
+endif
+
+include $(topsrcdir)/config/rules.mk
+
+DEFINES += -DEXPORT_JSD_API
Property changes on: vendorsrc/Mozilla.org/js/current/jsd/Makefile.in
___________________________________________________________________
Name: svn:eol-style
+ native
Added: vendorsrc/Mozilla.org/js/current/jsd/README
===================================================================
--- vendorsrc/Mozilla.org/js/current/jsd/README (rev 0)
+++ vendorsrc/Mozilla.org/js/current/jsd/README 2008-03-01 17:04:20 UTC (rev 143)
@@ -0,0 +1,6 @@
+js/jsd contains code for debugging support for the C-based JavaScript engine
+in js/src. jsd_xpc.cpp provides an XPCOM binding for the library.
+
+js/jsd/jsdb is a console debugger using only native code (see README in that
+directory.) This debugger is no longer being actively developed, though it
+should work.
Property changes on: vendorsrc/Mozilla.org/js/current/jsd/README
___________________________________________________________________
Name: svn:eol-style
+ native
Added: vendorsrc/Mozilla.org/js/current/jsd/idl/.cvsignore
===================================================================
--- vendorsrc/Mozilla.org/js/current/jsd/idl/.cvsignore (rev 0)
+++ vendorsrc/Mozilla.org/js/current/jsd/idl/.cvsignore 2008-03-01 17:04:20 UTC (rev 143)
@@ -0,0 +1 @@
+Makefile
Property changes on: vendorsrc/Mozilla.org/js/current/jsd/idl/.cvsignore
___________________________________________________________________
Name: svn:eol-style
+ native
Added: vendorsrc/Mozilla.org/js/current/jsd/idl/CVS/Entries
===================================================================
--- vendorsrc/Mozilla.org/js/current/jsd/idl/CVS/Entries (rev 0)
+++ vendorsrc/Mozilla.org/js/current/jsd/idl/CVS/Entries 2008-03-01 17:04:20 UTC (rev 143)
@@ -0,0 +1,4 @@
+/.cvsignore/1.1/Fri Jul 6 02:36:12 2001//TJS_170
+/Makefile.in/1.3/Sun Apr 18 21:57:31 2004//TJS_170
+/jsdIDebuggerService.idl/1.32/Tue Aug 2 15:53:59 2005//TJS_170
+D
Property changes on: vendorsrc/Mozilla.org/js/current/jsd/idl/CVS/Entries
___________________________________________________________________
Name: svn:eol-style
+ native
Added: vendorsrc/Mozilla.org/js/current/jsd/idl/CVS/Repository
===================================================================
--- vendorsrc/Mozilla.org/js/current/jsd/idl/CVS/Repository (rev 0)
+++ vendorsrc/Mozilla.org/js/current/jsd/idl/CVS/Repository 2008-03-01 17:04:20 UTC (rev 143)
@@ -0,0 +1 @@
+mozilla/js/jsd/idl
Property changes on: vendorsrc/Mozilla.org/js/current/jsd/idl/CVS/Repository
___________________________________________________________________
Name: svn:eol-style
+ native
Added: vendorsrc/Mozilla.org/js/current/jsd/idl/CVS/Root
===================================================================
--- vendorsrc/Mozilla.org/js/current/jsd/idl/CVS/Root (rev 0)
+++ vendorsrc/Mozilla.org/js/current/jsd/idl/CVS/Root 2008-03-01 17:04:20 UTC (rev 143)
@@ -0,0 +1 @@
+:pserver:ano...@cv...:/cvsroot
Property changes on: vendorsrc/Mozilla.org/js/current/jsd/idl/CVS/Root
___________________________________________________________________
Name: svn:eol-style
+ native
Added: vendorsrc/Mozilla.org/js/current/jsd/idl/CVS/Tag
===================================================================
--- vendorsrc/Mozilla.org/js/current/jsd/idl/CVS/Tag (rev 0)
+++ vendorsrc/Mozilla.org/js/current/jsd/idl/CVS/Tag 2008-03-01 17:04:20 UTC (rev 143)
@@ -0,0 +1 @@
+NJS_170
Property changes on: vendorsrc/Mozilla.org/js/current/jsd/idl/CVS/Tag
___________________________________________________________________
Name: svn:eol-style
+ native
Added: vendorsrc/Mozilla.org/js/current/jsd/idl/Makefile.in
===================================================================
--- vendorsrc/Mozilla.org/js/current/jsd/idl/Makefile.in (rev 0)
+++ vendorsrc/Mozilla.org/js/current/jsd/idl/Makefile.in 2008-03-01 17:04:20 UTC (rev 143)
@@ -0,0 +1,52 @@
+#
+# ***** BEGIN LICENSE BLOCK *****
+# Version: MPL 1.1/GPL 2.0/LGPL 2.1
+#
+# The contents of this file are subject to the Mozilla Public License Version
+# 1.1 (the "License"); you may not use this file except in compliance with
+# the License. You may obtain a copy of the License at
+# http://www.mozilla.org/MPL/
+#
+# Software distributed under the License is distributed on an "AS IS" basis,
+# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
+# for the specific language governing rights and limitations under the
+# License.
+#
+# The Original Code is mozilla.org code.
+#
+# The Initial Developer of the Original Code is
+# Netscape Communications Corporation.
+# Portions created by the Initial Developer are Copyright (C) 1998
+# the Initial Developer. All Rights Reserved.
+#
+# Contributor(s):
+#
+# Alternatively, the contents of this file may be used under the terms of
+# either the GNU General Public License Version 2 or later (the "GPL"), or
+# the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
+# in which case the provisions of the GPL or the LGPL are applicable instead
+# of those above. If you wish to allow use of your version of this file only
+# under the terms of either the GPL or the LGPL, and not to allow others to
+# use your version of this file under the terms of the MPL, indicate your
+# decision by deleting the provisions above and replace them with the notice
+# and other provisions required by the GPL or the LGPL. If you do not delete
+# the provisions above, a recipient may use your version of this file under
+# the terms of any one of the MPL, the GPL or the LGPL.
+#
+# ***** END LICENSE BLOCK *****
+
+DEPTH = ../../..
+topsrcdir = @top_srcdir@
+srcdir = @srcdir@
+VPATH = @srcdir@
+
+include $(DEPTH)/config/autoconf.mk
+
+MODULE = jsdebug
+XPIDL_MODULE = jsdservice
+
+XPIDLSRCS = \
+ jsdIDebuggerService.idl \
+ $(NULL)
+
+include $(topsrcdir)/config/rules.mk
Property changes on: vendorsrc/Mozilla.org/js/current/jsd/idl/Makefile.in
___________________________________________________________________
Name: svn:eol-style
+ native
Added: vendorsrc/Mozilla.org/js/current/jsd/idl/jsdIDebuggerService.idl
===================================================================
--- vendorsrc/Mozilla.org/js/current/jsd/idl/jsdIDebuggerService.idl (rev 0)
+++ vendorsrc/Mozilla.org/js/current/jsd/idl/jsdIDebuggerService.idl 2008-03-01 17:04:20 UTC (rev 143)
@@ -0,0 +1,1255 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
+ *
+ * ***** BEGIN LICENSE BLOCK *****
+ * Version: MPL 1.1/GPL 2.0/LGPL 2.1
+ *
+ * The contents of this file are subject to the Mozilla Public License Version
+ * 1.1 (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ * http://www.mozilla.org/MPL/
+ *
+ * Software distributed under the License is distributed on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
+ * for the specific language governing rights and limitations under the
+ * License.
+ *
+ * The Original Code is mozilla.org code.
+ *
+ * The Initial Developer of the Original Code is
+ * Netscape Communications Corporation.
+ * Portions created by the Initial Developer are Copyright (C) 1998
+ * the Initial Developer. All Rights Reserved.
+ *
+ * Contributor(s):
+ * Robert Ginda, <rg...@ne...>
+ *
+ * Alternatively, the contents of this file may be used under the terms of
+ * either the GNU General Public License Version 2 or later (the "GPL"), or
+ * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
+ * in which case the provisions of the GPL or the LGPL are applicable instead
+ * of those above. If you wish to allow use of your version of this file only
+ * under the terms of either the GPL or the LGPL, and not to allow others to
+ * use your version of this file under the terms of the MPL, indicate your
+ * decision by deleting the provisions above and replace them with the notice
+ * and other provisions required by the GPL or the LGPL. If you do not delete
+ * the provisions above, a recipient may use your version of this file under
+ * the terms of any one of the MPL, the GPL or the LGPL.
+ *
+ * ***** END LICENSE BLOCK ***** */
+
+#include "nsISupports.idl"
+
+%{ C++
+#include "jsdebug.h"
+#include "nsAString.h"
+%}
+
+[ptr] native JSDContext(JSDContext);
+[ptr] native JSDObject(JSDObject);
+[ptr] native JSDProperty(JSDProperty);
+[ptr] native JSDScript(JSDScript);
+[ptr] native JSDStackFrameInfo(JSDStackFrameInfo);
+[ptr] native JSDThreadState(JSDThreadState);
+[ptr] native JSDValue(JSDValue);
+[ptr] native JSRuntime(JSRuntime);
+[ptr] native JSContext(JSContext);
+
+/* interfaces we declare in this file */
+interface jsdIDebuggerService;
+interface jsdIFilter;
+interface jsdINestCallback;
+interface jsdIFilterEnumerator;
+interface jsdIContextEnumerator;
+interface jsdIScriptEnumerator;
+interface jsdIScriptHook;
+interface jsdIErrorHook;
+interface jsdIExecutionHook;
+interface jsdICallHook;
+interface jsdIEphemeral;
+interface jsdIPC;
+interface jsdIContext;
+interface jsdIStackFrame;
+interface jsdIScript;
+interface jsdIValue;
+interface jsdIObject;
+interface jsdIProperty;
+
+/**
+ * Debugger service. It's not a good idea to have more than one active client of
+ * the debugger service.
+ */
+[scriptable, uuid(9dd9006a-4e5e-4a80-ac3d-007fb7335ca4)]
+interface jsdIDebuggerService : nsISupports
+{
+ /** Internal use only. */
+ [noscript] readonly attribute JSDContext JSDContext;
+
+ /**
+ * Called when an error or warning occurs.
+ */
+ attribute jsdIErrorHook errorHook;
+ /**
+ * Called when a jsdIScript is created or destroyed.
+ */
+ attribute jsdIScriptHook scriptHook;
+ /**
+ * Called when the engine encounters a breakpoint.
+ */
+ attribute jsdIExecutionHook breakpointHook;
+ /**
+ * Called when the engine encounters the debugger keyword.
+ */
+ attribute jsdIExecutionHook debuggerHook;
+ /**
+ * Called when the errorHook returns false.
+ */
+ attribute jsdIExecutionHook debugHook;
+ /**
+ * Called before the next PC is executed.
+ */
+ attribute jsdIExecutionHook interruptHook;
+ /**
+ * Called when an exception is thrown (even if it will be caught.)
+ */
+ attribute jsdIExecutionHook throwHook;
+ /**
+ * Called before and after a toplevel script is evaluated.
+ */
+ attribute jsdICallHook topLevelHook;
+ /**
+ * Called before and after a function is called.
+ */
+ attribute jsdICallHook functionHook;
+
+
+ /**
+ * VERSION_* values must be kept in sync with the JSVersion enumeration in
+ * jspubtd.h.
+ */
+
+ /**
+ * Possible values for jsdIScript::version and jsdIContext::version.
+ */
+ const long VERSION_1_0 = 100;
+ const long VERSION_1_1 = 110;
+ const long VERSION_1_2 = 120;
+ const long VERSION_1_3 = 130;
+ const long VERSION_1_4 = 140;
+ const long VERSION_1_5 = 150;
+ const long VERSION_DEFAULT = 0;
+ const long VERSION_UNKNOWN = -1;
+
+ /**
+ * These flags need to be kept in sync with the context flags defined in
+ * jsdebug.h
+ */
+
+ /**
+ * Link native frames in call stacks.
+ */
+ const unsigned long ENABLE_NATIVE_FRAMES = 0x01;
+ /**
+ * Normally, if a script has a 0 in JSD_SCRIPT_PROFILE_BIT it is included in
+ * profile data, otherwise it is not profiled. Setting the
+ * PROFILE_WHEN_SET flag reverses this convention.
+ */
+ const unsigned long PROFILE_WHEN_SET = 0x02;
+ /**
+ * Normally, when the script in the top frame of a thread state has a 1 in
+ * JSD_SCRIPT_DEBUG_BIT, the execution hook is ignored. Setting the
+ * DEBUG_WHEN_SET flag reverses this convention.
+ */
+ const unsigned long DEBUG_WHEN_SET = 0x04;
+ /**
+ * When this flag is set the internal call hook will collect profile data.
+ */
+ const unsigned long COLLECT_PROFILE_DATA = 0x08;
+ /**
+ * When this flag is set, stack frames that are disabled for debugging
+ * will not appear in the call stack chain.
+ */
+ const unsigned long HIDE_DISABLED_FRAMES = 0x10;
+ /**
+ * When this flag is set, the debugger will only check the
+ * JSD_SCRIPT_DEBUG_BIT on the top (most recent) stack frame. This
+ * makes it possible to stop in an enabled frame which was called from
+ * a stack that contains a disabled frame.
+ *
+ * When this flag is *not* set, any stack that contains a disabled frame
+ * will not be debugged (the execution hook will not be invoked.)
+ *
+ * This only applies when the reason for calling the hook would have
+ * been TYPE_INTERRUPTED or TYPE_THROW. TYPE_BREAKPOINT,
+ * TYPE_DEBUG_REQUESTED, and TYPE_DEBUGGER_KEYWORD always stop, regardless
+ * of this setting, as long as the top frame is not disabled.
+ *
+ * If HIDE_DISABLED_FRAMES is set, this is effectively set as well.
+ */
+ const unsigned long MASK_TOP_FRAME_ONLY = 0x20;
+ /**
+ * When this flag is set, object creation will not be tracked. This will
+ * reduce the performance price you pay by enabling the debugger.
+ */
+ const unsigned long DISABLE_OBJECT_TRACE = 0x40;
+
+ /**
+ * Debugger service flags.
+ */
+ attribute unsigned long flags;
+
+ /**
+ * Major version number of implementation.
+ */
+ readonly attribute unsigned long implementationMajor;
+ /**
+ * Minor version number of implementation.
+ */
+ readonly attribute unsigned long implementationMinor;
+ /**
+ * Free form string identifier for implementation.
+ */
+ readonly attribute string implementationString;
+
+ /**
+ * |true| if the debugger should register an app-start observer in order
+ * to begin collecting debug information when mozilla is launched.
+ */
+ attribute boolean initAtStartup;
+
+ /**
+ * |true| if the debugger service has been turned on. This does not
+ * necessarily mean another app is actively using the service, as the
+ * autostart pref may have turned the service on.
+ */
+ readonly attribute boolean isOn;
+
+ /**
+ * Turn on the debugger. This function should only be called from JavaScript
+ * code. The debugger will be enabled on the runtime the call is made on,
+ * as determined by nsIXPCNativeCallContext.
+ */
+ void on ();
+ /**
+ * Turn on the debugger for a given runtime.
+ *
+ * @param rt The runtime you want to debug. You cannot turn the debugger
+ * on for multiple runtimes.
+ */
+ [noscript] void onForRuntime (in JSRuntime rt);
+ /**
+ * Turn the debugger off. This will invalidate all of your jsdIEphemeral
+ * derived objects, and clear all of your breakpoints. In theory you
+ * should be able to turn the debugger back on at some later time without
+ * any problems.
+ */
+ void off ();
+
+ /**
+ * Peek at the current pause depth of the debugger.
+ *
+ * @return depth Number of pause() calls still waiting to be unPause()d.
+ */
+ readonly attribute unsigned long pauseDepth;
+ /**
+ * Temporarily disable the debugger. Hooks will not be called while the
+ * debugger is paused. Multiple calls to pause will increase the "pause
+ * depth", and equal number of unPause calles must be made to resume
+ * normal debugging.
+ *
+ * @return depth Number of times pause has been called since the debugger
+ * has been unpaused.
+ */
+ unsigned long pause();
+ /**
+ * Undo a pause.
+ *
+ * @return depth The number of remaining pending pause calls.
+ */
+ unsigned long unPause();
+
+ /**
+ * Force the engine to perform garbage collection.
+ */
+ void GC();
+
+ /**
+ * Clear profile data for all scripts.
+ */
+ void clearProfileData();
+
+ /**
+ * Adds an execution hook filter. These filters are consulted each time one
+ * of the jsdIExecutionHooks is about to be called. Filters are matched in
+ * a first in, first compared fashion. The first filter to match determines
+ * whether or not the hook is called. Use swapFilter to reorder existing
+ * filters, and removeFilter to remove them.
+ *
+ * If |filter| is already present this method throws NS_ERROR_INVALID_ARG.
+ *
+ * @param filter Object representing the filter to add.
+ * @param after Insert |filter| after this one. Pass null to insert at
+ * the beginning.
+ */
+ void insertFilter (in jsdIFilter filter, in jsdIFilter after);
+ /**
+ * Same as insertFilter, except always add to the end of the list.
+ */
+ void appendFilter (in jsdIFilter filter);
+ /**
+ * Remove a filter.
+ *
+ * If |filter| is not present this method throws NS_ERROR_INVALID_ARG.
+ *
+ * @param filter Object representing the filter to remove. Must be the exact
+ * object passed to addFilter, not just a new object with the same
+ * properties.
+ */
+ void removeFilter (in jsdIFilter filter);
+ /**
+ * Swap position of two filters.
+ *
+ * If |filter_a| is not present, this method throws NS_ERROR_INVALID_ARG.
+ * If |filter_b| is not present, filter_a is replaced by filter_b.
+ * If |filter_a| == |filter_b|, then filter is refreshed.
+ */
+ void swapFilters (in jsdIFilter filter_a, in jsdIFilter filter_b);
+ /**
+ * Enumerate registered filters. This routine refreshes each filter before
+ * passing them on to the enumeration function. Calling this with a null
+ * |enumerator| is equivalent to jsdIService::refreshFilters.
+ *
+ * @param enumerator jsdIFilterEnumerator instance to be called back for the
+ * enumeration.
+ */
+ void enumerateFilters (in jsdIFilterEnumerator enumerator);
+ /**
+ * Force the debugger to resync its internal filter cache with the
+ * actual values in the jsdIFilter objects. To refresh a single filter
+ * use jsdIService::swapFilters. This method is equivalent to
+ * jsdIService::enumerateFilters with a null enumerator.
+ */
+ void refreshFilters ();
+ /**
+ * Clear the list of filters.
+ */
+ void clearFilters();
+
+ /**
+ * Enumerate all known contexts.
+ */
+ void enumerateContexts (in jsdIContextEnumerator enumerator);
+
+ /**
+ * Enumerate all scripts the debugger knows about. Any scripts created
+ * before you turned the debugger on, or after turning the debugger off
+ * will not be available unless the autostart perf is set.
+ *
+ * @param enumerator jsdIScriptEnumerator instance to be called back for
+ * the enumeration.
+ */
+ void enumerateScripts (in jsdIScriptEnumerator enumerator);
+ /**
+ * Clear all breakpoints in all scripts.
+ */
+ void clearAllBreakpoints ();
+
+ /**
+ * When called from JavaScript, this method returns the jsdIValue wrapper
+ * for the given value. If a wrapper does not exist one will be created.
+ * When called from another language this method returns an xpconnect
+ * defined error code.
+ */
+ jsdIValue wrapValue (/*in jsvalue value*/);
+
+ /* XXX these two routines are candidates for refactoring. The only problem
+ * is that it is not clear where and how they should land.
+ */
+
+ /**
+ * Push a new network queue, and enter a new UI event loop.
+ * @param callback jsdINestCallback instance to be called back after the
+ * network queue has been pushed, but before the
+ * UI loop starts.
+ * @return depth returns the current number of times the event loop has been
+ * nested. your code can use it for sanity checks.
+ */
+ unsigned long enterNestedEventLoop (in jsdINestCallback callback);
+ /**
+ * Exit the current nested event loop after the current iteration completes,
+ * and pop the network event queue.
+ *
+ * @return depth returns the current number of times the event loop has been
+ * nested. your code can use it for sanity checks.
+ */
+ unsigned long exitNestedEventLoop ();
+};
+
+/* callback interfaces */
+
+/**
+ * Object representing a pattern of global object and/or url the debugger should
+ * ignore. The debugger service itself will not modify properties of these
+ * objects.
+ */
+[scriptable, uuid(05593438-1b83-4517-864f-3cea3d37a266)]
+interface jsdIFilter : nsISupports
+{
+ /**
+ * These two bytes of the flags attribute are reserved for interpretation
+ * by the jsdService implementation. You can do what you like with the
+ * remaining flags.
+ */
+ const unsigned long FLAG_RESERVED_MASK = 0xFF;
+ /**
+ * Filters without this flag set are ignored.
+ */
+ const unsigned long FLAG_ENABLED = 0x01;
+ /**
+ * Filters with this flag set are "pass" filters, they allow matching hooks
+ * to continue. Filters without this flag block matching hooks.
+ */
+ const unsigned long FLAG_PASS = 0x02;
+
+ /**
+ * FLAG_* values from above, OR'd together.
+ */
+ attribute unsigned long flags;
+
+ /**
+ * An nsISupports version of the global object to be filtered. A null glob
+ * matches all hooks. This attribute must be QI'able to the
+ * (non-scriptable) nsIScriptGlobalObject interface.
+ *
+ * The jsdIService caches this value internally, to if it changes you must
+ * swap the filter with itself using jsdIService::swapFilters.
+ */
+ attribute nsISupports globalObject;
+
+ /**
+ * String representing the url pattern to be filtered. Supports limited
+ * glob matching, at the beginning and end of the pattern only. For example,
+ * "chrome://venkman*" filters all urls that start with chrome/venkman,
+ * "*.cgi" filters all cgi's, and "http://myserver/utils.js" filters only
+ * the utils.js file on "myserver". A null urlPattern matches all urls.
+ *
+ * The jsdIService caches this value internally, to if it changes you must
+ * swap the filter with itself using jsdIService::swapFilters.
+ */
+ attribute string urlPattern;
+
+ /**
+ * Line number for the start of this filter. Line numbers are one based.
+ * Assigning a 0 to this attribute will tell the debugger to ignore the
+ * entire file.
+ */
+ attribute unsigned long startLine;
+
+ /**
+ * Line number for the end of this filter. Line numbers are one based.
+ * Assigning a 0 to this attribute will tell the debugger to ignore from
+ * |startLine| to the end of the file.
+ */
+ attribute unsigned long endLine;
+};
+
+/**
+ * Pass an instance of one of these to jsdIDebuggerService::enterNestedEventLoop.
+ */
+[scriptable, uuid(88bea60f-9b5d-4b39-b08b-1c3a278782c6)]
+interface jsdINestCallback : nsISupports
+{
+ /**
+ * This method will be called after pre-nesting work has completed, such
+ * as pushing the js context and network event queue, but before the new
+ * event loop starts.
+ */
+ void onNest ();
+};
+
+/**
+ * Pass an instance of one of these to jsdIDebuggerService::enumerateFilters.
+ */
+[scriptable, uuid(54382875-ed12-4f90-9a63-1f0498d0a3f2)]
+interface jsdIFilterEnumerator : nsISupports
+{
+ /**
+ * The enumerateFilter method will be called once for every filter the
+ * debugger knows about.
+ */
+ void enumerateFilter (in jsdIFilter filter);
+};
+
+/**
+ * Pass an instance of one of these to jsdIDebuggerService::enumerateScripts.
+ */
+[scriptable, uuid(4c2f706e-1dd2-11b2-9ebc-85a06e948830)]
+interface jsdIScriptEnumerator : nsISupports
+{
+ /**
+ * The enumerateScript method will be called once for every script the
+ * debugger knows about.
+ */
+ void enumerateScript (in jsdIScript script);
+};
+
+/**
+ * Pass an instance of one of these to jsdIDebuggerService::enumerateContexts.
+ */
+[scriptable, uuid(912e342a-1dd2-11b2-b09f-cf3af38c15f0)]
+interface jsdIContextEnumerator : nsISupports
+{
+ /**
+ * The enumerateContext method will be called once for every context
+ * currently in use.
+ */
+ void enumerateContext (in jsdIContext executionContext);
+};
+
+/**
+ * Set jsdIDebuggerService::scriptHook to an instance of one of these.
+ */
+[scriptable, uuid(ae89a7e2-1dd1-11b2-8c2f-af82086291a5)]
+interface jsdIScriptHook : nsISupports
+{
+ /**
+ * Called when scripts are created.
+ */
+ void onScriptCreated (in jsdIScript script);
+ /**
+ * Called when the JavaScript engine destroys a script. The jsdIScript
+ * object passed in will already be invalidated.
+ */
+ void onScriptDestroyed (in jsdIScript script);
+};
+
+/**
+ * Hook instances of this interface up to the
+ * jsdIDebuggerService::functionHook and toplevelHook properties.
+ */
+[scriptable, uuid(f102caf6-1dd1-11b2-bd43-c1dbacb95a98)]
+interface jsdICallHook : nsISupports
+{
+ /**
+ * TYPE_* values must be kept in sync with the JSD_HOOK_* #defines
+ * in jsdebug.h.
+ */
+
+ /**
+ * Toplevel script is starting.
+ */
+ const unsigned long TYPE_TOPLEVEL_START = 0;
+ /**
+ * Toplevel script has completed.
+ */
+ const unsigned long TYPE_TOPLEVEL_END = 1;
+ /**
+ * Function is being called.
+ */
+ const unsigned long TYPE_FUNCTION_CALL = 2;
+ /**
+ * Function is returning.
+ */
+ const unsigned long TYPE_FUNCTION_RETURN = 3;
+
+ /**
+ * Called before the JavaScript engine executes a top level script or calls
+ * a function.
+ */
+ void onCall (in jsdIStackFrame frame, in unsigned long type);
+};
+
+[scriptable, uuid(b7dd3c1c-1dd1-11b2-83eb-8a857d199e0f)]
+interface jsdIErrorHook : nsISupports
+{
+ /**
+ * REPORT_* values must be kept in sync with JSREPORT_* #defines in
+ * jsapi.h
+ */
+
+ /**
+ * Report is an error.
+ */
+ const unsigned long REPORT_ERROR = 0x00;
+ /**
+ * Report is only a warning.
+ */
+ const unsigned long REPORT_WARNING = 0x01;
+ /**
+ * Report represents an uncaught exception.
+ */
+ const unsigned long REPORT_EXCEPTION = 0x02;
+ /**
+ * Report is due to strict mode.
+ */
+ const unsigned long REPORT_STRICT = 0x04;
+
+ /**
+ * Called when the JavaScript engine encounters an error. Return |true|
+ * to pass the error along, |false| to invoke the debugHook.
+ */
+ boolean onError (in string message, in string fileName,
+ in unsigned long line, in unsigned long pos,
+ in unsigned long flags, in unsigned long errnum,
+ in jsdIValue exc);
+};
+
+/**
+ * Hook instances of this interface up to the
+ * jsdIDebuggerService::breakpointHook, debuggerHook, errorHook, interruptHook,
+ * and throwHook properties.
+ */
+[scriptable, uuid(9a7b6ad0-1dd1-11b2-a789-fcfae96356a2)]
+interface jsdIExecutionHook : nsISupports
+{
+ /**
+ * TYPE_* values must be kept in sync with JSD_HOOK_* #defines in jsdebug.h.
+ */
+
+ /**
+ * Execution stopped because we're in single step mode.
+ */
+ const unsigned long TYPE_INTERRUPTED = 0;
+ /**
+ * Execution stopped by a trap instruction (i.e. breakoint.)
+ */
+ const unsigned long TYPE_BREAKPOINT = 1;
+ /**
+ * Error handler returned an "invoke debugger" value.
+ */
+ const unsigned long TYPE_DEBUG_REQUESTED = 2;
+ /**
+ * Debugger keyword encountered.
+ */
+ const unsigned long TYPE_DEBUGGER_KEYWORD = 3;
+ /**
+ * Exception was thrown.
+ */
+ const unsigned long TYPE_THROW = 4;
+
+ /**
+ * RETURN_* values must be kept in sync with JSD_HOOK_RETURN_* #defines in
+ * jsdebug.h.
+ */
+
+ /**
+ * Indicates unrecoverable error processing the hook. This will cause
+ * the script being executed to be aborted without raising a JavaScript
+ * exception.
+ */
+ const unsigned long RETURN_HOOK_ERROR = 0;
+ /**
+ * Continue processing normally. This is the "do nothing special" return
+ * value for all hook types *except* TYPE_THROW. Returning RETURN_CONTINUE
+ * from TYPE_THROW cause the exception to be ignored. Return
+ * RETURN_CONTINUE_THROW to continue exception processing from TYPE_THROW
+ * hooks.
+ */
+ const unsigned long RETURN_CONTINUE = 1;
+ /**
+ * Same effect as RETURN_HOOK_ERROR.
+ */
+ const unsigned long RETURN_ABORT = 2;
+ /**
+ * Return the value of the |val| parameter.
+ */
+ const unsigned long RETURN_RET_WITH_VAL = 3;
+ /**
+ * Throw the value of the |val| parameter.
+ */
+ const unsigned long RETURN_THROW_WITH_VAL = 4;
+ /**
+ * Continue the current throw.
+ */
+ const unsigned long RETURN_CONTINUE_THROW = 5;
+
+ /**
+ * @param frame A jsdIStackFrame object representing the bottom stack frame.
+ * @param type One of the jsdIExecutionHook::TYPE_ constants.
+ * @param val in - Current exception (if any) when this method is called.
+ * out - If you return RETURN_THROW_WITH_VAL, value to be
+ * thrown.
+ * If you return RETURN_RET_WITH_VAL, value to return.
+ * All other return values, not significant.
+ * @retval One of the jsdIExecutionHook::RETURN_* constants.
+ */
+ unsigned long onExecute (in jsdIStackFrame frame,
+ in unsigned long type, inout jsdIValue val);
+};
+
+/**
+ * Objects which inherit this interface may go away, with (jsdIScript) or
+ * without (all others) notification. These objects are generally wrappers
+ * around JSD structures that go away when you call jsdService::Off().
+ */
+[scriptable, uuid(46f1e23e-1dd2-11b2-9ceb-8285f2e95e69)]
+interface jsdIEphemeral : nsISupports
+{
+ /**
+ * |true| if this object is still valid. If not, many or all of the methods
+ * and/or properties of the inheritor may no longer be callable.
+ */
+ readonly attribute boolean isValid;
+ /**
+ * Mark this instance as invalid.
+ */
+ [noscript] void invalidate();
+};
+
+/* handle objects */
+
+/**
+ * Context object. Only context's which are also nsISupports objects can be
+ * reflected by this interface.
+ */
+[scriptable, uuid(a2dd25a4-1dd1-11b2-bda6-ed525acd4c35)]
+interface jsdIContext : jsdIEphemeral
+{
+ /* Internal use only. */
+ [noscript] readonly attribute JSContext JSContext;
+
+ /**
+ * OPT_* values must be kept in sync with JSOPTION_* #defines in jsapi.h.
+ */
+
+ /**
+ * Strict mode is on.
+ */
+ const long OPT_STRICT = 0x01;
+ /**
+ * Warnings reported as errors.
+ */
+ const long OPT_WERR = 0x02;
+ /**
+ * Makes eval() use the last object on its 'obj' param's scope chain as the
+ * ECMA 'variables object'.
+ */
+ const long OPT_VAROBJFIX = 0x04;
+ /**
+ * Private data for this object is an nsISupports object. Attempting to
+ * alter this bit will result in an NS_ERROR_ILLEGAL_VALUE.
+ */
+ const long OPT_ISUPPORTS = 0x08;
+ /**
+ * OPT_* values above, OR'd together.
+ */
+ attribute unsigned long options;
+
+ /**
+ * Last version set on this context.
+ * Scripts typically select this with the "language" attribute.
+ * See the VERSION_* consts on jsdIDebuggerService.
+ */
+ attribute long version;
+
+ /**
+ * Unique tag among all valid jsdIContext objects, useful as a hash key.
+ */
+ readonly attribute unsigned long tag;
+
+ /**
+ * Private data for this context, if it is an nsISupports, |null| otherwise.
+ */
+ readonly attribute nsISupports privateData;
+
+ /**
+ * Retrieve the underlying context wrapped by this jsdIContext.
+ */
+ readonly attribute nsISupports wrappedContext;
+
+ /**
+ * Top of the scope chain for this context.
+ */
+ readonly attribute jsdIValue globalObject;
+
+ /**
+ * |true| if this context should be allowed to run scripts, |false|
+ * otherwise. This attribute is only valid for contexts which implement
+ * nsIScriptContext. Setting or getting this attribute on any other
+ * context will throw a NS_ERROR_NO_INTERFACE exception.
+ */
+ attribute boolean scriptsEnabled;
+};
+
+/**
+ * Stack frame objects. These are only valid inside the jsdIExecutionHook which
+ * gave it to you. After you return from that handler the bottom frame, and any
+ * frame you found attached through it, are invalidated via the jsdIEphemeral
+ * interface. Once a jsdIStackFrame has been invalidated all method and
+ * property accesses will throw a NS_ERROR_NOT_AVAILABLE exception.
+ */
+[scriptable, uuid(b6d50784-1dd1-11b2-a932-882246c6fe45)]
+interface jsdIStackFrame : jsdIEphemeral
+{
+ /** Internal use only. */
+ [noscript] readonly attribute JSDContext JSDContext;
+ /** Internal use only. */
+ [noscript] readonly attribute JSDThreadState JSDThreadState;
+ /** Internal use only. */
+ [noscript] readonly attribute JSDStackFrameInfo JSDStackFrameInfo;
+
+ /**
+ * True if stack frame represents a native frame.
+ */
+ readonly attribute boolean isNative;
+ /**
+ * True if stack frame represents a frame created as a result of a debugger
+ * evaluation.
+ */
+ readonly attribute boolean isDebugger;
+ /**
+ * True if stack frame is constructing a new object.
+ */
+ readonly attribute boolean isConstructing;
+
+ /**
+ * Link to the caller's stack frame.
+ */
+ readonly attribute jsdIStackFrame callingFrame;
+ /**
+ * Executon context.
+ */
+ readonly attribute jsdIContext executionContext;
+ /**
+ * Function name executing in this stack frame.
+ */
+ readonly attribute string functionName;
+ /**
+ * Script running in this stack frame, null for native frames.
+ */
+ readonly attribute jsdIScript script;
+ /**
+ * Current program counter in this stack frame.
+ */
+ readonly attribute unsigned long pc;
+ /**
+ * Current line number (using the script's pc to line map.)
+ */
+ readonly attribute unsigned long line;
+ /**
+ * Function object running in this stack frame.
+ */
+ readonly attribute jsdIValue callee;
+ /**
+ * Top object in the scope chain.
+ */
+ readonly attribute jsdIValue scope;
+ /**
+ * |this| object for this stack frame.
+ */
+ readonly attribute jsdIValue thisValue;
+ /**
+ * Evaluate arbitrary JavaScript in this stack frame.
+ * @param bytes Script to be evaluated.
+ * @param fileName Filename to compile this script under. This is the
+ * filename you'll see in error messages, etc.
+ * @param line Starting line number for this script. One based.
+ * @retval Result of evaluating the script.
+ */
+ boolean eval (in AString bytes, in string fileName,
+ in unsigned long line, out jsdIValue result);
+
+};
+
+/**
+ * Script object. In JavaScript engine terms, there's a single script for each
+ * function, and one for the top level script.
+ */
+[scriptable, uuid(a38f65ca-1dd1-11b2-95d5-ff2947e9c920)]
+interface jsdIScript : jsdIEphemeral
+{
+ /** Internal use only. */
+ [noscript] readonly attribute JSDContext JSDContext;
+ /** Internal use only. */
+ [noscript] readonly attribute JSDScript JSDScript;
+
+ /**
+ * Last version set on this context.
+ * Scripts typically select this with the "language" attribute.
+ * See the VERSION_* consts on jsdIDebuggerService.
+ */
+ readonly attribute long version;
+
+ /**
+ * Tag value guaranteed unique among jsdIScript objects. Useful as a
+ * hash key in script.
+ */
+ readonly attribute unsigned long tag;
+
+ /**
+ * FLAG_* values need to be kept in sync with JSD_SCRIPT_* #defines in
+ * jsdebug.h.
+ */
+
+ /**
+ * Determines whether or not to collect profile information for this
+ * script. The context flag FLAG_PROFILE_WHEN_SET decides the logic.
+ */
+ const unsigned long FLAG_PROFILE = 0x01;
+ /**
+ * Determines whether or not to ignore breakpoints, etc. in this script.
+ * The context flag JSD_DEBUG_WHEN_SET decides the logic.
+ */
+ const unsigned long FLAG_DEBUG = 0x02;
+
+ /**
+ * FLAG_* attributes from above, OR'd together.
+ */
+ attribute unsigned long flags;
+
+ /**
+ * Filename given for this script when it was compiled.
+ * This data is copied from the underlying structure when the jsdIScript
+ * instance is created and is therefore available even after the script is
+ * invalidated.
+ */
+ readonly attribute string fileName;
+ /**
+ * Function name for this script. "anonymous" for unnamed functions (or
+ * a function actually named anonymous), empty for top level scripts.
+ * This data is copied from the underlying structure when the jsdIScript
+ * instance is created and is therefore available even after the script is
+ * invalidated.
+ */
+ readonly attribute string functionName;
+ /**
+ * Fetch the function object as a jsdIValue.
+ */
+ readonly attribute jsdIValue functionObject;
+ /**
+ * Source code for this script, without function declaration.
+ */
+ readonly attribute AString functionSource;
+ /**
+ * Line number in source file containing the first line of this script.
+ * This data is copied from the underlying structure when the jsdIScript
+ * instance is created and is therefore available even after the script is
+ * invalidated.
+ */
+ readonly attribute unsigned long baseLineNumber;
+ /**
+ * Total number of lines in this script.
+ * This data is copied from the underlying structure when the jsdIScript
+ * instance is created and is therefore available even after the script is
+ * invalidated.
+ */
+ readonly attribute unsigned long lineExtent;
+
+ /**
+ * Number of times this script has been called.
+ */
+ readonly attribute unsigned long callCount;
+ /**
+ * Number of times this script called itself, directly or indirectly.
+ */
+ readonly attribute unsigned long maxRecurseDepth;
+ /**
+ * Shortest execution time recorded, in milliseconds.
+ */
+ readonly attribute double minExecutionTime;
+ /**
+ * Longest execution time recorded, in milliseconds.
+ */
+ readonly attribute double maxExecutionTime;
+ /**
+ * Total time spent in this function, in milliseconds.
+ */
+ readonly attribute double totalExecutionTime;
+ /**
+ * Shortest execution time recorded, in milliseconds, excluding time spent
+ * in other called code.
+ */
+ readonly attribute double minOwnExecutionTime;
+ /**
+ * Longest execution time recorded, in milliseconds, excluding time spent
+ * in other called code.
+ */
+ readonly attribute double maxOwnExecutionTime;
+ /**
+ * Total time spent in this function, in milliseconds, excluding time spent
+ * in other called code.
+ */
+ readonly attribute double totalOwnExecutionTime;
+
+ /**
+ * Clear profile data for this script.
+ */
+ void clearProfileData();
+ ...
[truncated message content] |