发明名称 |
METHOD FOR CONSTRUCTING A GRAPH DATA STRUCTURE |
摘要 |
The disclosure relates to a method for constructing a graph data structure as an intermediate representation of source code for a compiler configured for compiling the source code into executable machine code running on a processor of a computer system, wherein program operations of the source code are represented in an object-oriented programming language by objects of classes that form a hierarchy growing from a base node class of the graph data structure, the method comprising: producing new nodes of the graph data structure by calling factory methods associated with existing nodes of the graph data structure based on a factory method design pattern implemented in the nodes of the graph data structure, wherein the nodes of the graph data structure are identified by symbols; and using the symbols as proxies of the nodes of the graph data structure according to a proxy design pattern. |
申请公布号 |
US2016139894(A1) |
申请公布日期 |
2016.05.19 |
申请号 |
US201615004018 |
申请日期 |
2016.01.22 |
申请人 |
HUAWEI TECHNOLOGIES CO., LTD. |
发明人 |
Slesarenko Alexander Vladimirovich;Orlov Anton Yurievich;Zhang Hongbo |
分类号 |
G06F9/45;G06F9/44 |
主分类号 |
G06F9/45 |
代理机构 |
|
代理人 |
|
主权项 |
1. A computer-implemented method for constructing a graph data structure as an intermediate representation of a source code, for a compiler configured for compiling the source code into executable machine code running on one or more processors, wherein program operations of the source code are represented in an object-oriented programming language by objects of classes that form a hierarchy growing from a base node class of the graph data structure, the method comprising:
generating with one or more processors, new nodes of the graph data structure by calling factory methods associated with existing nodes of the graph data structure based on a factory method design pattern implemented in the nodes of the graph data structure, wherein the nodes of the graph data structure are identified by symbols; and using the symbols as proxies of the nodes of the graph data structure according to a proxy design pattern. |
地址 |
Shenzhen CN |