| 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 176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 187 // Check whether a code stub with the specified major key is a possible break | 187 // Check whether a code stub with the specified major key is a possible break |
| 188 // point location. | 188 // point location. |
| 189 static bool IsSourceBreakStub(Code* code); | 189 static bool IsSourceBreakStub(Code* code); |
| 190 static bool IsBreakStub(Code* code); | 190 static bool IsBreakStub(Code* code); |
| 191 | 191 |
| 192 // Find the builtin to use for invoking the debug break | 192 // Find the builtin to use for invoking the debug break |
| 193 static Handle<Code> FindDebugBreak(RelocInfo* rinfo); | 193 static Handle<Code> FindDebugBreak(RelocInfo* rinfo); |
| 194 | 194 |
| 195 static Handle<Object> GetSourceBreakLocations( | 195 static Handle<Object> GetSourceBreakLocations( |
| 196 Handle<SharedFunctionInfo> shared); | 196 Handle<SharedFunctionInfo> shared); |
| 197 static Code* GetCodeTarget(Address target); | |
| 198 | 197 |
| 199 // Getter for the debug_context. | 198 // Getter for the debug_context. |
| 200 inline static Handle<Context> debug_context() { return debug_context_; } | 199 inline static Handle<Context> debug_context() { return debug_context_; } |
| 201 | 200 |
| 202 // Check whether a global object is the debug global object. | 201 // Check whether a global object is the debug global object. |
| 203 static bool IsDebugGlobal(GlobalObject* global); | 202 static bool IsDebugGlobal(GlobalObject* global); |
| 204 | 203 |
| 205 // Fast check to see if any break points are active. | 204 // Fast check to see if any break points are active. |
| 206 inline static bool has_break_points() { return has_break_points_; } | 205 inline static bool has_break_points() { return has_break_points_; } |
| 207 | 206 |
| (...skipping 382 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 590 } | 589 } |
| 591 private: | 590 private: |
| 592 Debug::AddressId id_; | 591 Debug::AddressId id_; |
| 593 int reg_; | 592 int reg_; |
| 594 }; | 593 }; |
| 595 | 594 |
| 596 | 595 |
| 597 } } // namespace v8::internal | 596 } } // namespace v8::internal |
| 598 | 597 |
| 599 #endif // V8_V8_DEBUG_H_ | 598 #endif // V8_V8_DEBUG_H_ |
| OLD | NEW |