I tried this algorithm on Unity project, and I have this error:
/home/caiiiycuk/sdk/Similar-Function-Elimination/src/similar_function_eliminator.js:156
var asmAstBody = this.asmAst.body;
^
TypeError: Cannot read property 'body' of undefined
at SimilarFunctionEliminator.genFunctionNameToIndexDict
(/home/caiiiycuk/sdk/Similar-Function-Elimination/src/similar_function_eliminator.js:156:31)
at SimilarFunctionEliminator.initialize
(/home/caiiiycuk/sdk/Similar-Function-Elimination/src/similar_function_eliminator.js:134:8)
at SimilarFunctionEliminator.run
(/home/caiiiycuk/sdk/Similar-Function-Elimination/src/similar_function_eliminator.js:1214:8)
at Object.run
(/home/caiiiycuk/sdk/Similar-Function-Elimination/src/similar_function_eliminator.js:1299:23)
at Object.<anonymous>
(/home/caiiiycuk/sdk/Similar-Function-Elimination/src/run_sfe.js:28:5)
at Module._compile (module.js:410:26)
at Object.Module._extensions..js (module.js:417:10)
at Module.load (module.js:344:32)
at Function.Module._load (module.js:301:12)
at Function.Module.runMain (module.js:442:10)
2017-08-20 12:44 GMT+07:00 Александр Гурьянов <[email protected]>:
> Hi guys! Sorry, I don't understand from now SFE step is builtin into
> emscripten, or I should use it as post step after compilation? I want
> to try it on my projects.
>
> 2017-08-19 22:12 GMT+07:00 Charles Vaughn <[email protected]>:
>> The biggest difference is SFE uses helper functions, since we need to deal
>> with finding pointers. It would be possible to generalize DFE and add a
>> specific optimization to elide helpers but we haven't done that.
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "emscripten-discuss" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to [email protected].
>> For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups
"emscripten-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.