[JSC] JSON.stringify can accept call-with-no-arguments
[WebKit-https.git] / JSTests / ChangeLog
1 2018-10-13  Yusuke Suzuki  <yusukesuzuki@slowstart.org>
2
3         [JSC] JSON.stringify can accept call-with-no-arguments
4         https://bugs.webkit.org/show_bug.cgi?id=190343
5
6         Reviewed by Mark Lam.
7
8         * stress/json-stringify-no-arguments.js: Added.
9         (shouldBe):
10
11 2018-10-08  Yusuke Suzuki  <yusukesuzuki@slowstart.org>
12
13         [JSC] JSC should have "parseFunction" to optimize Function constructor
14         https://bugs.webkit.org/show_bug.cgi?id=190340
15
16         Reviewed by Mark Lam.
17
18         This patch fixes the line number of syntax errors raised by the Function constructor,
19         since we now parse the final code only once. And we no longer use block statement
20         for Function constructor's parsing.
21
22         * ChakraCore/test/Function/FuncBodyES5.baseline-jsc:
23         * stress/function-cache-with-parameters-end-position.js: Added.
24         (shouldBe):
25         (shouldThrow):
26         (i.anonymous):
27         * stress/function-constructor-name.js: Added.
28         (shouldBe):
29         (GeneratorFunction):
30         (AsyncFunction.async):
31         (AsyncGeneratorFunction.async):
32         (anonymous):
33         (async.anonymous):
34         * test262/expectations.yaml:
35
36 2018-10-10  Guillaume Emont  <guijemont@igalia.com>
37
38         Skip JSC test stress/sampling-profiler-richards.js on armv7/linux
39         https://bugs.webkit.org/show_bug.cgi?id=190426
40
41         Unreviewed gardening.
42
43         * stress/sampling-profiler-richards.js:
44
45 2018-10-06  Caio Lima  <ticaiolima@gmail.com>
46
47         [ESNext][BigInt] Implement support for "|"
48         https://bugs.webkit.org/show_bug.cgi?id=186229
49
50         Reviewed by Yusuke Suzuki.
51
52         * stress/big-int-bitwise-and-jit.js:
53         * stress/big-int-bitwise-or-general.js: Added.
54         * stress/big-int-bitwise-or-jit-untyped.js: Added.
55         * stress/big-int-bitwise-or-jit.js: Added.
56         * stress/big-int-bitwise-or-memory-stress.js: Added.
57         * stress/big-int-bitwise-or-to-primitive-precedence.js: Added.
58         * stress/big-int-bitwise-or-type-error.js: Added.
59         * stress/big-int-bitwise-or-wrapped-value.js: Added.
60
61 2018-10-05  Dominik Infuehr  <dominik.infuehr@gmail.com>
62
63         Skip test on systems with limited memory
64         https://bugs.webkit.org/show_bug.cgi?id=190310
65
66         Invoking runDefault adds test to runlist, skipping the test in the next
67         line does not prevent the test from executing. Change order of lines such
68         that runDefault is only executed if test is not executed.
69
70         Reviewed by Mark Lam.
71
72         * stress/regress-190187.js:
73
74 2018-10-03  Saam barati  <sbarati@apple.com>
75
76         lowXYZ in FTLLower should always filter the type of the incoming edge
77         https://bugs.webkit.org/show_bug.cgi?id=189939
78         <rdar://problem/44407030>
79
80         Reviewed by Michael Saboff.
81
82         * stress/ftl-should-always-filter-for-low-type-check-functions.js: Added.
83         (foo):
84         (test):
85
86 2018-10-03  Mark Lam  <mark.lam@apple.com>
87
88         Make string MaxLength for all WTF and JS strings consistently equal to INT_MAX.
89         https://bugs.webkit.org/show_bug.cgi?id=190187
90         <rdar://problem/42512909>
91
92         Reviewed by Michael Saboff.
93
94         * stress/regress-190187.js: Added.
95
96 2018-10-02  Caio Lima  <ticaiolima@gmail.com>
97
98         [BigInt] BigInt.proptotype.toString is broken when radix is power of 2
99         https://bugs.webkit.org/show_bug.cgi?id=190033
100
101         Reviewed by Yusuke Suzuki.
102
103         * stress/big-int-to-string.js:
104
105 2018-10-01  Mark Lam  <mark.lam@apple.com>
106
107         Function.toString() should also copy the source code Functions that are class definitions.
108         https://bugs.webkit.org/show_bug.cgi?id=190186
109         <rdar://problem/44733360>
110
111         Reviewed by Saam Barati.
112
113         * stress/regress-190186.js: Added.
114
115 2018-10-01  Dominik Infuehr  <dinfuehr@igalia.com>
116
117         Split NaN-check into separate test
118         https://bugs.webkit.org/show_bug.cgi?id=190010
119
120         Reviewed by Saam Barati.
121
122         DataView exposes NaN-representation, which is not necessarily the same on each
123         architecture. Therefore move the check of the NaN-representation into its own
124         file such that we can disable this test on MIPS where NaN-representation can be
125         different on older CPUs.
126
127         * stress/dataview-jit-set-nan.js: Added.
128         (assert):
129         (test.storeLittleEndian):
130         (test.storeBigEndian):
131         (test.store):
132         (test):
133         * stress/dataview-jit-set.js:
134         (test5):
135
136 2018-10-01  Commit Queue  <commit-queue@webkit.org>
137
138         Unreviewed, rolling out r236647.
139         https://bugs.webkit.org/show_bug.cgi?id=190124
140
141         Breaking test stress/big-int-to-string.js (Requested by
142         caiolima_ on #webkit).
143
144         Reverted changeset:
145
146         "[BigInt] BigInt.proptotype.toString is broken when radix is
147         power of 2"
148         https://bugs.webkit.org/show_bug.cgi?id=190033
149         https://trac.webkit.org/changeset/236647
150
151 2018-09-30  Caio Lima  <ticaiolima@gmail.com>
152
153         [BigInt] BigInt.proptotype.toString is broken when radix is power of 2
154         https://bugs.webkit.org/show_bug.cgi?id=190033
155
156         Reviewed by Yusuke Suzuki.
157
158         * stress/big-int-to-string.js:
159
160 2018-09-28  Caio Lima  <ticaiolima@gmail.com>
161
162         [ESNext][BigInt] Implement support for "&"
163         https://bugs.webkit.org/show_bug.cgi?id=186228
164
165         Reviewed by Yusuke Suzuki.
166
167         * stress/big-int-bitwise-and-general.js: Added.
168         (assert):
169         (assert.sameValue):
170         * stress/big-int-bitwise-and-jit.js: Added.
171         (let.assert.sameValue):
172         (bigIntBitAnd):
173         * stress/big-int-bitwise-and-memory-stress.js: Added.
174         (assert):
175         * stress/big-int-bitwise-and-to-primitive-precedence.js: Added.
176         (assert.sameValue):
177         (let.o.Symbol.toPrimitive):
178         (catch):
179         * stress/big-int-bitwise-and-type-error.js: Added.
180         (assert):
181         (assertThrowTypeError):
182         (let.o.valueOf):
183         (o.valueOf):
184         (o.toString):
185         (o.Symbol.toPrimitive):
186         * stress/big-int-bitwise-and-wrapped-value.js: Added.
187         (assert.sameValue):
188         (testBitAnd):
189         (let.o.Symbol.toPrimitive):
190         (o.valueOf):
191         (o.toString):
192
193 2018-09-28  Ross Kirsling  <ross.kirsling@sony.com>
194
195         JSC test stress/jsc-read.js doesn't support CRLF
196         https://bugs.webkit.org/show_bug.cgi?id=190063
197
198         Reviewed by Yusuke Suzuki.
199
200         In order to run this test via Windows command prompt, we can't assume that the final newline will be LF.
201
202         * stress/jsc-read.js:
203         (test):
204
205 2018-09-27  Saam barati  <sbarati@apple.com>
206
207         Verify the contents of AssemblerBuffer on arm64e
208         https://bugs.webkit.org/show_bug.cgi?id=190057
209         <rdar://problem/38916630>
210
211         Reviewed by Mark Lam.
212
213         * stress/regress-189132.js:
214
215 2018-09-27  Dominik Infuehr  <dinfuehr@igalia.com>
216
217         Disable test without LLInt on ARMv7
218         https://bugs.webkit.org/show_bug.cgi?id=190037
219
220         Reviewed by Mark Lam.
221
222         Test runs out of executable memory on ARMv7, do not run
223         this test without LLInt enabled.
224
225         * stress/regress-169445.js:
226
227 2018-09-26  Keith Miller  <keith_miller@apple.com>
228
229         We should zero unused property storage when rebalancing array storage.
230         https://bugs.webkit.org/show_bug.cgi?id=188151
231
232         Reviewed by Michael Saboff.
233
234         * stress/splice-should-zero-property-storage-when-rebalancing.js: Added.
235
236 2018-09-20  Yusuke Suzuki  <yusukesuzuki@slowstart.org>
237
238         [JSC] Optimize Array#lastIndexOf
239         https://bugs.webkit.org/show_bug.cgi?id=189780
240
241         Reviewed by Saam Barati.
242
243         * stress/array-lastindexof-array-prototype-trap.js: Added.
244         (shouldBe):
245         (AncestorArray.prototype.get 2):
246         (AncestorArray):
247         * stress/array-lastindexof-have-a-bad-time-c-runtime.js: Added.
248         (shouldBe):
249         * stress/array-lastindexof-hole-nan.js: Added.
250         (shouldBe):
251         (throw.new.Error):
252         * stress/array-lastindexof-infinity.js: Added.
253         (shouldBe):
254         (throw.new.Error):
255         * stress/array-lastindexof-negative-zero.js: Added.
256         (shouldBe):
257         (throw.new.Error):
258         * stress/array-lastindexof-own-getter.js: Added.
259         (shouldBe):
260         (throw.new.Error.get array):
261         (get array):
262         * stress/array-lastindexof-prototype-trap.js: Added.
263         (shouldBe):
264         (DerivedArray.prototype.get 2):
265         (DerivedArray):
266
267 2018-09-25  Saam Barati  <sbarati@apple.com>
268
269         Calls to baselineCodeBlockForOriginAndBaselineCodeBlock in operationMaterializeObjectInOSR should actually pass in the baseline CodeBlock
270         https://bugs.webkit.org/show_bug.cgi?id=189940
271         <rdar://problem/43640987>
272
273         Reviewed by Mark Lam.
274
275         * stress/use-baseline-codeblock-materialize-osr-exit.js: Added.
276
277 2018-09-24  Saam Barati  <sbarati@apple.com>
278
279         Array.prototype.indexOf fast path needs to ensure the length is still valid after performing effects
280         https://bugs.webkit.org/show_bug.cgi?id=189922
281         <rdar://problem/44651275>
282
283         Reviewed by Mark Lam.
284
285         * stress/array-indexof-fast-path-effects.js: Added.
286         * stress/array-indexof-cached-length.js: Added.
287
288 2018-09-24  Saam barati  <sbarati@apple.com>
289
290         ArgumentsEliminationPhase should snip basic blocks after proven OSR exits
291         https://bugs.webkit.org/show_bug.cgi?id=189682
292         <rdar://problem/43557315>
293
294         Reviewed by Mark Lam.
295
296         * stress/arguments-elimination-will-generate-edge-without-result.js: Added.
297         (foo):
298
299 2018-09-22  Saam barati  <sbarati@apple.com>
300
301         The sampling should not use Strong<CodeBlock> in its machineLocation field
302         https://bugs.webkit.org/show_bug.cgi?id=189319
303
304         Reviewed by Filip Pizlo.
305
306         * stress/sampling-profiler-richards.js: Added.
307
308 2018-09-19  Yusuke Suzuki  <yusukesuzuki@slowstart.org>
309
310         [JSC] Optimize Array#indexOf in C++ runtime
311         https://bugs.webkit.org/show_bug.cgi?id=189507
312
313         Reviewed by Saam Barati.
314
315         * stress/array-indexof-array-prototype-trap.js: Added.
316         (shouldBe):
317         (AncestorArray.prototype.get 2):
318         (AncestorArray):
319         * stress/array-indexof-have-a-bad-time-c-runtime.js: Added.
320         (shouldBe):
321         * stress/array-indexof-hole-nan.js: Added.
322         (shouldBe):
323         (throw.new.Error):
324         * stress/array-indexof-infinity.js: Added.
325         (shouldBe):
326         (throw.new.Error):
327         * stress/array-indexof-negative-zero.js: Added.
328         (shouldBe):
329         (throw.new.Error):
330         * stress/array-indexof-own-getter.js: Added.
331         (shouldBe):
332         (throw.new.Error.get array):
333         (get array):
334         * stress/array-indexof-prototype-trap.js: Added.
335         (shouldBe):
336         (DerivedArray.prototype.get 2):
337         (DerivedArray):
338
339 2018-09-19  Saam barati  <sbarati@apple.com>
340
341         AI rule for MultiPutByOffset executes its effects in the wrong order
342         https://bugs.webkit.org/show_bug.cgi?id=189757
343         <rdar://problem/43535257>
344
345         Reviewed by Michael Saboff.
346
347         * stress/multi-put-by-offset-must-filter-value-before-filtering-base.js: Added.
348         (foo):
349         (Foo):
350         (g):
351
352 2018-09-17  Mark Lam  <mark.lam@apple.com>
353
354         Ensure that ForInContexts are invalidated if their loop local is over-written.
355         https://bugs.webkit.org/show_bug.cgi?id=189571
356         <rdar://problem/44402277>
357
358         Reviewed by Saam Barati.
359
360         * stress/regress-189571.js: Added.
361
362 2018-09-17  Saam barati  <sbarati@apple.com>
363
364         We must convert ProfileType to CheckStructureOrEmpty instead of CheckStructure
365         https://bugs.webkit.org/show_bug.cgi?id=189676
366         <rdar://problem/39682897>
367
368         Reviewed by Michael Saboff.
369
370         * typeProfiler/check-structure-or-empty-in-fixup.js: Added.
371         (A):
372         (K):
373         (i.catch):
374
375 2018-09-14  Saam barati  <sbarati@apple.com>
376
377         Don't dump OSRAvailabilityData in Graph::dump because a stale Availability may point to a Node that is already freed
378         https://bugs.webkit.org/show_bug.cgi?id=189628
379         <rdar://problem/39481690>
380
381         Reviewed by Mark Lam.
382
383         * stress/verbose-failure-dont-graph-dump-availability-already-freed.js: Added.
384         (foo):
385
386 2018-09-11  Mark Lam  <mark.lam@apple.com>
387
388         Test for array initialization in arrayProtoFuncSplice.
389         https://bugs.webkit.org/show_bug.cgi?id=170253
390         <rdar://problem/31328773>
391
392         Rubber-stamped by Saam Barati.
393
394         * stress/regress-170253.js: Added.
395
396 2018-09-11  Mark Lam  <mark.lam@apple.com>
397
398         Test for IntlObject initialization.
399         https://bugs.webkit.org/show_bug.cgi?id=170251
400         <rdar://problem/31328419>
401
402         Rubber-stamped by Saam Barati.
403
404         * stress/regress-170251.js: Added.
405
406 2018-09-11  Mark Lam  <mark.lam@apple.com>
407
408         Test for array memcpy'ing when JSGlobalObject::haveABadTime.
409         https://bugs.webkit.org/show_bug.cgi?id=169889
410         <rdar://problem/31155607>
411
412         Reviewed by Saam Barati.
413
414         * stress/regress-169889-array-concat.js: Added.
415         * stress/regress-169889-array-concat1.js: Added.
416         * stress/regress-169889-array-slice.js: Added.
417
418 2018-09-11  Mark Lam  <mark.lam@apple.com>
419
420         Test for incorrect check in emitPutDerivedConstructorToArrowFunctionContextScope.
421         https://bugs.webkit.org/show_bug.cgi?id=169445
422         <rdar://problem/30957435>
423
424         Reviewed by Saam Barati.
425
426         * stress/regress-169445.js: Added.
427         (let.gun.eval.A):
428         (let.gun.eval.B.C):
429         (let.gun.eval.B.C.prototype.trigger):
430         (let.gun.eval.B.C.prototype.triggerWithRestParameters):
431         (let.gun.eval.B):
432         (let.gun.eval):
433
434 == Rolled over to ChangeLog-2018-09-11 ==