Index: src/code-stub-assembler.h |
diff --git a/src/code-stub-assembler.h b/src/code-stub-assembler.h |
index de81105b1e4bee1995cf6082e36fb5f8bd5c91da..dbdd5f0f76245fcbc474a0c72ce6d41cbb852747 100644 |
--- a/src/code-stub-assembler.h |
+++ b/src/code-stub-assembler.h |
@@ -1468,11 +1468,12 @@ class CodeStubArguments { |
public: |
typedef compiler::Node Node; |
- // |argc| is an uint32 value which specifies the number of arguments passed |
+ // |argc| is an intptr value which specifies the number of arguments passed |
// to the builtin excluding the receiver. |
CodeStubArguments(CodeStubAssembler* assembler, Node* argc) |
: CodeStubArguments(assembler, argc, nullptr, |
CodeStubAssembler::INTPTR_PARAMETERS) {} |
+ // |argc| is either a smi or intptr depending on |param_mode| |
CodeStubArguments(CodeStubAssembler* assembler, Node* argc, Node* fp, |
CodeStubAssembler::ParameterMode param_mode); |
@@ -1487,6 +1488,8 @@ class CodeStubArguments { |
Node* AtIndex(int index) const; |
+ Node* GetOptionalArgumentValue(int index, Node* default_value); |
+ |
Node* GetLength() const { return argc_; } |
typedef std::function<void(Node* arg)> ForEachBodyFunction; |