Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(85)

Unified Diff: src/compiler/code-assembler.h

Issue 2461363002: [stubs]: Support 1->2 byte copies in CopyStringCharacters (Closed)
Patch Set: Review feedback Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/code-stub-assembler.cc ('k') | src/compiler/code-assembler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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:
« no previous file with comments | « src/code-stub-assembler.cc ('k') | src/compiler/code-assembler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698