Listing 4. Using an interface to prevent method inlining.
清单4使用接口防止方法内联。
Dynamic compilers, especially once method inlining takes place, have many more ways to determine that code is dead.
动态编译器(尤其是在进行方法内联之后)通过许多方法来判断死代码。
Many standard optimizations can only be performed within a "basic block," and so inlining method calls is often important to achieve good optimization.
许多标准的优化只能在“基本块”内执行,所以内联方法调用对于达到好的优化通常很重要。
If inlining is prevented with the presence of a lock and not prevented without, than we need to make sure that we don't include the extra method call in our results.
如果由于锁的存在而抑制了内联,反之没有锁就可能出现内联,那么我们要确保在测试结果中没有包含额外的方法调用。
Styling can be done using local style definitions (as in Listing 3), references to external style sheets, inlining styles within the components, and using the setStyle method in ActionScript.
样式设计通过使用本地样式定义(见 清单3)、对外部样式表的引用、组件内的内联样式以及ActionScript 中的setStyle方法完成。
Styling can be done using local style definitions (as in Listing 3), references to external style sheets, inlining styles within the components, and using the setStyle method in ActionScript.
样式设计通过使用本地样式定义(见 清单3)、对外部样式表的引用、组件内的内联样式以及ActionScript 中的setStyle方法完成。
应用推荐