~ubuntu-branches/ubuntu/trusty/qtscript-opensource-src/trusty

« back to all changes in this revision

Viewing changes to src/3rdparty/javascriptcore/JavaScriptCore/bytecompiler/BytecodeGenerator.cpp

  • Committer: Package Import Robot
  • Author(s): Timo Jyrinki
  • Date: 2014-03-10 14:30:51 UTC
  • mfrom: (1.1.4) (5.1.2 experimental)
  • Revision ID: package-import@ubuntu.com-20140310143051-6rr67kxeqic3zern
Tags: 5.2.1+dfsg-1ubuntu1
* debian/patches/aarch64.patch
  - Needed to fix arm64 FTBFS

Show diffs side-by-side

added added

removed removed

Lines of Context:
1835
1835
RegisterID* BytecodeGenerator::emitCatch(RegisterID* targetRegister, Label* start, Label* end)
1836
1836
{
1837
1837
#if ENABLE(JIT)
1838
 
    HandlerInfo info = { start->bind(0, 0), end->bind(0, 0), instructions().size(), m_dynamicScopeDepth + m_baseScopeDepth, CodeLocationLabel() };
 
1838
    HandlerInfo info = {
 
1839
        static_cast<uint32_t>(start->bind(0, 0)),
 
1840
        static_cast<uint32_t>(end->bind(0, 0)),
 
1841
        static_cast<uint32_t>(instructions().size()),
 
1842
        static_cast<uint32_t>(m_dynamicScopeDepth + m_baseScopeDepth),
 
1843
        CodeLocationLabel()
 
1844
    };
1839
1845
#else
1840
 
    HandlerInfo info = { start->bind(0, 0), end->bind(0, 0), instructions().size(), m_dynamicScopeDepth + m_baseScopeDepth };
 
1846
    HandlerInfo info = {
 
1847
        static_cast<uint32_t>(start->bind(0, 0)),
 
1848
        static_cast<uint32_t>(end->bind(0, 0)),
 
1849
        static_cast<uint32_t>(instructions().size()),
 
1850
        static_cast<uint32_t>(m_dynamicScopeDepth + m_baseScopeDepth)
 
1851
    };
1841
1852
#endif
1842
1853
 
1843
1854
    m_codeBlock->addExceptionHandler(info);
1889
1900
 
1890
1901
void BytecodeGenerator::beginSwitch(RegisterID* scrutineeRegister, SwitchInfo::SwitchType type)
1891
1902
{
1892
 
    SwitchInfo info = { instructions().size(), type };
 
1903
    SwitchInfo info = { static_cast<uint32_t>(instructions().size()), type };
1893
1904
    switch (type) {
1894
1905
        case SwitchInfo::SwitchImmediate:
1895
1906
            emitOpcode(op_switch_imm);