Branch: refs/heads/main Home: https://github.com/WebKit/WebKit Commit: d1099dd4f9b4cc010961bfca56f2368923802bff https://github.com/WebKit/WebKit/commit/d1099dd4f9b4cc010961bfca56f2368923802bff Author: Sosuke Suzuki <sos...@bun.sh> Date: 2025-09-01 (Mon, 01 Sep 2025)
Changed paths: A JSTests/microbenchmarks/minified-typeof-not-undefined.js A JSTests/stress/minified-typeof-not-undefined.js M Source/JavaScriptCore/bytecompiler/BytecodeGenerator.cpp M Source/JavaScriptCore/bytecompiler/BytecodeGenerator.h Log Message: ----------- [JSC] emit `op_not` and `op_typeof_is_undefined` for `typeof x<"u"` https://bugs.webkit.org/show_bug.cgi?id=298167 Reviewed by Yusuke Suzuki. This patch changes to apply the same optimization as https://commits.webkit.org/299368@main to `typeof x < "u"` as well. TipOfTree Patched minified-typeof-not-undefined 4.5425+-0.2007 ^ 1.9118+-0.0462 ^ definitely 2.3760x faster * JSTests/microbenchmarks/minified-typeof-not-undefined.js: Added. (test): * JSTests/stress/minified-typeof-not-undefined.js: Added. (shouldBe): (test): (i.shouldBe.test): * Source/JavaScriptCore/bytecompiler/BytecodeGenerator.cpp: (JSC::BytecodeGenerator::tryEmitTypeofIsUndefinedForStringComparison): (JSC::BytecodeGenerator::emitBinaryOp): * Source/JavaScriptCore/bytecompiler/BytecodeGenerator.h: Canonical link: https://commits.webkit.org/299412@main To unsubscribe from these emails, change your notification settings at https://github.com/WebKit/WebKit/settings/notifications _______________________________________________ webkit-changes mailing list webkit-changes@lists.webkit.org https://lists.webkit.org/mailman/listinfo/webkit-changes