diff options
author | Lars Knoll <lars.knoll@qt.io> | 2017-08-09 13:15:45 +0200 |
---|---|---|
committer | Lars Knoll <lars.knoll@qt.io> | 2017-08-10 08:19:49 +0000 |
commit | fdc031530ea84b150b008ffad58fafe1302b6483 (patch) | |
tree | 66ebd6305d30709b43cbdb6881a64137406b7790 /src/qml/compiler/qv4compilercontrolflow_p.h | |
parent | 25c5e356353aab15dbf144391a455811c160c3e4 (diff) |
More consistent naming of instructions and runtime methods
Change-Id: Ib8af10a48749b16c48d75c91ad215396b201a9d5
Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Diffstat (limited to 'src/qml/compiler/qv4compilercontrolflow_p.h')
-rw-r--r-- | src/qml/compiler/qv4compilercontrolflow_p.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/qml/compiler/qv4compilercontrolflow_p.h b/src/qml/compiler/qv4compilercontrolflow_p.h index bbfe9e2deb..f8efd010a3 100644 --- a/src/qml/compiler/qv4compilercontrolflow_p.h +++ b/src/qml/compiler/qv4compilercontrolflow_p.h @@ -151,7 +151,7 @@ struct ControlFlow { Reference::storeConstOnStack(cg, QV4::Encode(h.value), h.tempIndex); } e.loadInAccumulator(); - Instruction::CallBuiltinThrow instr; + Instruction::ThrowException instr; generator()->addInstruction(instr); } @@ -278,7 +278,7 @@ struct ControlFlowWith : public ControlFlowUnwind savedContextRegister = Moth::StackSlot::createRegister(generator()->newRegister()); // assumes the with object is in the accumulator - Instruction::CallBuiltinPushWithContext pushScope; + Instruction::PushWithContext pushScope; pushScope.reg = savedContextRegister; generator()->addInstruction(pushScope); generator()->setExceptionHandler(&unwindLabel); @@ -289,7 +289,7 @@ struct ControlFlowWith : public ControlFlowUnwind unwindLabel.link(); generator()->setExceptionHandler(parentExceptionHandler()); - Instruction::CallBuiltinPopContext pop; + Instruction::PopContext pop; pop.reg = savedContextRegister; generator()->addInstruction(pop); @@ -345,7 +345,7 @@ struct ControlFlowCatch : public ControlFlowUnwind exceptionLabel.link(); Reference name = Reference::fromName(cg, catchExpression->name.toString()); Moth::StackSlot savedContextReg = Moth::StackSlot::createRegister(generator()->newRegister()); - Instruction::CallBuiltinPushCatchContext pushCatch; + Instruction::PushCatchContext pushCatch; pushCatch.name = name.unqualifiedNameIndex; pushCatch.reg = savedContextReg; generator()->addInstruction(pushCatch); @@ -360,7 +360,7 @@ struct ControlFlowCatch : public ControlFlowUnwind // exceptions inside catch and break/return statements go here catchUnwindLabel.link(); - Instruction::CallBuiltinPopContext pop; + Instruction::PopContext pop; pop.reg = savedContextReg; generator()->addInstruction(pop); |