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/compiler.h" | 8 #include "src/compiler.h" |
9 #include "src/debug/debug-coverage.h" | 9 #include "src/debug/debug-coverage.h" |
10 #include "src/debug/debug-evaluate.h" | 10 #include "src/debug/debug-evaluate.h" |
(...skipping 1951 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1962 return *factory->NewJSArrayWithElements(scripts_array, FAST_ELEMENTS); | 1962 return *factory->NewJSArrayWithElements(scripts_array, FAST_ELEMENTS); |
1963 } | 1963 } |
1964 | 1964 |
1965 RUNTIME_FUNCTION(Runtime_DebugTogglePreciseCoverage) { | 1965 RUNTIME_FUNCTION(Runtime_DebugTogglePreciseCoverage) { |
1966 SealHandleScope shs(isolate); | 1966 SealHandleScope shs(isolate); |
1967 CONVERT_BOOLEAN_ARG_CHECKED(enable, 0); | 1967 CONVERT_BOOLEAN_ARG_CHECKED(enable, 0); |
1968 Coverage::TogglePrecise(isolate, enable); | 1968 Coverage::TogglePrecise(isolate, enable); |
1969 return isolate->heap()->undefined_value(); | 1969 return isolate->heap()->undefined_value(); |
1970 } | 1970 } |
1971 | 1971 |
| 1972 RUNTIME_FUNCTION(Runtime_DebugMarkAsPromiseBuiltin) { |
| 1973 HandleScope scope(isolate); |
| 1974 DCHECK_EQ(1, args.length()); |
| 1975 CONVERT_ARG_HANDLE_CHECKED(JSFunction, fun, 0); |
| 1976 fun->shared()->set_is_promise_builtin(true); |
| 1977 return isolate->heap()->undefined_value(); |
| 1978 } |
| 1979 |
1972 } // namespace internal | 1980 } // namespace internal |
1973 } // namespace v8 | 1981 } // namespace v8 |
OLD | NEW |