Enable udis86 disassembler for jsc on efl platform.
Created attachment 218866 [details] patch enables udis86 on efl The style checker found 10 whitespace errors, but these files use different styles. The correction is not possible without correcting the style of large code blocks in these files.
Attachment 218866 [details] did not pass style-queue: Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'ChangeLog', u'Source/JavaScriptCore/CMakeLists.txt', u'Source/JavaScriptCore/ChangeLog', u'Source/JavaScriptCore/disassembler/udis86/udis86_decode.c', u'Source/JavaScriptCore/disassembler/udis86/udis86_syn-att.c', u'Source/JavaScriptCore/disassembler/udis86/udis86_syn-intel.c', u'Source/WTF/ChangeLog', u'Source/WTF/wtf/Platform.h', u'Source/cmake/OptionsEfl.cmake', '--commit-queue']" exit_code: 1 ERROR: Source/JavaScriptCore/disassembler/udis86/udis86_decode.c:462: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3] ERROR: Source/JavaScriptCore/disassembler/udis86/udis86_decode.c:463: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3] ERROR: Source/JavaScriptCore/disassembler/udis86/udis86_syn-intel.c:109: Tab found; better to use spaces [whitespace/tab] [1] ERROR: Source/JavaScriptCore/disassembler/udis86/udis86_syn-intel.c:146: Tab found; better to use spaces [whitespace/tab] [1] ERROR: Source/JavaScriptCore/disassembler/udis86/udis86_syn-intel.c:149: Tab found; better to use spaces [whitespace/tab] [1] ERROR: Source/JavaScriptCore/disassembler/udis86/udis86_syn-intel.c:152: Tab found; better to use spaces [whitespace/tab] [1] ERROR: Source/JavaScriptCore/disassembler/udis86/udis86_syn-att.c:84: Tab found; better to use spaces [whitespace/tab] [1] ERROR: Source/JavaScriptCore/disassembler/udis86/udis86_syn-att.c:86: Tab found; better to use spaces [whitespace/tab] [1] ERROR: Source/JavaScriptCore/disassembler/udis86/udis86_syn-att.c:130: Tab found; better to use spaces [whitespace/tab] [1] ERROR: Source/JavaScriptCore/disassembler/udis86/udis86_syn-att.c:133: Tab found; better to use spaces [whitespace/tab] [1] Total errors found: 10 in 9 files If any of these errors are false positives, please file a bug against check-webkit-style.
Comment on attachment 218866 [details] patch enables udis86 on efl View in context: https://bugs.webkit.org/attachment.cgi?id=218866&action=review r=me, but change the (unsigned long long) casts to (uint64_t) casts. > Source/JavaScriptCore/disassembler/udis86/udis86_syn-att.c:130 > + mkasm(u, "0x" FMT64 "x", (unsigned long long)(u->pc + op->lval.sbyte)); Please make these casts to uint64_t
Created attachment 218949 [details] Updated patch. Patch for landing.
Attachment 218949 [details] did not pass style-queue: Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'ChangeLog', u'Source/JavaScriptCore/CMakeLists.txt', u'Source/JavaScriptCore/ChangeLog', u'Source/JavaScriptCore/disassembler/udis86/udis86_decode.c', u'Source/JavaScriptCore/disassembler/udis86/udis86_syn-att.c', u'Source/JavaScriptCore/disassembler/udis86/udis86_syn-intel.c', u'Source/WTF/ChangeLog', u'Source/WTF/wtf/Platform.h', u'Source/cmake/OptionsEfl.cmake', '--commit-queue']" exit_code: 1 ERROR: Source/JavaScriptCore/disassembler/udis86/udis86_decode.c:462: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3] ERROR: Source/JavaScriptCore/disassembler/udis86/udis86_decode.c:463: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3] ERROR: Source/JavaScriptCore/disassembler/udis86/udis86_syn-intel.c:109: Tab found; better to use spaces [whitespace/tab] [1] ERROR: Source/JavaScriptCore/disassembler/udis86/udis86_syn-intel.c:146: Tab found; better to use spaces [whitespace/tab] [1] ERROR: Source/JavaScriptCore/disassembler/udis86/udis86_syn-intel.c:149: Tab found; better to use spaces [whitespace/tab] [1] ERROR: Source/JavaScriptCore/disassembler/udis86/udis86_syn-intel.c:152: Tab found; better to use spaces [whitespace/tab] [1] ERROR: Source/JavaScriptCore/disassembler/udis86/udis86_syn-att.c:84: Tab found; better to use spaces [whitespace/tab] [1] ERROR: Source/JavaScriptCore/disassembler/udis86/udis86_syn-att.c:86: Tab found; better to use spaces [whitespace/tab] [1] ERROR: Source/JavaScriptCore/disassembler/udis86/udis86_syn-att.c:130: Tab found; better to use spaces [whitespace/tab] [1] ERROR: Source/JavaScriptCore/disassembler/udis86/udis86_syn-att.c:133: Tab found; better to use spaces [whitespace/tab] [1] Total errors found: 10 in 9 files If any of these errors are false positives, please file a bug against check-webkit-style.
Comment on attachment 218949 [details] Updated patch. Attachment 218949 [details] did not pass efl-ews (efl): Output: http://webkit-queues.appspot.com/results/45888494
Comment on attachment 218949 [details] Updated patch. Attachment 218949 [details] did not pass efl-wk2-ews (efl-wk2): Output: http://webkit-queues.appspot.com/results/47308482
(In reply to comment #3) > (From update of attachment 218866 [details]) > View in context: https://bugs.webkit.org/attachment.cgi?id=218866&action=review > > r=me, but change the (unsigned long long) casts to (uint64_t) casts. > > > Source/JavaScriptCore/disassembler/udis86/udis86_syn-att.c:130 > > + mkasm(u, "0x" FMT64 "x", (unsigned long long)(u->pc + op->lval.sbyte)); > > Please make these casts to uint64_t It seems that uint64_t is defined as unsigned long int, while FMT64 is "%ll", and this causes the error. At first it seems to be an inconsistency between the 64bit type definitions, but I'll check it.
Created attachment 219004 [details] Updated patch. Defining FMT64 based on the __WORDSIZE seems to solve the problem.
Attachment 219004 [details] did not pass style-queue: Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'ChangeLog', u'Source/JavaScriptCore/CMakeLists.txt', u'Source/JavaScriptCore/ChangeLog', u'Source/JavaScriptCore/disassembler/udis86/udis86_decode.c', u'Source/JavaScriptCore/disassembler/udis86/udis86_syn-att.c', u'Source/JavaScriptCore/disassembler/udis86/udis86_syn-intel.c', u'Source/JavaScriptCore/disassembler/udis86/udis86_types.h', u'Source/WTF/ChangeLog', u'Source/WTF/wtf/Platform.h', u'Source/cmake/OptionsEfl.cmake', '--commit-queue']" exit_code: 1 ERROR: Source/JavaScriptCore/disassembler/udis86/udis86_decode.c:462: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3] ERROR: Source/JavaScriptCore/disassembler/udis86/udis86_decode.c:463: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3] ERROR: Source/JavaScriptCore/disassembler/udis86/udis86_syn-intel.c:109: Tab found; better to use spaces [whitespace/tab] [1] ERROR: Source/JavaScriptCore/disassembler/udis86/udis86_syn-intel.c:146: Tab found; better to use spaces [whitespace/tab] [1] ERROR: Source/JavaScriptCore/disassembler/udis86/udis86_syn-intel.c:149: Tab found; better to use spaces [whitespace/tab] [1] ERROR: Source/JavaScriptCore/disassembler/udis86/udis86_syn-intel.c:152: Tab found; better to use spaces [whitespace/tab] [1] ERROR: Source/JavaScriptCore/disassembler/udis86/udis86_syn-att.c:84: Tab found; better to use spaces [whitespace/tab] [1] ERROR: Source/JavaScriptCore/disassembler/udis86/udis86_syn-att.c:86: Tab found; better to use spaces [whitespace/tab] [1] ERROR: Source/JavaScriptCore/disassembler/udis86/udis86_syn-att.c:130: Tab found; better to use spaces [whitespace/tab] [1] ERROR: Source/JavaScriptCore/disassembler/udis86/udis86_syn-att.c:133: Tab found; better to use spaces [whitespace/tab] [1] Total errors found: 10 in 10 files If any of these errors are false positives, please file a bug against check-webkit-style.
Comment on attachment 219004 [details] Updated patch. Attachment 219004 [details] did not pass mac-wk2-ews (mac-wk2): Output: http://webkit-queues.appspot.com/results/47008184
Comment on attachment 219004 [details] Updated patch. Attachment 219004 [details] did not pass mac-ews (mac): Output: http://webkit-queues.appspot.com/results/48108050
Created attachment 219015 [details] Updated patch 3.
Attachment 219015 [details] did not pass style-queue: Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'ChangeLog', u'Source/JavaScriptCore/CMakeLists.txt', u'Source/JavaScriptCore/ChangeLog', u'Source/JavaScriptCore/disassembler/udis86/udis86_decode.c', u'Source/JavaScriptCore/disassembler/udis86/udis86_syn-att.c', u'Source/JavaScriptCore/disassembler/udis86/udis86_syn-intel.c', u'Source/JavaScriptCore/disassembler/udis86/udis86_types.h', u'Source/WTF/ChangeLog', u'Source/WTF/wtf/Platform.h', u'Source/cmake/OptionsEfl.cmake', '--commit-queue']" exit_code: 1 ERROR: Source/JavaScriptCore/disassembler/udis86/udis86_decode.c:462: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3] ERROR: Source/JavaScriptCore/disassembler/udis86/udis86_decode.c:463: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3] ERROR: Source/JavaScriptCore/disassembler/udis86/udis86_syn-intel.c:109: Tab found; better to use spaces [whitespace/tab] [1] ERROR: Source/JavaScriptCore/disassembler/udis86/udis86_syn-intel.c:146: Tab found; better to use spaces [whitespace/tab] [1] ERROR: Source/JavaScriptCore/disassembler/udis86/udis86_syn-intel.c:149: Tab found; better to use spaces [whitespace/tab] [1] ERROR: Source/JavaScriptCore/disassembler/udis86/udis86_syn-intel.c:152: Tab found; better to use spaces [whitespace/tab] [1] ERROR: Source/JavaScriptCore/disassembler/udis86/udis86_syn-att.c:84: Tab found; better to use spaces [whitespace/tab] [1] ERROR: Source/JavaScriptCore/disassembler/udis86/udis86_syn-att.c:86: Tab found; better to use spaces [whitespace/tab] [1] ERROR: Source/JavaScriptCore/disassembler/udis86/udis86_syn-att.c:130: Tab found; better to use spaces [whitespace/tab] [1] ERROR: Source/JavaScriptCore/disassembler/udis86/udis86_syn-att.c:133: Tab found; better to use spaces [whitespace/tab] [1] Total errors found: 10 in 10 files If any of these errors are false positives, please file a bug against check-webkit-style.
Comment on attachment 219015 [details] Updated patch 3. Rejecting attachment 219015 [details] from commit-queue. Failed to run "['/Volumes/Data/EWS/WebKit/Tools/Scripts/webkit-patch', '--status-host=webkit-queues.appspot.com', '--bot-id=webkit-cq-02', 'build', '--no-clean', '--no-update', '--build-style=release', '--port=mac']" exit_code: 2 cwd: /Volumes/Data/EWS/WebKit Last 500 characters of output: commands failed: CompileC /Volumes/Data/EWS/WebKit/WebKitBuild/JavaScriptCore.build/Release/JavaScriptCore.build/Objects-normal/x86_64/udis86_syn-att.o disassembler/udis86/udis86_syn-att.c normal x86_64 c com.apple.compilers.llvm.clang.1_0.compiler CompileC /Volumes/Data/EWS/WebKit/WebKitBuild/JavaScriptCore.build/Release/JavaScriptCore.build/Objects-normal/x86_64/udis86_syn-intel.o disassembler/udis86/udis86_syn-intel.c normal x86_64 c com.apple.compilers.llvm.clang.1_0.compiler (2 failures) Full output: http://webkit-queues.appspot.com/results/5678205671309312
Created attachment 220838 [details] Updated patch 4.
Attachment 220838 [details] did not pass style-queue: Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'ChangeLog', u'Source/JavaScriptCore/CMakeLists.txt', u'Source/JavaScriptCore/ChangeLog', u'Source/JavaScriptCore/disassembler/udis86/udis86_decode.c', u'Source/JavaScriptCore/disassembler/udis86/udis86_syn-att.c', u'Source/JavaScriptCore/disassembler/udis86/udis86_syn-intel.c', u'Source/JavaScriptCore/disassembler/udis86/udis86_types.h', u'Source/WTF/ChangeLog', u'Source/WTF/wtf/Platform.h', u'Source/cmake/OptionsEfl.cmake', '--commit-queue']" exit_code: 1 ERROR: Source/JavaScriptCore/disassembler/udis86/udis86_decode.c:462: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3] ERROR: Source/JavaScriptCore/disassembler/udis86/udis86_decode.c:463: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3] ERROR: Source/JavaScriptCore/disassembler/udis86/udis86_syn-intel.c:109: Tab found; better to use spaces [whitespace/tab] [1] ERROR: Source/JavaScriptCore/disassembler/udis86/udis86_syn-intel.c:146: Tab found; better to use spaces [whitespace/tab] [1] ERROR: Source/JavaScriptCore/disassembler/udis86/udis86_syn-intel.c:149: Tab found; better to use spaces [whitespace/tab] [1] ERROR: Source/JavaScriptCore/disassembler/udis86/udis86_syn-intel.c:152: Tab found; better to use spaces [whitespace/tab] [1] ERROR: Source/JavaScriptCore/disassembler/udis86/udis86_syn-att.c:84: Tab found; better to use spaces [whitespace/tab] [1] ERROR: Source/JavaScriptCore/disassembler/udis86/udis86_syn-att.c:86: Tab found; better to use spaces [whitespace/tab] [1] ERROR: Source/JavaScriptCore/disassembler/udis86/udis86_syn-att.c:130: Tab found; better to use spaces [whitespace/tab] [1] ERROR: Source/JavaScriptCore/disassembler/udis86/udis86_syn-att.c:133: Tab found; better to use spaces [whitespace/tab] [1] Total errors found: 10 in 10 files If any of these errors are false positives, please file a bug against check-webkit-style.
Comment on attachment 220838 [details] Updated patch 4. Clearing flags on attachment: 220838 Committed r161672: <http://trac.webkit.org/changeset/161672>