发明名称 Versioning optimization for dynamically-typed languages
摘要 A system and method for optimizing program code in dynamic languages includes gathering hot-type information from a program by employing inferencing or profiling to get the hot-type information for operator uses, and inserting guards in the program based on data flow in the program to guard against propagation failures during runtime where preconditions are violated or where the propagation is unlikely to return. The program is versioned into global versions including a hot path version and a cold path version, where the hot path version is expected to be executed if the values of variables in the code are expected types, and other exceptional cases are handled by the cold path version as triggered by the guards. Compiler optimizations are performed to remove redundant representations of values, and heavy overloading of operators to provide an optimized compiling of the code.
申请公布号 US7493610(B1) 申请公布日期 2009.02.17
申请号 US20080056726 申请日期 2008.03.27
申请人 INTERNATIONAL BUSINESS MACHINES CORPORATION 发明人 ONODERA TAMIYA;SUNDARESAN VIJAY;TATSUBORI MICHIAKI;TOZAWA AKIHIKO
分类号 G06F9/45;G06F11/00 主分类号 G06F9/45
代理机构 代理人
主权项
地址