Index: src/hydrogen-instructions.h |
diff --git a/src/hydrogen-instructions.h b/src/hydrogen-instructions.h |
index 3420d4b121af5cb8cf2f9858fa4e66988d1c077c..f836804caff903d8741b170b3862f1bb62350b5d 100644 |
--- a/src/hydrogen-instructions.h |
+++ b/src/hydrogen-instructions.h |
@@ -3208,8 +3208,8 @@ class HArgumentsObject V8_FINAL : public HDematerializedObject { |
class HCapturedObject V8_FINAL : public HDematerializedObject { |
public: |
- HCapturedObject(int length, Zone* zone) |
- : HDematerializedObject(length, zone) { |
+ HCapturedObject(int length, int id, Zone* zone) |
+ : HDematerializedObject(length, zone), capture_id_(id) { |
set_representation(Representation::Tagged()); |
values_.AddBlock(NULL, length, zone); // Resize list. |
} |
@@ -3219,8 +3219,15 @@ class HCapturedObject V8_FINAL : public HDematerializedObject { |
// properties or elements backing store are not tracked here. |
const ZoneList<HValue*>* values() const { return &values_; } |
int length() const { return values_.length(); } |
+ int capture_id() const { return capture_id_; } |
+ |
+ // Replay effects of this instruction on the given environment. |
+ void ReplayEnvironment(HEnvironment* env); |
DECLARE_CONCRETE_INSTRUCTION(CapturedObject) |
+ |
+ private: |
+ int capture_id_; |
}; |