Bugfix applicaton compiler failed

Issue: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I7Z5OU
Signed-off-by: linxiang8 <linxiang8@huawei.com>
Change-Id: I8e3cd9971226fcd77180ee76c67128fb81167585
This commit is contained in:
linxiang8 2023-09-07 10:16:14 +08:00
parent dcc88a251b
commit ff7cd71fe5
3 changed files with 1 additions and 12 deletions

View File

@ -36,7 +36,7 @@ void BytecodeCircuitBuilder::BytecodeToCircuit()
void BytecodeCircuitBuilder::BuildRegionInfo()
{
uint32_t size = pcOffsets_.size();
uint32_t end = size - 2; // 1: end
uint32_t end = size - 1; // 1: end
BytecodeIterator iterator(this, 0, end);
infoData_.resize(size);

View File

@ -262,7 +262,6 @@ void BytecodeInfoCollector::CollectMethodPcsFromBC(const uint32_t insSz, const u
pcOffsets.emplace_back(curPc);
bcIndex++;
}
pcOffsets.emplace_back(bcInsLast.GetAddress());
bytecodeInfo_.SetMethodOffsetToFastCallInfo(methodOffset, canFastCall, noGC);
method->SetIsFastCall(canFastCall);
method->SetNoGCBit(noGC);

View File

@ -31,16 +31,6 @@ var m = {
"a": "hello"
}
// case3: last label equal bcLast
function f() {}
function f1() {
return
try {
f()
} catch(e) {
}
}
// case4: GetDeps
function f2() {
try {