Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(245)

Side by Side Diff: src/runtime/runtime-debug.cc

Issue 2415023002: [promises] Move async debug event creation to c++ (Closed)
Patch Set: rebase Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/runtime/runtime.h ('k') | src/runtime/runtime-internal.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 1806 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 1825
1826 RUNTIME_FUNCTION(Runtime_DebugAsyncTaskEvent) { 1826 RUNTIME_FUNCTION(Runtime_DebugAsyncTaskEvent) {
1827 DCHECK(args.length() == 1); 1827 DCHECK(args.length() == 3);
1828 HandleScope scope(isolate); 1828 HandleScope scope(isolate);
1829 CONVERT_ARG_HANDLE_CHECKED(JSObject, data, 0); 1829 CONVERT_ARG_HANDLE_CHECKED(String, type, 0);
1830 isolate->debug()->OnAsyncTaskEvent(data); 1830 CONVERT_ARG_HANDLE_CHECKED(Object, id, 1);
1831 CONVERT_ARG_HANDLE_CHECKED(String, name, 2);
1832 isolate->debug()->OnAsyncTaskEvent(type, id, name);
1831 return isolate->heap()->undefined_value(); 1833 return isolate->heap()->undefined_value();
1832 } 1834 }
1833 1835
1834 1836
1835 RUNTIME_FUNCTION(Runtime_DebugIsActive) { 1837 RUNTIME_FUNCTION(Runtime_DebugIsActive) {
1836 SealHandleScope shs(isolate); 1838 SealHandleScope shs(isolate);
1837 return Smi::FromInt(isolate->debug()->is_active()); 1839 return Smi::FromInt(isolate->debug()->is_active());
1838 } 1840 }
1839 1841
1840 1842
(...skipping 26 matching lines...) Expand all
1867 Handle<Script> script = Handle<Script>(Script::cast(script_val->value())); 1869 Handle<Script> script = Handle<Script>(Script::cast(script_val->value()));
1868 1870
1869 Handle<wasm::WasmDebugInfo> debug_info = 1871 Handle<wasm::WasmDebugInfo> debug_info =
1870 wasm::GetDebugInfo(handle(script->wasm_object(), isolate)); 1872 wasm::GetDebugInfo(handle(script->wasm_object(), isolate));
1871 return *wasm::WasmDebugInfo::DisassembleFunction( 1873 return *wasm::WasmDebugInfo::DisassembleFunction(
1872 debug_info, script->wasm_function_index()); 1874 debug_info, script->wasm_function_index());
1873 } 1875 }
1874 1876
1875 } // namespace internal 1877 } // namespace internal
1876 } // namespace v8 1878 } // namespace v8
OLDNEW
« no previous file with comments | « src/runtime/runtime.h ('k') | src/runtime/runtime-internal.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698