Home | History | Annotate | Download | only in x86
      1 
      2 %verify "String already resolved"
      3 %verify "String not yet resolved"
      4 %verify "String cannot be resolved"
      5     /* const/string vAA, String@BBBBBBBB */
      6     movl      rSELF,%ecx
      7     movl      2(rPC),%eax              # eax<- BBBBBBBB
      8     movl      offThread_methodClassDex(%ecx),%ecx# ecx<- self->methodClassDex
      9     movl      offDvmDex_pResStrings(%ecx),%ecx # ecx<- dvmDex->pResStrings
     10     movl      (%ecx,%eax,4),%eax       # eax<- rResString[BBBB]
     11     FETCH_INST_OPCODE 3 %ecx
     12     testl     %eax,%eax                # resolved yet?
     13     je        .L${opcode}_resolve
     14     SET_VREG  %eax rINST               # vAA<- rResString[BBBB]
     15     ADVANCE_PC 3
     16     GOTO_NEXT_R %ecx
     17 
     18 /* This is the less common path, so we'll redo some work
     19    here rather than force spills on the common path */
     20 .L${opcode}_resolve:
     21     movl     rSELF,%eax
     22     EXPORT_PC
     23     movl     offThread_method(%eax),%eax # eax<- self->method
     24     movl     2(rPC),%ecx               # ecx<- BBBBBBBB
     25     movl     offMethod_clazz(%eax),%eax
     26     movl     %ecx,OUT_ARG1(%esp)
     27     movl     %eax,OUT_ARG0(%esp)
     28     SPILL(rIBASE)
     29     call     dvmResolveString          # go resolve
     30     UNSPILL(rIBASE)
     31     testl    %eax,%eax                 # failed?
     32     je       common_exceptionThrown
     33     FETCH_INST_OPCODE 3 %ecx
     34     SET_VREG %eax rINST
     35     ADVANCE_PC 3
     36     GOTO_NEXT_R %ecx
     37