diff options
author | Erik Verbruggen <erik.verbruggen@qt.io> | 2017-08-03 11:40:33 +0200 |
---|---|---|
committer | Erik Verbruggen <erik.verbruggen@qt.io> | 2017-08-03 11:15:43 +0000 |
commit | a88bc4e5aa0dfbf71cbe53c1dd8bfbae4d2a90f6 (patch) | |
tree | f7bdab35ea616050c5c00f245a74ea2636fc98fb /src/qml/compiler/qv4compilercontrolflow_p.h | |
parent | eabcd4c2dd15e120aa5b79eb66a2af394e3a55c1 (diff) |
Where applicable, rename Temp* to Register*
Change-Id: Ib7839ac09f520aaff3fadfdb37ea63d85a257bfd
Reviewed-by: Lars Knoll <lars.knoll@qt.io>
Diffstat (limited to 'src/qml/compiler/qv4compilercontrolflow_p.h')
-rw-r--r-- | src/qml/compiler/qv4compilercontrolflow_p.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/qml/compiler/qv4compilercontrolflow_p.h b/src/qml/compiler/qv4compilercontrolflow_p.h index 5080b4e595..2735761246 100644 --- a/src/qml/compiler/qv4compilercontrolflow_p.h +++ b/src/qml/compiler/qv4compilercontrolflow_p.h @@ -214,7 +214,7 @@ struct ControlFlowUnwind : public ControlFlow : ControlFlow(cg, type), unwindLabel(generator()->newExceptionHandler()) { Q_ASSERT(type != Loop); - controlFlowTemp = static_cast<int>(generator()->newTemp()); + controlFlowTemp = static_cast<int>(generator()->newRegister()); Reference::storeConstOnStack(cg, QV4::Encode::undefined(), controlFlowTemp); // we'll need at least a handler for throw getHandler(Throw); @@ -226,7 +226,7 @@ struct ControlFlowUnwind : public ControlFlow Reference temp = Reference::fromStackSlot(cg, controlFlowTemp); for (const auto &h : qAsConst(handlers)) { - Codegen::TempScope tempScope(cg); + Codegen::RegisterScope tempScope(cg); Handler parentHandler = getParentHandler(h.type, h.label); if (h.type == Throw || parentHandler.tempIndex >= 0) { @@ -387,10 +387,10 @@ struct ControlFlowFinally : public ControlFlowUnwind // emit code for unwinding unwindLabel.link(); - Codegen::TempScope scope(cg); + Codegen::RegisterScope scope(cg); insideFinally = true; - exceptionTemp = generator()->newTemp(); + exceptionTemp = generator()->newRegister(); Instruction::GetException instr; generator()->addInstruction(instr); Reference::fromStackSlot(cg, exceptionTemp).storeConsumeAccumulator(); |