gecko/js/src
Jim Blandy bd0b14cc7e Bug 514585: Machinery for reporting ES5 strict mode errors. r=igor
At compile-time, we must consult the current JSTreeContext to decide
whether to issue an strict mode error; at run-time, we need to
check the strictness of the currently executing script.  Both cases
also check the context options.  The design is supposed to make it
easy to follow the principle that conditions treated as errors in
strict mode are a subset of those warned about by JSOPTION_STRICT.

This patch removes report flag handling from js_ExpandErrorArguments,
which is used for both compile-time and run-time errors.  At run-time,
the new checkReportFlags handles the checks.  At compile-time, we need
different checks depending on the situation, so the checks are done in
js_ReportStrictModeError, js_ReportCompileErrorNumber, and the new
ReportCompileErrorNumberVA.
2009-11-18 13:33:53 -08:00
..
analysis-tests Bug 491988 - do JS_REQUIRES_STACK analysis on function pointers, r=jorendorff+dmandelin 2009-06-25 15:12:19 -04:00
build Bug 524139 - Eval .all.pp instead of including it. This means that in the normal case we avoid any make restarts and the associated I/O that goes with them, which could possibly be slowing Windows builds down considerably r=ted 2009-10-23 13:00:19 -04:00
config Unify rules.mk 2009-11-05 09:48:29 -05:00
editline
jsapi-tests Bug 528414 - JS_IsRunning can be wrong. r=brendan. 2009-11-13 09:24:12 -06:00
lirasm Bug 528320 - Improve warning-handling on windows, r=rreitmai. 2009-11-12 15:07:31 -08:00
nanojit Fix assertion failure injected by X64 verbose code patch (bug 520712 r=dvander+) 2009-11-16 14:22:26 -05:00
ref-config Bug 492594: Add new js/src/ref-config makefile for HP-UXB.11.31. NPOB. 2009-05-22 11:57:37 -07:00
shell Bug 520572 - Test watch() on an outer object. r=brendan/bc 2009-11-18 12:58:28 +01:00
t
tests Bug 520572 - Test watch() on an outer object. r=brendan/bc 2009-11-18 12:58:28 +01:00
trace-test Fixed accidentally trying to trace compile a recursive generator (bug 529130, r=gal). 2009-11-18 12:41:51 -05:00
tracevis Bug 500857: show JIT reset events in tracevis, r=nnethercote 2009-09-10 16:06:34 -07:00
v8
vprof Bug 525878 - The lirasm call1 test fails on ARM, r=graydon. 2009-11-02 10:32:02 -08:00
xpconnect Bug 504078 - Always guard on the class of iterator objects, not just when the iterator object is native at record time. r=brendan 2009-11-05 23:41:37 -08:00
aclocal.m4 Bug 485409 - Handle a Windows-style path as $srcdir in configure, by modifying the default autoconf M4 macros so that they recognize Z:/ as an absolute path. r=ted 2009-09-22 09:05:48 -04:00
bench.sh Add an argument to bench.sh that selects which shell to test (no bug). 2009-07-03 22:26:27 -07:00
builtins.tbl Bug 453730: trace JSOP_ARGUMENTS, r=gal 2009-07-08 11:16:41 -07:00
config.mk Fixing bug 442399. Remove LiveConnect from the tree. r=joshmoz@gmail.com, bclary@bclary.com, sr=brendan@mozilla.org 2009-06-30 15:55:16 -07:00
configure.in Bug 524693 - If MAKE is set in the environment, trust it (in js/src/configure.in), r=ted 2009-10-27 15:38:05 -04:00
dtoa.c Bug 516862: Backported a change from dtoa.c upstream made on 2009-03-01. [r=crowder r=mrbkap] 2009-09-17 01:22:51 -05:00
find-child.py Bug 524593 - nanojit-central to tracemonkey import machinery, r=gal. 2009-10-28 11:35:48 -07:00
imacro_asm.js.in Fix imacro vs. script code disassembly/decompilation confusion (510644, r=jorendorff). 2009-09-04 16:27:17 -07:00
imacros.c.out Renamed JSOP_LOOP to JSOP_TRACE, which now also gets emitted at the start of scripts (bug 515806, r=brendan). 2009-09-14 17:26:16 -07:00
imacros.jsasm Bug 507180 - Fix imacros (r=waldo) 2009-08-19 09:06:22 -07:00
javascript-trace.d
jitstats.tbl Bug 521364. Make sure that TMFLAGS=stats shows all jitstats other than the platform-specific ones. r=lw 2009-10-20 13:42:02 -04:00
js-config.h.in Bug 479258: Don't define <stdint.h> types in public headers. r=brendan 2009-03-18 11:38:15 -07:00
js-config.in
js.mdp
js.msg Fix old ES3 lexing bug where 3in scanned as 3 and in (523401, r=jorendorff). 2009-10-22 10:07:56 -07:00
jsapi.cpp Bug 514585: Recognize "use strict" directives. r=igor 2009-11-18 13:33:53 -08:00
jsapi.h Bug 514585: Machinery for reporting ES5 strict mode errors. r=igor 2009-11-18 13:33:53 -08:00
jsarena.cpp Bug 514585: Remove macro wrappers for js_NewPrinter and JS_InitArenaPool. r=igor 2009-11-18 13:33:53 -08:00
jsarena.h Bug 514585: Remove macro wrappers for js_NewPrinter and JS_InitArenaPool. r=igor 2009-11-18 13:33:53 -08:00
jsarray.cpp Bug 519363 debugging followup: strip diagnostic instrumentation, r=lw 2009-11-09 16:57:47 -08:00
jsarray.h Bug 519363 debugging followup: strip diagnostic instrumentation, r=lw 2009-11-09 16:57:47 -08:00
jsatom.cpp Bug 514585: Recognize "use strict" directives. r=igor 2009-11-18 13:33:53 -08:00
jsatom.h Bug 514585: Recognize "use strict" directives. r=igor 2009-11-18 13:33:53 -08:00
jsatominlines.h Factor jsscopeinlines.h out, clean up #include order (524267, r=gal/jorendorff). 2009-10-26 13:39:39 -07:00
jsbit.h Bug 452912 - Optimize Windows x64 build for javascript engine. r=dvander 2009-07-28 19:47:34 +09:00
jsbool.cpp bug 513190 - avoiding jsint tagging of the private slot data. r=jorendorff 2009-09-05 19:59:11 +04:00
jsbool.h Bug 503952 - Use JSTempVector in jsstr.cpp (r=waldo) 2009-08-14 16:10:59 -07:00
jsbuiltins.cpp Bug 519363 debugging followup: strip diagnostic instrumentation, r=lw 2009-11-09 16:57:47 -08:00
jsbuiltins.h Backed out changeset 9cc88d291fc0 2009-10-05 18:31:10 -07:00
jsclist.h
jscntxt.cpp Bug 514585: Machinery for reporting ES5 strict mode errors. r=igor 2009-11-18 13:33:53 -08:00
jscntxt.h Bug 514585: Machinery for reporting ES5 strict mode errors. r=igor 2009-11-18 13:33:53 -08:00
jscompat.h Bug 497618 - Change JSString macros to methods. r=Waldo. 2009-06-10 20:29:44 -05:00
jsconfig.mk Fixing bug 442399. Remove LiveConnect from the tree. r=joshmoz@gmail.com, bclary@bclary.com, sr=brendan@mozilla.org 2009-06-30 15:55:16 -07:00
jscpucfg.cpp Bug 497618 - Change JSString macros to methods. r=Waldo. 2009-06-10 20:29:44 -05:00
jscpucfg.h
jsdate.cpp bug 527027 - fixing date_makeDate regression. r=brendan 2009-11-08 21:44:53 +01:00
jsdate.h Bug 506982 - Fix up jstracer style. r=Waldo. 2009-07-29 11:58:19 -05:00
jsdbgapi.cpp bug 527803 - avoiding unnecessary js_AddRoot. r=brendan 2009-11-12 23:13:25 +01:00
jsdbgapi.h Bug 497999: collect context-specific TraceVis data in JS objects, r=jorendorff 2009-07-30 11:48:02 -07:00
jsdhash.cpp When finalizing, deallocate memory in a separate thread (505612, r=bent,brendan,waldo). 2009-07-27 21:10:12 -07:00
jsdhash.h
jsdtoa.cpp When finalizing, deallocate memory in a separate thread (505612, r=bent,brendan,waldo). 2009-07-27 21:10:12 -07:00
jsdtoa.h
jsdtracef.cpp Bug 460904 - rename/tweak JSTraceableFunction (take 2) 2009-09-04 13:44:31 -07:00
jsdtracef.h b=403345; dtrace probes get wrong function name, filename, and line number info when native methods are involved; r=brendan 2009-06-17 13:50:03 -07:00
jsemit.cpp Bug 461170 - Detect when typeof is applied to an expression before constant folding so we correctly throw unbound name exceptions from the folded expression. r=brendan 2009-11-06 18:27:17 +01:00
jsemit.h Bug 514585: Recognize "use strict" directives. r=igor 2009-11-18 13:33:53 -08:00
jsexn.cpp Removed JSStackFrame::callee (bug 512029, r=brendan). 2009-08-24 17:09:44 -07:00
jsexn.h
jsfile.cpp Bug 505838 JS_GetStringBytes(JS_ValueToString(...)..) is a bad pattern 2009-08-12 11:49:53 +02:00
jsfile.h
jsfile.msg
jsfun.cpp Bug 514585: Recognize "use strict" directives. r=igor 2009-11-18 13:33:53 -08:00
jsfun.h Bug 507448. Expose the names of the function arguments on jsdIScript. r=timeless,brendan 2009-10-26 09:30:40 -04:00
jsgc.cpp Don't attempt to GC when caller has waived the GC heap quote (528507, r=dvander). 2009-11-17 14:31:06 -08:00
jsgc.h bug 527803 - avoiding unnecessary js_AddRoot. r=brendan 2009-11-12 23:13:25 +01:00
jshash.cpp When finalizing, deallocate memory in a separate thread (505612, r=bent,brendan,waldo). 2009-07-27 21:10:12 -07:00
jshash.h Hide C++ from C includers. 2009-07-16 13:33:46 -07:00
jsify.pl
jsinterp.cpp Bug 523998 - Add assertions to detect cases where objects were not touched by shape regeneration. r=dmandelin. 2009-11-12 16:50:12 -06:00
jsinterp.h Added calleValue()/calleObject() inline helpers to JSStackFrame (bug 512371, r=brendan). 2009-10-26 17:28:56 -07:00
jsinttypes.h Bug 506821: clean up trailing whitespace, r=brendan 2009-07-27 18:40:12 -07:00
jsinvoke.cpp Bug 497618 - Change JSString macros to methods. r=Waldo. 2009-06-10 20:29:44 -05:00
jsiter.cpp bug 517795 - followup to fix the issue 512046. 2009-09-21 12:49:12 +04:00
jsiter.h bug 513190 - avoiding jsint tagging of the private slot data. r=jorendorff 2009-09-05 19:59:11 +04:00
jskeyword.tbl
jskwgen.cpp Bug 497618 - Change JSString macros to methods. r=Waldo. 2009-06-10 20:29:44 -05:00
jslibmath.h Bug 508760 - Remove MSVC6 support from the tree; (Ev1) js/src/*; r=graydon 2009-08-18 19:24:45 +02:00
jslock.cpp Bug 514632 Use Sun Studio inline asm template for NativeCompareAndSwap r=jorendorff 2009-09-25 15:30:35 +08:00
jslock.h bug 511425 - removal of JSObjectOps.(get|set)RequiredSlot. r=brendan 2009-08-28 09:53:26 +04:00
jslocko.asm
jslog2.cpp Bug 479258: Include "jsstdint.h" for <stdint.h> type use within SpiderMonkey. r=brendan 2009-03-18 11:38:16 -07:00
jslong.h
jsmath.cpp bug 524346 - using jsval, not jsdouble *, for nan and +-oo. r=brendan 2009-10-28 14:57:31 +03:00
jsmath.h Specialize math functions to integer arithmetic where appropriate (511307, r=dvander). 2009-08-19 15:31:10 -07:00
jsnum.cpp bug 524346 - using jsval, not jsdouble *, for nan and +-oo. r=brendan 2009-10-28 14:57:31 +03:00
jsnum.h bug 524346 - using jsval, not jsdouble *, for nan and +-oo. r=brendan 2009-10-28 14:57:31 +03:00
jsobj.cpp Bug 528126 - Ensure the GC can see the new object. r=brendan 2009-11-18 15:54:27 +01:00
jsobj.h Backed out changeset 2fe1a3d6e672, enough philosophically-vexing orange that I'm unwilling to adjust all the tests without discussion (or, alternately, leave it in place until morning). 2009-11-12 00:57:18 -08:00
json.cpp Bug 510360 - early return in json.cpp might skip necessary postamble (r=sayrer) 2009-10-17 23:30:40 -07:00
json.h Bug 503952 - Use JSTempVector in jsstr.cpp (r=waldo) 2009-08-14 16:10:59 -07:00
jsopcode.cpp Bug 514585: Recognize "use strict" directives. r=igor 2009-11-18 13:33:53 -08:00
jsopcode.h Bug 514585: Recognize "use strict" directives. r=igor 2009-11-18 13:33:53 -08:00
jsopcode.tbl Renamed JSOP_LOOP to JSOP_TRACE, which now also gets emitted at the start of scripts (bug 515806, r=brendan). 2009-09-14 17:26:16 -07:00
jsoplengen.cpp Bug 497618 - Change JSString macros to methods. r=Waldo. 2009-06-10 20:29:44 -05:00
jsops.cpp Bug 517174 - trace js_Invoke calls from natives (r=dvander) 2009-11-12 18:34:24 -08:00
jsotypes.h Avoid bit twiddling on double values (513063, r=brendan). 2009-08-27 13:59:19 -07:00
jsparse.cpp Bug 514585: Recognize "use strict" directives. r=igor 2009-11-18 13:33:53 -08:00
jsparse.h Bug 514585: Recognize "use strict" directives. r=igor 2009-11-18 13:33:53 -08:00
jsprf.cpp When finalizing, deallocate memory in a separate thread (505612, r=bent,brendan,waldo). 2009-07-27 21:10:12 -07:00
jsprf.h
jsproto.tbl bug 491013 - fixing shared setter regression and eliminating several useless anonymous prototype objects. r=brendan 2009-05-06 20:33:10 -02:30
jsprvtd.h Bug 519363 debugging followup: strip diagnostic instrumentation, r=lw 2009-11-09 16:57:47 -08:00
jspubtd.h Bug 498134 - ABI depends on #define DEBUG. r=Waldo. 2009-10-29 06:39:18 -05:00
jsrecursion.cpp Bug 517174 - trace js_Invoke calls from natives (r=dvander) 2009-11-12 18:34:24 -08:00
jsregexp.cpp Bug 514585: Remove macro wrappers for js_NewPrinter and JS_InitArenaPool. r=igor 2009-11-18 13:33:53 -08:00
jsregexp.h Bug 511777 - avoid regexp engine for flat strings (r=waldo) 2009-09-23 08:54:50 -07:00
jsreops.tbl
jsscan.cpp Bug 514585: Machinery for reporting ES5 strict mode errors. r=igor 2009-11-18 13:33:53 -08:00
jsscan.h Bug 514585: Machinery for reporting ES5 strict mode errors. r=igor 2009-11-18 13:33:53 -08:00
jsscope.cpp Bug 514585: Remove macro wrappers for js_NewPrinter and JS_InitArenaPool. r=igor 2009-11-18 13:33:53 -08:00
jsscope.h Backed out changeset 2fe1a3d6e672, enough philosophically-vexing orange that I'm unwilling to adjust all the tests without discussion (or, alternately, leave it in place until morning). 2009-11-12 00:57:18 -08:00
jsscopeinlines.h Bug 524743 - Shape regeneration still does not touch most empty scopes. r=brendan. 2009-10-27 16:00:26 -05:00
jsscript.cpp Bug 514585: Recognize "use strict" directives. r=igor 2009-11-18 13:33:53 -08:00
jsscript.h Bug 514585: Recognize "use strict" directives. r=igor 2009-11-18 13:33:53 -08:00
jsscriptinlines.h Don't build a stack frame to execute empty scripts (516827, r=igor). 2009-10-18 17:41:24 -07:00
jsshell.msg Bug 515285 - Implement JS_SameValue, and make assertEq use it rather than JS_StrictlyEqual. r=jorendorff 2009-09-09 11:51:52 -07:00
jsstack.js Bug 491988 - do JS_REQUIRES_STACK analysis on function pointers, r=jorendorff+dmandelin 2009-06-25 15:12:19 -04:00
jsstaticcheck.h Bug 476177 - TM: cx->stackPool must not be accessed on trace. r=brendan. 2009-01-30 17:40:05 -06:00
jsstdint.h Bug 519856 - NJ merge: move VMPI stuff from avmplus, r=jimb. 2009-09-30 17:45:17 -07:00
jsstr.cpp Bug 526173 - 3.5x regression in indexOf performance (r=waldo) 2009-11-17 22:40:50 -08:00
jsstr.h Fixed string flag bugs on VC++ x64 (bug 512866, r=waldo). 2009-11-18 13:24:24 -05:00
jsstrinlines.h Factor jsscopeinlines.h out, clean up #include order (524267, r=gal/jorendorff). 2009-10-26 13:39:39 -07:00
jstask.cpp Bug 506880 - Deadlock on exit in threadsafe shell. r=gal. 2009-07-28 04:39:40 -05:00
jstask.h When finalizing, deallocate memory in a separate thread (505612, r=bent,brendan,waldo). 2009-07-27 21:10:12 -07:00
jstl.h Replace JSPtrTable with js::Vector (523463, r=luke). 2009-10-20 15:08:28 -07:00
jstracer.cpp Fixed accidentally trying to trace compile a recursive generator (bug 529130, r=gal). 2009-11-18 12:41:51 -05:00
jstracer.h Use INS_CONSTOBJ instead of INS_CONSTWORD for kshape guard (bug 528048, r=gal). 2009-11-16 18:44:58 -05:00
jstypes.h Bug 522587 - clean up variadic macro avoidance code, r=gal. 2009-10-15 16:04:55 -07:00
jsutil.cpp Bug 524522 - Tinderbox debug build unit tests don't capture a stack for JS_ASSERT assertion failure. r=mrbkap. 2009-10-27 12:03:49 -05:00
jsutil.h Bug 523166: Switch to use c-style comments in jsutil.h to fix build warning. r=igor 2009-10-21 15:46:33 -07:00
jsvector.h Backed out changeset 1a747dd43904 (bug 521880). 2009-10-12 18:00:48 -07:00
jsversion.h Bug 523139: Add an ECMAScript 5 value to the JSVersion type. r=brendan 2009-10-27 14:17:01 -07:00
jswince.asm Fix Windows CE from bug 487416 (arm architecture detection) 2009-05-12 10:06:39 +01:00
jsxdrapi.cpp Don't build a stack frame to execute empty scripts (516827, r=igor). 2009-10-18 17:41:24 -07:00
jsxdrapi.h Fix empty script deserialization (525481, r=igor). 2009-11-07 11:23:00 -08:00
jsxml.cpp bug 522867 - eliminating the local root check on the fast path of the GC allocator. r=brendan,gal 2009-11-12 12:53:25 +01:00
jsxml.h Avoid using uint16 in JSXML (525527, r=igor). 2009-11-02 13:45:22 -08:00
lock_sparcv8plus.il Bug 514632 Use Sun Studio inline asm template for NativeCompareAndSwap r=jorendorff 2009-09-25 15:30:35 +08:00
lock_sparcv9.il Bug 514632 Use Sun Studio inline asm template for NativeCompareAndSwap r=jorendorff 2009-09-25 15:30:35 +08:00
lock_SunOS.s
Makefile.in Bump import-machinery pointers, no bug, r=gal on IRC. 2009-11-02 10:58:02 -08:00
Makefile.ref Bug 502953 - Followup patch to remove residual makefile entries, r=dvander. 2009-07-09 13:33:16 -07:00
nanojit-import-filemap Bug 524593 - nanojit-central to tracemonkey import machinery, r=gal. 2009-10-28 11:35:48 -07:00
nanojit-import-rev Update nanojit-import-rev stamp. 2009-11-17 15:56:35 +11:00
perfect.js
plify_jsdhash.sed Port xpcom to 64-bit Mac OS X, part 1. b=478687 r=mstange sr=bsmedberg 2009-03-06 12:32:57 -06:00
prmjtime.cpp Bug 506821: clean up trailing whitespace, r=brendan 2009-07-27 18:40:12 -07:00
prmjtime.h bug 487515 - PRMJ_Now needs better granularity for panning in fennec r=crowder, robarnold 2009-04-16 12:03:56 -04:00
README.html
resource.h Bug 506821: clean up trailing whitespace, r=brendan 2009-07-27 18:40:12 -07:00
rules.mk
SpiderMonkey.rsp Fixing bug 442399. Remove LiveConnect from the tree. r=joshmoz@gmail.com, bclary@bclary.com, sr=brendan@mozilla.org 2009-06-30 15:55:16 -07:00
time.sh
Y.js

<!-- ***** 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 Communicator client code, released
   - March 31, 1998.
   - 
   - The Initial Developer of the Original Code is
   - Netscape Communications Corporation.
   - Portions created by the Initial Developer are Copyright (C) 1998-1999
   - the Initial Developer. All Rights Reserved.
   - 
   - Contributor(s):
   - 
   - Alternatively, the contents of this file may be used under the terms of
   - either of 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 ***** -->
<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
<head>
   <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
   <meta http-equiv="Refresh"
	 content="0;URL=http://developer.mozilla.org/en/docs/SpiderMonkey">
   <title>SpiderMonkey README</title>
</head>
<body>

<h1>SpiderMonkey README</h1>

<p>See the
<a href="http://developer.mozilla.org/en/docs/SpiderMonkey">SpiderMonkey
pages</a> on the Mozilla Developer Center</a>.

</body>
</html>