WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
183573
Make a NativeFunction into a class to support pointer profiling.
https://bugs.webkit.org/show_bug.cgi?id=183573
Summary
Make a NativeFunction into a class to support pointer profiling.
Mark Lam
Reported
2018-03-12 11:41:21 PDT
We'll also introduce RawNativeFunction as the type of the raw pointer, and TaggedNativeFunction as the tagged version.
Attachments
proposed patch.
(208.31 KB, patch)
2018-03-12 12:44 PDT
,
Mark Lam
mark.lam
: review-
Details
Formatted Diff
Diff
proposed patch.
(208.31 KB, patch)
2018-03-12 13:03 PDT
,
Mark Lam
no flags
Details
Formatted Diff
Diff
proposed patch.
(208.80 KB, patch)
2018-03-12 13:27 PDT
,
Mark Lam
fpizlo
: review+
Details
Formatted Diff
Diff
Show Obsolete
(2)
View All
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2018-03-12 11:52:05 PDT
<
rdar://problem/38384697
>
Mark Lam
Comment 2
2018-03-12 12:44:32 PDT
Created
attachment 335626
[details]
proposed patch.
EWS Watchlist
Comment 3
2018-03-12 12:47:27 PDT
Attachment 335626
[details]
did not pass style-queue: ERROR: Source/JavaScriptCore/runtime/NativeFunction.h:40: Should be indented on a separate line, with the colon or comma first on that line. [whitespace/indent] [4] ERROR: Source/JavaScriptCore/runtime/NativeFunction.h:41: Should be indented on a separate line, with the colon or comma first on that line. [whitespace/indent] [4] ERROR: Source/JavaScriptCore/runtime/NativeFunction.h:42: Should be indented on a separate line, with the colon or comma first on that line. [whitespace/indent] [4] ERROR: Source/JavaScriptCore/runtime/NativeFunction.h:69: Should be indented on a separate line, with the colon or comma first on that line. [whitespace/indent] [4] ERROR: Source/JavaScriptCore/runtime/NativeFunction.h:70: Should be indented on a separate line, with the colon or comma first on that line. [whitespace/indent] [4] Total errors found: 5 in 67 files If any of these errors are false positives, please file a bug against check-webkit-style.
Mark Lam
Comment 4
2018-03-12 13:03:38 PDT
Created
attachment 335628
[details]
proposed patch.
EWS Watchlist
Comment 5
2018-03-12 13:06:07 PDT
Attachment 335628
[details]
did not pass style-queue: ERROR: Source/JavaScriptCore/runtime/NativeFunction.h:40: Should be indented on a separate line, with the colon or comma first on that line. [whitespace/indent] [4] ERROR: Source/JavaScriptCore/runtime/NativeFunction.h:41: Should be indented on a separate line, with the colon or comma first on that line. [whitespace/indent] [4] ERROR: Source/JavaScriptCore/runtime/NativeFunction.h:42: Should be indented on a separate line, with the colon or comma first on that line. [whitespace/indent] [4] ERROR: Source/JavaScriptCore/runtime/NativeFunction.h:69: Should be indented on a separate line, with the colon or comma first on that line. [whitespace/indent] [4] ERROR: Source/JavaScriptCore/runtime/NativeFunction.h:70: Should be indented on a separate line, with the colon or comma first on that line. [whitespace/indent] [4] Total errors found: 5 in 67 files If any of these errors are false positives, please file a bug against check-webkit-style.
Mark Lam
Comment 6
2018-03-12 13:27:51 PDT
Created
attachment 335632
[details]
proposed patch.
EWS Watchlist
Comment 7
2018-03-12 13:29:47 PDT
Attachment 335632
[details]
did not pass style-queue: ERROR: Source/JavaScriptCore/runtime/NativeFunction.h:40: Should be indented on a separate line, with the colon or comma first on that line. [whitespace/indent] [4] ERROR: Source/JavaScriptCore/runtime/NativeFunction.h:41: Should be indented on a separate line, with the colon or comma first on that line. [whitespace/indent] [4] ERROR: Source/JavaScriptCore/runtime/NativeFunction.h:42: Should be indented on a separate line, with the colon or comma first on that line. [whitespace/indent] [4] ERROR: Source/JavaScriptCore/runtime/NativeFunction.h:69: Should be indented on a separate line, with the colon or comma first on that line. [whitespace/indent] [4] ERROR: Source/JavaScriptCore/runtime/NativeFunction.h:70: Should be indented on a separate line, with the colon or comma first on that line. [whitespace/indent] [4] Total errors found: 5 in 68 files If any of these errors are false positives, please file a bug against check-webkit-style.
Filip Pizlo
Comment 8
2018-03-12 13:34:02 PDT
Comment on
attachment 335632
[details]
proposed patch. Nice!
Mark Lam
Comment 9
2018-03-12 14:08:14 PDT
Thanks for the review. Landed in
r229547
: <
http://trac.webkit.org/r229547
>.
Ryan Haddad
Comment 10
2018-03-12 15:07:54 PDT
This change broke the Windows build:
https://build.webkit.org/builders/Apple%20Win%20Release%20%28Build%29/builds/8246
C:\cygwin\home\buildbot\slave\win-release\build\Source\JavaScriptCore\jit\JITThunks.h(103): error C2220: warning treated as error - no 'object' file generated [C:\cygwin\home\buildbot\slave\win-release\build\WebKitBuild\Release\Source\JavaScriptCore\LLIntOffsetsExtractor.vcxproj] C:\cygwin\home\buildbot\slave\win-release\build\Source\JavaScriptCore\jit\JITThunks.h(103): warning C4245: 'argument': conversion from 'int' to 'uintptr_t', signed/unsigned mismatch [C:\cygwin\home\buildbot\slave\win-release\build\WebKitBuild\Release\Source\JavaScriptCore\LLIntOffsetsExtractor.vcxproj] C:\cygwin\home\buildbot\slave\win-release\build\Source\JavaScriptCore\jit\JITThunks.h(104): warning C4245: 'argument': conversion from 'int' to 'uintptr_t', signed/unsigned mismatch [C:\cygwin\home\buildbot\slave\win-release\build\WebKitBuild\Release\Source\JavaScriptCore\LLIntOffsetsExtractor.vcxproj]
Mark Lam
Comment 11
2018-03-12 15:25:24 PDT
(In reply to Ryan Haddad from
comment #10
)
> This change broke the Windows build: > ...
Speculative fix landed in
r229557
: <
http://trac.webkit.org/r229557
>.
Ross Kirsling
Comment 12
2018-03-12 19:25:08 PDT
WinCairo errors after
r229557
: (
https://build.webkit.org/builders/WinCairo%2064-Bit%20Release/builds/11559
) C:\WebKit-EWS\WebKit\Source\JavaScriptCore\jit\JITThunks.h(103): error C2440: '<function-style-cast>': cannot convert from 'int' to 'JSC::TaggedNativeFunction' C:\WebKit-EWS\WebKit\Source\JavaScriptCore\jit\JITThunks.h(103): note: No constructor could take the source type, or constructor overload resolution was ambiguous C:\WebKit-EWS\WebKit\Source\JavaScriptCore\jit\JITThunks.h(104): error C2440: '<function-style-cast>': cannot convert from 'int' to 'JSC::TaggedNativeFunction' C:\WebKit-EWS\WebKit\Source\JavaScriptCore\jit\JITThunks.h(104): note: No constructor could take the source type, or constructor overload resolution was ambiguous
Mark Lam
Comment 13
2018-03-12 20:33:55 PDT
(In reply to Ross Kirsling from
comment #12
)
> WinCairo errors after
r229557
: > (
https://build.webkit.org/builders/WinCairo%2064-Bit%20Release/builds/11559
) > > C:\WebKit-EWS\WebKit\Source\JavaScriptCore\jit\JITThunks.h(103): error > C2440: '<function-style-cast>': cannot convert from 'int' to > 'JSC::TaggedNativeFunction' > C:\WebKit-EWS\WebKit\Source\JavaScriptCore\jit\JITThunks.h(103): note: No > constructor could take the source type, or constructor overload resolution > was ambiguous > C:\WebKit-EWS\WebKit\Source\JavaScriptCore\jit\JITThunks.h(104): error > C2440: '<function-style-cast>': cannot convert from 'int' to > 'JSC::TaggedNativeFunction' > C:\WebKit-EWS\WebKit\Source\JavaScriptCore\jit\JITThunks.h(104): note: No > constructor could take the source type, or constructor overload resolution > was ambiguous
AppleWin bots shows that this issue has already been fixed (see build #8250). The fix landed in
r22955
. Are you seeing a build failure after that revision?
Mark Lam
Comment 14
2018-03-12 20:34:28 PDT
(In reply to Mark Lam from
comment #13
)
> AppleWin bots shows that this issue has already been fixed (see build > #8250). The fix landed in
r22955
. Are you seeing a build failure after > that revision?
Forgot the build bot url:
https://build.webkit.org/builders/Apple%20Win%20Release%20(Build)?numbuilds=50
Ross Kirsling
Comment 15
2018-03-12 20:49:36 PDT
AppleWin went from red to green but WinCairo went from green to red. :)
https://build.webkit.org/builders/WinCairo%2064-Bit%20Release?numbuilds=50
Mark Lam
Comment 16
2018-03-12 23:11:07 PDT
(In reply to Ross Kirsling from
comment #15
)
> AppleWin went from red to green but WinCairo went from green to red. :) >
https://build.webkit.org/builders/WinCairo%2064-Bit%20Release?numbuilds=50
Speculative build fix for WinCairo landed in
r229574
: <
http://trac.webkit.org/r229574
>.
Ross Kirsling
Comment 17
2018-03-13 08:06:13 PDT
(In reply to Mark Lam from
comment #16
)
> (In reply to Ross Kirsling from
comment #15
) > > AppleWin went from red to green but WinCairo went from green to red. :) > >
https://build.webkit.org/builders/WinCairo%2064-Bit%20Release?numbuilds=50
> > Speculative build fix for WinCairo landed in
r229574
: > <
http://trac.webkit.org/r229574
>.
Thanks much!
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