| Commit message (Collapse) | Author | Age | Lines |
|
|
|
|
| |
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.
|
|
|
|
| |
toStringEnd and misc fixes.
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
| |
UXP Interdiff
|
| |
|
| |
|
| |
|
|
|
|
| |
Tag #960
|
|
|
|
|
|
| |
try statements inside for-of
Issue #74
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
Issue #74
|
|
|
|
| |
Issue #74
|
|
|
|
|
|
| |
Issue #78
[Depends on] Bug 883377: Implement ES6 function "name" property
semantics
|
| |
|
|
|