• sgjesse@chromium.org's avatar
    Refactored the recording of source position in the generated code. The code... · b3dd6b68
    sgjesse@chromium.org authored
    Refactored the recording of source position in the generated code. The code generator now has two methods
    
      void CodeForStatement(Node* node)
      void CodeForSourcePosition(int pos)
    
    The first is used to indicate that code is about to be generated for the given statement and the second is used to indicate that code is about to be generated for the given source position.
    
    Added position information for some statements which was missing whem.
    
    Updated the code generator for ARM to emit source position the same way as for IA-32.
    
    Added an assert to ensure that deferred code stubs will always have a source source position as if it has not it will take whatever source position before which makes no sense.
    
    The passing test on ARM has only been tested using the simulator.
    Review URL: http://codereview.chromium.org/14170
    
    git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@985 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
    b3dd6b68
codegen-arm.h 14.5 KB