зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1689990 - Part 12: Update a comment for MDefinition/MInstruction copy constructors. r=jandem
The copy constructors call `MNode(const MNode&)` which copies over the `blockAndKind_` member, so the `block` information is actually copied, too. Differential Revision: https://phabricator.services.mozilla.com/D103648
This commit is contained in:
Родитель
08df43ca83
Коммит
18bbcb73ff
|
@ -544,7 +544,7 @@ class MDefinition : public MNode {
|
|||
bailoutKind_(BailoutKind::Unknown),
|
||||
resultType_(MIRType::None) {}
|
||||
|
||||
// Copying a definition leaves the list of uses and the block empty.
|
||||
// Copying a definition leaves the list of uses empty.
|
||||
explicit MDefinition(const MDefinition& other)
|
||||
: MNode(other),
|
||||
id_(0),
|
||||
|
@ -976,7 +976,7 @@ class MInstruction : public MDefinition, public InlineListNode<MInstruction> {
|
|||
public:
|
||||
explicit MInstruction(Opcode op) : MDefinition(op), resumePoint_(nullptr) {}
|
||||
|
||||
// Copying an instruction leaves the block and resume point as empty.
|
||||
// Copying an instruction leaves the resume point as empty.
|
||||
explicit MInstruction(const MInstruction& other)
|
||||
: MDefinition(other), resumePoint_(nullptr) {}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче