Martok
3eb7729d04
Issue #2271 - Separate cloning of native and interpreted functions
...
Separate code paths make it easier to follow and specialize than a single
one-size-fits-all function.
Based-on: m-c 1405766, 1411954
2023-07-14 10:20:28 +08:00
Martok
22a9d46ef1
Issue #2142 - Track isFieldInitializer on JSScript instead of Scope
...
Introduce a FunctionSyntaxKind for FieldInitializer since special rules
(around `arguments`) apply. At the same time we can move the flag from the
scope to the JSScript. This is similar to how derived constructors are handled
and makes the initWithEnclosingScope code closer to initWithEnclosingContext.
This version is a bit more complex than Mozilla's due to different storage of
bit flags on JSScript.
Based-on: m-c 1636800
2023-05-01 13:27:03 +08:00
Brian Smith
993476283d
Issue #1691 - Part 7e: Dependencies for required to finish part 7d. https://bugzilla.mozilla.org/show_bug.cgi?id=1331662 Reimplement EvaluateString using the ExecutionContext class. https://bugzilla.mozilla.org/show_bug.cgi?id=1316078 Extract redudant code into StartOffThreadParseTask. Use an ExclusiveContext instead of a JSContext in XDR functions. Add a script decoder as a valid off-main-thread parse-task. https://bugzilla.mozilla.org/show_bug.cgi?id=900784 Add nsJSUtils functions for encoding and decoding the bytecode. https://bugzilla.mozilla.org/show_bug.cgi?id=1316081 Add XDRIncrementalEncoder to replace delazified LazyScript in the encoded XDR buffer. Add an XDRIncrementalEncoder instance on the ScriptSource. Expose a new JSAPI to incrementally encode bytecode when it is generated. https://bugzilla.mozilla.org/show_bug.cgi?id=1334091 XDR function use the sourceObject instead of the enclosingScript as argument.
...
(cherry picked from commit d6de9a669f4b2f5115670bd771cd53d7cfb3956a)
2023-04-30 21:20:33 +08:00
Moonchild
1868e88741
Fix some debug assertions.
...
refactored code porting in assertions causing debug build failures.
2022-10-06 10:26:38 +08:00
Martok
85af7f6e80
Issue #1952 - m-c 1383775: Clean up function toString/toSource code, remove remnants of source decompiler
2022-07-03 06:55:19 +08:00
Martok
fc6c505da8
Issue #1952 - m-c 1371593: Avoid repeated string atomizations when retrieving the unresolved name of a bound function
2022-07-03 06:54:25 +08:00
Martok
53d6173cfb
Issue #1952 - m-c 1365387: Optimize FinishBoundFunctionInit by delaying atomizing the function name
2022-07-03 06:54:09 +08:00
Moonchild
dabd32f955
Issue #1656 - Part 7: Nuke vim config lines in JS
2020-09-25 22:04:24 +08:00
Gaming4JC
10b93afff4
Bug 1331092 - Part 2: Implement Async Generator except yield*.
...
Tag #1287
2019-12-18 09:16:52 +08:00
Gaming4JC
45337018ef
Bug 1343481 - Part 2: Stop using StarGegerator for async function.
...
Tag #1287
2019-12-18 09:15:52 +08:00
Gaming4JC
7eb5d46c11
Bug 1343481 - Part 1: Remove {JSFunction,JSScript,LazyScript}.isGenerator() method.
...
Tag #1287
2019-12-18 09:15:51 +08:00
Gaming4JC
417aa02122
1344477 - Part 1: Add JSOP_CALL_IGNORES_RV for function call that ignores return value.
2019-07-22 19:52:23 +08:00
Gaming4JC
ed78b21cf0
1320408 - Part 3: Remove JSContext* parameter from JSFunction::getBoundFunctionArgument.
2019-07-22 19:47:31 +08:00
Gaming4JC
07cd213071
1320408 - Part 2: Change JSFunction::getOrCreateScript to static method.
2019-07-22 19:47:27 +08:00
Gaming4JC
6633322957
1320408 - Part 1: Change JSFunction::getLength and JSFunction::getUnresolvedLength to static method.
2019-07-22 19:47:24 +08:00
Gaming4JC
d451930d58
1320403 - Move JSFunction::EXPR_BODY to JSScript, LazyScript, and FunctionBox.
2019-07-22 19:46:14 +08:00
Gaming4JC
bf35c6ba70
1317090: Remove js::FindBody;
2019-07-22 19:45:56 +08:00
wolfbeast
518106945b
Use canonical function in TypeNewScript::rollbackPartiallyInitializedObjects.
2019-02-16 00:22:06 +08:00
trav90
10b24b8110
Fix Value::isGCThing footgun, stop returning true for NullValue
2019-02-15 23:41:26 +08:00
janekptacijarabaci
748c69d7fd
Part 1: Implement ES6 function name property semantics
...
Issue #78
2019-02-15 23:38:44 +08:00
janekptacijarabaci
e7ee7caf1e
Bug 1320388: Move JSFunction::HAS_REST to JSScript and LazyScript
...
Issue #78
[Depends on] Bug 883377: Implement ES6 function "name" property
semantics
2019-02-15 23:38:38 +08:00
janekptacijarabaci
0e7a16c088
Bug 755821: Function() should use the parser's argument parsing code
2019-02-15 23:38:10 +08:00
Roy Tam
dcd9973243
import FIREFOX_52_6_0esr_RELEASE from mozilla-esr52 hg repo
2018-01-19 03:59:58 +08:00