Index: src/code-stub-assembler.h |
diff --git a/src/code-stub-assembler.h b/src/code-stub-assembler.h |
index 99d1996629aee022d84d7b90664e08726b9cac28..b18300423e8f1559166c591b87c40bb10f944e7d 100644 |
--- a/src/code-stub-assembler.h |
+++ b/src/code-stub-assembler.h |
@@ -498,9 +498,21 @@ class V8_EXPORT_PRIVATE CodeStubAssembler : public compiler::CodeAssembler { |
Node* object, Node* index, Node* value, |
ParameterMode parameter_mode = INTPTR_PARAMETERS); |
- Node* BuildAppendJSArray(ElementsKind kind, Node* context, Node* array, |
+ // EnsureArrayPushable verifies that receiver is: |
+ // 1. Is not a prototype. |
+ // 2. Is not a dictionary. |
+ // 3. Has a writeable length property. |
+ // It returns ElementsKind as a node for further division into cases. |
+ Node* EnsureArrayPushable(Node* receiver, Label* bailout); |
+ |
+ void TryStoreArrayElement(ElementsKind kind, ParameterMode mode, |
+ Label* bailout, Node* elements, Node* index, |
+ Node* value); |
+ Node* BuildAppendJSArray(ElementsKind kind, Node* array, |
CodeStubArguments& args, Variable& arg_index, |
Label* bailout); |
+ Node* BuildAppendJSArray(ElementsKind kind, Node* array, Node* value, |
+ Label* bailout); |
void StoreFieldsNoWriteBarrier(Node* start_address, Node* end_address, |
Node* value); |