[JSC] Optimize Array#lastIndexOf
[WebKit-https.git] / JSTests / ChangeLog
1 2018-09-20  Yusuke Suzuki  <yusukesuzuki@slowstart.org>
2
3         [JSC] Optimize Array#lastIndexOf
4         https://bugs.webkit.org/show_bug.cgi?id=189780
5
6         Reviewed by Saam Barati.
7
8         * stress/array-lastindexof-array-prototype-trap.js: Added.
9         (shouldBe):
10         (AncestorArray.prototype.get 2):
11         (AncestorArray):
12         * stress/array-lastindexof-have-a-bad-time-c-runtime.js: Added.
13         (shouldBe):
14         * stress/array-lastindexof-hole-nan.js: Added.
15         (shouldBe):
16         (throw.new.Error):
17         * stress/array-lastindexof-infinity.js: Added.
18         (shouldBe):
19         (throw.new.Error):
20         * stress/array-lastindexof-negative-zero.js: Added.
21         (shouldBe):
22         (throw.new.Error):
23         * stress/array-lastindexof-own-getter.js: Added.
24         (shouldBe):
25         (throw.new.Error.get array):
26         (get array):
27         * stress/array-lastindexof-prototype-trap.js: Added.
28         (shouldBe):
29         (DerivedArray.prototype.get 2):
30         (DerivedArray):
31
32 2018-09-25  Saam Barati  <sbarati@apple.com>
33
34         Calls to baselineCodeBlockForOriginAndBaselineCodeBlock in operationMaterializeObjectInOSR should actually pass in the baseline CodeBlock
35         https://bugs.webkit.org/show_bug.cgi?id=189940
36         <rdar://problem/43640987>
37
38         Reviewed by Mark Lam.
39
40         * stress/use-baseline-codeblock-materialize-osr-exit.js: Added.
41
42 2018-09-24  Saam Barati  <sbarati@apple.com>
43
44         Array.prototype.indexOf fast path needs to ensure the length is still valid after performing effects
45         https://bugs.webkit.org/show_bug.cgi?id=189922
46         <rdar://problem/44651275>
47
48         Reviewed by Mark Lam.
49
50         * stress/array-indexof-fast-path-effects.js: Added.
51         * stress/array-indexof-cached-length.js: Added.
52
53 2018-09-24  Saam barati  <sbarati@apple.com>
54
55         ArgumentsEliminationPhase should snip basic blocks after proven OSR exits
56         https://bugs.webkit.org/show_bug.cgi?id=189682
57         <rdar://problem/43557315>
58
59         Reviewed by Mark Lam.
60
61         * stress/arguments-elimination-will-generate-edge-without-result.js: Added.
62         (foo):
63
64 2018-09-22  Saam barati  <sbarati@apple.com>
65
66         The sampling should not use Strong<CodeBlock> in its machineLocation field
67         https://bugs.webkit.org/show_bug.cgi?id=189319
68
69         Reviewed by Filip Pizlo.
70
71         * stress/sampling-profiler-richards.js: Added.
72
73 2018-09-19  Yusuke Suzuki  <yusukesuzuki@slowstart.org>
74
75         [JSC] Optimize Array#indexOf in C++ runtime
76         https://bugs.webkit.org/show_bug.cgi?id=189507
77
78         Reviewed by Saam Barati.
79
80         * stress/array-indexof-array-prototype-trap.js: Added.
81         (shouldBe):
82         (AncestorArray.prototype.get 2):
83         (AncestorArray):
84         * stress/array-indexof-have-a-bad-time-c-runtime.js: Added.
85         (shouldBe):
86         * stress/array-indexof-hole-nan.js: Added.
87         (shouldBe):
88         (throw.new.Error):
89         * stress/array-indexof-infinity.js: Added.
90         (shouldBe):
91         (throw.new.Error):
92         * stress/array-indexof-negative-zero.js: Added.
93         (shouldBe):
94         (throw.new.Error):
95         * stress/array-indexof-own-getter.js: Added.
96         (shouldBe):
97         (throw.new.Error.get array):
98         (get array):
99         * stress/array-indexof-prototype-trap.js: Added.
100         (shouldBe):
101         (DerivedArray.prototype.get 2):
102         (DerivedArray):
103
104 2018-09-19  Saam barati  <sbarati@apple.com>
105
106         AI rule for MultiPutByOffset executes its effects in the wrong order
107         https://bugs.webkit.org/show_bug.cgi?id=189757
108         <rdar://problem/43535257>
109
110         Reviewed by Michael Saboff.
111
112         * stress/multi-put-by-offset-must-filter-value-before-filtering-base.js: Added.
113         (foo):
114         (Foo):
115         (g):
116
117 2018-09-17  Mark Lam  <mark.lam@apple.com>
118
119         Ensure that ForInContexts are invalidated if their loop local is over-written.
120         https://bugs.webkit.org/show_bug.cgi?id=189571
121         <rdar://problem/44402277>
122
123         Reviewed by Saam Barati.
124
125         * stress/regress-189571.js: Added.
126
127 2018-09-17  Saam barati  <sbarati@apple.com>
128
129         We must convert ProfileType to CheckStructureOrEmpty instead of CheckStructure
130         https://bugs.webkit.org/show_bug.cgi?id=189676
131         <rdar://problem/39682897>
132
133         Reviewed by Michael Saboff.
134
135         * typeProfiler/check-structure-or-empty-in-fixup.js: Added.
136         (A):
137         (K):
138         (i.catch):
139
140 2018-09-14  Saam barati  <sbarati@apple.com>
141
142         Don't dump OSRAvailabilityData in Graph::dump because a stale Availability may point to a Node that is already freed
143         https://bugs.webkit.org/show_bug.cgi?id=189628
144         <rdar://problem/39481690>
145
146         Reviewed by Mark Lam.
147
148         * stress/verbose-failure-dont-graph-dump-availability-already-freed.js: Added.
149         (foo):
150
151 2018-09-11  Mark Lam  <mark.lam@apple.com>
152
153         Test for array initialization in arrayProtoFuncSplice.
154         https://bugs.webkit.org/show_bug.cgi?id=170253
155         <rdar://problem/31328773>
156
157         Rubber-stamped by Saam Barati.
158
159         * stress/regress-170253.js: Added.
160
161 2018-09-11  Mark Lam  <mark.lam@apple.com>
162
163         Test for IntlObject initialization.
164         https://bugs.webkit.org/show_bug.cgi?id=170251
165         <rdar://problem/31328419>
166
167         Rubber-stamped by Saam Barati.
168
169         * stress/regress-170251.js: Added.
170
171 2018-09-11  Mark Lam  <mark.lam@apple.com>
172
173         Test for array memcpy'ing when JSGlobalObject::haveABadTime.
174         https://bugs.webkit.org/show_bug.cgi?id=169889
175         <rdar://problem/31155607>
176
177         Reviewed by Saam Barati.
178
179         * stress/regress-169889-array-concat.js: Added.
180         * stress/regress-169889-array-concat1.js: Added.
181         * stress/regress-169889-array-slice.js: Added.
182
183 2018-09-11  Mark Lam  <mark.lam@apple.com>
184
185         Test for incorrect check in emitPutDerivedConstructorToArrowFunctionContextScope.
186         https://bugs.webkit.org/show_bug.cgi?id=169445
187         <rdar://problem/30957435>
188
189         Reviewed by Saam Barati.
190
191         * stress/regress-169445.js: Added.
192         (let.gun.eval.A):
193         (let.gun.eval.B.C):
194         (let.gun.eval.B.C.prototype.trigger):
195         (let.gun.eval.B.C.prototype.triggerWithRestParameters):
196         (let.gun.eval.B):
197         (let.gun.eval):
198
199 == Rolled over to ChangeLog-2018-09-11 ==