Index: src/frames.cc |
diff --git a/src/frames.cc b/src/frames.cc |
index e265341b1add66454603141ffd267b9c639beee3..e0ac2ee2ae9a931f50e2ef8cc1e9470da3d5dfa9 100644 |
--- a/src/frames.cc |
+++ b/src/frames.cc |
@@ -1394,11 +1394,11 @@ class field##_Wrapper : public ZoneObject { \ |
STACK_FRAME_TYPE_LIST(DEFINE_WRAPPER) |
#undef DEFINE_WRAPPER |
-static StackFrame* AllocateFrameCopy(StackFrame* frame) { |
+static StackFrame* AllocateFrameCopy(StackFrame* frame, Zone* zone) { |
#define FRAME_TYPE_CASE(type, field) \ |
case StackFrame::type: { \ |
field##_Wrapper* wrapper = \ |
- new field##_Wrapper(*(reinterpret_cast<field*>(frame))); \ |
+ new(zone) field##_Wrapper(*(reinterpret_cast<field*>(frame))); \ |
return &wrapper->frame_; \ |
} |
@@ -1410,11 +1410,11 @@ static StackFrame* AllocateFrameCopy(StackFrame* frame) { |
return NULL; |
} |
-Vector<StackFrame*> CreateStackMap() { |
- ZoneList<StackFrame*> list(10); |
+Vector<StackFrame*> CreateStackMap(Zone* zone) { |
+ ZoneList<StackFrame*> list(10, zone); |
for (StackFrameIterator it; !it.done(); it.Advance()) { |
- StackFrame* frame = AllocateFrameCopy(it.frame()); |
- list.Add(frame); |
+ StackFrame* frame = AllocateFrameCopy(it.frame(), zone); |
+ list.Add(frame, zone); |
} |
return list.ToVector(); |
} |