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

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

Issue 2661483002: [csa] Make argc parameter to CodeStubArguments constructor use ParameterMode (Closed)
Patch Set: Fix build 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 | « src/builtins/builtins-string.cc ('k') | 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 4f003efa26a9fa3c43bc5dc753f830b1e81eff7b..21ed7daef057edf6009c0893e4d921c3599add97 100644
--- a/src/code-stub-assembler.h
+++ b/src/code-stub-assembler.h
@@ -1228,10 +1228,17 @@ class CodeStubArguments {
// |argc| is an uint32 value which specifies the number of arguments passed
// to the builtin excluding the receiver.
- CodeStubArguments(CodeStubAssembler* assembler, Node* argc);
+ CodeStubArguments(CodeStubAssembler* assembler, Node* argc)
+ : CodeStubArguments(assembler, argc, nullptr,
+ CodeStubAssembler::INTPTR_PARAMETERS) {}
+ CodeStubArguments(CodeStubAssembler* assembler, Node* argc, Node* fp,
+ CodeStubAssembler::ParameterMode param_mode);
Node* GetReceiver() const;
+ Node* AtIndexPtr(Node* index, CodeStubAssembler::ParameterMode mode =
+ CodeStubAssembler::INTPTR_PARAMETERS) const;
+
// |index| is zero-based and does not include the receiver
Node* AtIndex(Node* index, CodeStubAssembler::ParameterMode mode =
CodeStubAssembler::INTPTR_PARAMETERS) const;
@@ -1262,6 +1269,7 @@ class CodeStubArguments {
Node* GetArguments();
CodeStubAssembler* assembler_;
+ CodeStubAssembler::ParameterMode argc_mode_;
Node* argc_;
Node* arguments_;
Node* fp_;
« no previous file with comments | « src/builtins/builtins-string.cc ('k') | src/code-stub-assembler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698