WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
176331
[JSC] Remove "malloc" and "free" from JSC/API
https://bugs.webkit.org/show_bug.cgi?id=176331
Summary
[JSC] Remove "malloc" and "free" from JSC/API
Yusuke Suzuki
Reported
2017-09-04 07:48:37 PDT
[JSC] Remove "malloc" and "free" from JSC/API
Attachments
Patch
(11.87 KB, patch)
2017-09-04 07:48 PDT
,
Yusuke Suzuki
no flags
Details
Formatted Diff
Diff
Patch
(11.88 KB, patch)
2017-09-04 17:38 PDT
,
Yusuke Suzuki
no flags
Details
Formatted Diff
Diff
Patch
(14.35 KB, patch)
2017-09-06 08:48 PDT
,
Yusuke Suzuki
no flags
Details
Formatted Diff
Diff
Patch
(14.36 KB, patch)
2017-09-06 09:06 PDT
,
Yusuke Suzuki
keith_miller
: review+
Details
Formatted Diff
Diff
Show Obsolete
(3)
View All
Add attachment
proposed patch, testcase, etc.
Yusuke Suzuki
Comment 1
2017-09-04 07:48:47 PDT
Created
attachment 319852
[details]
Patch
Build Bot
Comment 2
2017-09-04 07:50:57 PDT
Attachment 319852
[details]
did not pass style-queue: ERROR: Source/JavaScriptCore/API/JSWrapperMap.mm:303: Use equivelent function in <wtf/ASCIICType.h> instead of the toupper() function. [runtime/ctype_function] [4] ERROR: Source/JavaScriptCore/API/ObjcRuntimeExtras.h:133: Should be indented on a separate line, with the colon or comma first on that line. [whitespace/indent] [4] Total errors found: 2 in 3 files If any of these errors are false positives, please file a bug against check-webkit-style.
Yusuke Suzuki
Comment 3
2017-09-04 17:38:26 PDT
Created
attachment 319866
[details]
Patch
Build Bot
Comment 4
2017-09-04 17:39:27 PDT
Attachment 319866
[details]
did not pass style-queue: ERROR: Source/JavaScriptCore/API/JSWrapperMap.mm:303: Use equivelent function in <wtf/ASCIICType.h> instead of the toupper() function. [runtime/ctype_function] [4] ERROR: Source/JavaScriptCore/API/ObjcRuntimeExtras.h:133: Should be indented on a separate line, with the colon or comma first on that line. [whitespace/indent] [4] Total errors found: 2 in 3 files If any of these errors are false positives, please file a bug against check-webkit-style.
Yusuke Suzuki
Comment 5
2017-09-06 08:48:40 PDT
Created
attachment 320023
[details]
Patch
Build Bot
Comment 6
2017-09-06 08:51:33 PDT
Attachment 320023
[details]
did not pass style-queue: ERROR: Source/JavaScriptCore/API/JSWrapperMap.mm:302: Use equivelent function in <wtf/ASCIICType.h> instead of the toupper() function. [runtime/ctype_function] [4] ERROR: Source/JavaScriptCore/API/JSValue.mm:1059: Tests for true/false, null/non-null, and zero/non-zero should all be done without equality comparisons. [readability/comparison_to_zero] [5] Total errors found: 2 in 4 files If any of these errors are false positives, please file a bug against check-webkit-style.
Yusuke Suzuki
Comment 7
2017-09-06 09:06:02 PDT
Created
attachment 320025
[details]
Patch
Build Bot
Comment 8
2017-09-06 09:08:09 PDT
Attachment 320025
[details]
did not pass style-queue: ERROR: Source/JavaScriptCore/API/JSWrapperMap.mm:302: Use equivelent function in <wtf/ASCIICType.h> instead of the toupper() function. [runtime/ctype_function] [4] ERROR: Source/JavaScriptCore/API/JSValue.mm:1059: Tests for true/false, null/non-null, and zero/non-zero should all be done without equality comparisons. [readability/comparison_to_zero] [5] Total errors found: 2 in 4 files If any of these errors are false positives, please file a bug against check-webkit-style.
Keith Miller
Comment 9
2017-09-06 09:31:05 PDT
Comment on
attachment 320025
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=320025&action=review
r=me. This is a nice cleanup patch!
> Source/JavaScriptCore/API/JSWrapperMap.mm:278 > + property.getterName = @(attributes[i].value);
Wow, I didn't know there was a magic @ operator in Obj-C. Learn something new everyday!
Darin Adler
Comment 10
2017-09-06 09:33:28 PDT
Comment on
attachment 320025
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=320025&action=review
> Source/JavaScriptCore/API/JSWrapperMap.mm:302 > + buffer[3] = toupper(*name);
Style checker is correct about this, should be using toASCIIUpper instead of toupper.
Yusuke Suzuki
Comment 11
2017-09-07 01:05:28 PDT
Comment on
attachment 320025
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=320025&action=review
>> Source/JavaScriptCore/API/JSWrapperMap.mm:302 >> + buffer[3] = toupper(*name); > > Style checker is correct about this, should be using toASCIIUpper instead of toupper.
OK, fixed. I was a bit worried about the difference between toupper and toASCIIUpper. But maybe, it is not a problem.
Yusuke Suzuki
Comment 12
2017-09-07 01:14:39 PDT
Committed
r221723
: <
http://trac.webkit.org/changeset/221723
>
Radar WebKit Bug Importer
Comment 13
2017-09-27 12:37:57 PDT
<
rdar://problem/34693642
>
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug