-
1.
公开(公告)号:US20160306786A1
公开(公告)日:2016-10-20
申请号:US15192153
申请日:2016-06-24
Applicant: QUALCOMM Incorporated
Inventor: Christopher A. VICK , Bin Wang , Mohammad H. Reshadi
CPC classification number: G06F17/272 , G06F17/2247 , G06F17/2725
Abstract: The aspects enable a processor to concurrently execute markup language code (e.g., HTML) having embedded scripting language code (e.g., JAVASCRIPT®) during a page load operation by a browser. A markup language parser parses markup language code until embedded scripting language code is encountered. The segment of embedded scripting language code is extracted for execution by a scripting language engine which proceeds concurrently with speculative parsing of the markup language code. Markup language code generated by execution of scripting language code is evaluated to determine if it is well formed, and a partial rollback of the markup language parse and re-parsing of portions of the markup language code is accomplished if not. Concurrent parsing of markup language code and execution of scripting language code, with partial roll back of the parsing process when necessary, continues until all markup language code has been parsed and all scripting language code has been executed.
Abstract translation: 这些方面使处理器在浏览器的页面加载操作期间同时执行具有嵌入的脚本语言代码(例如,JAVASCRIPT?)的标记语言代码(例如,HTML)。 标记语言解析器解析标记语言代码,直到遇到嵌入式脚本语言代码。 提取嵌入式脚本语言代码段以由与标记语言代码的推测性解析同时进行的脚本语言引擎执行。 评估通过执行脚本语言代码生成的标记语言代码,以确定其是否形成良好,如果不是,则完成标记语言解析和部分标记语言代码的重新解析的部分回滚。 同时解析标记语言代码和执行脚本语言代码,必要时部分回滚解析过程,一直持续到所有标记语言代码已被解析并且所有脚本语言代码都已被执行。
-
公开(公告)号:US20150046912A1
公开(公告)日:2015-02-12
申请号:US14014571
申请日:2013-08-30
Applicant: QUALCOMM Incorporated
Inventor: Christopher A. VICK , Andres Valencia
IPC: G06F9/45
CPC classification number: G06F8/443 , G06F8/4443 , G06F9/45504 , G06F9/45516 , G06F11/3466
Abstract: The various aspects leverage the novel observation that the number of call sites in code is directly correlated with the code's compile time and provide methods implemented by a compiler operating on a computing device (e.g., a smartphone) for performing inline throttling based on a projected number of call sites in the code that would exist after performing inline expansion. The various aspects enable the compiler to improve the performance of the generated code by aggressive inlining while carefully managing increases in compile time, thereby decreasing the power required to compile the code while increasing performance of the computing device. Thus, by inlining enough call sites to reduce the costs of handling calls while accounting for the costs of inlining, the various aspects provide for an effective balance of short compile times and effective code performance.
Abstract translation: 各个方面利用新颖的观察结果,代码中的调用位置的数量与代码的编译时间直接相关,并提供由在计算设备(例如,智能电话机)上操作的编译器实现的方法,用于基于预测的数字执行内联调节 在执行内联扩展后将存在的代码中的调用网站。 各个方面使编译器能够通过积极的内联来提高生成代码的性能,同时谨慎地管理编译时间的增加,从而降低编译代码所需的功耗,同时提高计算设备的性能。 因此,通过内联足够的呼叫站点来降低处理呼叫的成本,同时考虑到内联的成本,各个方面提供了缩短编译时间和有效的代码执行的有效平衡。
-