• kmillikin@chromium.org's avatar
    Initial port of top-level code generator to ARM. For the constant · 11d9e7ff
    kmillikin@chromium.org authored
    true at the top level we generate:
    
      0  stmdb sp!, {r1, r8, fp, lr}
      4  add fp, sp, #8
      8  ldr ip, [r10, #+4]
     12  ldr r2, [r10, #+0]
     16  str ip, [sp, #-4]!
     20  add lr, pc, #4
     24  cmp sp, r2
     28  ldrcc pc, [pc, #+68]        ;; code: STUB, StackCheck, minor: 0
     32  ldr ip, [pc, #+68]          ;; object: 0xf5bc4161 <true>
     36  str ip, [sp, #-4]!
     40  ldr ip, [sp, #+0]
     44  str ip, [fp, #-12]
     48  add sp, sp, #4
     52  ldr ip, [fp, #-12]
     56  str ip, [sp, #-4]!
     60  ldr r0, [sp], #+4
     64  mov sp, fp                  ;; js return
     68  ldmia sp!, {fp, lr}
     72  add sp, sp, #4
     76  bx lr
     80  ldr r0, [r10, #+4]
     84  mov sp, fp                  ;; js return
     88  ldmia sp!, {fp, lr}
     92  add sp, sp, #4
     96  bx lr
    100  constant pool begin
    104  constant
    108  constant
    
    Review URL: http://codereview.chromium.org/264067
    
    git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@3073 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
    11d9e7ff
SConscript 7.54 KB