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

Side by Side Diff: src/frames.h

Issue 7618007: Simplify handling of exits from with and catch. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Incorporate review comments Created 9 years, 4 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/ast.cc ('k') | src/frames-inl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2006-2008 the V8 project authors. All rights reserved. 1 // Copyright 2011 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
11 // with the distribution. 11 // with the distribution.
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 107
108 // Testers 108 // Testers
109 bool is_entry() { return state() == ENTRY; } 109 bool is_entry() { return state() == ENTRY; }
110 bool is_try_catch() { return state() == TRY_CATCH; } 110 bool is_try_catch() { return state() == TRY_CATCH; }
111 bool is_try_finally() { return state() == TRY_FINALLY; } 111 bool is_try_finally() { return state() == TRY_FINALLY; }
112 112
113 private: 113 private:
114 // Accessors. 114 // Accessors.
115 inline State state() const; 115 inline State state() const;
116 116
117 inline Object** context_address() const;
117 inline Address* pc_address() const; 118 inline Address* pc_address() const;
118 119
119 DISALLOW_IMPLICIT_CONSTRUCTORS(StackHandler); 120 DISALLOW_IMPLICIT_CONSTRUCTORS(StackHandler);
120 }; 121 };
121 122
122 123
123 #define STACK_FRAME_TYPE_LIST(V) \ 124 #define STACK_FRAME_TYPE_LIST(V) \
124 V(ENTRY, EntryFrame) \ 125 V(ENTRY, EntryFrame) \
125 V(ENTRY_CONSTRUCT, EntryConstructFrame) \ 126 V(ENTRY_CONSTRUCT, EntryConstructFrame) \
126 V(EXIT, ExitFrame) \ 127 V(EXIT, ExitFrame) \
(...skipping 740 matching lines...) Expand 10 before | Expand all | Expand 10 after
867 }; 868 };
868 869
869 870
870 // Reads all frames on the current stack and copies them into the current 871 // Reads all frames on the current stack and copies them into the current
871 // zone memory. 872 // zone memory.
872 Vector<StackFrame*> CreateStackMap(); 873 Vector<StackFrame*> CreateStackMap();
873 874
874 } } // namespace v8::internal 875 } } // namespace v8::internal
875 876
876 #endif // V8_FRAMES_H_ 877 #endif // V8_FRAMES_H_
OLDNEW
« no previous file with comments | « src/ast.cc ('k') | src/frames-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698