Determines if two files of lua bytecode are the same (except possibly for line numbers).
(String file1, String file2)
| 30 | * (except possibly for line numbers). |
| 31 | */ |
| 32 | public boolean bytecode_equal(String file1, String file2) { |
| 33 | LFunction main1 = file_to_function(file1); |
| 34 | LFunction main2 = file_to_function(file2); |
| 35 | return function_equal(main1, main2); |
| 36 | } |
| 37 | |
| 38 | public boolean function_equal(LFunction f1, LFunction f2) { |
| 39 | if(f1.maximumStackSize != f2.maximumStackSize) { |
no test coverage detected