From: Jean Privat Date: Thu, 29 Jan 2015 11:58:53 +0000 (+0700) Subject: Merge: Optimizations in nitvm X-Git-Tag: v0.7.1~4 X-Git-Url: http://nitlanguage.org Merge: Optimizations in nitvm This PR introduces some change in the implementation of object mechanisms in the nitvm. Now, the dispatch between several mechanisms is made directly in the AST nodes instead of in runtime mechanisms themselves. This PR is preliminary work before the implementation of complex optimization systems, but now the nitvm is sligtly more efficent than before because the choice between implementations is only made once (the first time). I use a workaround in AST nodes to avoid conflict with refinements between the interpreter and the vm. In the future this will need to be well implemented, maybe by creating a sort of ```CallSite``` for subtyping test and attribute access and store informations into them instead of into the nodes. Pull-Request: #1120 Reviewed-by: Alexis Laferrière Reviewed-by: Jean Privat Reviewed-by: Alexandre Terrasa --- fac640cbcd6ed13bce5bbf96f59fa8bebe19530a