OLD | NEW |
1 // Copyright 2006-2008 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2008 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 |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
71 | 71 |
72 // Testers | 72 // Testers |
73 bool is_entry() { return state() == ENTRY; } | 73 bool is_entry() { return state() == ENTRY; } |
74 bool is_try_catch() { return state() == TRY_CATCH; } | 74 bool is_try_catch() { return state() == TRY_CATCH; } |
75 bool is_try_finally() { return state() == TRY_FINALLY; } | 75 bool is_try_finally() { return state() == TRY_FINALLY; } |
76 | 76 |
77 // Garbage collection support. | 77 // Garbage collection support. |
78 void Cook(Code* code); | 78 void Cook(Code* code); |
79 void Uncook(Code* code); | 79 void Uncook(Code* code); |
80 | 80 |
81 // TODO(1233780): Get rid of the code slot in stack handlers. | |
82 static const int kCodeNotPresent = 0; | |
83 | |
84 private: | 81 private: |
85 // Accessors. | 82 // Accessors. |
86 inline State state() const; | 83 inline State state() const; |
87 | 84 |
88 inline Address pc() const; | 85 inline Address pc() const; |
89 inline void set_pc(Address value); | 86 inline void set_pc(Address value); |
90 | 87 |
91 DISALLOW_IMPLICIT_CONSTRUCTORS(StackHandler); | 88 DISALLOW_IMPLICIT_CONSTRUCTORS(StackHandler); |
92 }; | 89 }; |
93 | 90 |
(...skipping 588 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
682 JavaScriptFrame* FindJavaScriptFrame(int n); | 679 JavaScriptFrame* FindJavaScriptFrame(int n); |
683 | 680 |
684 private: | 681 private: |
685 StackFrameIterator iterator_; | 682 StackFrameIterator iterator_; |
686 }; | 683 }; |
687 | 684 |
688 | 685 |
689 } } // namespace v8::internal | 686 } } // namespace v8::internal |
690 | 687 |
691 #endif // V8_FRAMES_H_ | 688 #endif // V8_FRAMES_H_ |
OLD | NEW |