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