Index: src/frames-inl.h |
=================================================================== |
--- src/frames-inl.h (revision 7267) |
+++ src/frames-inl.h (working copy) |
@@ -30,6 +30,8 @@ |
#include "frames.h" |
+#include "isolate.h" |
+ |
#if V8_TARGET_ARCH_IA32 |
#include "ia32/frames-ia32.h" |
#elif V8_TARGET_ARCH_X64 |
@@ -91,6 +93,11 @@ |
} |
+inline Code* StackFrame::GetContainingCode(Isolate* isolate, Address pc) { |
+ return isolate->pc_to_code_cache()->GetCacheEntry(pc)->code; |
+} |
+ |
+ |
inline Object* StandardFrame::GetExpression(int index) const { |
return Memory::Object_at(GetExpressionAddress(index)); |
} |