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

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

Issue 2606093002: [promises] Refactor debug code (Closed)
Patch Set: fix stuff Created 3 years, 11 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/objects-printer.cc ('k') | src/runtime/runtime-promise.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 1881 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
OLDNEW
« no previous file with comments | « src/objects-printer.cc ('k') | src/runtime/runtime-promise.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698