Moonchild
72d9d1a476
Don't rely on nsCRT from jsdate.
2022-03-22 22:33:11 +08:00
roytam1
2ceec8871e
Bug 1743515 - Add dynamic check for valid serialized length. r=jonco, a=RyanVM
2022-01-19 10:27:16 +08:00
Moonchild
1d1618ff0c
Issue #1675 - Move regexp to new-regexp to make bz porting simpler.
2021-08-12 11:21:23 +08:00
Moonchild
12231d9266
Issue #1679 - Part4: Clean up commented-out/WIP code.
2021-08-12 11:21:21 +08:00
Moonchild
3548ae2b2f
Issue #1679 - Part 3: Make everything build on supported compilers.
2021-08-12 11:21:20 +08:00
Jeremy Andrews
495db8d7bc
Issue #1725 - Fix logic in PerformPromiseAllSettled.
...
This function essentially appears to work as written, there was an issue with it returning false too early in some situations that prevented it from working properly.
2021-07-23 08:57:36 +08:00
Moonchild
ada10bce17
WIP: Base implementation
2021-07-23 08:57:35 +08:00
Moonchild
ba00d14c12
Issue #1751 - Remove Mac code behind MOZ_WIDGET_TOOLKIT == 'cocoa'
2021-06-24 11:09:47 +08:00
Moonchild
d46c25b5e5
[js] Fix porting typo
...
Follow-up for 9acd98298ccadd83495fa1615573ebcca6648bae
2021-06-04 09:31:07 +08:00
Jan de Mooij
9c3495379f
[js] Fix invalid early return in BaselineFrame::trace.
...
We were not tracing debugger environments for Baseline frames without any
local/expression slots.
2021-06-04 09:31:06 +08:00
Moonchild
a4b0f333ba
Issue #1751 -- Remove XP_MACOSX conditionals from the rest of the tree.
...
This also removes some PP abuse and takes file entries out of PP when no longer
needed without XP_MACOSX conditionals.
2021-05-07 09:53:59 +08:00
Moonchild
2f27335cc4
Issue #1751 -- Remove XP_DARWIN
2021-05-05 10:27:04 +08:00
Moonchild
a9c8f3a84a
Issue #1751 -- Remove XP_IOS
2021-05-05 10:26:14 +08:00
Moonchild
4651d97342
Issue #1756 - Clean up ICU patch.
...
We don't need ICU_UNUM_HAS_FORMATDOUBLEFORFIELDS because we don't support any
ICU other than the one in-tree.
2021-04-02 10:34:14 +08:00
Moonchild
bdcb9cc504
Issue #1756 - Expose NumberFormat.formatToParts() to content.
2021-04-02 10:34:12 +08:00
Moonchild
5df0028108
Issue #1756 - Initial wrapped implementation in C++
2021-04-02 10:34:10 +08:00
Moonchild
b8f2ada817
Issue #1053 - Remove __ANDROID__ defines (except in third party code)
2021-03-25 09:04:29 +08:00
Moonchild
9985a44c41
Issue #1053 - Remove android blocks from configure.
2021-03-11 10:13:51 +08:00
Moonchild
50653a7c4c
Issue #1053 - Remove build system MOZ_ANDROID_* defines and related code.
2021-03-11 10:13:09 +08:00
Moonchild
d6c1cc53ba
[js] Add XMMRegName for invalid_xmm
2021-02-16 14:03:47 +08:00
Moonchild
bd0f8a2eca
Issue #1739 - Implement numeric separators.
...
Resolves #1739
2021-02-16 14:03:45 +08:00
Moonchild
dc1d14fcb9
Issue #1738 - Follow-up: Update comment (no code changes)
2021-02-16 14:03:44 +08:00
Moonchild
23c9fab20d
Issue #1738 - Part 2: Implement well-formed JSON stringify
...
This implements the ES2019 spec for JSON stringification, including
lower-casing, properly escaping lone surrogates, etc.
2021-02-12 10:50:21 +08:00
Moonchild
feab62b009
Issue #1738 - Part 1: Improve performance of JSON stringify
...
- Use some pointer voodoo and instead of stringbuffer append()
- Use a lookup table instead of char comparisons for chr < 256
- Stop using a Hashtable/MovableCellHasher for JSON CycleDetector
2021-02-12 10:50:19 +08:00
Moonchild
ebf2abb0e3
Update tzdata to 2021a
...
Because people are apparently never satisfied with the time zones on the planet!
2021-02-12 10:50:02 +08:00
Moonchild
34dc51690f
Issue #1732 - Implement JSON superset proposal.
...
This change makes unicode line and paragraph separators allowed in JS strings,
removing the only quirk of the JS string definition that made JSON not a valid
subset of JS.
Resolves #1732
2021-02-12 10:49:19 +08:00
Moonchild
4ff9d87cb4
Issue #1726 - Add verification test for string.replaceAll()
2021-02-05 07:35:08 +08:00
meatloaf
00a689060f
Issue #1726 - Implement String.replaceAll()
...
This also implements IsRegExp, as this demands it.
Ported from https://bugzilla.mozilla.org/show_bug.cgi?id=1540021
2021-02-05 07:35:06 +08:00
Moonchild
0989dc6d2d
[js] Remove unused promise selfhosting functions.
...
These are leftovers from when promises were fully self-hosted and could cause
confusion if left in place.
2021-02-03 10:04:44 +08:00
Moonchild
5d2fea0dac
[js] Add AutoEnterOOMUnsafeRegion to JS_TransplantObject.
...
Transplanting objects is inherently oom-unsafe, so add
`AutoEnterOOMUnsafeRegion` to `JS_TransplantObject()` and annotate crashes
accordingly if they do happen.
2021-01-27 21:02:55 +08:00
Matt A. Tobin
325e57e916
Issue #1624 - Fix slot access intrinsics for objects with > 16 reserved slots
...
Also flips ion inlining pref back on
2021-01-14 22:19:19 +08:00
Moonchild
aa38ed97fa
Issue #1701 - Implement Intl.PluralRules API
2020-12-24 09:36:34 +08:00
Moonchild
fe5097e7ed
Nuke erroneously added vim line.
2020-12-04 08:52:50 +08:00
Moonchild
ec0865128b
Issue #1624 - Make ion inlining optimizations a pref.
...
This also adds it to JS_SetGlobalJitCompilerOption()
2020-12-04 08:52:49 +08:00
Moonchild
7996b9e2cf
Issue #1624 - Globally disable inlining optimizations in the JS JIT compiler.
2020-12-02 09:57:31 +08:00
Matt A. Tobin
50684945ba
Issue #1676 - Follow-up: Put js/src (including vm), jit, and wasm back into unified sources.
...
Function template inflation in intermediate code. The linker problem we hit with the corrupt file was because there were too many function descriptors and relation in the .lib
2020-11-27 10:02:14 +08:00
Moonchild
87982cb409
Issue #1679 - Part 2: Some small issues to address buildability.
...
- Explicitly |this| the Asserts in Cell.as<>
- Unified deprot in regexp-error.h
- Convert RegExpShared* inner() to a reinterpret_cast because for SOME reason
.as<> no longer works after the reimport (which is a static cast)
2020-11-13 09:15:22 +08:00
Matt A. Tobin
dbeab6d3af
Issue #1679 - Part 1: First pass account for some of the refactoring differences in regexp-shim.h
...
This is the patch Moonchild committed on the aborted branch before the plan was revised.
2020-11-13 09:15:20 +08:00
Matt A. Tobin
d646d4403f
Bug 1328948 - Add is(), as() to Cell.
...
Tag #1679
2020-11-13 09:15:16 +08:00
Matt A. Tobin
0789f637d1
Issue #1677 - Part 6: Implement NativeRegExpMacroAssembler for new regexp import based on irregexp/NativeRegExpMacroAssembler.cpp
2020-11-13 09:15:13 +08:00
Matt A. Tobin
e3a3e92316
Issue #1677 - Part 5: "Simplify" regexp re-import process (and re-import from later revision)
...
I am going on record to say Mozilla are utter fucking assholes for pulling this as part of their progression.
2020-11-13 09:15:11 +08:00
Matt A. Tobin
12c7f5df33
Issue #1677 - Part 4: Implement shim for regexp
2020-11-13 09:15:10 +08:00
Matt A. Tobin
fdb560b34d
Issue #1677 - Part 3: Create shim definitions for V8-specific code in new regexp implementation
2020-11-13 09:15:08 +08:00
Matt A. Tobin
a3bc68b4e9
Issue #1677 - Part 2: Add build files
2020-11-06 09:43:55 +08:00
Matt A. Tobin
6dc6ff456e
Issue #1677 - Part 1: Import new V8 regexp code with Mozilla's header modifications
2020-11-06 09:43:54 +08:00
Matt A. Tobin
5f32ee0c71
Issue #1676 - Part 21: Use js-cxxflags.mozbuild in testing code and js shell
2020-11-06 09:43:34 +08:00
Matt A. Tobin
b38a250130
Issue #1676 - Part 20: Split vtune sources out of js/src/moz.build
2020-11-06 09:43:32 +08:00
Matt A. Tobin
6da35ffb78
Issue #1676 - Part 19: Split ctypes sources out of js/src/moz.build
2020-11-06 09:43:31 +08:00
Matt A. Tobin
66308991b1
Issue #1676 - Part 18: Move and separate top level sources from vm sources in js/src/moz.build
2020-11-06 09:43:29 +08:00
Matt A. Tobin
fc371224e1
Issue #1676 - Part 17: Put remaining source files which have debug code ifdef'd behind MOZ_DEBUG
2020-11-06 09:43:28 +08:00