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 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
95 void SetOneShot(); | 95 void SetOneShot(); |
96 void ClearOneShot(); | 96 void ClearOneShot(); |
97 void PrepareStepIn(); | 97 void PrepareStepIn(); |
98 bool IsExit() const; | 98 bool IsExit() const; |
99 bool HasBreakPoint(); | 99 bool HasBreakPoint(); |
100 bool IsDebugBreak(); | 100 bool IsDebugBreak(); |
101 Object* BreakPointObjects(); | 101 Object* BreakPointObjects(); |
102 void ClearAllDebugBreak(); | 102 void ClearAllDebugBreak(); |
103 | 103 |
104 | 104 |
105 inline int code_position() { return pc() - debug_info_->code()->entry(); } | 105 inline int code_position() { |
| 106 return static_cast<int>(pc() - debug_info_->code()->entry()); |
| 107 } |
106 inline int break_point() { return break_point_; } | 108 inline int break_point() { return break_point_; } |
107 inline int position() { return position_; } | 109 inline int position() { return position_; } |
108 inline int statement_position() { return statement_position_; } | 110 inline int statement_position() { return statement_position_; } |
109 inline Address pc() { return reloc_iterator_->rinfo()->pc(); } | 111 inline Address pc() { return reloc_iterator_->rinfo()->pc(); } |
110 inline Code* code() { return debug_info_->code(); } | 112 inline Code* code() { return debug_info_->code(); } |
111 inline RelocInfo* rinfo() { return reloc_iterator_->rinfo(); } | 113 inline RelocInfo* rinfo() { return reloc_iterator_->rinfo(); } |
112 inline RelocInfo::Mode rmode() const { | 114 inline RelocInfo::Mode rmode() const { |
113 return reloc_iterator_->rinfo()->rmode(); | 115 return reloc_iterator_->rinfo()->rmode(); |
114 } | 116 } |
115 inline RelocInfo* original_rinfo() { | 117 inline RelocInfo* original_rinfo() { |
(...skipping 746 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
862 Debug::AddressId id_; | 864 Debug::AddressId id_; |
863 int reg_; | 865 int reg_; |
864 }; | 866 }; |
865 | 867 |
866 | 868 |
867 } } // namespace v8::internal | 869 } } // namespace v8::internal |
868 | 870 |
869 #endif // ENABLE_DEBUGGER_SUPPORT | 871 #endif // ENABLE_DEBUGGER_SUPPORT |
870 | 872 |
871 #endif // V8_DEBUG_H_ | 873 #endif // V8_DEBUG_H_ |
OLD | NEW |