Index: src/frames-inl.h |
diff --git a/src/frames-inl.h b/src/frames-inl.h |
index 5951806245bca49305c56f5049a6fc19d11e9a37..7ba79bf1b551ffd634817ab95ddf555b221495f8 100644 |
--- a/src/frames-inl.h |
+++ b/src/frames-inl.h |
@@ -1,4 +1,4 @@ |
-// Copyright 2006-2008 the V8 project authors. All rights reserved. |
+// Copyright 2011 the V8 project authors. All rights reserved. |
// Redistribution and use in source and binary forms, with or without |
// modification, are permitted provided that the following conditions are |
// met: |
@@ -67,6 +67,7 @@ inline bool StackHandler::includes(Address address) const { |
inline void StackHandler::Iterate(ObjectVisitor* v, Code* holder) const { |
+ v->VisitPointer(context_address()); |
StackFrame::IteratePc(v, pc_address(), holder); |
} |
@@ -82,6 +83,12 @@ inline StackHandler::State StackHandler::state() const { |
} |
+inline Object** StackHandler::context_address() const { |
+ const int offset = StackHandlerConstants::kContextOffset; |
+ return reinterpret_cast<Object**>(address() + offset); |
+} |
+ |
+ |
inline Address* StackHandler::pc_address() const { |
const int offset = StackHandlerConstants::kPCOffset; |
return reinterpret_cast<Address*>(address() + offset); |