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