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

Unified Diff: src/builtins/builtins-function.cc

Issue 2535753012: [stubs] Cleanup usages of lambdas in CodeStubAssembler and friends. (Closed)
Patch Set: Created 4 years 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/builtins/builtins-array.cc ('k') | src/builtins/builtins-regexp.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/builtins/builtins-function.cc
diff --git a/src/builtins/builtins-function.cc b/src/builtins/builtins-function.cc
index 86d769c332da45400958f2352fe61bdb0ef4ff12..517ce4a969de17c53cb0813bb3edf24b3c6f5c89 100644
--- a/src/builtins/builtins-function.cc
+++ b/src/builtins/builtins-function.cc
@@ -376,15 +376,14 @@ void Builtins::Generate_FastFunctionPrototypeBind(
Variable index(&assembler, MachineType::PointerRepresentation());
index.Bind(assembler.IntPtrConstant(0));
CodeStubAssembler::VariableList foreach_vars({&index}, assembler.zone());
- args.ForEach(
- foreach_vars,
- [elements, &index](CodeStubAssembler* assembler, compiler::Node* arg) {
- assembler->StoreFixedArrayElement(elements, index.value(), arg,
- UPDATE_WRITE_BARRIER, 0,
- CodeStubAssembler::INTPTR_PARAMETERS);
- assembler->Increment(index);
- },
- assembler.IntPtrConstant(1));
+ args.ForEach(foreach_vars,
+ [&assembler, elements, &index](compiler::Node* arg) {
+ assembler.StoreFixedArrayElement(
+ elements, index.value(), arg, UPDATE_WRITE_BARRIER, 0,
+ CodeStubAssembler::INTPTR_PARAMETERS);
+ assembler.Increment(index);
+ },
+ assembler.IntPtrConstant(1));
argument_array.Bind(elements);
assembler.Goto(&arguments_done);
« no previous file with comments | « src/builtins/builtins-array.cc ('k') | src/builtins/builtins-regexp.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698