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."/> Automatic refactoring of javascript code for multi-thread execution
首页> 外国专利> 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.
机译:重构JavaScript代码以实现多线程并发执行的计算机实现的方法,包括: 1)指定源代码,其中包括用户在后台执行的指示的后台代码条目。 2)分析源代码条目以创建依赖项记录。 3 )创建一个包含后台代码条目的后台进程,并删除从DOM读取或写入的代码条目。 4)创建一个包含以下内容的处理程序代码: 5)创建主要代码,其中包括: (a)后台进程和处理程序代码中未包含的其余代码条目。 < ListItem id =“ ul0002-0002” number =“ 0000”>(b)启动后台进程的进程启动代码。流程启动代码放置在基于依赖项记录标识的流程启动点,该依赖关系记录在源代码执行路径中的读取代码条目之后,在写入代码条目之前。 6)输出重构的代码文件,其中包括后台进程,处理程序代码和主代码。

著录项

相似文献

  • 专利
  • 外文文献
  • 中文文献
获取专利

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号