1 | --- src/3rdparty/webkit/Source//JavaScriptCore/bytecompiler/BytecodeGenerator.cpp.orig 2019-07-06 01:50:33.000000000 +0200 |
---|
2 | +++ src/3rdparty/webkit/Source//JavaScriptCore/bytecompiler/BytecodeGenerator.cpp 2019-07-06 01:52:48.000000000 +0200 |
---|
3 | @@ -2058,7 +2058,7 @@ |
---|
4 | { |
---|
5 | m_usesExceptions = true; |
---|
6 | #if ENABLE(JIT) |
---|
7 | - HandlerInfo info = { start->bind(0, 0), end->bind(0, 0), instructions().size(), m_dynamicScopeDepth + m_baseScopeDepth, CodeLocationLabel() }; |
---|
8 | + HandlerInfo info = { static_cast<uint32_t>(start->bind(0, 0)), static_cast<uint32_t>(end->bind(0, 0)), static_cast<uint32_t>(instructions().size()), static_cast<uint32_t>(m_dynamicScopeDepth + m_baseScopeDepth), CodeLocationLabel() }; |
---|
9 | #else |
---|
10 | HandlerInfo info = { start->bind(0, 0), end->bind(0, 0), instructions().size(), m_dynamicScopeDepth + m_baseScopeDepth }; |
---|
11 | #endif |
---|
12 | @@ -2107,7 +2107,7 @@ |
---|
13 | |
---|
14 | void BytecodeGenerator::beginSwitch(RegisterID* scrutineeRegister, SwitchInfo::SwitchType type) |
---|
15 | { |
---|
16 | - SwitchInfo info = { instructions().size(), type }; |
---|
17 | + SwitchInfo info = { static_cast<uint32_t>(instructions().size()), type }; |
---|
18 | switch (type) { |
---|
19 | case SwitchInfo::SwitchImmediate: |
---|
20 | emitOpcode(op_switch_imm); |
---|