发明申请
- 专利标题: METHOD AND SYSTEM FOR CODE GENERATION AND INLINING
- 专利标题(中): 代码生成和引用的方法和系统
-
申请号: US13221171申请日: 2011-08-30
-
公开(公告)号: US20120054725A1公开(公告)日: 2012-03-01
- 发明人: Derek B. Inglis , Kiyokuni Kawachiya , Tamiya Onodera , Michiaki Tatsubori
- 申请人: Derek B. Inglis , Kiyokuni Kawachiya , Tamiya Onodera , Michiaki Tatsubori
- 申请人地址: US NY Armonk
- 专利权人: International Business Machines Corporation
- 当前专利权人: International Business Machines Corporation
- 当前专利权人地址: US NY Armonk
- 优先权: JP2010-194224 20100831
- 主分类号: G06F9/45
- IPC分类号: G06F9/45
摘要:
A method and system for code generation and inlining. The method includes: scanning a code, where the code includes a method; determining whether the method includes a branch if the method is too large in size to be inlined, where the branch is based on runtime types of argument; profiling runtime types of actual arguments at a call site in the method if the method includes the branch; generating a polymorphic inline cache (PIC) code from a plurality of arguments, where the plurality of arguments are based on a result of the profiling step; generating a specialized method for a frequently appearing combination of the runtime types of argument and arguments that can be invoked from the PIC code; and inlining body of the specialized method into the call site if the specialized method has a body size within a permissible range.
公开/授权文献
- US09235394B2 Method and system for code generation and inlining 公开/授权日:2016-01-12