about summary refs log tree commit diff stats
path: root/.travis.yml
Commit message (Expand)AuthorAgeFilesLines
* 5914Kartik Agaram2020-01-211-3/+1
* 5485 - promote SubX to top-levelKartik Agaram2019-07-271-24/+2
* 4991Kartik Agaram2019-02-251-3/+4
* 4647 - support 64-bit Linux in CIKartik Agaram2018-10-011-0/+1
* 4248 -- simplify CIKartik Agaram2018-05-251-1/+3
* 4219 - add an even simpler build scriptKartik K. Agaram2018-03-131-0/+1
* 4218 - test build alternatives in CIKartik K. Agaram2018-03-131-1/+3
* 4016 - include subx/ tests in CIKartik K. Agaram2017-10-111-17/+18
* 3128Kartik K. Agaram2016-07-221-1/+2
* 3029Kartik K. Agaram2016-06-021-0/+1
* 3028Kartik K. Agaram2016-06-021-1/+2
* 2951Kartik K. Agaram2016-05-091-3/+0
* 2950 - more Travis load-balancingKartik K. Agaram2016-05-091-4/+3
* 2947Kartik K. Agaram2016-05-081-2/+3
* 2945Kartik K. Agaram2016-05-081-5/+10
* 2944Kartik K. Agaram2016-05-081-2/+9
* 2943Kartik K. Agaram2016-05-081-4/+8
* 2941 - split Travis CI into multiple jobsKartik K. Agaram2016-05-081-1/+4
* 2938 - ok, let's try CIKartik K. Agaram2016-05-081-0/+21
002705c966ae7bed0b7332f4e21978'>^
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
                                  
                                                                   
 

       
                                                                                                                




                        
               

                              
                                                
                                  


                                              
                 




                        
# 2-arg version of allocate-array.
# Really only intended to be called from code generated by mu.subx.

== code

allocate-array2:  # ad: (addr allocation-descriptor), array-len: int, elem-size: int, out: (addr handle array _)
    # . prologue
    55/push-ebp
    89/<- %ebp 4/r32/esp
    # . save registers
    50/push-eax
    52/push-edx
    #
    8b/-> *(ebp+0xc) 0/r32/eax
    f7 4/subop/multiply-into-edx-eax *(ebp+0x10)
    # TODO: check edx for overflow
    (allocate-array *(ebp+8) %eax *(ebp+0x14))
$allocate-array2:end:
    # . restore registers
    5a/pop-to-edx
    58/pop-to-eax
    # . epilogue
    89/<- %esp 5/r32/ebp
    5d/pop-to-ebp
    c3/return