Index: src/hydrogen-instructions.h |
diff --git a/src/hydrogen-instructions.h b/src/hydrogen-instructions.h |
index decc62705b28808de6ca0f78b66fc503421dbc5e..cdd79d83105e4a66fea5cb0b9e4bc53ff0c40b2b 100644 |
--- a/src/hydrogen-instructions.h |
+++ b/src/hydrogen-instructions.h |
@@ -2352,15 +2352,20 @@ class HCallNewArray: public HCallNew { |
Handle<JSGlobalPropertyCell> type_cell) |
: HCallNew(context, constructor, argument_count), |
type_cell_(type_cell) { |
+ elements_kind_ = static_cast<ElementsKind>( |
+ Smi::cast(type_cell->value())->value()); |
} |
Handle<JSGlobalPropertyCell> property_cell() const { |
return type_cell_; |
} |
+ ElementsKind elements_kind() const { return elements_kind_; } |
+ |
DECLARE_CONCRETE_INSTRUCTION(CallNewArray) |
private: |
+ ElementsKind elements_kind_; |
Handle<JSGlobalPropertyCell> type_cell_; |
}; |