Index: src/ast/ast.cc |
diff --git a/src/ast/ast.cc b/src/ast/ast.cc |
index 0c0e535329b3b7d306b86e7a9e70cb63cf39b10c..63823d05d524cf26d313a8043f034ba6ba24a39a 100644 |
--- a/src/ast/ast.cc |
+++ b/src/ast/ast.cc |
@@ -16,6 +16,7 @@ |
#include "src/contexts.h" |
#include "src/conversions.h" |
#include "src/elements.h" |
+#include "src/objects/literal-objects.h" |
#include "src/property-details.h" |
#include "src/property.h" |
#include "src/string-stream.h" |
@@ -671,6 +672,10 @@ bool ObjectLiteral::IsFastCloningSupported() const { |
kMaximumClonedShallowObjectProperties; |
} |
+ElementsKind ArrayLiteral::constant_elements_kind() const { |
+ return static_cast<ElementsKind>(constant_elements()->elements_kind()); |
+} |
+ |
void ArrayLiteral::InitDepthAndFlags() { |
DCHECK_LT(first_spread_index_, 0); |