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

Unified Diff: src/frames-inl.h

Issue 20680002: Rebase of partial ia32 implementation of optimized try/catch (started by Kevin Millikin, continued … (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Fix detection of CATCH frames (fixes debuger exception reporting anf breaks another assertion...). Created 7 years, 5 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.cc ('k') | src/full-codegen.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 cf31a482c14fcbfc4faa7bdec1895a2c529b544d..766c468f08f541e295d24ce1e80111eaa5aca935 100644
--- a/src/frames-inl.h
+++ b/src/frames-inl.h
@@ -59,6 +59,11 @@ inline StackHandler* StackHandler::next() const {
}
+inline Code* StackHandler::code() const {
+ return Code::cast(*code_address());
+}
+
+
inline bool StackHandler::includes(Address address) const {
Address start = this->address();
Address end = start + StackHandlerConstants::kSize;
@@ -83,7 +88,7 @@ inline bool StackHandler::is_js_entry() const {
inline bool StackHandler::is_catch() const {
- return kind() == CATCH;
+ return kind() == CATCH || kind() == OPTIMIZED_CATCH;
}
@@ -92,6 +97,11 @@ inline bool StackHandler::is_finally() const {
}
+inline bool StackHandler::is_optimized() const {
+ return (kind() & kIsOptimizedMask) != 0;
+}
+
+
inline StackHandler::Kind StackHandler::kind() const {
const int offset = StackHandlerConstants::kStateOffset;
return KindField::decode(Memory::unsigned_at(address() + offset));
« no previous file with comments | « src/frames.cc ('k') | src/full-codegen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698