summaryrefslogtreecommitdiffstats
path: root/js/src/jsscript.h
Commit message (Collapse)AuthorAgeLines
* Bug 1343481 - Part 3: Add JSOP_AWAIT and rename {yieldIndex,yieldOffset} to ↵Gaming4JC2019-12-17-6/+11
| | | | | | {yieldAndAwaitIndex,yieldAndAwaitOffset}. Tag #1287
* Bug 1343481 - Part 1: Remove {JSFunction,JSScript,LazyScript}.isGenerator() ↵Gaming4JC2019-12-17-7/+13
| | | | | | method. Tag #1287
* Bug 1364573 - Don't relazify class default constructors.Gaming4JC2019-07-18-0/+1
| | | | | Because of the wacko way we handle toString offsets for class default constructors, those offsets cannot be recovered if we relazify the functions. Luckily there's no reason to relazify them, their JSScripts are very small: either a single 'retrval' for non-derived, and still fairly small for derived.
* 1216630 - Rename preludeStart and postludeEnd to toStringStart and ↵Gaming4JC2019-07-18-27/+35
| | | | toStringEnd and misc fixes.
* 1216630 - Print class source when calling toString on the constructor.Gaming4JC2019-07-18-7/+32
| | | | | | | | | | This is accomplished in the following ways. LazyScripts and JSScripts now have 4 offsets: - Source begin and end for the actual source. This is used for lazy parsing. - toString begin and end for toString. Some kinds of functions, like async, only have a different begin offset. Class constructors have different offsets for both begin and end. For syntactically present (i.e. non-default) constructors, the class source span is remembered directly on the LazyScript or JSScript. The toString implementation then splices out the substring directly. For default constructors, a new SRC_CLASS SrcNote type is added. It's binary and has as its arguments the begin and end offsets of the class expression or statement. MakeDefaultConstructor reads the note and overrides the cloned self-hosted function's source object. This is probably the least intrusive way to accomplish this.
* 1320408 - Change JSScript::sourceDataWithPrelude to static methodGaming4JC2019-07-18-1/+1
| | | | UXP Interdiff
* 1320408 - Part 12: Change JSScript::sourceData to static method.Gaming4JC2019-07-18-2/+2
|
* 1320408 - Part 10: Change LazyScript::functionDelazifying to static method.Gaming4JC2019-07-18-1/+1
|
* 1320403 - Move JSFunction::EXPR_BODY to JSScript, LazyScript, and FunctionBox.Gaming4JC2019-07-18-1/+21
|
* Stage 1-1: Implement Function.prototype.toString revision proposal.wolfbeast2019-02-02-14/+35
| | | | Tag #960
* Bug 1346862 - Fix IteratorClose due to non-local jumps being catchable by ↵janekptacijarabaci2018-03-25-0/+1
| | | | | | try statements inside for-of Issue #74
* Bug 1342553, Bug 1343072, Bug 1344753 (details in the description)janekptacijarabaci2018-03-25-1/+0
| | | | | | | | | | Bug 1342553 - Part 0.1: Use try-catch for IteratorClose in for-of Bug 1343072 - Update HasLiveStackValueAtDepth to follow the change in JSTRY_FOR_OF Bug 1344753 - Update for-of stack depth in ControlFlowGenerator::processWhileOrForInLoop Issue #74
* Bug 1147371: Implement IteratorClose for array destructuringjanekptacijarabaci2018-03-24-1/+2
| | | | Issue #74
* Bug 1147371: Implement IteratorClose for for-ofjanekptacijarabaci2018-03-24-1/+2
| | | | Issue #74
* Bug 1320388: Move JSFunction::HAS_REST to JSScript and LazyScriptjanekptacijarabaci2018-03-19-0/+17
| | | | | | Issue #78 [Depends on] Bug 883377: Implement ES6 function "name" property semantics
* Bug 755821: Function() should use the parser's argument parsing codejanekptacijarabaci2018-03-16-9/+19
|
* Add m-esr52 at 52.6.0Matt A. Tobin2018-02-02-0/+2276