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

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

Issue 1833563002: [V8] Removed debugger V8::PromiseEvent (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 9 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') | test/mjsunit/es6/debug-promises/events.js » ('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.h" 8 #include "src/debug/debug.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 1611 matching lines...) Expand 10 before | Expand all | Expand 10 after
1622 1622
1623 1623
1624 RUNTIME_FUNCTION(Runtime_DebugPopPromise) { 1624 RUNTIME_FUNCTION(Runtime_DebugPopPromise) {
1625 DCHECK(args.length() == 0); 1625 DCHECK(args.length() == 0);
1626 SealHandleScope shs(isolate); 1626 SealHandleScope shs(isolate);
1627 isolate->PopPromise(); 1627 isolate->PopPromise();
1628 return isolate->heap()->undefined_value(); 1628 return isolate->heap()->undefined_value();
1629 } 1629 }
1630 1630
1631 1631
1632 RUNTIME_FUNCTION(Runtime_DebugPromiseEvent) {
1633 DCHECK(args.length() == 1);
1634 HandleScope scope(isolate);
1635 CONVERT_ARG_HANDLE_CHECKED(JSObject, data, 0);
1636 isolate->debug()->OnPromiseEvent(data);
1637 return isolate->heap()->undefined_value();
1638 }
1639
1640
1641 RUNTIME_FUNCTION(Runtime_DebugAsyncTaskEvent) { 1632 RUNTIME_FUNCTION(Runtime_DebugAsyncTaskEvent) {
1642 DCHECK(args.length() == 1); 1633 DCHECK(args.length() == 1);
1643 HandleScope scope(isolate); 1634 HandleScope scope(isolate);
1644 CONVERT_ARG_HANDLE_CHECKED(JSObject, data, 0); 1635 CONVERT_ARG_HANDLE_CHECKED(JSObject, data, 0);
1645 isolate->debug()->OnAsyncTaskEvent(data); 1636 isolate->debug()->OnAsyncTaskEvent(data);
1646 return isolate->heap()->undefined_value(); 1637 return isolate->heap()->undefined_value();
1647 } 1638 }
1648 1639
1649 1640
1650 RUNTIME_FUNCTION(Runtime_DebugIsActive) { 1641 RUNTIME_FUNCTION(Runtime_DebugIsActive) {
1651 SealHandleScope shs(isolate); 1642 SealHandleScope shs(isolate);
1652 return Smi::FromInt(isolate->debug()->is_active()); 1643 return Smi::FromInt(isolate->debug()->is_active());
1653 } 1644 }
1654 1645
1655 1646
1656 RUNTIME_FUNCTION(Runtime_DebugBreakInOptimizedCode) { 1647 RUNTIME_FUNCTION(Runtime_DebugBreakInOptimizedCode) {
1657 UNIMPLEMENTED(); 1648 UNIMPLEMENTED();
1658 return NULL; 1649 return NULL;
1659 } 1650 }
1660 } // namespace internal 1651 } // namespace internal
1661 } // namespace v8 1652 } // namespace v8
OLDNEW
« no previous file with comments | « src/runtime/runtime.h ('k') | test/mjsunit/es6/debug-promises/events.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698