Unreviewed, rolling out r204697
[WebKit-https.git] / JSTests / ChangeLog
1 2016-08-21  Yusuke Suzuki  <utatane.tea@gmail.com>
2
3         Unreviewed, rolling out r204697
4         https://bugs.webkit.org/show_bug.cgi?id=161029
5
6         * typeProfiler/int52-dfg.js: Removed.
7         (test): Deleted.
8         * typeProfiler/number-filter-dfg.js: Removed.
9         (test): Deleted.
10
11 2016-08-21  Yusuke Suzuki  <utatane.tea@gmail.com>
12
13         [DFG] Should not fixup AnyIntUse in 32_64
14         https://bugs.webkit.org/show_bug.cgi?id=161029
15
16         Reviewed by Saam Barati.
17
18         * typeProfiler/int52-dfg.js: Added.
19         (test):
20         * typeProfiler/number-filter-dfg.js: Added.
21         (test):
22
23 2016-08-19  Benjamin Poulain  <bpoulain@apple.com>
24
25         [JSC] ArithSqrt should work with any argument type
26         https://bugs.webkit.org/show_bug.cgi?id=160954
27
28         Reviewed by Saam Barati.
29
30         * stress/arith-sqrt-on-various-types.js: Added.
31         (let.validInputTypedTestCases.validInputTestCases.map):
32         (isIdentical):
33         (opaqueAllTypesSqrt):
34         (testAllTypesCall):
35         (testSingleTypeCall):
36         (opaqueSqrtForSideEffects):
37         (testSideEffect.let.testObject.valueOf):
38         (testSideEffect):
39         (opaqueSqrtForCSE):
40         (testCSE.let.testObject.valueOf):
41         (testCSE):
42         (testException.opaqueSqrtWithException):
43         (testException):
44
45 2016-08-19  Joseph Pecoraro  <pecoraro@apple.com>
46
47         Make custom Error properties (line, column, sourceURL) configurable and writable
48         https://bugs.webkit.org/show_bug.cgi?id=160984
49         <rdar://problem/27905979>
50
51         Reviewed by Saam Barati.
52
53         * stress/native-error-properties.js: Added.
54         (assert):
55         (shouldNotThrow):
56
57         (checkEmptyErrorPropertiesDescriptors):
58         (checkNonEmptyErrorPropertiesDescriptors):
59         The spec only describes the "message" property, so
60         ensure it has the right descriptor attributes.
61
62         (checkErrorPropertiesWritable):
63         Ensure common error property names are writable.
64         In strict mode this would have thrown an exception
65         if they were readonly.
66
67 2016-08-18  Mark Lam  <mark.lam@apple.com>
68
69         ScopedArguments is using the wrong owner object for a write barrier.
70         https://bugs.webkit.org/show_bug.cgi?id=160976
71         <rdar://problem/27328506>
72
73         Reviewed by Keith Miller.
74
75         * stress/scoped-arguments-write-barrier-should-be-on-scope-object.js: Added.
76
77 2016-08-17  JF Bastien  <jfbastien@apple.com>
78
79         We allow assignments to const variables when in a for-in/for-of loop
80         https://bugs.webkit.org/show_bug.cgi?id=156673
81
82         Reviewed by Filip Pizlo.
83
84         * stress/for-in-of-const.js: Added.
85         (expect_nothrow):
86         (expect_throw):
87         (capture):
88
89 2016-08-17  Mark Lam  <mark.lam@apple.com>
90
91         Remove an invalid assertion in the DFG backend's GetById emitter.
92         https://bugs.webkit.org/show_bug.cgi?id=160925
93         <rdar://problem/27248961>
94
95         Reviewed by Filip Pizlo.
96
97         * stress/dfg-get-by-id-should-not-assert-non-null-prediction.js: Added.
98
99 2016-08-16  Ryan Haddad  <ryanhaddad@apple.com>
100
101         Unreviewed, rolling out r204464.
102
103         This is no longer needed after r204495.
104
105         Reverted changeset:
106
107         "Skip failing test mozilla/ecma/LexicalConventions/7.7.3.js"
108         https://bugs.webkit.org/show_bug.cgi?id=160662
109         http://trac.webkit.org/changeset/204464
110
111 2016-08-15  Ryan Haddad  <ryanhaddad@apple.com>
112
113         Skip failing test mozilla/ecma/LexicalConventions/7.7.3.js
114         https://bugs.webkit.org/show_bug.cgi?id=160662
115
116         Unreviewed test gardening.
117
118         * mozilla/ecma/LexicalConventions/7.7.3.js:
119
120 2016-08-14  Skachkov Oleksandr  <gskachkov@gmail.com>
121
122         [2016] Set correct status for test262 after implementation of Object.values&Object.entries
123         https://bugs.webkit.org/show_bug.cgi?id=160844
124
125         Reviewed by Saam Barati.
126
127         Patch contains fix statuses of specs in the test262 test collection after implementation of 
128         Object.values and Object.entries functions. Also patch contains small fixes in tests of the 
129         tests for Object.values/entries functions.
130
131         * stress/object-entries.js:
132         (Object.getOwnPropertyDescriptor):
133         * stress/object-values.js:
134         (Object.getOwnPropertyDescriptor):
135         * test262.yaml:
136
137 2016-08-12  Saam Barati  <sbarati@apple.com>
138
139         Inline store loop for CopyRest in DFG and FTL for certain array modes
140         https://bugs.webkit.org/show_bug.cgi?id=159612
141
142         Reviewed by Filip Pizlo.
143
144         * stress/rest-parameter-having-a-bad-time.js: Added.
145         * stress/rest-parameter-many-arguments.js: Added.
146         * stress/rest-parameter-various-types.js: Added.
147
148 2016-08-12  Skachkov Oleksandr  <gskachkov@gmail.com>
149
150         [ES2016] Implement Object.entries
151         https://bugs.webkit.org/show_bug.cgi?id=160412
152
153         Reviewed by Saam Barati.
154
155         Patch contains tests for Object.entries function and 
156         fix of wrong tests for Object.values function.
157
158         * stress/object-entries.js: 
159         (compare):
160         (string_appeared_here.forEach):
161         (const.getInvokedFunctions.):
162         (const.getInvokedFunctions):
163         (Array.prototype.push):
164         * stress/object-values.js:
165
166 2016-08-11  Mark Lam  <mark.lam@apple.com>
167
168         OverridesHasInstance should not branch across register allocations.
169         https://bugs.webkit.org/show_bug.cgi?id=160792
170         <rdar://problem/27361778>
171
172         Reviewed by Benjamin Poulain.
173
174         * stress/OverrideHasInstance-should-not-branch-across-register-allocations.js: Added.
175
176 2016-08-11  Mark Lam  <mark.lam@apple.com>
177
178         The jsc shell's Element host constructor should throw if it fails to construct an object.
179         https://bugs.webkit.org/show_bug.cgi?id=160773
180         <rdar://problem/27328608>
181
182         Reviewed by Saam Barati.
183
184         * stress/generational-opaque-roots.js:
185
186 2016-08-11  Mark Lam  <mark.lam@apple.com>
187
188         Disallow synchronous sweeping for eden GCs.
189         https://bugs.webkit.org/show_bug.cgi?id=160716
190
191         Reviewed by Geoffrey Garen.
192
193         * stress/eden-gc-with-retired-blocks.js: Added.
194         - This test is just in case we add back support for eden GCs with synchronous
195           sweeping in the future.
196
197 2016-08-10  Michael Saboff  <msaboff@apple.com>
198
199         Baseline GetByVal and PutByVal for cache ID stubs need to handle exceptions
200         https://bugs.webkit.org/show_bug.cgi?id=160749
201
202         Reviewed by Filip Pizlo.
203
204         New test that causes baseline GetByValWithCachedId and PutByValWithCachedId
205         stubs to be generated and then throws exceptions for those stub to handle
206         to verify that they are properly handled.
207
208         * stress/regress-160749.js: Added.
209         (testCachedGetByVal.):
210         (testCachedGetByVal.get for):
211         (testCachedGetByVal):
212         (testCachedPutByVal.):
213         (testCachedPutByVal.set for):
214         (testCachedPutByVal):
215
216 2016-08-10  Mark Lam  <mark.lam@apple.com>
217
218         DFG's flushForTerminal() needs to add PhantomLocals for bytecode live locals.
219         https://bugs.webkit.org/show_bug.cgi?id=160755
220         <rdar://problem/27488507>
221
222         Reviewed by Filip Pizlo.
223
224         * stress/need-bytecode-liveness-for-unreachable-blocks-at-dfg-time.js: Added.
225
226 2016-08-09  Skachkov Oleksandr  <gskachkov@gmail.com>
227
228         [ES2016] Implement Object.values
229         https://bugs.webkit.org/show_bug.cgi?id=160410
230
231         Reviewed by Saam Barati, Yusuke Suzuki.
232
233         * stress/object-values.js: Added.
234         (compare):
235         (string_appeared_here.forEach):
236         (const.getInvokedFunctions.):
237         (const.getInvokedFunctions):
238         (Array.prototype.push):
239
240 2016-08-09  Saam Barati  <sbarati@apple.com>
241
242         JSBoundFunction should lazily generate its name string
243         https://bugs.webkit.org/show_bug.cgi?id=160678
244         <rdar://problem/27043194>
245
246         Reviewed by Mark Lam.
247
248         * stress/bound-function-lazy-name-generation.js: Added.
249         (assert):
250         (test.let.f):
251         (test.f):
252         (test):
253
254 2016-08-08  Mark Lam  <mark.lam@apple.com>
255
256         ASSERTION FAILED: hasInlineStorage() in JSFinalObject::visitChildren().
257         https://bugs.webkit.org/show_bug.cgi?id=160666
258
259         Reviewed by Keith Miller.
260
261         * stress/object-constructor-should-be-new-target-aware.js:
262
263 2016-08-07  Yusuke Suzuki  <utatane.tea@gmail.com>
264
265         [ES6] Module namespace object should not allow unset IC
266         https://bugs.webkit.org/show_bug.cgi?id=160553
267
268         Reviewed by Saam Barati.
269
270         * modules/namespace-object-get-property.js: Added.
271         (import.as.ns.from.string_appeared_here.shouldThrow):
272         * modules/namespace-object-has-property.js: Added.
273         * modules/namespace-object-inline-caching.js: Added.
274         (import.as.A.from.string_appeared_here.import.as.B.from.string_appeared_here.lookup):
275         (shouldBe.lookup.lookup):
276         (shouldBe.lookup):
277         * modules/namespace-object-inline-caching/a.js: Added.
278         * modules/namespace-object-inline-caching/b.js: Added.
279         * modules/namespace-object-try-get.js: Added.
280         (import.as.ns.from.string_appeared_here.tryGetByIdText):
281         (tryGetByIdTextStrict):
282         * modules/namespace-object-typed-array-fast-path.js: Added.
283         * test262.yaml:
284
285 2016-08-05  Saam Barati  <sbarati@apple.com>
286
287         various math operations don't properly check for an exception after calling toNumber() on the lhs
288         https://bugs.webkit.org/show_bug.cgi?id=160154
289
290         Reviewed by Mark Lam.
291
292         * stress/to-number-throws-correct-exception.js: Added.
293         (test.let.test.runTest.):
294         (test.let.test.runTest.get f):
295         (test.let.test.runTest):
296         (test.let.test):
297         (test):
298         (test2.runTest.):
299         (test2.runTest.get f):
300         (test2.runTest):
301         (test2):
302
303 2016-08-05  Saam Barati  <sbarati@apple.com>
304
305         Assertion failure when accessing TDZ variable in catch through eval
306         https://bugs.webkit.org/show_bug.cgi?id=160554
307
308         Reviewed by Mark Lam and Keith Miller.
309
310         * stress/catch-variables-under-tdz.js: Added.
311         (test):
312
313 2016-08-04  Yusuke Suzuki  <utatane.tea@gmail.com>
314
315         [ES6] JSModuleNamespaceObject's Symbol.iterator function should have name
316         https://bugs.webkit.org/show_bug.cgi?id=160549
317
318         Reviewed by Saam Barati.
319
320         * modules/namespace-object-symbol-iterator-name.js: Added.
321         * test262.yaml:
322
323 2016-08-04  Keith Miller  <keith_miller@apple.com>
324
325         ASSERTION FAILED: !hasInstanceValueNode->isCellConstant() || defaultHasInstanceFunction == hasInstanceValueNode->asCell()
326         https://bugs.webkit.org/show_bug.cgi?id=160562
327
328         Reviewed by Mark Lam.
329
330         * stress/instanceof-late-constant-folding.js: Added.
331         (Constructor):
332         (value):
333         (body):
334
335 2016-08-04  Caitlin Potter  <caitp@igalia.com>
336
337         [JSC] fix generator-syntax.js JSTest again after yield grammar fix
338         https://bugs.webkit.org/show_bug.cgi?id=160550
339
340         Reviewed by Yusuke Suzuki.
341
342         * stress/generator-syntax.js:
343         (testYieldBindingIdentifier):
344
345 2016-08-03  Caitlin Potter  <caitp@igalia.com>
346
347         Clarify SyntaxErrors around yield and unskip tests
348         https://bugs.webkit.org/show_bug.cgi?id=158460
349
350         Reviewed by Saam Barati.
351
352         Fix and unskip tests which erroneously asserted that `yield` is not a
353         valid BindingIdentifier, and improve error message for YieldExpressions
354         occuring in Arrow formal parameters.
355
356         * stress/generator-syntax.js:
357         * stress/yield-out-of-generator.js:
358
359 2016-08-03  Filip Pizlo  <fpizlo@apple.com>
360
361         REGRESSION(r203368): broke some test262 tests
362         https://bugs.webkit.org/show_bug.cgi?id=160479
363
364         Reviewed by Mark Lam.
365         
366         Added a stress test for this case, since we don't always run test262.
367
368         * stress/freeze-setter.js: Added.
369         (let.o.set foo):
370
371 2016-08-03  Saam Barati  <sbarati@apple.com>
372
373         Implement nested rest destructuring w.r.t the ES7 spec
374         https://bugs.webkit.org/show_bug.cgi?id=160423
375
376         Reviewed by Filip Pizlo.
377
378         * stress/destructuring-rest-element.js: Added.
379         (assert):
380         (test):
381         (arr):
382         (eq):
383         (gen):
384         (fakeGen.return.Symbol.iterator):
385         (fakeGen):
386         * stress/rest-elements.js:
387         (testSyntaxError.String.raw):
388         * stress/rest-parameter-is-destructuring.js: Added.
389         (assert):
390         (test):
391         (foo):
392         (bar):
393         * test262.yaml:
394
395 2016-08-02  Saam Barati  <sbarati@apple.com>
396
397         Rename Changelog to ChangeLog
398
399         Rubber stamped by Keith Miller.
400
401         * Changelog: Removed.
402
403 2016-08-02  Saam Barati  <sbarati@apple.com>
404
405         update a class extending null w.r.t the ES7 spec
406         https://bugs.webkit.org/show_bug.cgi?id=160417
407
408         Reviewed by Keith Miller.
409
410         * Changelog:
411         * stress/class-derived-from-null.js: Added.
412         (assert):
413         (test):
414         (test1.C):
415         (test1):
416         (jsNull):
417         (test2.C):
418         (test2):
419         (test3.C):
420         (test3.D):
421         (test3.E):
422         (test3):
423         (test4.E):
424         (test4):
425         (test5.E):
426         (test5):
427         (test6.Base):
428         (test6.D):
429         (test6.E):
430         (test6.F):
431         (test6.G):
432         (test6):
433         * test262.yaml:
434
435 2016-08-01  Filip Pizlo  <fpizlo@apple.com>
436
437         Rationalize varargs stack overflow checks
438         https://bugs.webkit.org/show_bug.cgi?id=160425
439
440         Reviewed by Michael Saboff.
441
442         * stress/arity-check-ftl-throw-more-args.js: Added.
443         (catch):
444
445 2016-08-01  Keith Miller  <keith_miller@apple.com>
446
447         We should not keep the JavaScript tests inside the Source/JavaScriptCore/ directory.
448         https://bugs.webkit.org/show_bug.cgi?id=160372
449
450         Rubber stamped by Geoffrey Garen.
451
452         This patch moves all the JavaScript tests from Source/JavaScriptCore/tests to
453         a new top level directory, JSTests. Having the tests in the Source directory
454         was both confusing an inconvenient for people that just want to checkout the
455         source code of WebKit. Since there is no other obvious place to put all the
456         JavaScript tests a new top level directory seemed the most sensible.
457
458         * tests/: Deleted.