1.4K Star 7.6K Fork 1.4K

GVP方舟编译器 / OpenArkCompiler

 / 详情

jbc2mpl : incorrect array type

已完成
成员
创建于  
2020-04-02 07:22

jbc2mpl used incorrect array type in a function jbc2mpl generated from OpenJDK 8 jar files

jaxp/src/com/sun/org/apache/xerces/internal/impl/dtd/DTDGrammar.java

1926    protected void setContentSpec(int contentSpecIndex, XMLContentSpec contentSpec) {
1927       int   chunk = contentSpecIndex >> CHUNK_SHIFT;                       
1928       int   index = contentSpecIndex & CHUNK_MASK;                         
1929       
1930       fContentSpecType[chunk][index]       = contentSpec.type;
1931       fContentSpecValue[chunk][index]      = contentSpec.value;
1932       fContentSpecOtherValue[chunk][index] = contentSpec.otherValue;     
1933    }                                                                                                
func &Lcom_2Fsun_2Forg_2Fapache_2Fxerces_2Finternal_2Fimpl_2Fdtd_2FDTDGrammar_3B_7CsetContentSpec_7C_28ILcom_2Fsun_2Forg_2Fapache_2Fxerces_2Finternal_2Fimpl_2Fdtd_2FXMLContentSpec_3B_29V

var %Reg0_R33542 <* <[] <* <[] i16>>>>
var %Reg0_R20092 <* <$Ljava_2Flang_2FObject_3B>>

  dassign %Reg5_R45768 0 (dread ref %_this)
  dassign %Reg0_R33542 0 (iread ref <* <$Lcom_2Fsun_2Forg_2Fapache_2Fxerces_2Finternal_2Fimpl_2Fdtd_2FDTDGrammar_3B>> 29 (dread ref %Reg5_R45768))
  dassign %Reg0_R20092 0 (iread ref <* <* <$Ljava_2Flang_2FObject_3B>>> 0 (array 1 ptr <* <[] ref>> (dread ref %Reg0_R33542, dread i32 %Reg3_I)))

since Reg0_R33542 is a 2D array of i16, the array types in the last statement should have been something like

  dassign %Reg0_R0000 0 (iread ptr <* <* <[] i16>>> 0 (array 1 ptr <* <[] <* <[] i16>>>> (dread ref %Reg0_R33542, dread i32 %Reg3_I)))

The array types in other statements are also need to be fixed, use specific types instead of ref.

评论 (0)

HuWen 创建了任务
HuWen 关联仓库设置为HarmonyOS/OpenArkCompiler
BinaryFZ 负责人设置为LuoYin
BinaryFZ 添加了
 
FE
标签
BinaryFZ 任务状态待办的 修改为已完成
展开全部操作日志

登录 后才可以发表评论

状态
负责人
里程碑
Pull Requests
关联的 Pull Requests 被合并后可能会关闭此 issue
分支
开始日期   -   截止日期
-
置顶选项
优先级
参与者(1)
5275110 hu   wen 1581627339
C++
1
https://gitee.com/openarkcompiler/OpenArkCompiler.git
git@gitee.com:openarkcompiler/OpenArkCompiler.git
openarkcompiler
OpenArkCompiler
OpenArkCompiler

搜索帮助