| 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 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 90 Object* BreakPointObjects(); | 90 Object* BreakPointObjects(); |
| 91 | 91 |
| 92 | 92 |
| 93 inline int code_position() { return pc() - debug_info_->code()->entry(); } | 93 inline int code_position() { return pc() - debug_info_->code()->entry(); } |
| 94 inline int break_point() { return break_point_; } | 94 inline int break_point() { return break_point_; } |
| 95 inline int position() { return position_; } | 95 inline int position() { return position_; } |
| 96 inline int statement_position() { return statement_position_; } | 96 inline int statement_position() { return statement_position_; } |
| 97 inline Address pc() { return reloc_iterator_->rinfo()->pc(); } | 97 inline Address pc() { return reloc_iterator_->rinfo()->pc(); } |
| 98 inline Code* code() { return debug_info_->code(); } | 98 inline Code* code() { return debug_info_->code(); } |
| 99 inline RelocInfo* rinfo() { return reloc_iterator_->rinfo(); } | 99 inline RelocInfo* rinfo() { return reloc_iterator_->rinfo(); } |
| 100 inline RelocMode rmode() const { return reloc_iterator_->rinfo()->rmode(); } | 100 inline RelocInfo::Mode rmode() const { |
| 101 return reloc_iterator_->rinfo()->rmode(); |
| 102 } |
| 101 inline RelocInfo* original_rinfo() { | 103 inline RelocInfo* original_rinfo() { |
| 102 return reloc_iterator_original_->rinfo(); | 104 return reloc_iterator_original_->rinfo(); |
| 103 } | 105 } |
| 104 inline RelocMode original_rmode() const { | 106 inline RelocInfo::Mode original_rmode() const { |
| 105 return reloc_iterator_original_->rinfo()->rmode(); | 107 return reloc_iterator_original_->rinfo()->rmode(); |
| 106 } | 108 } |
| 107 | 109 |
| 108 protected: | 110 protected: |
| 109 bool RinfoDone() const; | 111 bool RinfoDone() const; |
| 110 void RinfoNext(); | 112 void RinfoNext(); |
| 111 | 113 |
| 112 BreakLocatorType type_; | 114 BreakLocatorType type_; |
| 113 int break_point_; | 115 int break_point_; |
| 114 int position_; | 116 int position_; |
| (...skipping 453 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 568 } | 570 } |
| 569 private: | 571 private: |
| 570 Debug::AddressId id_; | 572 Debug::AddressId id_; |
| 571 int reg_; | 573 int reg_; |
| 572 }; | 574 }; |
| 573 | 575 |
| 574 | 576 |
| 575 } } // namespace v8::internal | 577 } } // namespace v8::internal |
| 576 | 578 |
| 577 #endif // V8_V8_DEBUG_H_ | 579 #endif // V8_V8_DEBUG_H_ |
| OLD | NEW |