Repository navigation
Conversation
…nder --unsafe and in the default lane - --unsafe: decoders used as values or called with computed arguments only inside branches or never-called functions are decoded speculatively; if the decoder survives the stage the input runs again without that speculation - --unsafe: a wrapper written again only inside such branches is inlined on the same terms - the escape scan no longer doubles its work and pending sites per nested proxy call, and storage templates have a size cap - built-in constructions, literal-initialised bindings and identifier computed keys no longer count as possibly holding the global object; observation settles with quiet printers - a one-entry latent outer array triggers layered speculation; a lone nested block no longer hides the array function - a failed reach obligation keeps the global-reach note in the rerun
…es with branch speculation
…es after the rebase
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
OX2-D: string arrays, decoders and machinery that later layers or dead-code copies left encoded.
--unsafe: a decoder that is used as a value, or called with computed arguments, only inside branches (if/ternary/logical/switch) or inside function declarations nothing reads, is decoded speculatively. A wrapper that is only written again inside such branches is inlined on the same terms. If the decoder or wrapper is still in the program at the end of the deobfuscate stage, the input runs again without the speculation, so a live branch keeps its unit (rowbranch-escape-live).new Error/Map/Set/Date/RegExp/...and bindings initialised with an object or array literal no longer count as possibly holding the global object; identifier computed keys no longer make an object literal hold it; the stage-end observation check uses the same quiet printers as the first check.[d(475)]) now triggers layered speculation (MIN_LATENT_ENTRIES 1), and a lone nested block (function () { { return a; } }) no longer hides the array function.Sweep (3,465 cases, base 16463ff, same inputs; 2,189 run):
--unsafe(all of pw021-m2, pw012 n2/m2, pw006-n3, pw011-m2). Left: pw011 n2/n3/m3 and rnd011-n3 (15) print differently because console disabling and its call controller stay behind a control-flow object kept for a live-looking mutation (same output as main); pw012-n3 (5) has an outer decoder called from wrappers inside the inner decoder's own injected dead code.Krunker samples: all 10 outputs byte-identical to main; instructions within 0.5% except 3.2.1 --unsafe at -5.4%.
Wasm 16,095,514 bytes, baseline 14,635,000 (cap 16,098,500).