| Index: src/hydrogen.h
|
| diff --git a/src/hydrogen.h b/src/hydrogen.h
|
| index 41ae0beed65778656835a6625e766119052626ae..47dff7d3ab76acda11ad0e5f455e5c7e7182ad52 100644
|
| --- a/src/hydrogen.h
|
| +++ b/src/hydrogen.h
|
| @@ -1008,9 +1008,11 @@ class HValueMap: public ZoneObject {
|
| HValue* Lookup(HValue* value) const;
|
|
|
| HValueMap* Copy(Zone* zone) const {
|
| - return new(zone) HValueMap(this);
|
| + return new(zone) HValueMap(zone, this);
|
| }
|
|
|
| + bool IsEmpty() const { return count_ == 0; }
|
| +
|
| private:
|
| // A linked list of HValue* values. Stored in arrays.
|
| struct HValueMapListElement {
|
| @@ -1022,7 +1024,7 @@ class HValueMap: public ZoneObject {
|
| // Must be a power of 2.
|
| static const int kInitialSize = 16;
|
|
|
| - explicit HValueMap(const HValueMap* other);
|
| + HValueMap(Zone* zone, const HValueMap* other);
|
|
|
| void Resize(int new_size);
|
| void ResizeLists(int new_size);
|
|
|