Index: src/ast.h |
diff --git a/src/ast.h b/src/ast.h |
index a0a7a7320649fdff523c509f9f49e7760b4b3618..f53af3b71d6a23da2880a3ae709fa00fa1725121 100644 |
--- a/src/ast.h |
+++ b/src/ast.h |
@@ -1595,6 +1595,7 @@ class CallNew: public Expression { |
Handle<JSFunction> target() { return target_; } |
BailoutId ReturnId() const { return return_id_; } |
+ ElementsKind elements_kind() const { return elements_kind_; } |
protected: |
CallNew(Isolate* isolate, |
@@ -1606,7 +1607,8 @@ class CallNew: public Expression { |
arguments_(arguments), |
pos_(pos), |
is_monomorphic_(false), |
- return_id_(GetNextId(isolate)) { } |
+ return_id_(GetNextId(isolate)), |
+ elements_kind_(GetInitialFastElementsKind()) { } |
private: |
Expression* expression_; |
@@ -1617,6 +1619,7 @@ class CallNew: public Expression { |
Handle<JSFunction> target_; |
const BailoutId return_id_; |
+ ElementsKind elements_kind_; |
}; |