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 <memory> | 7 #include <memory> |
8 | 8 |
9 #include "src/arguments.h" | 9 #include "src/arguments.h" |
10 #include "src/ast/prettyprinter.h" | 10 #include "src/ast/prettyprinter.h" |
(...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
218 NewTypeError(MessageTemplate::kIteratorResultNotAnObject, value)); | 218 NewTypeError(MessageTemplate::kIteratorResultNotAnObject, value)); |
219 } | 219 } |
220 | 220 |
221 RUNTIME_FUNCTION(Runtime_ThrowSymbolIteratorInvalid) { | 221 RUNTIME_FUNCTION(Runtime_ThrowSymbolIteratorInvalid) { |
222 HandleScope scope(isolate); | 222 HandleScope scope(isolate); |
223 DCHECK_EQ(0, args.length()); | 223 DCHECK_EQ(0, args.length()); |
224 THROW_NEW_ERROR_RETURN_FAILURE( | 224 THROW_NEW_ERROR_RETURN_FAILURE( |
225 isolate, NewTypeError(MessageTemplate::kSymbolIteratorInvalid)); | 225 isolate, NewTypeError(MessageTemplate::kSymbolIteratorInvalid)); |
226 } | 226 } |
227 | 227 |
| 228 RUNTIME_FUNCTION(Runtime_ThrowSymbolAsyncIteratorInvalid) { |
| 229 HandleScope scope(isolate); |
| 230 DCHECK(args.length() == 0); |
| 231 THROW_NEW_ERROR_RETURN_FAILURE( |
| 232 isolate, NewTypeError(MessageTemplate::kSymbolAsyncIteratorInvalid)); |
| 233 } |
| 234 |
228 RUNTIME_FUNCTION(Runtime_ThrowNotGeneric) { | 235 RUNTIME_FUNCTION(Runtime_ThrowNotGeneric) { |
229 HandleScope scope(isolate); | 236 HandleScope scope(isolate); |
230 DCHECK_EQ(1, args.length()); | 237 DCHECK_EQ(1, args.length()); |
231 CONVERT_ARG_HANDLE_CHECKED(Object, arg0, 0); | 238 CONVERT_ARG_HANDLE_CHECKED(Object, arg0, 0); |
232 THROW_NEW_ERROR_RETURN_FAILURE( | 239 THROW_NEW_ERROR_RETURN_FAILURE( |
233 isolate, NewTypeError(MessageTemplate::kNotGeneric, arg0)); | 240 isolate, NewTypeError(MessageTemplate::kNotGeneric, arg0)); |
234 } | 241 } |
235 | 242 |
236 RUNTIME_FUNCTION(Runtime_ThrowGeneratorRunning) { | 243 RUNTIME_FUNCTION(Runtime_ThrowGeneratorRunning) { |
237 HandleScope scope(isolate); | 244 HandleScope scope(isolate); |
(...skipping 253 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
491 | 498 |
492 RUNTIME_FUNCTION(Runtime_AllowDynamicFunction) { | 499 RUNTIME_FUNCTION(Runtime_AllowDynamicFunction) { |
493 HandleScope scope(isolate); | 500 HandleScope scope(isolate); |
494 DCHECK_EQ(1, args.length()); | 501 DCHECK_EQ(1, args.length()); |
495 CONVERT_ARG_HANDLE_CHECKED(JSFunction, target, 0); | 502 CONVERT_ARG_HANDLE_CHECKED(JSFunction, target, 0); |
496 Handle<JSObject> global_proxy(target->global_proxy(), isolate); | 503 Handle<JSObject> global_proxy(target->global_proxy(), isolate); |
497 return *isolate->factory()->ToBoolean( | 504 return *isolate->factory()->ToBoolean( |
498 Builtins::AllowDynamicFunction(isolate, target, global_proxy)); | 505 Builtins::AllowDynamicFunction(isolate, target, global_proxy)); |
499 } | 506 } |
500 | 507 |
| 508 RUNTIME_FUNCTION(Runtime_CreateAsyncFromSyncIterator) { |
| 509 // TODO(caitp): split AsyncFromSyncIterator functionality out of |
| 510 // https://codereview.chromium.org/2622833002 |
| 511 UNREACHABLE(); |
| 512 } |
| 513 |
501 } // namespace internal | 514 } // namespace internal |
502 } // namespace v8 | 515 } // namespace v8 |
OLD | NEW |