OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
109 bool IsStepInLocation(Isolate* isolate); | 109 bool IsStepInLocation(Isolate* isolate); |
110 void PrepareStepIn(Isolate* isolate); | 110 void PrepareStepIn(Isolate* isolate); |
111 bool IsExit() const; | 111 bool IsExit() const; |
112 bool HasBreakPoint(); | 112 bool HasBreakPoint(); |
113 bool IsDebugBreak(); | 113 bool IsDebugBreak(); |
114 Object* BreakPointObjects(); | 114 Object* BreakPointObjects(); |
115 void ClearAllDebugBreak(); | 115 void ClearAllDebugBreak(); |
116 | 116 |
117 | 117 |
118 inline int code_position() { | 118 inline int code_position() { |
119 return static_cast<int>(pc() - debug_info_->code()->entry()); | 119 return static_cast<int>(pc() - debug_info_->code()->instruction_start()); |
120 } | 120 } |
121 inline int break_point() { return break_point_; } | 121 inline int break_point() { return break_point_; } |
122 inline int position() { return position_; } | 122 inline int position() { return position_; } |
123 inline int statement_position() { return statement_position_; } | 123 inline int statement_position() { return statement_position_; } |
124 inline Address pc() { return reloc_iterator_->rinfo()->pc(); } | 124 inline Address pc() { return reloc_iterator_->rinfo()->pc(); } |
125 inline Code* code() { return debug_info_->code(); } | 125 inline Code* code() { return debug_info_->code(); } |
126 inline RelocInfo* rinfo() { return reloc_iterator_->rinfo(); } | 126 inline RelocInfo* rinfo() { return reloc_iterator_->rinfo(); } |
127 inline RelocInfo::Mode rmode() const { | 127 inline RelocInfo::Mode rmode() const { |
128 return reloc_iterator_->rinfo()->rmode(); | 128 return reloc_iterator_->rinfo()->rmode(); |
129 } | 129 } |
(...skipping 931 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1061 | 1061 |
1062 DISALLOW_COPY_AND_ASSIGN(MessageDispatchHelperThread); | 1062 DISALLOW_COPY_AND_ASSIGN(MessageDispatchHelperThread); |
1063 }; | 1063 }; |
1064 | 1064 |
1065 | 1065 |
1066 } } // namespace v8::internal | 1066 } } // namespace v8::internal |
1067 | 1067 |
1068 #endif // ENABLE_DEBUGGER_SUPPORT | 1068 #endif // ENABLE_DEBUGGER_SUPPORT |
1069 | 1069 |
1070 #endif // V8_DEBUG_H_ | 1070 #endif // V8_DEBUG_H_ |
OLD | NEW |