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 239 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
250 void ClearStepping(); | 250 void ClearStepping(); |
251 void ClearStepOut(); | 251 void ClearStepOut(); |
252 bool IsStepping() { return thread_local_.step_count_ > 0; } | 252 bool IsStepping() { return thread_local_.step_count_ > 0; } |
253 bool StepNextContinue(BreakLocationIterator* break_location_iterator, | 253 bool StepNextContinue(BreakLocationIterator* break_location_iterator, |
254 JavaScriptFrame* frame); | 254 JavaScriptFrame* frame); |
255 static Handle<DebugInfo> GetDebugInfo(Handle<SharedFunctionInfo> shared); | 255 static Handle<DebugInfo> GetDebugInfo(Handle<SharedFunctionInfo> shared); |
256 static bool HasDebugInfo(Handle<SharedFunctionInfo> shared); | 256 static bool HasDebugInfo(Handle<SharedFunctionInfo> shared); |
257 | 257 |
258 void PrepareForBreakPoints(); | 258 void PrepareForBreakPoints(); |
259 | 259 |
| 260 // This function is used in FunctionNameUsing* tests. |
| 261 Object* FindSharedFunctionInfoInScript(Handle<Script> script, int position); |
| 262 |
260 // Returns whether the operation succeeded. Compilation can only be triggered | 263 // Returns whether the operation succeeded. Compilation can only be triggered |
261 // if a valid closure is passed as the second argument, otherwise the shared | 264 // if a valid closure is passed as the second argument, otherwise the shared |
262 // function needs to be compiled already. | 265 // function needs to be compiled already. |
263 bool EnsureDebugInfo(Handle<SharedFunctionInfo> shared, | 266 bool EnsureDebugInfo(Handle<SharedFunctionInfo> shared, |
264 Handle<JSFunction> function); | 267 Handle<JSFunction> function); |
265 | 268 |
266 // Returns true if the current stub call is patched to call the debugger. | 269 // Returns true if the current stub call is patched to call the debugger. |
267 static bool IsDebugBreak(Address addr); | 270 static bool IsDebugBreak(Address addr); |
268 // Returns true if the current return statement has been patched to be | 271 // Returns true if the current return statement has been patched to be |
269 // a debugger breakpoint. | 272 // a debugger breakpoint. |
(...skipping 766 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1036 | 1039 |
1037 DISALLOW_COPY_AND_ASSIGN(MessageDispatchHelperThread); | 1040 DISALLOW_COPY_AND_ASSIGN(MessageDispatchHelperThread); |
1038 }; | 1041 }; |
1039 | 1042 |
1040 | 1043 |
1041 } } // namespace v8::internal | 1044 } } // namespace v8::internal |
1042 | 1045 |
1043 #endif // ENABLE_DEBUGGER_SUPPORT | 1046 #endif // ENABLE_DEBUGGER_SUPPORT |
1044 | 1047 |
1045 #endif // V8_DEBUG_H_ | 1048 #endif // V8_DEBUG_H_ |
OLD | NEW |