@markw65/monkeyc-optimizer 1.0.19 → 1.0.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +44 -0
- package/build/api.cjs +612 -205
- package/build/optimizer.cjs +382 -171
- package/build/src/api.d.ts +5 -2
- package/build/src/inliner.d.ts +1 -5
- package/build/src/launch.d.ts +2 -1
- package/build/src/mc-rewrite.d.ts +4 -4
- package/build/src/optimizer.d.ts +27 -9
- package/build/src/pragma-checker.d.ts +1 -1
- package/build/src/util.d.ts +3 -3
- package/build/src/visitor.d.ts +2 -0
- package/build/util.cjs +5 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -220,3 +220,47 @@ More fixes found via open source projects.
|
|
|
220
220
|
- Code cleanup
|
|
221
221
|
- Properly type the results of JSON.parse
|
|
222
222
|
- Switch over to using ParenthesizedExpression for formatAst (depends on @markw65/prettier-plugin-monkeyc@1.0.22)
|
|
223
|
+
|
|
224
|
+
### 1.0.20
|
|
225
|
+
|
|
226
|
+
- Bug fixes
|
|
227
|
+
|
|
228
|
+
- Fix a bug marking unknown callees
|
|
229
|
+
- Fix a bug in test.js that didn't notice when tests failed, and fix a failing test
|
|
230
|
+
|
|
231
|
+
- Optimizer enhancements
|
|
232
|
+
|
|
233
|
+
- Re-run the main optimization step, to properly account for functions that are unused after optimization
|
|
234
|
+
- Call the optimizer on 'unused' nodes before returning them
|
|
235
|
+
|
|
236
|
+
- Code cleanup
|
|
237
|
+
- Called function cleanup
|
|
238
|
+
|
|
239
|
+
### 1.0.21
|
|
240
|
+
|
|
241
|
+
- Bug fixes
|
|
242
|
+
|
|
243
|
+
- Parameters from the calling function should be treated just line locals when inlining
|
|
244
|
+
- Upgrade to @markw65/prettier-plugin-monkeyc@1.0.24
|
|
245
|
+
- fixes crash with comments following an attribute: `(:foo) /* comment */ function foo() {}`
|
|
246
|
+
- Fix issues with recursive inlining
|
|
247
|
+
|
|
248
|
+
### 1.0.22
|
|
249
|
+
|
|
250
|
+
- Improvements
|
|
251
|
+
|
|
252
|
+
- Major rewrite of the symbol lookup mechanism, to match monkeyc as closely as possible
|
|
253
|
+
|
|
254
|
+
- Fix callee lookup to skip local variables
|
|
255
|
+
- Fix class lookup to first check all the super classes, then to check the context of each super class
|
|
256
|
+
- Fix module lookup to check both the module, and the context of the module
|
|
257
|
+
- Inject class and module names into themselves. So that Graphics.Graphics.COLOR_RED works.
|
|
258
|
+
|
|
259
|
+
- Add live diagnostics for missing symbols
|
|
260
|
+
|
|
261
|
+
- Bug fixes
|
|
262
|
+
|
|
263
|
+
- Recognize the the variable in a catch clause is a declaration
|
|
264
|
+
|
|
265
|
+
- Breaking change
|
|
266
|
+
- By popular demand, reversed the sense of inline_foo, so now it inlines when foo is _not_ declared as an excludeAnnotation
|