-
9e03e28c9b
ast: Convert list.delete to list.deleteAll when input is constant "all"
Thomas Weber
2020-09-10 18:15:10 -05:00
-
0b3ac86385
js: Remove isConstantInput
Thomas Weber
2020-09-10 16:30:18 -05:00
-
bca19a7efa
js: Restore variable type inference with less bugs
Thomas Weber
2020-09-10 16:29:45 -05:00
-
c7a4f4cde0
Revert "js: Optimize op.equals when comparing against a constant 0"
Thomas Weber
2020-09-10 12:16:36 -05:00
-
4a0d27af76
execute: Fix listIndex
Thomas Weber
2020-09-10 11:21:33 -05:00
-
5a2b3e115d
Revert "js: Optimize op.less when right side is always a number"
Thomas Weber
2020-09-10 11:09:17 -05:00
-
e8d1e449a9
execute: Optimize listIndex
Thomas Weber
2020-09-09 22:03:56 -05:00
-
80e0bccabc
js: Use bitwise | 0 instead of Math.floor in list.get optimization
Thomas Weber
2020-09-09 22:02:37 -05:00
-
94f09e10b2
js+execute: Remove listGetFast
Thomas Weber
2020-09-09 22:01:06 -05:00
-
36ee6f65de
js: Optimize op.less when right side is always a number
Thomas Weber
2020-09-09 21:51:47 -05:00
-
3ed2fffa0b
js: Optimize op.equals when comparing against a constant 0
Thomas Weber
2020-09-09 21:38:54 -05:00
-
e5fa43b452
js: Improve sanitize
Thomas Weber
2020-09-09 14:42:31 -05:00
-
eebd40fec4
Add Input.asNumberOrNaN
Thomas Weber
2020-09-09 14:29:50 -05:00
-
d62a38b851
[Security] Bump js-yaml from 3.12.0 to 3.14.0
dependabot-preview[bot]
2020-09-05 09:22:06 +00:00
-
-
-
f190934150
Merge branch 'develop' of https://github.com/llk/scratch-vm into develop
Thomas Weber
2020-09-03 15:13:06 -05:00
-
-
7c652246df
Merge pull request #2356 from adroitwhiz/cast-to-black
DD Liu
2020-09-03 15:52:52 -04:00
-
-
7b739fc7f9
js: Nuke VariableInput and Frame
Thomas Weber
2020-08-31 21:20:59 -05:00
-
a4f096ae8d
js: remove inheritValues (#15)
Thomas Weber
2020-08-31 19:39:57 -05:00
-
25fc927522
Fix code style
Thomas Weber
2020-08-31 15:26:00 -05:00
-
37c313b3a1
Use new Function instead of eval when testing for nullish coalescing operator
Thomas Weber
2020-08-31 15:25:54 -05:00
-
f999252917
execute: Cleanup some code
Thomas Weber
2020-08-31 15:23:19 -05:00
-
c50aeaf740
Revert "js: Remove type from VariableInput"
Thomas Weber
2020-08-30 16:37:25 -05:00
-
8f66924fe9
js: Remove type from VariableInput
Thomas Weber
2020-08-30 16:25:14 -05:00
-
9e9b414620
js: Fix VariableInput infinite recursion
Thomas Weber
2020-08-30 16:09:56 -05:00
-
c4bb8fabba
js: Use Object.create(null) for variable input cache
Thomas Weber
2020-08-30 12:48:28 -05:00
-
1ffdc1a2a4
js: Improve variable type analysis
Thomas Weber
2020-08-30 12:39:59 -05:00
-
2d7579d6b2
js: Allow the new frame to inherit values from the old frame, if enabled.
Thomas Weber
2020-08-30 12:39:10 -05:00
-
38f325e73f
js: Store the last value a variable was set to for use in analysis
Thomas Weber
2020-08-30 12:25:23 -05:00
-
14c04ad947
js: Cleanup descendVariable
Thomas Weber
2020-08-30 12:21:38 -05:00
-
559280f2d5
js: Add VariableInput
Thomas Weber
2020-08-30 12:21:05 -05:00
-
63a755c1f8
ast: remove var.change
Thomas Weber
2020-08-30 11:58:03 -05:00
-
2b1b665952
js: Implement basic stack frame tracking
Thomas Weber
2020-08-30 11:53:39 -05:00
-
8906347ed6
Refactor script compiling
Thomas Weber
2020-08-29 23:01:53 -05:00
-
c980b780ed
js: Add isConstantInput() helper
Thomas Weber
2020-08-29 22:38:29 -05:00
-
a39701297a
js: replace listGetFast with the nullish coalescing operator when supported
Thomas Weber
2020-08-29 21:06:46 -05:00
-
fcd3f35995
js: Remove unused isAlwaysNumberOrNaN
Thomas Weber
2020-08-29 20:52:47 -05:00
-
1240c31b93
Merge branch 'optimize' into develop
Thomas Weber
2020-08-29 14:29:50 -05:00
-
-
2e79194da2
js: Remove some unsafe op.greater, op.less optimizations
Thomas Weber
2020-08-29 14:04:29 -05:00
-
bf6cd9c977
js: Optimize op.greater and op.less similar to op.equals
Thomas Weber
2020-08-29 13:07:22 -05:00
-
f4e97a9e3f
js: We stores isAlwaysNumber in a variable, so let's use that instead of running it again
Thomas Weber
2020-08-29 12:42:26 -05:00
-
41d2084bbd
js: Refactor non-zero constant checking out of op.equals
Thomas Weber
2020-08-29 12:40:59 -05:00
-
0e0a4ea664
js: Fix SafeConstantInput
Thomas Weber
2020-08-29 12:31:20 -05:00
-
615f113a51
js: tw.lastKeyPressed is final
Thomas Weber
2020-08-29 12:26:11 -05:00
-
9ee130ee50
js: Optimize op.equals
Thomas Weber
2020-08-29 12:19:06 -05:00
-
38f5ac8110
js: Introduce SafeConstantInput
Thomas Weber
2020-08-29 12:09:25 -05:00
-
12837c8cfc
ast: Make comment parser more relaxed
Thomas Weber
2020-08-29 11:36:44 -05:00
-
c791dad0e7
ast+js: Compile sensing_dayssince2000
Thomas Weber
2020-08-29 01:29:07 -05:00
-
54213ae4e0
ast: Cleanup Tree typedef
Thomas Weber
2020-08-29 01:19:01 -05:00
-
378e4f8206
js: trim trailing whitespace
Thomas Weber
2020-08-29 01:16:02 -05:00
-
87258bf44d
Remove misleading comment
Thomas Weber
2020-08-29 00:54:38 -05:00
-
57097d7733
Merge branch 'develop' into number-optimizations
Thomas Weber
2020-08-29 00:24:33 -05:00
-
-
-
-
66f610b10c
ast: Fix scripts opting into stuck checking (#10)
Thomas Weber
2020-08-28 23:53:14 -05:00
-
c2ea3f4efb
ast+js: Allow scripts to opt into stuck checking (#10)
Thomas Weber
2020-08-28 23:35:44 -05:00
-
5434b0a252
ast: Consider procedures_definition a hat
Thomas Weber
2020-08-28 23:35:09 -05:00
-
82c62ba782
ast: remove unused variable bodyStart
Thomas Weber
2020-08-28 23:14:13 -05:00
-
12ce7be648
ast: Start parsing procedures from the definition, not the first child
Thomas Weber
2020-08-28 23:13:13 -05:00
-
bd9de75762
js: Only evaluate opcode function once in compatibility layer
Thomas Weber
2020-08-28 21:21:33 -05:00
-
1e08b6a2a6
js: Optimize list.get for number indexes
Thomas Weber
2020-08-28 21:11:01 -05:00
-
96218f6220
js: Improve >, <, === optimizations
Thomas Weber
2020-08-28 21:10:42 -05:00
-
12d237a656
js: Use native >, <, === when possible
Thomas Weber
2020-08-28 20:53:29 -05:00
-
9a84405351
js: Add some analysis methods to inputs
Thomas Weber
2020-08-28 18:29:35 -05:00
-
-
e44c91b789
Remove toNumber() as it is only used in one spot
Thomas Weber
2020-08-28 16:10:31 -05:00
-
ce826bca9d
Add more keys
Thomas Weber
2020-08-28 12:22:41 -05:00
-
2189b40e83
ast: operator_random cleanup
Thomas Weber
2020-08-28 00:11:11 -05:00
-
6c763a97a9
ast: Add support for translate blocks
Thomas Weber
2020-08-27 23:51:59 -05:00
-
8d6b4bb738
ast: Add support for video sensing blocks
Thomas Weber
2020-08-27 23:50:01 -05:00
-
f62f483ed8
ast: Add support for text2speech blocks
Thomas Weber
2020-08-27 23:44:00 -05:00
-
b648b8ed3f
Update CONTRIBUTING
Thomas Weber
2020-08-27 00:26:02 -05:00
-
352a0c814d
fix name of lastKeyPressed
Thomas Weber
2020-08-26 23:52:09 -05:00
-
b92ea10228
ast: Remove isCompilerDetectorArgument helper
Thomas Weber
2020-08-23 20:20:53 -05:00
-
7307256837
ast: "last key pressed" should be case insensitive, and is finalized
Thomas Weber
2020-08-23 15:28:58 -05:00
-
9698c07291
ast: Cleanup procedure argument handling
Thomas Weber
2020-08-23 15:19:21 -05:00
-
5582e76098
ast+js: Move the procedure argument searching to AST
Thomas Weber
2020-08-03 00:35:34 -05:00
-
24cd6f6788
ast+js: Change procedure arguments to be real JS arguments
Thomas Weber
2020-08-03 00:19:57 -05:00
-
d8f4952ce4
ast: Set yields to false for all procedures initially, not just warp procedures
Thomas Weber
2020-08-23 15:03:48 -05:00
-
5da11927f8
js: Fix unnecessary double space
Thomas Weber
2020-08-23 15:05:53 -05:00
-
c889b22ee7
js: Include procedure code is debug log messages
Thomas Weber
2020-08-23 13:54:28 -05:00
-
1828a67348
ast: Include procedure code in trees
Thomas Weber
2020-08-23 13:54:04 -05:00
-
3e50a31692
js: Use different variable pool for generators and regular functions
Thomas Weber
2020-08-23 11:34:56 -05:00
-
7b62efcb7f
ast: stop this script cannot yield anymore
Thomas Weber
2020-08-23 11:15:14 -05:00
-
9555b68381
js: Make retire() smarter
Thomas Weber
2020-08-23 11:14:49 -05:00
-
411dea526e
ast: operator_mathop is case insensitive
Thomas Weber
2020-08-22 23:48:10 -05:00
-
12c3484599
ast: stop this script only yields outside of procedure
Thomas Weber
2020-08-22 15:55:03 -05:00
-
0cdde43ea7
ast: Add missing yields sets
Thomas Weber
2020-08-22 14:47:19 -05:00
-
db3900ccfb
ast+js: Break up control.stop
Thomas Weber
2020-08-22 14:47:10 -05:00
-
1bcbd4bda5
js: Update generatorNameVariablePool
Thomas Weber
2020-08-22 14:18:58 -05:00
-
da87f66b11
ast: Cleanup analysis more
Thomas Weber
2020-08-22 14:16:32 -05:00
-
35b4e260f4
js: Use ast.procedures
Thomas Weber
2020-08-22 14:13:53 -05:00
-
657c1e390f
ast: uncompiledProcedures -> proceduresToCompile
Thomas Weber
2020-08-22 14:06:13 -05:00
-
ba8e7ea0dd
ast: Do not analyze procedures multiple times
Thomas Weber
2020-08-22 14:06:02 -05:00
-
646f30ca10
js: Cleanup handling of procedures
Thomas Weber
2020-08-22 14:02:34 -05:00
-
b07c8c5609
ast: Rewrite analysis
Thomas Weber
2020-08-22 14:02:03 -05:00
-
f422b68ec9
Remove unused import
Thomas Weber
2020-08-22 13:45:44 -05:00
-
31cb5538c0
ast+js: Script analysis cleanup
Thomas Weber
2020-08-22 13:42:08 -05:00
-
77103e8e23
ast+js: Script analysis prototype
Thomas Weber
2020-08-22 12:56:56 -05:00
-
b93eeed3f0
Remove unused script variable
const t
Thomas Weber
2020-08-22 01:21:42 -05:00
-
2c7a3d299f
Rename some internal opcodes
Thomas Weber
2020-08-22 00:58:02 -05:00
-
79fb3f9005
Reset cache when modifying comments, as these can affect compilation
Thomas Weber
2020-08-22 00:34:41 -05:00
-
39f8b2dfd3
Merge branch 'develop' of https://github.com/llk/scratch-vm into develop
Thomas Weber
2020-08-20 20:23:29 -05:00
-
-
c6962cb390
Merge pull request #2542 from apple502j/video-motion-fix
Eric Rosenbaum
2020-08-20 17:11:46 -04:00
-