Index: src/ast/ast.h |
diff --git a/src/ast/ast.h b/src/ast/ast.h |
index d60cee90a00dacacf4f0c9b152db0b4fa8da1492..85b0cb514be636b78977105088b7b73a362ac10c 100644 |
--- a/src/ast/ast.h |
+++ b/src/ast/ast.h |
@@ -1415,6 +1415,9 @@ class ObjectLiteral final : public MaterializedLiteral { |
// marked expressions, no store code is emitted. |
void CalculateEmitStore(Zone* zone); |
+ // Determines whether the {FastCloneShallowObjectStub} can be used. |
+ bool IsFastCloningSupported() const; |
+ |
// Assemble bitfield of flags for the CreateObjectLiteral helper. |
int ComputeFlags(bool disable_mementos = false) const { |
int flags = fast_elements() ? kFastElements : kNoFlags; |
@@ -1558,6 +1561,9 @@ class ArrayLiteral final : public MaterializedLiteral { |
// Populate the constant elements fixed array. |
void BuildConstantElements(Isolate* isolate); |
+ // Determines whether the {FastCloneShallowArrayStub} can be used. |
+ bool IsFastCloningSupported() const; |
+ |
// Assemble bitfield of flags for the CreateArrayLiteral helper. |
int ComputeFlags(bool disable_mementos = false) const { |
int flags = depth() == 1 ? kShallowElements : kNoFlags; |