首页> 外国专利> Optimistically Assuming Types in a Dynamically Typed Language

Optimistically Assuming Types in a Dynamically Typed Language

机译:动态类型化语言中的乐观假设类型

摘要

Optimistically type assumptions in a dynamically typed language may involve a compiler parsing code and detecting a program element that results from an operation of the code that has an unspecified type. In response, the compiler may make a first type assumption treating the element as a first type. The assumed type may be selected from multiple types as expected to have a lowest performance cost of the multiple types. The compiler may generate compiled code using the first (assumed) type. During runtime of the compiled code, it may be detected that the first type assumption is invalid for the compiled code and in response a portion of the compiled code may be replaced with other compiled code. The other compiled code may treat the element according to a second type assumption that may be selected as a type expected to have the second lowest performance cost.
机译:动态类型化语言中的乐观类型假设可能涉及编译器解析代码并检测由具有未指定类型的代码的操作导致的程序元素。作为响应,编译器可以做出将元素视为第一类型的第一类型假设。假定的类型可以从多种类型中选择,以期望具有多种类型中最低的性能成本。编译器可以使用第一(假定)类型来生成编译代码。在编译代码的运行期间,可以检测到第一类型假设对于编译代码是无效的,并且作为响应,可以将编译代码的一部分替换为其他编译代码。其他编译代码可以根据第二类型假设来对待元素,该第二类型假设可以被选择为期望具有第二最低性能成本的类型。

著录项

  • 公开/公告号US2015378694A1

    专利类型

  • 公开/公告日2015-12-31

    原文格式PDF

  • 申请/专利权人 ORACLE INTERNATIONAL CORPORATION;

    申请/专利号US201514743912

  • 发明设计人 MARCUS LAGERGREN;ATTILA SZEGEDI;

    申请日2015-06-18

  • 分类号G06F9/45;G06F9/455;

  • 国家 US

  • 入库时间 2022-08-21 14:33:14

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号