NEW 201313
Wasm should tell you what function the Air/B3 code it is showing you is associated with
https://bugs.webkit.org/show_bug.cgi?id=201313
Summary Wasm should tell you what function the Air/B3 code it is showing you is assoc...
Keith Miller
Reported 2019-08-29 14:29:49 PDT
Wasm should tell you what function the Air/B3 code it is showing you is associated with
Attachments
Patch (4.00 KB, patch)
2019-08-29 14:30 PDT, Keith Miller
no flags
Patch (2.68 KB, patch)
2019-08-29 15:05 PDT, Keith Miller
no flags
Patch (2.68 KB, patch)
2019-08-29 15:09 PDT, Keith Miller
no flags
Patch for landing (3.65 KB, patch)
2019-08-29 15:40 PDT, Keith Miller
commit-queue: commit-queue-
Keith Miller
Comment 1 2019-08-29 14:30:01 PDT
Yusuke Suzuki
Comment 2 2019-08-29 14:38:39 PDT
Comment on attachment 377626 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=377626&action=review > Source/JavaScriptCore/wasm/WasmAirIRGenerator.cpp:2267 > + String name = info.nameSection->getNameOrIndex(functionIndex); Should we use the same naming convention to WasmIndexOrName's makeString? I think this is how wasm functions are shown in the stack trace.
Keith Miller
Comment 3 2019-08-29 15:05:13 PDT
Keith Miller
Comment 4 2019-08-29 15:09:49 PDT
Yusuke Suzuki
Comment 5 2019-08-29 15:10:42 PDT
Comment on attachment 377631 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=377631&action=review r=me with fix. > Source/JavaScriptCore/wasm/WasmAirIRGenerator.cpp:2267 > + dataLogLn("Generated B3 code for: ", makeString(IndexOrName(functionIndex, info.nameSection->get(functionIndex)))); I think `IndexOrName` and nameSection->get's parameter is `functionIndexInSpace` instead of `functionIndex` (functionIndexInSpace is functionIndex + moduleInformation->importFunctionCount()). Can you check it? > Source/JavaScriptCore/wasm/WasmB3IRGenerator.cpp:1804 > + dataLogLn("Generated B3 code for: ", makeString(IndexOrName(functionIndex, info.nameSection->get(functionIndex)))); Ditto.
Keith Miller
Comment 6 2019-08-29 15:36:02 PDT
Comment on attachment 377631 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=377631&action=review >> Source/JavaScriptCore/wasm/WasmAirIRGenerator.cpp:2267 >> + dataLogLn("Generated B3 code for: ", makeString(IndexOrName(functionIndex, info.nameSection->get(functionIndex)))); > > I think `IndexOrName` and nameSection->get's parameter is `functionIndexInSpace` instead of `functionIndex` (functionIndexInSpace is functionIndex + moduleInformation->importFunctionCount()). Can you check it? Ah, yeah, I think you are right. Will fix. We should really make them different types...
Keith Miller
Comment 7 2019-08-29 15:40:56 PDT
Created attachment 377637 [details] Patch for landing
WebKit Commit Bot
Comment 8 2019-08-29 15:45:01 PDT
Comment on attachment 377637 [details] Patch for landing Rejecting attachment 377637 [details] from commit-queue. Failed to run "['/Volumes/Data/EWS/WebKit/Tools/Scripts/webkit-patch', '--status-host=webkit-queues.webkit.org', '--bot-id=webkit-cq-01', 'build', '--no-clean', '--no-update', '--build-style=release', '--port=mac']" exit_code: 2 cwd: /Volumes/Data/EWS/WebKit Last 5000 characters of output: ENT -DENABLE_EXPERIMENTAL_FEATURES -DENABLE_FILTERS_LEVEL_2 -DENABLE_FTL_JIT -DENABLE_FULLSCREEN_API -DENABLE_GAMEPAD -DENABLE_GEOLOCATION -DENABLE_INDEXED_DATABASE -DENABLE_INDEXED_DATABASE_IN_WORKERS -DENABLE_INPUT_TYPE_COLOR -DENABLE_INSPECTOR_ALTERNATE_DISPATCHERS -DENABLE_INTERSECTION_OBSERVER -DENABLE_INTL -DENABLE_KEYBOARD_CODE_ATTRIBUTE -DENABLE_KEYBOARD_KEY_ATTRIBUTE -DENABLE_LAYOUT_FORMATTING_CONTEXT -DENABLE_LEGACY_CSS_VENDOR_PREFIXES -DENABLE_LEGACY_CUSTOM_PROTOCOL_MANAGER -DENABLE_LEGACY_ENCRYPTED_MEDIA -DENABLE_MATHML -DENABLE_MEDIA_CONTROLS_SCRIPT -DENABLE_MEDIA_SOURCE -DENABLE_MEDIA_STREAM -DENABLE_MEMORY_SAMPLER -DENABLE_METER_ELEMENT -DENABLE_MOUSE_CURSOR_SCALE -DENABLE_NETWORK_CACHE_SPECULATIVE_REVALIDATION -DENABLE_NOTIFICATIONS -DENABLE_PAYMENT_REQUEST -DENABLE_PDFKIT_PLUGIN -DENABLE_POINTER_EVENTS -DENABLE_POINTER_LOCK -DENABLE_PUBLIC_SUFFIX_LIST -DENABLE_REMOTE_INSPECTOR -DENABLE_RESIZE_OBSERVER -DENABLE_RESOURCE_LOAD_STATISTICS -DENABLE_RESOURCE_USAGE -DENABLE_RUBBER_BANDING -DENABLE_SANDBOX_EXTENSIONS -DENABLE_SERVER_PRECONNECT -DENABLE_SERVICE_CONTROLS -DENABLE_SERVICE_WORKER -DENABLE_SHAREABLE_RESOURCE -DENABLE_SPEECH_SYNTHESIS -DENABLE_STREAMS_API -DENABLE_SVG_FONTS -DENABLE_TELEPHONE_NUMBER_DETECTION -DENABLE_TEXT_AUTOSIZING -DENABLE_USERSELECT_ALL -DENABLE_USER_MESSAGE_HANDLERS -DENABLE_VARIATION_FONTS -DENABLE_VIDEO -DENABLE_VIDEO_PRESENTATION_MODE -DENABLE_VIDEO_TRACK -DENABLE_VIDEO_USES_ELEMENT_FULLSCREEN -DENABLE_WEBDRIVER_MOUSE_INTERACTIONS -DENABLE_WEBDRIVER_KEYBOARD_INTERACTIONS -DENABLE_WEBGL -DENABLE_WEBGL2 -DENABLE_WEB_AUDIO -DENABLE_WEB_AUTHN -DENABLE_WEB_CRYPTO -DENABLE_WEB_PROCESS_SANDBOX -DENABLE_WEB_RTC -DENABLE_WIRELESS_PLAYBACK_TARGET -DENABLE_XSLT -DU_HIDE_DEPRECATED_API -DU_DISABLE_RENAMING=1 -DU_SHOW_CPLUSPLUS_API=0 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk -fasm-blocks -fstrict-aliasing -Wdeprecated-declarations -Winvalid-offsetof -mmacosx-version-min=10.13 -g -fvisibility=hidden -fvisibility-inlines-hidden -fno-threadsafe-statics -Wno-sign-conversion -Winfinite-recursion -Wmove -Wcomma -Wblock-capture-autoreleasing -Wstrict-prototypes -Wrange-loop-analysis -Wno-semicolon-before-method-body -iquote /Volumes/Data/EWS/WebKit/WebKitBuild/JavaScriptCore.build/Release/JavaScriptCore.build/JavaScriptCore-generated-files.hmap -I/Volumes/Data/EWS/WebKit/WebKitBuild/JavaScriptCore.build/Release/JavaScriptCore.build/JavaScriptCore-own-target-headers.hmap -I/Volumes/Data/EWS/WebKit/WebKitBuild/JavaScriptCore.build/Release/JavaScriptCore.build/JavaScriptCore-all-target-headers.hmap -iquote /Volumes/Data/EWS/WebKit/WebKitBuild/JavaScriptCore.build/Release/JavaScriptCore.build/JavaScriptCore-project-headers.hmap -I/Volumes/Data/EWS/WebKit/WebKitBuild/Release/include -I/Volumes/Data/EWS/WebKit/WebKitBuild/Release/DerivedSources/JavaScriptCore -I. -I/Volumes/Data/EWS/WebKit/WebKitBuild/Release/usr/local/include -I/Volumes/Data/EWS/WebKit/WebKitBuild/JavaScriptCore.build/Release/JavaScriptCore.build/DerivedSources/x86_64 -I/Volumes/Data/EWS/WebKit/WebKitBuild/JavaScriptCore.build/Release/JavaScriptCore.build/DerivedSources -Wall -Wextra -Wcast-qual -Wchar-subscripts -Wextra-tokens -Wformat=2 -Winit-self -Wmissing-format-attribute -Wmissing-noreturn -Wpacked -Wpointer-arith -Wredundant-decls -Wundef -Wwrite-strings -Wexit-time-destructors -Wglobal-constructors -Wtautological-compare -Wimplicit-fallthrough -F/Volumes/Data/EWS/WebKit/WebKitBuild/Release -isystem /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/System.framework/PrivateHeaders --system-header-prefix=unicode/ -include /Volumes/Data/EWS/WebKit/WebKitBuild/PrecompiledHeaders/JavaScriptCorePrefix-eapjszgrhlrkltdabjzusisguvha/JavaScriptCorePrefix.h -MMD -MT dependencies -MF /Volumes/Data/EWS/WebKit/WebKitBuild/JavaScriptCore.build/Release/JavaScriptCore.build/Objects-normal/x86_64/WasmAirIRGenerator.d --serialize-diagnostics /Volumes/Data/EWS/WebKit/WebKitBuild/JavaScriptCore.build/Release/JavaScriptCore.build/Objects-normal/x86_64/WasmAirIRGenerator.dia -c /Volumes/Data/EWS/WebKit/Source/JavaScriptCore/wasm/WasmAirIRGenerator.cpp -o /Volumes/Data/EWS/WebKit/WebKitBuild/JavaScriptCore.build/Release/JavaScriptCore.build/Objects-normal/x86_64/WasmAirIRGenerator.o ** BUILD FAILED ** The following build commands failed: CompileC /Volumes/Data/EWS/WebKit/WebKitBuild/JavaScriptCore.build/Release/JavaScriptCore.build/Objects-normal/x86_64/UnifiedSource130.o /Volumes/Data/EWS/WebKit/WebKitBuild/Release/DerivedSources/JavaScriptCore/unified-sources/UnifiedSource130.cpp normal x86_64 c++ com.apple.compilers.llvm.clang.1_0.compiler (1 failure) Failed to run "['Tools/Scripts/build-webkit', '--release']" exit_code: 65 ebKit/WebKitBuild/Release/DerivedSources/JavaScriptCore/unified-sources/UnifiedSource130.cpp normal x86_64 c++ com.apple.compilers.llvm.clang.1_0.compiler (1 failure) Full output: https://webkit-queues.webkit.org/results/12981839
Note You need to log in before you can comment on or make changes to this bug.