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

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

Issue 2657293002: [csa] Return last value from BuildFastLoop to allow chaining sequential loops (Closed)
Patch Set: Created 3 years, 11 months 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 | « no previous file | src/code-stub-assembler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/code-stub-assembler.h
diff --git a/src/code-stub-assembler.h b/src/code-stub-assembler.h
index 21ed7daef057edf6009c0893e4d921c3599add97..8844b488d58d07716a75497948e2beecf41e2197 100644
--- a/src/code-stub-assembler.h
+++ b/src/code-stub-assembler.h
@@ -1073,16 +1073,16 @@ class V8_EXPORT_PRIVATE CodeStubAssembler : public compiler::CodeAssembler {
typedef std::function<void(Node* index)> FastLoopBody;
- void BuildFastLoop(const VariableList& var_list,
- MachineRepresentation index_rep, Node* start_index,
- Node* end_index, const FastLoopBody& body, int increment,
- IndexAdvanceMode mode = IndexAdvanceMode::kPre);
-
- void BuildFastLoop(MachineRepresentation index_rep, Node* start_index,
- Node* end_index, const FastLoopBody& body, int increment,
- IndexAdvanceMode mode = IndexAdvanceMode::kPre) {
- BuildFastLoop(VariableList(0, zone()), index_rep, start_index, end_index,
- body, increment, mode);
+ Node* BuildFastLoop(const VariableList& var_list,
+ MachineRepresentation index_rep, Node* start_index,
+ Node* end_index, const FastLoopBody& body, int increment,
+ IndexAdvanceMode mode = IndexAdvanceMode::kPre);
+
+ Node* BuildFastLoop(MachineRepresentation index_rep, Node* start_index,
+ Node* end_index, const FastLoopBody& body, int increment,
+ IndexAdvanceMode mode = IndexAdvanceMode::kPre) {
+ return BuildFastLoop(VariableList(0, zone()), index_rep, start_index,
+ end_index, body, increment, mode);
}
enum class ForEachDirection { kForward, kReverse };
« no previous file with comments | « no previous file | src/code-stub-assembler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698