Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(188)

Unified Diff: src/frames-inl.h

Issue 960273002: Move stack unwinding logic into the runtime. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix Win64 (finally). Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/frames.h ('k') | src/ia32/code-stubs-ia32.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/frames-inl.h
diff --git a/src/frames-inl.h b/src/frames-inl.h
index 824c1a762046f7f24fbdfbb1c9b7150542732764..815bb5617754028f3685417c665de362c2864e72 100644
--- a/src/frames-inl.h
+++ b/src/frames-inl.h
@@ -77,6 +77,18 @@ inline bool StackHandler::is_finally() const {
}
+inline Context* StackHandler::context() const {
+ const int offset = StackHandlerConstants::kContextOffset;
+ return Context::cast(Memory::Object_at(address() + offset));
+}
+
+
+inline Code* StackHandler::code() const {
+ const int offset = StackHandlerConstants::kCodeOffset;
+ return Code::cast(Memory::Object_at(address() + offset));
+}
+
+
inline StackHandler::Kind StackHandler::kind() const {
const int offset = StackHandlerConstants::kStateIntOffset;
return KindField::decode(Memory::unsigned_at(address() + offset));
@@ -89,6 +101,12 @@ inline unsigned StackHandler::index() const {
}
+inline Address StackHandler::frame_pointer() const {
+ const int offset = StackHandlerConstants::kFPOffset;
+ return Memory::Address_at(address() + offset);
+}
+
+
inline Object** StackHandler::context_address() const {
const int offset = StackHandlerConstants::kContextOffset;
return reinterpret_cast<Object**>(address() + offset);
« no previous file with comments | « src/frames.h ('k') | src/ia32/code-stubs-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698