Invention Grant
- Patent Title: Method and system for compiling a dynamically-typed method invocation in a statically-typed programming language
- Patent Title (中): 用静态类型编程语言编译动态类型方法调用的方法和系统
-
Application No.: US12688809Application Date: 2010-01-15
-
Publication No.: US08387027B2Publication Date: 2013-02-26
- Inventor: Alexander R. Buckley , John Rose , Joseph D. Darcy
- Applicant: Alexander R. Buckley , John Rose , Joseph D. Darcy
- Applicant Address: US CA Redwood Shores
- Assignee: Oracle America, Inc. formerly Sun Microsystems, Inc.
- Current Assignee: Oracle America, Inc. formerly Sun Microsystems, Inc.
- Current Assignee Address: US CA Redwood Shores
- Agency: Osha Liang LLP
- Main IPC: G06F9/45
- IPC: G06F9/45

Abstract:
A method for compiling source code, involving: obtaining a statement of the source code comprising a method call, where the source code is composed in a statically-typed programming language; determining whether the method call is a dynamic method call; upon determining that the method call is a dynamic method call, compiling a dynamic method invocation without performing type checking on the method call; upon determining that the method call is not a dynamic method call: performing type checking on the method call, selecting a target method to invoke, and compiling a static method invocation to invoke the target method.
Public/Granted literature
Information query