mirror of
https://github.com/openharmony/ark_js_runtime.git
synced 2026-07-25 22:15:32 -04:00
Add Type Infer Test Case
Description: 1.Add type infer test cases for bitwise_op, callfunctions, ldobjbyvalue and logic_op Issue: https://gitee.com/openharmony/ark_js_runtime/issues/I5B78L Signed-off-by: huoqingyi <huoqingyi@huawei.com> Change-Id: I486f6f91a32e1c7caa2446b12b8e6b33db8d47fe
This commit is contained in:
@@ -2202,7 +2202,7 @@ void BytecodeCircuitBuilder::NewReturn(BytecodeRegion &bb, const uint8_t *pc, Ga
|
||||
auto gate = circuit_.NewGate(OpCode(OpCode::RETURN), 0,
|
||||
{ state, depend, Circuit::NullGate(),
|
||||
Circuit::GetCircuitRoot(OpCode(OpCode::RETURN_LIST)) },
|
||||
GateType::Empty());
|
||||
GateType::AnyType());
|
||||
jsgateToBytecode_[gate] = {bb.id, pc};
|
||||
} else if (static_cast<EcmaOpcode>(bytecodeInfo.opcode) == EcmaOpcode::RETURNUNDEFINED_PREF) {
|
||||
// handle returnundefined bytecode
|
||||
@@ -2213,7 +2213,7 @@ void BytecodeCircuitBuilder::NewReturn(BytecodeRegion &bb, const uint8_t *pc, Ga
|
||||
auto gate = circuit_.NewGate(OpCode(OpCode::RETURN), 0,
|
||||
{ state, depend, constant,
|
||||
Circuit::GetCircuitRoot(OpCode(OpCode::RETURN_LIST)) },
|
||||
GateType::Empty());
|
||||
GateType::AnyType());
|
||||
jsgateToBytecode_[gate] = {bb.id, pc};
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user