| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef V8_DEBUG_DEBUG_H_ | 5 #ifndef V8_DEBUG_DEBUG_H_ |
| 6 #define V8_DEBUG_DEBUG_H_ | 6 #define V8_DEBUG_DEBUG_H_ |
| 7 | 7 |
| 8 #include "src/allocation.h" | 8 #include "src/allocation.h" |
| 9 #include "src/arguments.h" | 9 #include "src/arguments.h" |
| 10 #include "src/assembler.h" | 10 #include "src/assembler.h" |
| (...skipping 339 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 350 | 350 |
| 351 void RunPromiseHook(PromiseHookType type, Handle<JSPromise> promise, | 351 void RunPromiseHook(PromiseHookType type, Handle<JSPromise> promise, |
| 352 Handle<Object> parent); | 352 Handle<Object> parent); |
| 353 | 353 |
| 354 int NextAsyncTaskId(Handle<JSObject> promise); | 354 int NextAsyncTaskId(Handle<JSObject> promise); |
| 355 | 355 |
| 356 bool IsBlackboxed(Handle<SharedFunctionInfo> shared); | 356 bool IsBlackboxed(Handle<SharedFunctionInfo> shared); |
| 357 | 357 |
| 358 void SetDebugDelegate(debug::DebugDelegate* delegate); | 358 void SetDebugDelegate(debug::DebugDelegate* delegate); |
| 359 | 359 |
| 360 void OnModuleRequested(Handle<Module> referer, Handle<Module> requested, |
| 361 Handle<String> specifier); |
| 362 void ReportRequestedModules(); |
| 363 |
| 360 // Returns whether the operation succeeded. Compilation can only be triggered | 364 // Returns whether the operation succeeded. Compilation can only be triggered |
| 361 // if a valid closure is passed as the second argument, otherwise the shared | 365 // if a valid closure is passed as the second argument, otherwise the shared |
| 362 // function needs to be compiled already. | 366 // function needs to be compiled already. |
| 363 bool EnsureDebugInfo(Handle<SharedFunctionInfo> shared, | 367 bool EnsureDebugInfo(Handle<SharedFunctionInfo> shared, |
| 364 Handle<JSFunction> function); | 368 Handle<JSFunction> function); |
| 365 void CreateDebugInfo(Handle<SharedFunctionInfo> shared); | 369 void CreateDebugInfo(Handle<SharedFunctionInfo> shared); |
| 366 static Handle<DebugInfo> GetDebugInfo(Handle<SharedFunctionInfo> shared); | 370 static Handle<DebugInfo> GetDebugInfo(Handle<SharedFunctionInfo> shared); |
| 367 | 371 |
| 368 template <typename C> | 372 template <typename C> |
| 369 bool CompileToRevealInnerFunctions(C* compilable); | 373 bool CompileToRevealInnerFunctions(C* compilable); |
| (...skipping 380 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 750 Handle<Code> code); | 754 Handle<Code> code); |
| 751 static bool DebugBreakSlotIsPatched(Address pc); | 755 static bool DebugBreakSlotIsPatched(Address pc); |
| 752 static void ClearDebugBreakSlot(Isolate* isolate, Address pc); | 756 static void ClearDebugBreakSlot(Isolate* isolate, Address pc); |
| 753 }; | 757 }; |
| 754 | 758 |
| 755 | 759 |
| 756 } // namespace internal | 760 } // namespace internal |
| 757 } // namespace v8 | 761 } // namespace v8 |
| 758 | 762 |
| 759 #endif // V8_DEBUG_DEBUG_H_ | 763 #endif // V8_DEBUG_DEBUG_H_ |
| OLD | NEW |