| 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 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 198 // Getter for the debug_context. | 198 // Getter for the debug_context. |
| 199 inline static Handle<Context> debug_context() { return debug_context_; } | 199 inline static Handle<Context> debug_context() { return debug_context_; } |
| 200 | 200 |
| 201 // Check whether a global object is the debug global object. | 201 // Check whether a global object is the debug global object. |
| 202 static bool IsDebugGlobal(GlobalObject* global); | 202 static bool IsDebugGlobal(GlobalObject* global); |
| 203 | 203 |
| 204 // Fast check to see if any break points are active. | 204 // Fast check to see if any break points are active. |
| 205 inline static bool has_break_points() { return has_break_points_; } | 205 inline static bool has_break_points() { return has_break_points_; } |
| 206 | 206 |
| 207 static bool StepInActive() { return thread_local_.step_into_fp_ != 0; } | 207 static bool StepInActive() { return thread_local_.step_into_fp_ != 0; } |
| 208 static void HandleStepIn(Handle<JSFunction> function, |
| 209 Address fp, |
| 210 bool is_constructor); |
| 208 static Address step_in_fp() { return thread_local_.step_into_fp_; } | 211 static Address step_in_fp() { return thread_local_.step_into_fp_; } |
| 209 static Address* step_in_fp_addr() { return &thread_local_.step_into_fp_; } | 212 static Address* step_in_fp_addr() { return &thread_local_.step_into_fp_; } |
| 210 | 213 |
| 211 // Getter and setter for the disable break state. | 214 // Getter and setter for the disable break state. |
| 212 static bool disable_break() { return disable_break_; } | 215 static bool disable_break() { return disable_break_; } |
| 213 static void set_disable_break(bool disable_break) { | 216 static void set_disable_break(bool disable_break) { |
| 214 disable_break_ = disable_break; | 217 disable_break_ = disable_break; |
| 215 } | 218 } |
| 216 | 219 |
| 217 // Getters for the current exception break state. | 220 // Getters for the current exception break state. |
| (...skipping 370 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 588 } | 591 } |
| 589 private: | 592 private: |
| 590 Debug::AddressId id_; | 593 Debug::AddressId id_; |
| 591 int reg_; | 594 int reg_; |
| 592 }; | 595 }; |
| 593 | 596 |
| 594 | 597 |
| 595 } } // namespace v8::internal | 598 } } // namespace v8::internal |
| 596 | 599 |
| 597 #endif // V8_V8_DEBUG_H_ | 600 #endif // V8_V8_DEBUG_H_ |
| OLD | NEW |