facebookarchive/prepack
Fuse adjacent JOIN_GENERATORS with same path condition
オープン
#2,565 opened on 2018/09/22
Instant Renderenhancementhelp wantedlevel 2 (easy)
Repository metrics
- Stars
- (14,268 個のスター)
- PR merge metrics
- (PR metrics pending)
説明
This...
let x = __abstract("boolean", "(x)");
if (x) console.log("Hello");
if (x) console.log(" World");
currently prepacks to
(function () {
var _0 = x;
if (_0) {
console.log("Hello");
}
if (_0) {
console.log(" World");
}
})();
but should Prepack to
(function () {
var _0 = x;
if (_0) {
console.log("Hello");
console.log(" World");
}
})();
(Seen arising from actual product code.)