Index: src/compiler/code-assembler.h |
diff --git a/src/compiler/code-assembler.h b/src/compiler/code-assembler.h |
index 517914b6774bd48a9aedbb9e1b56427722398976..b3369004a2ce499a7f10fddceb608c0cffe46296 100644 |
--- a/src/compiler/code-assembler.h |
+++ b/src/compiler/code-assembler.h |
@@ -212,6 +212,8 @@ class V8_EXPORT_PRIVATE CodeAssembler { |
CodeAssembler* assembler_; |
}; |
+ typedef ZoneList<Variable*> VariableList; |
+ |
// =========================================================================== |
// Base Assembler |
// =========================================================================== |
@@ -492,12 +494,15 @@ class CodeAssembler::Label { |
CodeAssembler* assembler, |
CodeAssembler::Label::Type type = CodeAssembler::Label::kNonDeferred) |
: CodeAssembler::Label(assembler, 0, nullptr, type) {} |
- Label(CodeAssembler* assembler, CodeAssembler::Variable* merged_variable, |
+ Label(CodeAssembler* assembler, const VariableList& merged_variables, |
CodeAssembler::Label::Type type = CodeAssembler::Label::kNonDeferred) |
- : CodeAssembler::Label(assembler, 1, &merged_variable, type) {} |
- Label(CodeAssembler* assembler, int merged_variable_count, |
- CodeAssembler::Variable** merged_variables, |
+ : CodeAssembler::Label(assembler, merged_variables.length(), |
+ &(merged_variables[0]), type) {} |
+ Label(CodeAssembler* assembler, size_t count, Variable** vars, |
CodeAssembler::Label::Type type = CodeAssembler::Label::kNonDeferred); |
+ Label(CodeAssembler* assembler, CodeAssembler::Variable* merged_variable, |
+ CodeAssembler::Label::Type type = CodeAssembler::Label::kNonDeferred) |
+ : Label(assembler, 1, &merged_variable, type) {} |
~Label() {} |
private: |