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

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

Issue 2650803003: [inspector] change target promise for kDebugWillHandle & kDebugDidHandle (Closed)
Patch Set: added missing guard in asyncTaskCreated 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
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/compiler.h" 8 #include "src/compiler.h"
9 #include "src/debug/debug-evaluate.h" 9 #include "src/debug/debug-evaluate.h"
10 #include "src/debug/debug-frames.h" 10 #include "src/debug/debug-frames.h"
(...skipping 1860 matching lines...) Expand 10 before | Expand all | Expand 10 after
1871 } 1871 }
1872 1872
1873 1873
1874 RUNTIME_FUNCTION(Runtime_DebugPopPromise) { 1874 RUNTIME_FUNCTION(Runtime_DebugPopPromise) {
1875 DCHECK_EQ(0, args.length()); 1875 DCHECK_EQ(0, args.length());
1876 SealHandleScope shs(isolate); 1876 SealHandleScope shs(isolate);
1877 isolate->PopPromise(); 1877 isolate->PopPromise();
1878 return isolate->heap()->undefined_value(); 1878 return isolate->heap()->undefined_value();
1879 } 1879 }
1880 1880
1881 RUNTIME_FUNCTION(Runtime_DebugNextAsyncTaskId) {
1882 HandleScope scope(isolate);
1883 DCHECK_EQ(1, args.length());
1884 CONVERT_ARG_HANDLE_CHECKED(JSObject, promise, 0);
1885 return Smi::FromInt(isolate->debug()->NextAsyncTaskId(promise));
1886 }
1887
1888 RUNTIME_FUNCTION(Runtime_DebugAsyncFunctionPromiseCreated) { 1881 RUNTIME_FUNCTION(Runtime_DebugAsyncFunctionPromiseCreated) {
1889 DCHECK_EQ(1, args.length()); 1882 DCHECK_EQ(1, args.length());
1890 HandleScope scope(isolate); 1883 HandleScope scope(isolate);
1891 CONVERT_ARG_HANDLE_CHECKED(JSObject, promise, 0); 1884 CONVERT_ARG_HANDLE_CHECKED(JSObject, promise, 0);
1892 isolate->PushPromise(promise); 1885 isolate->PushPromise(promise);
1893 int id = isolate->debug()->NextAsyncTaskId(promise); 1886 int id = isolate->debug()->NextAsyncTaskId(promise);
1894 Handle<Symbol> async_stack_id_symbol = 1887 Handle<Symbol> async_stack_id_symbol =
1895 isolate->factory()->promise_async_stack_id_symbol(); 1888 isolate->factory()->promise_async_stack_id_symbol();
1896 JSObject::SetProperty(promise, async_stack_id_symbol, 1889 JSObject::SetProperty(promise, async_stack_id_symbol,
1897 handle(Smi::FromInt(id), isolate), STRICT) 1890 handle(Smi::FromInt(id), isolate), STRICT)
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
1930 } 1923 }
1931 1924
1932 1925
1933 RUNTIME_FUNCTION(Runtime_DebugBreakInOptimizedCode) { 1926 RUNTIME_FUNCTION(Runtime_DebugBreakInOptimizedCode) {
1934 UNIMPLEMENTED(); 1927 UNIMPLEMENTED();
1935 return NULL; 1928 return NULL;
1936 } 1929 }
1937 1930
1938 } // namespace internal 1931 } // namespace internal
1939 } // namespace v8 1932 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698