Index: src/virtual-frame.cc |
=================================================================== |
--- src/virtual-frame.cc (revision 2025) |
+++ src/virtual-frame.cc (working copy) |
@@ -37,8 +37,9 @@ |
// When cloned, a frame is a deep copy of the original. |
VirtualFrame::VirtualFrame(VirtualFrame* original) |
- : elements_(original->elements_), |
+ : elements_(original->elements_.length()), |
stack_pointer_(original->stack_pointer_) { |
+ elements_.AddAll(original->elements_); |
// Copy register locations from original. |
memcpy(®ister_locations_, |
original->register_locations_, |