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

Unified Diff: src/frames.h

Issue 8538011: Reapply "Add a level of indirection to exception handler addresses." (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 9 years, 1 month 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/code-stubs.cc ('k') | src/frames-inl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/frames.h
diff --git a/src/frames.h b/src/frames.h
index 778b803168f4d10629021fd1be3fb09d77db7694..2c5e571ed7e33864d29888161d3295762b8e6d6e 100644
--- a/src/frames.h
+++ b/src/frames.h
@@ -84,12 +84,17 @@ class InnerPointerToCodeCache {
class StackHandler BASE_EMBEDDED {
public:
- enum State {
+ enum Kind {
ENTRY,
TRY_CATCH,
TRY_FINALLY
};
+ static const int kKindWidth = 2;
+ static const int kOffsetWidth = 32 - kKindWidth;
+ class KindField: public BitField<StackHandler::Kind, 0, kKindWidth> {};
+ class OffsetField: public BitField<unsigned, kKindWidth, kOffsetWidth> {};
+
// Get the address of this stack handler.
inline Address address() const;
@@ -112,10 +117,10 @@ class StackHandler BASE_EMBEDDED {
private:
// Accessors.
- inline State state() const;
+ inline Kind kind() const;
inline Object** context_address() const;
- inline Address* pc_address() const;
+ inline Object** code_address() const;
DISALLOW_IMPLICIT_CONSTRUCTORS(StackHandler);
};
« no previous file with comments | « src/code-stubs.cc ('k') | src/frames-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698