Index: src/ast.h |
diff --git a/src/ast.h b/src/ast.h |
index 802ac65962501dfa47db0f43f4e4de95c984a145..9339870aac258541e0f96dac59e1087ad4eae6b2 100644 |
--- a/src/ast.h |
+++ b/src/ast.h |
@@ -1575,7 +1575,8 @@ 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, |
Expression* expression, |
@@ -1586,7 +1587,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_; |
@@ -1597,6 +1599,7 @@ class CallNew: public Expression { |
Handle<JSFunction> target_; |
const BailoutId return_id_; |
+ ElementsKind elements_kind_; |
}; |