summaryrefslogtreecommitdiff
path: root/dom/base/nsJSUtils.cpp
Commit message (Collapse)AuthorAge
* Issue #1691 - Part 12: Fix return value in ExecScript() and debug assert in ↵Brian Smith2023-04-27
| | | | | | | | | | | | | ParseTask. https://bugzilla.mozilla.org/show_bug.cgi?id=1331662 Replace nsJSUtils::EvaluateString calls by ExecutionContext scopes. ExecutionContext: The mRetValue is not used even though it is checked in various asserts. This is how it is in the Mozilla code even years later, only the passed in value is used. ParseTask: JoinDecode() and JoinCompile() run the same code but the type is different causing a debug assert when it checks the type Script vs ScriptDecode. (cherry picked from commit 8f577428b7834b7d0f0d5afacbe060fbb1ff2136)
* Issue #1691 - Part 8: Fix --enable-debug builds and continue dynamic module ↵Brian Smith2023-04-27
| | | | | | | | | | | | | import changes. https://bugzilla.mozilla.org/show_bug.cgi?id=1342012 Support import from timeout handlers by associating the initiating script with the compiled JSScript. Fix error message that covers all import() failures that don't throw a JS exception. https://bugzilla.mozilla.org/show_bug.cgi?id=1331662 Partial - Replace nsJSUtils::EvaluateString calls by ExecutionContext scopes. Left EvaluateString() in nsXBLProtoImplField.cpp until ExecutionContext errors can be fixed. (cherry picked from commit 22fcfc77971a9bb204df664c474681f4dcf54211)
* Issue #1691 - Part 7f: Split up compile and execute so we can use ClassicScript.Brian Smith2023-04-27
| | | | | | | | | https://bugzilla.mozilla.org/show_bug.cgi?id=1342012 Refactor nsJSUtils::ExecutionContext to separate compilation and execution steps and allow extraction of compiled JSScript. https://bugzilla.mozilla.org/show_bug.cgi?id=1366773 Move buffer argument from JS::StartIncrementalEncoding to JS::FinishIncrementalEncoding. (cherry picked from commit d4b520b08b958e116dfeeffdc61f3425610d1ce9)
* Issue #1691 - Part 7e: Dependencies for required to finish part 7d.Brian Smith2023-04-27
| | | | | | | | | | | | | | | | | | | 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)
* Issue #1624 - Make ion inlining optimizations a pref.Moonchild2020-12-03
| | | | This also adds it to JS_SetGlobalJitCompilerOption()
* Issue #1656 - Part 1: Nuke most vim config lines in the tree.Moonchild2020-09-23
| | | | | | Since these are just interpreted comments, there's 0 impact on actual code. This removes all lines that match /* vim: set(.*)tw=80: */ with S&R -- there are a few others scattered around which will be removed manually in a second part.
* Issue #618 - Remove eager instantiation - Debug follow upGaming4JC2020-07-11
| | | | | | | The added debug assertion did not take into account microtask refactoring done in BZ 1405821. Resulting in error: no member named 'IsInMicroTask' in 'nsContentUtils'. This resolves the error.
* Issue #618 - Remove eager instantiationMoonchild2020-07-04
| | | | | This backs out the stuff added in Bug 1295978. Ref: BZ 1295978, 1388728
* Issue #618 - Match JSAPI names with the changes in ↵Moonchild2020-07-03
| | | | | | 9ca74147225eed305e28c7887f9b2251aeeb0f36 Ref: BZ 1388728
* Issue #80 - De-unify dom/baseMatt A. Tobin2020-04-17
| | | | Tag #1375
* Bug 1405821 - Move microtask handling to CycleCollectedJSContextGaming4JC2020-01-26
| | | | Tag UXP Issue #1344
* Add m-esr52 at 52.6.0Matt A. Tobin2018-02-02