Index: src/platform.h |
diff --git a/src/platform.h b/src/platform.h |
index b58067f5ba002cb845e1cb9d17bff087c2dcb62f..32937083a8d5c9c9f579b3973ed1ead416df9f76 100644 |
--- a/src/platform.h |
+++ b/src/platform.h |
@@ -466,26 +466,9 @@ class TickSample { |
unsigned int sp; // Stack pointer. |
unsigned int fp; // Frame pointer. |
StateTag state; // The state of the VM. |
- SmartPointer<Address> stack; // Call stack, null-terminated. |
- |
- inline TickSample& operator=(const TickSample& rhs) { |
- if (this == &rhs) return *this; |
- pc = rhs.pc; |
- sp = rhs.sp; |
- fp = rhs.fp; |
- state = rhs.state; |
- DeleteArray(stack.Detach()); |
- stack = rhs.stack; |
- return *this; |
- } |
- |
- inline void InitStack(int depth) { |
- if (depth) { |
- stack = SmartPointer<Address>(NewArray<Address>(depth + 1)); |
- // null-terminate |
- stack[depth] = 0; |
- } |
- } |
+ static const int kMaxFramesCount = 5; |
+ EmbeddedVector<Address, kMaxFramesCount> stack; // Call stack. |
+ int frames_count; // Number of captured frames. |
}; |
class Sampler { |