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 1881 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1892 | 1892 |
1893 RUNTIME_FUNCTION(Runtime_DebugNextMicrotaskId) { | 1893 RUNTIME_FUNCTION(Runtime_DebugNextMicrotaskId) { |
1894 HandleScope scope(isolate); | 1894 HandleScope scope(isolate); |
1895 DCHECK(args.length() == 0); | 1895 DCHECK(args.length() == 0); |
1896 return Smi::FromInt(isolate->GetNextDebugMicrotaskId()); | 1896 return Smi::FromInt(isolate->GetNextDebugMicrotaskId()); |
1897 } | 1897 } |
1898 | 1898 |
1899 RUNTIME_FUNCTION(Runtime_DebugAsyncTaskEvent) { | 1899 RUNTIME_FUNCTION(Runtime_DebugAsyncTaskEvent) { |
1900 DCHECK(args.length() == 3); | 1900 DCHECK(args.length() == 3); |
1901 HandleScope scope(isolate); | 1901 HandleScope scope(isolate); |
1902 CONVERT_ARG_HANDLE_CHECKED(String, type, 0); | 1902 CONVERT_SMI_ARG_CHECKED(type, 0); |
1903 CONVERT_ARG_HANDLE_CHECKED(Object, id, 1); | 1903 CONVERT_SMI_ARG_CHECKED(id, 1); |
1904 CONVERT_ARG_HANDLE_CHECKED(String, name, 2); | 1904 CONVERT_SMI_ARG_CHECKED(name, 2); |
1905 isolate->debug()->OnAsyncTaskEvent(type, id, name); | 1905 isolate->debug()->OnAsyncTaskEvent(static_cast<PromiseDebugActionType>(type), |
| 1906 id, |
| 1907 static_cast<PromiseDebugActionName>(name)); |
1906 return isolate->heap()->undefined_value(); | 1908 return isolate->heap()->undefined_value(); |
1907 } | 1909 } |
1908 | 1910 |
1909 | 1911 |
1910 RUNTIME_FUNCTION(Runtime_DebugIsActive) { | 1912 RUNTIME_FUNCTION(Runtime_DebugIsActive) { |
1911 SealHandleScope shs(isolate); | 1913 SealHandleScope shs(isolate); |
1912 return Smi::FromInt(isolate->debug()->is_active()); | 1914 return Smi::FromInt(isolate->debug()->is_active()); |
1913 } | 1915 } |
1914 | 1916 |
1915 | 1917 |
1916 RUNTIME_FUNCTION(Runtime_DebugBreakInOptimizedCode) { | 1918 RUNTIME_FUNCTION(Runtime_DebugBreakInOptimizedCode) { |
1917 UNIMPLEMENTED(); | 1919 UNIMPLEMENTED(); |
1918 return NULL; | 1920 return NULL; |
1919 } | 1921 } |
1920 | 1922 |
1921 } // namespace internal | 1923 } // namespace internal |
1922 } // namespace v8 | 1924 } // namespace v8 |
OLD | NEW |