• feng.qian.v8's avatar
    Change __ mov(eax, TOS) to · 6287c675
    feng.qian.v8 authored
    __ pop(eax);
    ...
    __ push(eax);
    to enable push/pop eliminations.
    
    __ push(eax) must happen before RecordWrite because RecordWrite may destroy 
    eax value. To be safe, also moved __ push(r0) on ARM to above RecordWrite.
    
    This only affects the case where a context variable is used in a inner scope.
    
    Create a tests for it. It fails if __ push(eax) is after RecordWrite.
    
    
    
    git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@111 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
    6287c675
context-variable-assignments.js 1.69 KB