| 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.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 Loading... |
| 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 |
| OLD | NEW |