OLD | NEW |
1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 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 #include "src/runtime/runtime-utils.h" | 5 #include "src/runtime/runtime-utils.h" |
6 | 6 |
7 #include "src/arguments.h" | 7 #include "src/arguments.h" |
8 #include "src/debug/debug-evaluate.h" | 8 #include "src/debug/debug-evaluate.h" |
9 #include "src/debug/debug-frames.h" | 9 #include "src/debug/debug-frames.h" |
10 #include "src/debug/debug-scopes.h" | 10 #include "src/debug/debug-scopes.h" |
(...skipping 1804 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1815 } | 1815 } |
1816 | 1816 |
1817 | 1817 |
1818 RUNTIME_FUNCTION(Runtime_DebugPopPromise) { | 1818 RUNTIME_FUNCTION(Runtime_DebugPopPromise) { |
1819 DCHECK(args.length() == 0); | 1819 DCHECK(args.length() == 0); |
1820 SealHandleScope shs(isolate); | 1820 SealHandleScope shs(isolate); |
1821 isolate->PopPromise(); | 1821 isolate->PopPromise(); |
1822 return isolate->heap()->undefined_value(); | 1822 return isolate->heap()->undefined_value(); |
1823 } | 1823 } |
1824 | 1824 |
| 1825 RUNTIME_FUNCTION(Runtime_DebugNextMicrotaskId) { |
| 1826 HandleScope scope(isolate); |
| 1827 DCHECK(args.length() == 0); |
| 1828 return Smi::FromInt(isolate->GetNextDebugMicrotaskId()); |
| 1829 } |
1825 | 1830 |
1826 RUNTIME_FUNCTION(Runtime_DebugAsyncTaskEvent) { | 1831 RUNTIME_FUNCTION(Runtime_DebugAsyncTaskEvent) { |
1827 DCHECK(args.length() == 3); | 1832 DCHECK(args.length() == 3); |
1828 HandleScope scope(isolate); | 1833 HandleScope scope(isolate); |
1829 CONVERT_ARG_HANDLE_CHECKED(String, type, 0); | 1834 CONVERT_ARG_HANDLE_CHECKED(String, type, 0); |
1830 CONVERT_ARG_HANDLE_CHECKED(Object, id, 1); | 1835 CONVERT_ARG_HANDLE_CHECKED(Object, id, 1); |
1831 CONVERT_ARG_HANDLE_CHECKED(String, name, 2); | 1836 CONVERT_ARG_HANDLE_CHECKED(String, name, 2); |
1832 isolate->debug()->OnAsyncTaskEvent(type, id, name); | 1837 isolate->debug()->OnAsyncTaskEvent(type, id, name); |
1833 return isolate->heap()->undefined_value(); | 1838 return isolate->heap()->undefined_value(); |
1834 } | 1839 } |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1869 Handle<Script> script = Handle<Script>(Script::cast(script_val->value())); | 1874 Handle<Script> script = Handle<Script>(Script::cast(script_val->value())); |
1870 | 1875 |
1871 Handle<wasm::WasmDebugInfo> debug_info = | 1876 Handle<wasm::WasmDebugInfo> debug_info = |
1872 wasm::GetDebugInfo(handle(script->wasm_object(), isolate)); | 1877 wasm::GetDebugInfo(handle(script->wasm_object(), isolate)); |
1873 return *wasm::WasmDebugInfo::DisassembleFunction( | 1878 return *wasm::WasmDebugInfo::DisassembleFunction( |
1874 debug_info, script->wasm_function_index()); | 1879 debug_info, script->wasm_function_index()); |
1875 } | 1880 } |
1876 | 1881 |
1877 } // namespace internal | 1882 } // namespace internal |
1878 } // namespace v8 | 1883 } // namespace v8 |
OLD | NEW |