| Commit message (Collapse) | Author | Age | Lines |
|
|
|
|
|
|
| |
parsing classes.
Both asm.js and syntax parsing can abort and rewind parsing of an inner function.
The bookkeeping to make sure that a class's constructor FunctionBox is only set once is not worth it -- duplicate constructor definitions already throw an early error.
|
|
|
|
| |
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.
|
| |
|
|
|
|
| |
Tag #960
|
|
|
|
|
|
| |
Issue #78
[Depends on] Bug 883377: Implement ES6 function "name" property
semantics
|
|
|