wolfbeast
d73dc74bd1
Remove unboxed objects from GC
2019-05-24 21:55:58 +08:00
wolfbeast
d7714885d1
Remove Unboxed Objects in ScalarReplacement
...
A note about the Scalar Replacement Changes: The M{Load,Store}Unboxed*
instructions in theory could be used to manipulate and analyze typed
arrays. However, TypedArrays should already be excluded from eligibility
because of the potential for cross-thread sharing in a SharedArrayBuffer
world, and so the only support in Scalar Replacement here is for Unboxed
Objects, meaning it can all be removed.
2019-05-24 21:55:55 +08:00
wolfbeast
fb23522087
Remove initial chunk of Unboxed Objects machinery part 2
2019-05-24 21:55:50 +08:00
wolfbeast
7b0eb7be8c
remove unboxed code chunk (wip1)
2019-05-24 21:55:45 +08:00
wolfbeast
3c6346afa9
Unhook Unboxed Objects option
2019-05-24 21:55:41 +08:00
wolfbeast
ee01217265
Implement Symbol.prototype.description
...
Resolves #1096
2019-05-24 21:55:00 +08:00
wolfbeast
3538814b92
Implement array.flat and array.flatMap
...
Self-hosted implementation that adds both functions and adds them to
@@unscopables as specced in ES2019.
Resolves #1095
2019-05-24 21:54:58 +08:00
wolfbeast
dee48511aa
Implement String.prototype.trimStart and trimEnd.
...
This renames our internal function names because *Left and *Right might
be deprecated and have to be removed later, making that trivial.
Resolves #1089
2019-05-17 22:17:20 +08:00
win7-7
b11e5bc2d3
Braces and one more typo fix for comment
2019-05-03 21:34:45 +08:00
win7-7
b584107330
Whitespaces, typo, tabs to space
...
Remove whitespaces, correct comment typo, one more tab to space
2019-05-03 21:34:42 +08:00
win7-7
297f99b0bf
Remove rest of empty lines.
2019-05-03 21:34:39 +08:00
win7-7
1a8e4749c3
Remove some empty lines
2019-05-03 21:34:37 +08:00
win7-7
74084e2641
Remaining tabs to spaces JavaScriptShared.cpp
2019-05-03 21:34:35 +08:00
win7-7
862e0cb3ea
remaining tabs to space js/src/jsgc.cpp
2019-05-03 21:34:33 +08:00
win7-7
60e2d4889f
tab to spaces js/ipc
2019-05-03 21:34:31 +08:00
win7-7
965a10e9ce
tab to spaces js/src/gc
2019-05-03 21:32:20 +08:00
win7-7
4489faedab
tab to spaces js/src
2019-05-03 21:32:17 +08:00
win7-7
45680f8610
Add newline at end of files
2019-05-03 21:32:14 +08:00
win7-7
b8a58dab87
Add newline at end of file js/src/builtin
2019-05-03 21:32:11 +08:00
win7-7
9051e1dd6a
add newline at end of files js/src/gc
2019-05-03 21:32:09 +08:00
win7-7
41693aa70f
Add newline at end of files js/src
2019-05-03 21:32:06 +08:00
win7-7
0e23aedfcd
Space to comment.
2019-05-03 21:32:03 +08:00
win7-7
acf2827e3c
Improve dead compartment collection js/ipc
2019-05-03 21:32:01 +08:00
win7-7
68a36fe36f
Improve dead compartment collection js/src/builtin
2019-05-03 21:31:59 +08:00
win7-7
c1b4fc1442
Improve dead compartment collection js/src/gc
2019-05-03 21:31:57 +08:00
win7-7
a695e349d8
Improve dead compartment collection js/src
2019-05-03 21:31:55 +08:00
wolfbeast
ae2267db1e
Remove useless assert.
...
Resolves #1055 .
2019-04-27 08:55:51 +08:00
wolfbeast
0c3fb437a9
Rename TokenStream::reportStrictWarningErrorNumberVA to
...
TokenStream::reportExtraWarningErrorNumberVA for clarity.
Emit Extra Warnings instead of Strict Warnings from the BCE where
it makes sense.
2019-04-13 07:02:02 +08:00
wolfbeast
eea318fce4
Remove Parser::reportHelper since it's no longer used.
2019-04-13 07:02:00 +08:00
wolfbeast
d8bcfdb867
Inline Parser::reportHelper into its callers.
2019-04-13 07:01:58 +08:00
wolfbeast
ff81b6b3d8
Remove Parser::reportWithNode and its remaining callers.
...
All of the callsites have a full ParseNode* at hand, of which the offset
can be directly accessed.
2019-04-13 07:01:56 +08:00
wolfbeast
a389b4e151
Report errors for bad increment/decrement operands using
...
explicitly-specified offsets.
2019-04-13 07:01:54 +08:00
wolfbeast
33d09dce8b
Simplify checking of targets within destructuring patterns.
2019-04-13 07:01:52 +08:00
wolfbeast
fd2042225e
Simplify increment/decrement operand checking.
2019-04-13 07:01:51 +08:00
wolfbeast
598c71feb0
Inline Parser::checkAssignmentToCall into its sole caller.
2019-04-13 07:01:49 +08:00
wolfbeast
de1ec588d2
Specify an explicit offset when reporting an error for a for-of loop
...
whose target is an expression that begins with 'let'.
2019-04-13 07:01:47 +08:00
wolfbeast
e9b63ee1fe
Simplify checking of the left-hand side of assignment and compound
...
assignment expressions.
2019-04-13 07:01:45 +08:00
wolfbeast
d215447209
Remove for-in/of loop parsing code that redundantly marks the loop
...
target as assigned -- Parser::forHeadStart already does this.
2019-04-13 07:01:43 +08:00
wolfbeast
71dc0dd5c0
Report some errors about invalid left-hand-sides in for-in/of loop heads
...
using code with an explicitly computed offset.
2019-04-13 07:01:41 +08:00
wolfbeast
ade86b0f20
Report the error for uninitialized const-declaration in for(;;) loop
...
head using an explicit offset.
2019-04-13 07:01:40 +08:00
wolfbeast
166a9654a8
Remove Parser::reportWithOffset since it's no longer used.
2019-04-13 07:01:38 +08:00
wolfbeast
218c8ce05c
Introduce Parser::warningAt
...
This reduces reporting an warning at a particular offset to its bare
essentials, simplifying calls.
2019-04-13 07:01:36 +08:00
wolfbeast
8542ac5f61
Report for-loop-decl-with-initializer errors using a specified offset
...
instead of a node's offset.
2019-04-13 07:01:34 +08:00
wolfbeast
42d2e161db
Report bad-class-member errors using a specified offset instead of a node's offset.
2019-04-13 07:01:32 +08:00
wolfbeast
f1f8d377a9
Remove Parser::reportBadReturn
...
Report simpler errors that don't use the offset of a node as location.
2019-04-13 07:01:31 +08:00
wolfbeast
07c1fa20ea
Introduce Parser::errorAt
...
This reduces reporting an error at a particular offset to its bare
essentials, simplifying calls.
2019-04-13 07:01:29 +08:00
wolfbeast
9191d0d06b
Inline Parser::checkFunctionDefinition into its sole caller.
2019-04-13 07:01:27 +08:00
wolfbeast
092b87b756
Inline GeneratorKindFromPropertyType and AsyncKindFromPropertyType.
...
Trivially inlines these into their sole caller.
2019-04-13 07:01:25 +08:00
wolfbeast
da1cb60dc3
Move the Parser::checkFunctionDefinition call into its callers.
2019-04-13 07:01:23 +08:00
wolfbeast
5cb16b488f
Move part of Parser::functionDefinition into callers.
2019-04-13 07:01:21 +08:00