forked from phoboslab/JavaScriptCore-iOS
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathChangeLog
More file actions
4693 lines (4239 loc) · 182 KB
/
ChangeLog
File metadata and controls
4693 lines (4239 loc) · 182 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
2012-08-24 Filip Pizlo <[email protected]>
Log-to-a-file should not be enabled
<rdar://problem/12172462>
Reviewed by Mark Hahnenberg.
* wtf/DataLog.cpp:
2012-08-14 Lucas Forschler <[email protected]>
Merge r124268.
2012-07-31 Sam Weinig <[email protected]>
Stop masking 8 bits off of the visited link hash. We need all the bits!
https://bugs.webkit.org/show_bug.cgi?id=92799
Reviewed by Anders Carlsson.
* wtf/StringHasher.h:
(WTF::StringHasher::hashWithTop8BitsMasked):
(WTF::StringHasher::hash):
(StringHasher):
(WTF::StringHasher::computeHashAndMaskTop8Bits):
(WTF::StringHasher::hashMemory):
(WTF::StringHasher::avalancheBits):
Rename existing computeHash and hash functions to computeHashAndMaskTop8Bits
and hashWithTop8BitsMasked respectively. Add new computeHash and hash functions
that do the StringHash without the masking.
* wtf/text/AtomicString.cpp:
(WTF::CStringTranslator::hash):
(WTF::UCharBufferTranslator::hash):
(WTF::HashAndCharactersTranslator::hash):
(WTF::SubstringTranslator::hash):
(WTF::LCharBufferFromLiteralDataTranslator::hash):
(WTF::AtomicString::fromUTF8Internal):
* wtf/text/StringHash.h:
(WTF::CaseFoldingHash::hash):
* wtf/text/StringImpl.h:
(WTF::StringImpl::setHash):
* wtf/text/StringStatics.cpp:
(WTF::StringImpl::hashSlowCase):
* wtf/unicode/UTF8.cpp:
(WTF::Unicode::calculateStringHashAndLengthFromUTF8MaskingTop8Bits):
* wtf/unicode/UTF8.h:
Update for new function names.
2012-05-23 Lucas Forschler <[email protected]>
Merge 117744
2012-05-21 Andreas Kling <[email protected]>
REGRESSION(r117501): IconDatabase asserts on startup in synchronousIconForPageURL().
<http://webkit.org/b/86935>
<rdar://problem/11480012>
Reviewed by Anders Carlsson.
Added a swap() to HashCountedSet.
* wtf/HashCountedSet.h:
(HashCountedSet::swap):
2012-05-04 Jeff Rogers <[email protected]>
[BlackBerry] Implement numberOfProcessorCores() for QNX
https://bugs.webkit.org/show_bug.cgi?id=85638
Reviewed by Antonio Gomes.
* wtf/NumberOfCores.cpp:
(WTF::numberOfProcessorCores):
2012-05-03 Yong Li <[email protected]>
Mutex failure when HashTable is memory moved in debug build
https://bugs.webkit.org/show_bug.cgi?id=84970
Reviewed by Rob Buis.
1. Replace m_mutex with OwnPtr<m_mutex> so HashTable is still
memory movable in debug build.
2. Assert successes of pthread_mutex_init() and pthread_mutex_destroy().
* wtf/HashTable.h:
(HashTable):
(WTF::::HashTable):
(WTF::::invalidateIterators):
(WTF::addIterator):
(WTF::removeIterator):
* wtf/ThreadingPthreads.cpp:
(WTF::Mutex::Mutex):
(WTF::Mutex::~Mutex):
2012-05-02 Antti Koivisto <[email protected]>
Add temporary feature define for parsed stylesheet caching
https://bugs.webkit.org/show_bug.cgi?id=85413
Rubber-stamped by Nikolas Zimmermann.
While not an externally visible feature this is still a significant internal change.
It is good to have define in case someone has an urgent need to turn it off.
Caching is enabled by default on all platforms. The define should be removed after some bake time.
* wtf/Platform.h:
2012-05-02 Lauro Neto <[email protected]>
[Qt]r57240 broke Qt build (gcc bug)
https://bugs.webkit.org/show_bug.cgi?id=37253
Reviewed by Csaba Osztrogonác.
Add back the inline hack just for ARM due to old version of
gcc still being used on Harmattan SDK. Thanks to Ossy for the
suggestion.
* wtf/PassRefPtr.h:
(WTF):
2012-05-02 Nico Weber <[email protected]>
Let WebKit parse with clang on windows with -std=c++11
https://bugs.webkit.org/show_bug.cgi?id=85398
Reviewed by Ryosuke Niwa.
See http://trac.webkit.org/changeset/85945 for background on the line
I'm changing. With clang, __GXX_EXPERIMENTLAL_CXX0X__ is set in c++11
mode, but MSVC's c++ library doesn't have a tr1/memory header. So also
check for __GLIBCXX__, like it's done in the rest of this file.
* wtf/TypeTraits.h:
2012-05-02 Adenilson Cavalcanti <[email protected]>
[Qt]r57240 broke Qt build (gcc bug)
https://bugs.webkit.org/show_bug.cgi?id=37253
Reviewed by Noam Rosenthal.
Removing workaround macro since current gcc/Qt doesn't require it to compile.
* wtf/PassRefPtr.h:
(WTF):
2012-04-30 Oliver Hunt <[email protected]>
Investigate overflows in Canvas putImageData routine
https://bugs.webkit.org/show_bug.cgi?id=61373
Reviewed by Gavin Barraclough.
Allow floating point multiplies of checked types (complete with
bounds checks).
* wtf/CheckedArithmetic.h:
(Checked):
(WTF::Checked::operator*=):
2012-04-30 Benjamin Poulain <[email protected]>
Add String::startsWith() and endsWith() for string literals
https://bugs.webkit.org/show_bug.cgi?id=85154
Reviewed by Darin Adler.
When invoking StringImpl::startsWidth() or StringImpl::endsWith() with
a string literal, a new String was constructed implicitly, allocating
a new StringImpl and copying the characters for the operation.
This patch adds a version of those methods for single characters and
string literals.
This allows us to avoid allocating memory and use the characters in place,
and it permits some extra shortcuts in the implementation.
* wtf/text/AtomicString.h:
(WTF::AtomicString::startsWith):
(AtomicString):
(WTF::AtomicString::endsWith):
* wtf/text/StringImpl.cpp:
(WTF::equalInner):
(WTF):
(WTF::StringImpl::startsWith):
(WTF::StringImpl::endsWith):
* wtf/text/StringImpl.h:
(WTF::StringImpl::startsWith):
(StringImpl):
(WTF::StringImpl::endsWith):
* wtf/text/WTFString.h:
(WTF::String::startsWith):
(String):
(WTF::String::endsWith):
2012-04-30 Anders Carlsson <[email protected]>
WTF::bind should work with blocks
https://bugs.webkit.org/show_bug.cgi?id=85227
Reviewed by Sam Weinig.
Add a block type FunctionWrapper specialization.
* wtf/Functional.h:
2012-04-28 Emil A Eklund <[email protected]>
Add ENABLE_SUBPIXEL_LAYOUT controlling FractionalLayoutUnit denominator
https://bugs.webkit.org/show_bug.cgi?id=85146
Reviewed by Eric Seidel.
Add a new flag for controlling the fixed point denominator in
FractionalLayoutUnit. Controls whether the denominator is set to 60 or 1.
Until we change the LayoutUnit typedef this change will have no effect.
* wtf/Platform.h:
2012-04-29 Kent Tamura <[email protected]>
[Mac] Add LocalizedDateMac
https://bugs.webkit.org/show_bug.cgi?id=85039
Reviewed by Kentaro Hara.
* wtf/DateMath.h:
(WTF): Add monthFullName[]. It is useful to make fallback month
names for calendar/date related features.
2012-04-26 Carlos Garcia Campos <[email protected]>
[SOUP] Add a way to register custom uri schemes in WebKit2
https://bugs.webkit.org/show_bug.cgi?id=84130
Reviewed by Martin Robinson.
Add GPtrArray template to be able to use GRefPtr with GPtrArrays.
* wtf/gobject/GRefPtr.cpp:
(WTF::refGPtr):
(WTF):
(WTF::derefGPtr):
* wtf/gobject/GRefPtr.h:
(WTF):
* wtf/gobject/GTypedefs.h:
2012-04-26 Nico Weber <[email protected]>
Don't define WTF_COMPILER_SUPPORTS_CXX_NULLPTR twice when building with clang on windows.
https://bugs.webkit.org/show_bug.cgi?id=85018
Reviewed by Anders Carlsson.
Clang sets _MSC_VER when compiling for a -pc-win32 target (just like it sets __GNUC__ on unix).
As a result, WTF_COMPILER_SUPPORTS_CXX_NULLPTR gets currently set twice, once for clang and
once for _MSC_VER. Guard the second instance with !COMPILER(CLANG). This matches the gcc code
for WTF_COMPILER_SUPPORTS_CXX_NULLPTR in the same file.
* wtf/Compiler.h:
2012-04-26 Antonio Gomes <[email protected]>
[BlackBerry] properly disable DRAG_SUPPORT
https://bugs.webkit.org/show_bug.cgi?id=84952
Reviewed by Daniel Bates.
* wtf/Platform.h: Remove the line that disables drag support from here
for the BlackBerry port.
2012-04-25 Benjamin Poulain <[email protected]>
Add a version of StringImpl::find() without offset
https://bugs.webkit.org/show_bug.cgi?id=83968
Reviewed by Sam Weinig.
This patch add a version of StringImpl::find() without offset, Instead of using the default
value for the index.
By not having the index, we can skip a couple of branches and a few instructions. This gives
significant gains when the strings are short-ish.
The case of empty string is moved below (matchLength == 1) since it is a less common operation.
* wtf/text/StringImpl.cpp:
(WTF::StringImpl::find):
(WTF):
* wtf/text/StringImpl.h:
(StringImpl):
* wtf/text/WTFString.h:
(String):
(WTF::String::find):
2012-04-25 Darin Adler <[email protected]>
Iterating a HashMap<String, X> involves a string equality comparison to check for the empty value
https://bugs.webkit.org/show_bug.cgi?id=84524
Reviewed by Antti Koivisto.
* wtf/HashMap.h: Added a struct template, HashMapValueTraits, that derives from
PairHashTraits, adds an isEmptyValue function that looks only at the key, not
the mapped value, in the hash table value, and uses the isHashTraitsEmptyValue
function template to check if the key is empty.
2012-04-25 Landry Breuil <[email protected]>
Include <sys/param.h>, needed for sysctl() on OpenBSD/NetBSD
https://bugs.webkit.org/show_bug.cgi?id=82585
Reviewed by Zoltan Herczeg.
* wtf/NumberOfCores.cpp: include <sys/param.h> on the BSDs
2012-04-25 Kenneth Russell <[email protected]>
Delete CanvasPixelArray, ByteArray, JSByteArray and JSC code once unreferenced
https://bugs.webkit.org/show_bug.cgi?id=83655
Reviewed by Oliver Hunt.
* GNUmakefile.list.am:
* WTF.gypi:
* WTF.pro:
* WTF.vcproj/WTF.vcproj:
* WTF.xcodeproj/project.pbxproj:
* wtf/ByteArray.cpp: Removed.
* wtf/ByteArray.h: Removed.
* wtf/CMakeLists.txt:
2012-04-25 Philippe Normand <[email protected]>
Webkit build fails due to missing gstreamer include file on Kubuntu 8.04
https://bugs.webkit.org/show_bug.cgi?id=81913
Reviewed by Tor Arne Vestbø.
* WTF.pri: GStreamer build support implies GLib support, as it's
done in WebCore.pri.
2012-04-24 Benjamin Poulain <[email protected]>
Generalize the single character optimization of r114072
https://bugs.webkit.org/show_bug.cgi?id=83961
Reviewed by Eric Seidel.
This patch makes some improvment over String::find() in the case of lookup for a single
character.
The two function find(UChar|LChar) are replaced by a template.
The case of searching a UChar in a 8bit string has a shortcut if the UChar cannot
possibly match any character in the range of the type LChar.
The slow case StringImpl::find(StringImpl*) is modified to
-Do not allocate in the fast case if only one string is 8bit.
-Use the shortcut for searching UChar in LChar.
This speed up the function by about 7% when avoiding string conversion.
* wtf/text/StringImpl.cpp:
(WTF::StringImpl::find):
* wtf/text/StringImpl.h:
(StringImpl):
(WTF):
(WTF::find):
(WTF::StringImpl::find):
2012-04-24 Darin Adler <[email protected]>
Iterating a HashMap<String, X> involves a string equality comparison to check for the empty value
https://bugs.webkit.org/show_bug.cgi?id=84524
Reviewed by Antti Koivisto.
Added a new algorithm for checking for empty buckets that can be specialized.
Specialized it for String. We may later want to do the same thing for KURL.
It's not important to do it for AtomicString, since AtomicString's == function
is already a simple pointer equality compare. We may also later want to do
something similar for pairs that have String objects in them.
* wtf/HashTable.h:
(WTF::HashTable::isEmptyBucket): Call the new isHashTraitsEmptyValue function, which
will do something more efficient for String.
* wtf/HashTraits.h: Added hasIsEmptyValueFunction to hash traits, with a default value
of false. This allows us to continue to get automatic comparison with the appropriate
emptyValue result for all existing traits, but supply a custom isEmptyValue function
for HashTraits<String>. Putting an isEmptyValue function into the traits would require
overriding it in every class that has a custom value for emptyValue. Specialized
HashTraits for String to add hasIsEmptyValueFunction and declare, but not define, the
isEmptyValue function.
(WTF::isHashTraitsEmptyValue): Added a function that uses the HashTraitsEmptyValueChecker
struct to use either == combined with the emptyValue function or the isEmptyValue function.
* wtf/text/StringHash.h: Removed unneeded includes and sorted the using statements at
the bottom of the file.
(WTF::HashTraits<String>::isEmptyValue): Define this function here, since here we have
included the WTFString.h header; the HashTraits.h header compiles without WTFString.h.
2012-04-23 Kenneth Russell <[email protected]>
Change ImageData to reference Uint8ClampedArray rather than CanvasPixelArray
https://bugs.webkit.org/show_bug.cgi?id=73011
Reviewed by Oliver Hunt.
* wtf/ArrayBuffer.h:
(ArrayBuffer):
(WTF::ArrayBuffer::create):
(WTF::ArrayBuffer::createUninitialized):
(WTF):
(WTF::ArrayBufferContents::tryAllocate):
* wtf/TypedArrayBase.h:
(WTF::TypedArrayBase::createUninitialized):
(TypedArrayBase):
* wtf/Uint8ClampedArray.h:
(Uint8ClampedArray):
(WTF::Uint8ClampedArray::createUninitialized):
(WTF):
(WTF::Uint8ClampedArray::zeroFill):
2012-04-23 George Staikos <[email protected]>
Enable parallel GC for BlackBerry.
https://bugs.webkit.org/show_bug.cgi?id=84633
Reviewed by Antonio Gomes.
* wtf/Platform.h:
2012-04-23 Sheriff Bot <[email protected]>
Unreviewed, rolling out r114914.
http://trac.webkit.org/changeset/114914
https://bugs.webkit.org/show_bug.cgi?id=84615
Causing infinite hangs on some tests involving HashMaps with
integer keys (Requested by dimich on #webkit).
* wtf/HashTable.h:
(WTF::HashTable::isEmptyBucket):
* wtf/HashTraits.h:
* wtf/text/StringHash.h:
2012-04-23 Darin Adler <[email protected]>
Iterating a HashMap<String, X> involves a string equality comparison to check for the empty value
https://bugs.webkit.org/show_bug.cgi?id=84524
Reviewed by Antti Koivisto.
Added a new algorithm for checking for empty buckets that can be specialized.
Specialized it for String. We may later want to do the same thing for KURL.
It's not important to do it for AtomicString, since AtomicString's == function
is already a simple pointer equality compare.
* wtf/HashTable.h:
(WTF::HashTable::isEmptyBucket): Call the new isHashTraitsEmptyValue function, which
will do something more efficient for String.
* wtf/HashTraits.h: Added hasIsEmptyValueFunction to hash traits, with a default value
of false. This allows us to continue to get automatic comparison with the appropriate
emptyValue result for all existing traits, but supply a custom isEmptyValue function
for HashTraits<String>. Putting an isEmptyValue function into the traits would require
overriding it in every class that has a custom value for emptyValue. Specialized
HashTraits for String to add hasIsEmptyValueFunction and declare, but not define, the
isEmptyValue function.
(WTF::isHashTraitsEmptyValue): Added a function that uses the HashTraitsEmptyValueChecker
struct to use either == combined with the emptyValue function or the isEmptyValue function.
(PairHashTraits): Define hasIsEmptyValueFunction and isEmptyValue.
* wtf/text/StringHash.h: Removed unneeded includes and sorted the using statements at
the bottom of the file.
(WTF::HashTraits<String>::isEmptyValue): Define this function here, since here we have
included the WTFString.h header; the HashTraits.h header compiles without WTFString.h.
2012-04-18 Myles Maxfield <[email protected]>
Somehow, there's an errant backslash in my last WTF patch
https://bugs.webkit.org/show_bug.cgi?id=84290
Reviewed by Andreas Kling.
* wtf/StdLibExtras.h:
(WTF::roundUpToMultipleOf):
2012-04-16 Nico Weber <[email protected]>
Make NullPtr.h compile with clang -std=c++11 and libstdc++4.2
https://bugs.webkit.org/show_bug.cgi?id=83999
Reviewed by Sam Weinig.
Before this patch, NullPtr.h assumed that a working |nullptr| implied
a working |std::nullptr_t| as well. With clang and libstdc++4.2, this
is not true.
I tested (-stdlib=libc++, -stdlib=libstdc++) x (-std=c++11, -std=c++03)
with clang.
* wtf/NullPtr.h:
(std):
2012-04-14 Sam Weinig <[email protected]>
Harden WTF::ByteArray::create()
https://bugs.webkit.org/show_bug.cgi?id=83318
Reviewed by Maciej Stachowiak.
* wtf/ByteArray.cpp:
(WTF::ByteArray::create):
Add overflow check. I don't believe there is anyway to trigger this currently,
hence no tests, so this should be considered hardening.
2012-04-12 Benjamin Poulain <[email protected]>
Inline StringImpl::find(UChar, ...)
https://bugs.webkit.org/show_bug.cgi?id=83737
Reviewed by Geoffrey Garen.
The implementation of StringImpl::find() is a simple branch before invoking one of
two inline functions. The overhead of having a function for StringImpl::find() is significant.
It is better to let the compiler decide if that should be inlined or not.
* wtf/text/StringImpl.cpp:
* wtf/text/StringImpl.h:
(StringImpl):
(WTF::find):
(WTF):
(WTF::reverseFind):
(WTF::StringImpl::find):
* wtf/text/WTFString.h:
2012-04-12 Balazs Kelemen <[email protected]>
[Qt] Fix WebKit1 build with V8
https://bugs.webkit.org/show_bug.cgi?id=83322
Reviewed by Adam Barth.
* wtf/StdLibExtras.h:
(WTF):
2012-04-12 Jer Noble <[email protected]>
ThreadingWin: Mutex::unlock() can be "over-unlocked".
https://bugs.webkit.org/show_bug.cgi?id=83725
Reviewed by David Levin.
In order to support the behavior of pthread_mutex_trylock(), the Windows Mutex class includes
a recursion counter which is incremented in Mutex::lock(), decremented in Mutex::unlock(),
and checked in Mutex::tryLock(). If the mutex is "over-unlocked", the counter wraps around to
MAX_INT, and subsequent calls to Mutex::trylock() will fail. Raise an ASSERT in this situation
so the "over-unlock" will be caught.
* wtf/ThreadingWin.cpp:
(WTF::Mutex::unlock): ASSERT if unlocking a non-locked mutex.
2012-04-10 Mark Rowe <[email protected]>
<rdar://problem/10583749> WebKit2 should log to both ASL and stderr
Reviewed by Sam Weinig.
* wtf/Assertions.cpp: Add a WTFLogAlways function that unconditionally logs the given message.
* wtf/Assertions.h:
2012-04-10 Patrick Gansterer <[email protected]>
Cleanup wtf/Platform.h and config.h files
https://bugs.webkit.org/show_bug.cgi?id=83431
Reviewed by Eric Seidel.
The ENABLE() and USE() macros take care about the case when the flag
isn't defined. So there is no need to define anything with 0.
Also move duplicated code from the config.h files to Platform.h and
merge a few preprocessor commands to make the file more readable.
* config.h:
* wtf/Platform.h:
2012-04-10 Filip Pizlo <[email protected]>
DFG should flush SetLocals to arguments
https://bugs.webkit.org/show_bug.cgi?id=83554
Reviewed by Gavin Barraclough.
Added an isRoot() method that is a faster shorthand for saying
find() == this.
* wtf/UnionFind.h:
(WTF::UnionFind::isRoot):
(UnionFind):
2012-04-10 Adam Klein <[email protected]>
Remove unused NonNullPassRefPtr from WTF
https://bugs.webkit.org/show_bug.cgi?id=82389
Reviewed by Kentaro Hara.
NonNullPassRefPtr seems to be unused since JSC allocation was
restructured in r84052.
If someone decides they need this later, they can always revert this patch.
* wtf/PassRefPtr.h:
* wtf/RefPtr.h:
(RefPtr):
2012-04-10 Patrick Gansterer <[email protected]>
[CMake] Enable USE_FOLDERS property
https://bugs.webkit.org/show_bug.cgi?id=83571
Reviewed by Daniel Bates.
Setting the FOLDER property on targets gives more structure
to the generated Visual Studio solutions.
This does not affect other CMake generators.
* wtf/CMakeLists.txt:
2012-04-09 Patrick Gansterer <[email protected]>
Port BinarySemaphoreWin.cpp to WinCE
https://bugs.webkit.org/show_bug.cgi?id=83502
Reviewed by Daniel Bates.
Replace WaitForSingleObjectEx with WaitForSingleObject since
the additonal parameter supported by the extended function
is not used anyway and the function does not exist on WinCE.
* wtf/CMakeLists.txt:
* wtf/PlatformWinCE.cmake:
* wtf/threads/win/BinarySemaphoreWin.cpp:
(WTF::BinarySemaphore::wait):
2012-04-09 Patrick Gansterer <[email protected]>
[CMake] Build fix for USE_SYSTEM_MALLOC after r113570.
* wtf/CMakeLists.txt:
2012-04-09 Patrick Gansterer <[email protected]>
Remove HAVE_STDINT_H
https://bugs.webkit.org/show_bug.cgi?id=83434
Reviewed by Kentaro Hara.
HAVE_STDINT_H is defined with 1 all the time and we us stdint.h without HAVE(STDINT_H) already.
* config.h:
* wtf/FastMalloc.cpp:
* wtf/TCPageMap.h:
* wtf/TCSpinLock.h:
* wtf/TCSystemAlloc.cpp:
2012-04-06 Benjamin Poulain <[email protected]>
Get rid of the useless flag PREEMPT_GEOLOCATION_PERMISSION
https://bugs.webkit.org/show_bug.cgi?id=83325
Reviewed by Ryosuke Niwa.
* wtf/Platform.h: Remove the flag.
2012-04-06 Darin Adler <[email protected]>
Streamline strtod and fix some related problems
https://bugs.webkit.org/show_bug.cgi?id=82857
Reviewed by Geoffrey Garen.
Replaced the strtod function template with a parseDouble function, eliminating
the following unneeded features:
- need for a trailing null character and a call to strlen
- needless conversion of string lengths from size_t to int and back that created
the possibility of incorrect truncation
- one level of function call; use inlining instead
- construction of the StringToDoubleConverter object; it was used to pass
arguments that are known at compile time
- most of the StringToDoubleConverter::StringToDouble function's body; it was
code we did not need
- parsing of Infinity and NaN at the strtod level; added recently when we moved
from the old strtod to the new one, and not needed or helpful at this level
- multiple copies of code to narrow to single byte strings; in many cases
this was done even when starting with an LChar string that is already
single-byte, now we handle this with an overload of parseDouble
* wtf/dtoa.cpp:
Removed a long comment about the original strtod function that no longer
applies since we deleted that function long ago. Removed a lot of includes.
Removed the strtod function templates and its instantiations, since they
are now replaced by the parseDouble function.
(WTF::Internal::parseDoubleFromLongString): Added.
* wtf/dtoa.h:
Added an include of ASCIICType.h so we can use isASCII in a function in this
header. Left the heretofore unneeded include of double-conversion.h, since we
now want to use it in a function in this header. Removed the AllowTrailingJunkTag
and AllowTrailingSpacesTag enumerations and the strtod function template. Added
new parseDouble function, and inline implementation of it.
* wtf/dtoa/double-conversion.cc: Removed quite a bit of unused code, hardcoding
all the StringToDouble function arguments that come from data members so it can
be a much smaller static member function. Also changed the types of arguments
from int to size_t.
* wtf/dtoa/double-conversion.h: Removed most of the StringToDoubleConverter
class, leaving only the conversion function as a static member function.
* wtf/text/StringImpl.cpp:
(WTF::StringImpl::toDouble): Got rid of didReadNumber.
(WTF::StringImpl::toFloat): Ditto.
* wtf/text/StringImpl.h: Ditto.
* wtf/text/WTFString.cpp:
(WTF::String::toDouble): Got rid of didReadNumber.
(WTF::String::toFloat): Ditto.
(WTF::toDoubleType): Rewrote this function to use parseDouble. Moved the code
to skip leading spaces here, because other callers of parseDouble don't want
to do that. Repurposed the check for an empty string so it's now the same
code shared by all the "parsed nothing" cases. Removed the code to convert
the buffer to ASCII for two reasons: (1) We don't need that code at all when
CharType is LChar, and (2) We now handle this through the two overloads for
the parseDouble function. Disallowing trailing junk is now handled here,
rather than inside parseDouble.
(WTF::charactersToDouble): Updated for changes to toDoubleType. Removed the
didReadNumber argument.
(WTF::charactersToFloat): Ditto. Also added overloads that return the parsed
length. These are a slightly more powerful way to do what didReadNumber was
used for before.
* wtf/text/WTFString.h: Added comments, eliminated didReadNumber, and added
overloads of charactersToFloat that replace charactersToFloatIgnoringJunk.
2012-04-05 Patrick Gansterer <[email protected]>
[WinCE] Remove unnecessary function decleration
https://bugs.webkit.org/show_bug.cgi?id=83155
Reviewed by Kentaro Hara.
* wtf/DateMath.cpp:
* wtf/Platform.h:
2012-04-04 Patrick Gansterer <[email protected]>
Add WTF::getCurrentLocalTime()
https://bugs.webkit.org/show_bug.cgi?id=83164
Reviewed by Alexey Proskuryakov.
Replace the calls to WTF::getLocalTime() with time(0) with the new function.
This allows us to use Win32 API on windows to get the same result in a next step.
Also remove the inline keyword from WTF::getLocalTime(), since there is no need for
it and it will make the later Win32 API changes easier.
* WTF.gyp/WTF.gyp:
* wtf/CurrentTime.cpp:
(WTF::getLocalTime):
(WTF::getCurrentLocalTime):
* wtf/CurrentTime.h:
2012-04-04 Chris Rogers <[email protected]>
Web Audio should use MutexTryLocker class
https://bugs.webkit.org/show_bug.cgi?id=83194
Reviewed by Kenneth Russell.
Add MutexTryLocker class which can be used as a stack-based object wrapping a Mutex.
It will automatically unlock the Mutex in its destructor if the tryLock() succeeded.
* wtf/ThreadingPrimitives.h:
(MutexTryLocker):
(WTF::MutexTryLocker::MutexTryLocker):
(WTF::MutexTryLocker::~MutexTryLocker):
(WTF::MutexTryLocker::locked):
Check if the tryLock() on the Mutex succeeded.
(WTF):
2012-04-04 Kausalya Madhusudhanan <[email protected]>
[Coverity] Address some uninit constructor values.
https://bugs.webkit.org/show_bug.cgi?id=82424
Reviewed by Stephen White.
New tests are not required since I did not modify any code behavior. I just initialized the class member variables in the constructor.
* wtf/ArrayBufferView.cpp:
(WTF::ArrayBufferView::ArrayBufferView):
2012-03-30 David Barr <[email protected]>
Split up top-level .gitignore and .gitattributes
https://bugs.webkit.org/show_bug.cgi?id=82687
Reviewed by Tor Arne Vestbø.
* WTF.gyp/.gitignore: Added.
2012-03-29 Kevin Ollivier <[email protected]>
[wx] Unreviewed build fix. Add export symbols needed to
build wx under Windows.
* wtf/NullPtr.h:
* wtf/ParallelJobsGeneric.h:
(ParallelEnvironment):
* wtf/ThreadSpecific.h:
(WTF):
2012-03-29 Kevin Ollivier <[email protected]>
[wx] Unreviewed build fix. Add WTF_EXPORT_PRIVATE_NO_RTTI
so that ports not using RTTI can add symbol exports to
classes that RTTI ports export with WTF_EXPORT_PRIVATE_RTTI.
* wtf/ArrayBufferView.h:
* wtf/ExportMacros.h:
2012-03-29 Caio Marcelo de Oliveira Filho <[email protected]>
HashMap<>::add should return a more descriptive object
https://bugs.webkit.org/show_bug.cgi?id=71063
Reviewed by Ryosuke Niwa.
Make HashTable<>::add() and derivate functions return an AddResult struct instead
of a pair. This struct contains contains 'iterator' and 'isNewEntry' members, that are
more readable at callsites than previous 'first' and 'second'.
* wtf/HashCountedSet.h:
(HashCountedSet):
(WTF::::add):
* wtf/HashMap.h:
(HashMap):
(WTF):
(WTF::::set):
* wtf/HashSet.h:
(HashSet):
(WTF::::add):
(WTF):
* wtf/HashTable.h:
(WTF::HashTableAddResult::HashTableAddResult):
(HashTableAddResult):
(WTF):
(HashTable):
(WTF::HashTable::add):
(WTF::::add):
(WTF::::addPassingHashCode):
* wtf/ListHashSet.h:
(ListHashSet):
(WTF::::add):
(WTF::::insertBefore):
* wtf/RefPtrHashMap.h:
(WTF):
(WTF::::set):
* wtf/Spectrum.h:
(WTF::Spectrum::add):
* wtf/WTFThreadData.cpp:
(JSC::IdentifierTable::add):
* wtf/WTFThreadData.h:
(IdentifierTable):
* wtf/text/AtomicString.cpp:
(WTF::addToStringTable):
(WTF::AtomicString::addSlowCase):
2012-03-29 Andreas Kling <[email protected]>
String: Subscript operator shouldn't force conversion to 16-bit characters.
<http://webkit.org/b/82613>
Reviewed by Anders Carlsson.
Forward String::operator[] to StringImpl::operator[] instead of indexing into characters().
This avoid implicit conversion of 8-bit strings to 16-bit, and as an example, reduces memory
usage on http://www.allthingsd.com/ by 360kB.
* wtf/text/WTFString.h:
(WTF::String::operator[]):
2012-03-28 Carlos Garcia Campos <[email protected]>
[GTK] Implement PlatformStrategies
https://bugs.webkit.org/show_bug.cgi?id=82454
Reviewed by Xan Lopez.
* wtf/Platform.h: Define WTF_USE_PLATFORM_STRATEGIES for GTK+
platform too.
2012-03-26 Ryosuke Niwa <[email protected]>
Set eol-style: native on WTF.sln per Ryan Sleevi's request.
* WTF.vcproj/WTF.sln: Added property svn:eol-style.
2012-03-26 Ryosuke Niwa <[email protected]>
Chromium build fix; add BitVector.h/cpp to gypi.
* WTF.gypi:
2012-03-26 Ryosuke Niwa <[email protected]>
Touch BitVector as a speculative fix for Chromium Linux.
* wtf/BitVector.h:
(BitVector):
2012-03-23 Ryosuke Niwa <[email protected]>
cssText should use shorthand notations
https://bugs.webkit.org/show_bug.cgi?id=81737
Reviewed by Enrica Casucci.
* wtf/BitVector.h:
(BitVector):
(WTF::BitVector::ensureSizeAndSet): Added.
2012-03-26 Carlos Garcia Campos <[email protected]>
Unreviewed. Fix make distcheck.
* GNUmakefile.list.am: Add config.h to the source file list.
2012-03-25 Kevin Ollivier <[email protected]>
[wx] Unreviewed build fix. Move WTF to its own static lib build.
* wscript: Added.
2012-03-23 Tony Chang <[email protected]>
[chromium] Unreviewed, move a comment closer to where it matters and
make it more specific.
* WTF.gyp/WTF.gyp:
2012-03-23 Steve Falkenburg <[email protected]>
Update Apple Windows build files for WTF move
https://bugs.webkit.org/show_bug.cgi?id=82069
Reviewed by Jessie Berlin.
* WTF.vcproj/WTF.make: Added.
* WTF.vcproj/WTF.sln: Added.
2012-03-23 Dean Jackson <[email protected]>
Disable CSS_SHADERS in Apple builds
https://bugs.webkit.org/show_bug.cgi?id=81996
Reviewed by Simon Fraser.
Put ENABLE_CSS_SHADERS into Platform.h, but disable for
Apple builds.
* wtf/Platform.h:
2012-03-23 Tony Chang <[email protected]>
[chromium] rename newwtf target back to wtf
https://bugs.webkit.org/show_bug.cgi?id=82064
Reviewed by Adam Barth.
* WTF.gyp/WTF.gyp:
2012-03-22 Jessie Berlin <[email protected]>
Windows build fix after r111778.
* WTF.vcproj/WTF.vcproj:
DateMath.h and DateMath.cpp should be built by WTF, since they are part of WTF.
2012-03-22 Raphael Kubo da Costa <[email protected]>
[CMake] Unreviewed build fix after r111778.