summaryrefslogtreecommitdiff
path: root/js/src/vm
Commit message (Collapse)AuthorAge
* Issue #2343 - replace MOZ_FALLTHROUGH with [[fallthrough]]Moonchild2023-11-11
| | | | Basically a S&R. Removed the macro and adjusts IDL codegen accordingly.
* Issue #2342: Use [[nodiscard]] in /jsMoonchild2023-11-08
|
* Merge pull request 'Switch our tree to building with c++17' (#2372) from ↵Moonchild2023-11-08
|\ | | | | | | | | | | 2281-c++17-buildwork into master Reviewed-on: https://repo.palemoon.org/MoonchildProductions/UXP/pulls/2372
| * Issue #2281 - Avoid class-static constexpr in TypedArrayObjectMoonchild2023-11-05
| |
* | No Issue - StructuredClone serialize and deserialize should treat back ↵Basilisk-Dev2023-10-30
| | | | | | | | | | | | reference consistently Backport of https://bugzilla.mozilla.org/show_bug.cgi?id=1538622
* | No issue - Structured clone algorithm doesn't serialize Array Length ↵Basilisk-Dev2023-10-30
|/ | | | | | contrary to HTML spec, resulting in truncation of trailing sparse arrays like [1,2,3,,] Backport of https://bugzilla.mozilla.org/show_bug.cgi?id=1476955
* Issue #1442 Follow-up: Stop pretending proxies have a JSNative ↵Brian Smith2023-10-16
| | | | | | | | call/construct hook. https://bugzilla.mozilla.org/show_bug.cgi?id=1471924 Part 1 Also remove an erroneous debug assert and guard against future issues. This fixes crashes on vk.com but still does not behave correctly.
* Issue #1442 - Part 4: Add JSAPI functions for working with ReadableStream.Brian Smith2023-09-27
| | | | https://bugzilla.mozilla.org/show_bug.cgi?id=1272697
* Issue #1442 - Part 3: Implement ReadableStream and associated classes in the ↵Brian Smith2023-09-27
| | | | | | JS engine. https://bugzilla.mozilla.org/show_bug.cgi?id=1272697
* Issue #1442 - Part 1: Change ArrayBufferCopyData self-hosting intrinsic to ↵Brian Smith2023-09-27
| | | | | | | take a start offset for the destination. This will be needed to manage stream chunks. https://bugzilla.mozilla.org/show_bug.cgi?id=1272697
* Merge branch 'master' into simdjs-removalMoonchild2023-09-20
|\
| * Issue #2308 & #1240 Follow-up - Replace JSOP_POS in ++/-- with JSOP_TONUMERIC.Brian Smith2023-09-17
| | | | | | | | https://bugzilla.mozilla.org/show_bug.cgi?id=1519135
| * Issue #2308 & #1240 Follow-up - Add BigInt support to JSOP_INC and JSOP_DEC.Brian Smith2023-09-17
| | | | | | | | https://bugzilla.mozilla.org/show_bug.cgi?id=1526309
| * Issue #2308 & #1240 Follow-up - Introduce new increment and decrement ↵Brian Smith2023-09-16
| | | | | | | | | | | | operations. https://bugzilla.mozilla.org/show_bug.cgi?id=1508521
| * Issue #2026 Follow-up: Fill in missing BigInt64 cases in ↵Brian Smith2023-09-06
| | | | | | | | | | | | js::IsTypedArrayConstructor(). Hopefully fixes RSA errors on ProtonMail.
* | Issue #2307 - Part 3: Remove SIMD.js supportMoonchild2023-09-18
|/ | | | | | This gets rid of the SIMD-specific scalar types in JS. This considerably deviates from Mozilla's work because of our divergent path.
* Issue #2255 - Disable untested code path in Stopwatch.(h|cpp).Brian Smith2023-08-14
| | | | | | https://bugzilla.mozilla.org/show_bug.cgi?id=1325299 Multiprocessor support in Windows returned bogus times causing debug asserts. This may or may not be related to the issue but found it trying to debug it.
* Issue #2172 - add null zone sanity checksMartok2023-08-09
|
* Issue #2172 - add missing RegExpShared TraceKind declarationMartok2023-08-08
|
* Issue #2026 - Part 4 - Fill in missing dense elements case and fix a comment.Brian Smith2023-07-28
| | | | | | | https://bugzilla.mozilla.org/show_bug.cgi?id=1456569 Skipped this during the initial implementation, not sure when or if this code path is used, but I figure it should be there just in case. Also fix debug builgs by removing an no longer valid MOZ_ASSERT.
* Issue #2026 - Part 2b - Format BigInts representable as int64_t without ↵Brian Smith2023-07-25
| | | | | | first converting them to strings. https://bugzilla.mozilla.org/show_bug.cgi?id=1543677
* Issue #2026 - Part 2a - Support BigInt in NumberFormat and toLocaleString.Brian Smith2023-07-25
| | | | https://bugzilla.mozilla.org/show_bug.cgi?id=1543677
* Issue #2026 - Part 1 - Implement BigInt64 and BigUint64Array.Brian Smith2023-07-24
| | | | https://bugzilla.mozilla.org/show_bug.cgi?id=1456569
* Issue #1240 - Part 11 - Fix several issue reported on review.Brian Smith2023-07-23
| | | | | | | | | | Skip over block delimiters when parsing BigInt literals. Update BigInt hashing to account for the possibility of moving GC. https://bugzilla.mozilla.org/show_bug.cgi?id=1531018 Make HashableValue comparison of BigInts infallible. https://bugzilla.mozilla.org/show_bug.cgi?id=1530406 Fix BigInt constructor API CallArgs usage. https://bugzilla.mozilla.org/show_bug.cgi?id=1526279
* Issue #1240 - Part 10 - Implement minimal Ion support for BigInt.Brian Smith2023-07-21
| | | | | | https://bugzilla.mozilla.org/show_bug.cgi?id=1507484 Implement IC support for BigInt. https://bugzilla.mozilla.org/show_bug.cgi?id=1522431
* Issue #1240 - Part 8 - Fix incorrect asserts with debug enabled.Brian Smith2023-07-21
| | | | | | Fix BigInt errors in remainder operations https://bugzilla.mozilla.org/show_bug.cgi?id=1524136 Also fix 2 debug asserts in fallthroughs due to missing BigInt cases.
* Issue #1240 - Part 5g - Implement BigInt comparison operators.Brian Smith2023-07-19
| | | | | | | Implement BigInt support for equality operators. https://bugzilla.mozilla.org/show_bug.cgi?id=1486173 Part 3. Implement BigInt support for relational comparison operators. https://bugzilla.mozilla.org/show_bug.cgi?id=1492669
* Issue #1240 - Part 6b - Use ToIndex when constructing TypedArray with length ↵Brian Smith2023-07-19
| | | | | | argument. https://bugzilla.mozilla.org/show_bug.cgi?id=1317383 Part 2.
* Issue #1240 - Part 5f - Add DataView methods for BigInt access.Brian Smith2023-07-19
| | | | https://bugzilla.mozilla.org/show_bug.cgi?id=1528582
* Issue #1240 - Part 5e - BigInt bitwise operators.Brian Smith2023-07-19
| | | | https://bugzilla.mozilla.org/show_bug.cgi?id=1490387
* Issue #1240 - Part 5b - BigInt support for basic arithmetic operations.Brian Smith2023-07-19
| | | | https://bugzilla.mozilla.org/show_bug.cgi?id=1471134 Parts 3-5.
* Merge branch 'master' into bigint-mergedBrian Smith2023-07-18
|\
| * Issue #2271 - Use declared names of self-hosted functions for cloningMartok2023-07-13
| | | | | | | | | | | | | | | | | | Ensure that cloning a self-hosted function always has access to the declared name from the source and that it doesn't get lost on successive clones. This is done by storing the declared name in an extended slot on rename, and cloning it with the function. Based-on: m-c 1546232
| * Issue #2271 - Separate cloning of native and interpreted functionsMartok2023-07-13
| | | | | | | | | | | | | | Separate code paths make it easier to follow and specialize than a single one-size-fits-all function. Based-on: m-c 1405766, 1411954
* | Issue #1240 - Part 4 - Implement parser support for BigInt literals.Brian Smith2023-07-18
| | | | | | | | | | | | | | | | | | https://bugzilla.mozilla.org/show_bug.cgi?id=1505849 Partially based on https://bugzilla.mozilla.org/show_bug.cgi?id=1456568 Un-result-ified the BigInt XDR code, so we can enable it. https://bugzilla.mozilla.org/show_bug.cgi?id=1419094 Uninitialised memory read with BigInt right-shift https://bugzilla.mozilla.org/show_bug.cgi?id=1679003
* | Issue #1240 - Part 3c - Fast-forward to the V8 version of BigIntType.Brian Smith2023-07-13
| | | | | | | | | | | | | | | | | | Disabling some sections temporarily since the dependencies are not there yet. Based on the following: https://bugzilla.mozilla.org/show_bug.cgi?id=1502797 https://bugzilla.mozilla.org/show_bug.cgi?id=1471134 https://bugzilla.mozilla.org/show_bug.cgi?id=1441098 Part 3 & 4 Add structured clone support for BigInt and Enable BigInt wrapping from DOM bindings. https://bugzilla.mozilla.org/show_bug.cgi?id=1522738
* | Issue #1240 - Part 2 - Define the BigIntObject class for BigInt wrapper objects.Brian Smith2023-07-13
| | | | | | | | | | Based on https://bugzilla.mozilla.org/show_bug.cgi?id=1366287 Part 3. In our Part 3 we will fast forward to the V8 implementation skipping GMP.
* | Issue #1240 - Part 1 - Define a new BigInt primitive type.Brian Smith2023-07-13
|/ | | | | Based on https://bugzilla.mozilla.org/show_bug.cgi?id=1366287 Part 1.0. However leaving out the --enable-bigint changes.
* Merge pull request 'Intl API Updates' (#2265) from ↵Moonchild2023-07-02
|\ | | | | | | | | | | martok/UXP-contrib:intl-upgrades into master Reviewed-on: https://repo.palemoon.org/MoonchildProductions/UXP/pulls/2265
| * Issue #2046 - Implement Intl.DateTimeFormat's date-/timeStyle and hourCycle ↵Martok2023-06-30
| | | | | | | | | | | | | | | | options - remove mozExtensions flag and expose to client code Based-on: m-c 1557718
| * Issue #1819 - Further align Intl.Locale to specMartok2023-06-30
| | | | | | | | | | - Reference updates (UTS 35) - variant subtag and transform extension canonicalisation
| * Issue #2259 - Performance improvements in LocaleMartok2023-06-30
| | | | | | | | | | | | | | | | | | - Move BestAvailableLocale function to C++ - Move default locale computation to C++ - Add available-locales set to SharedIntlData - Remove separate sets for DateFormat and NumberFormat available locales. Based-on: m-c 1373089
| * Issue #1819 - Implement Intl.Locale proposalMartok2023-06-30
| | | | | | | | | | | | | | | | | | | | | | This is according to spec for the mozilla71 cycle, a follow-up will further adjust to spec. - Add Intl.Locale as native C++ - Port Unicode BCP 47 locale identifier parser to C++ - Port language tag parser to C++ - adjust make_intl_data to generate the data Based-on: m-c 1433303, 1570370
| * Issue #2259 - process Unicode langtags and locale identifiers according to ↵Martok2023-06-30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | BCP 47 Major spec change: text references are to BCP47 (not the implementing RFCs) and the single source of truth is now Unicode CLDR. - Switch from IANA to CLDR for make_unicode - Update grandfathered tag handling directly in the parser - Don't support extlang, irregular, privateuse or 4-letter subtags - Adjust comments to refer to Unicode BCP 47 locale identifiers, remove RFC 5646 - Canonicalize/order langtags correctly - Tokenize BCP47 in reusable class Based-on: m-c 1407674(partial), 1451082, 1530320, 1522070, 1531091
| * Issue #2259 - Improve ResolveLocale performance when initializing the ↵Martok2023-06-30
| | | | | | | | | | | | default Intl objects Based-on: m-c 1365650
| * Issue #2259 - Reimplement String.prototype.toLocale{Lower,Upper}Case per ↵Martok2023-06-29
| | | | | | | | | | | | | | | | | | | | ECMAScript Intl specification - Update make_unicode to output SpecialCasing - Handle special casing - Use realloc instead of malloc when resizing a newly created string buffer Based-on: m-c 1318403, 1431957
| * Issue #2259 - Implement caseFirst option in Intl.CollatorMartok2023-06-29
| | | | | | | | Based-on: m-c 866473
| * Issue #2046 - Introduce mozIntl.DateTimeFormat with mozExtensionsMartok2023-06-29
| | | | | | | | Based-on: m-c 1329904
| * Issue #2259 - Update Intl.* Object-ness to ECMA-402, 4th editionMartok2023-06-29
| | | | | | | | | | | | | | | | | | | | - turn each Intl object into a NativeObject subclass - create them as PlainObject - ensure correct type is passed in self-hosted code - implement legacy constructor semantics for DateTime&NumberFormat - store internals on object slot instead of JS WeakMap Based-on: m-c 1328386, 1332604
| * Issue #2259 - Add mozilla::Result<V, E> and JS::Result<> for fallible return ↵Martok2023-06-29
| | | | | | | | | | | | values Based-on: m-c 1283562, 1277368/1, 1324828