| 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 1854 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1865 } | 1865 } |
| 1866 | 1866 |
| 1867 // Set one shot breakpoints for the suspended generator object. | 1867 // Set one shot breakpoints for the suspended generator object. |
| 1868 RUNTIME_FUNCTION(Runtime_DebugPrepareStepInSuspendedGenerator) { | 1868 RUNTIME_FUNCTION(Runtime_DebugPrepareStepInSuspendedGenerator) { |
| 1869 HandleScope scope(isolate); | 1869 HandleScope scope(isolate); |
| 1870 DCHECK_EQ(0, args.length()); | 1870 DCHECK_EQ(0, args.length()); |
| 1871 isolate->debug()->PrepareStepInSuspendedGenerator(); | 1871 isolate->debug()->PrepareStepInSuspendedGenerator(); |
| 1872 return isolate->heap()->undefined_value(); | 1872 return isolate->heap()->undefined_value(); |
| 1873 } | 1873 } |
| 1874 | 1874 |
| 1875 RUNTIME_FUNCTION(Runtime_DebugRecordAsyncFunction) { | 1875 RUNTIME_FUNCTION(Runtime_DebugRecordGenerator) { |
| 1876 HandleScope scope(isolate); | 1876 HandleScope scope(isolate); |
| 1877 DCHECK_EQ(1, args.length()); | 1877 DCHECK_EQ(1, args.length()); |
| 1878 CONVERT_ARG_HANDLE_CHECKED(JSGeneratorObject, generator, 0); | 1878 CONVERT_ARG_HANDLE_CHECKED(JSGeneratorObject, generator, 0); |
| 1879 CHECK(isolate->debug()->last_step_action() >= StepNext); | 1879 CHECK(isolate->debug()->last_step_action() >= StepNext); |
| 1880 isolate->debug()->RecordAsyncFunction(generator); | 1880 isolate->debug()->RecordGenerator(generator); |
| 1881 return isolate->heap()->undefined_value(); | 1881 return isolate->heap()->undefined_value(); |
| 1882 } | 1882 } |
| 1883 | 1883 |
| 1884 RUNTIME_FUNCTION(Runtime_DebugPushPromise) { | 1884 RUNTIME_FUNCTION(Runtime_DebugPushPromise) { |
| 1885 DCHECK(args.length() == 1); | 1885 DCHECK(args.length() == 1); |
| 1886 HandleScope scope(isolate); | 1886 HandleScope scope(isolate); |
| 1887 CONVERT_ARG_HANDLE_CHECKED(JSObject, promise, 0); | 1887 CONVERT_ARG_HANDLE_CHECKED(JSObject, promise, 0); |
| 1888 isolate->PushPromise(promise); | 1888 isolate->PushPromise(promise); |
| 1889 return isolate->heap()->undefined_value(); | 1889 return isolate->heap()->undefined_value(); |
| 1890 } | 1890 } |
| (...skipping 29 matching lines...) Expand all Loading... |
| 1920 } | 1920 } |
| 1921 | 1921 |
| 1922 | 1922 |
| 1923 RUNTIME_FUNCTION(Runtime_DebugBreakInOptimizedCode) { | 1923 RUNTIME_FUNCTION(Runtime_DebugBreakInOptimizedCode) { |
| 1924 UNIMPLEMENTED(); | 1924 UNIMPLEMENTED(); |
| 1925 return NULL; | 1925 return NULL; |
| 1926 } | 1926 } |
| 1927 | 1927 |
| 1928 } // namespace internal | 1928 } // namespace internal |
| 1929 } // namespace v8 | 1929 } // namespace v8 |
| OLD | NEW |