首页>
外国专利>
Automatic refactoring of javascript code for multi-thread execution
Automatic refactoring of javascript code for multi-thread execution
展开▼
机译:自动重构JavaScript代码以执行多线程
展开▼
页面导航
摘要
著录项
相似文献
摘要
Computer implemented method of refactoring JavaScript code for multi-threading concurrent execution, comprising:1) Designating a source code which includes background code entries indicated by a user as executed in background.2) Analyzing the source code entries to create a dependency record.3) Creating a background process comprising the background code entries and removing code entries which read or write from DOM(s).4) Creating a handler code comprising the write code entries.5) Creating main code which includes: (a) Remaining code entries not included in the background process and the handler code.(b) Process initiation code initiating the background process. The process initiation code is placed at a process initiation point identified based on the dependency record which follows the read code entries in the source code execution path and precedes the write code entries.6) Outputting refactored code file(s) which include the background process, handler code and main code.展开▼