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_ThrowNonCallableInInstanceOfCheck) { |
| 229 HandleScope scope(isolate); |
| 230 THROW_NEW_ERROR_RETURN_FAILURE( |
| 231 isolate, NewTypeError(MessageTemplate::kNonCallableInInstanceOfCheck)); |
| 232 } |
| 233 |
| 234 RUNTIME_FUNCTION(Runtime_ThrowNonObjectInInstanceOfCheck) { |
| 235 HandleScope scope(isolate); |
| 236 THROW_NEW_ERROR_RETURN_FAILURE( |
| 237 isolate, NewTypeError(MessageTemplate::kNonObjectInInstanceOfCheck)); |
| 238 } |
| 239 |
228 RUNTIME_FUNCTION(Runtime_ThrowNotGeneric) { | 240 RUNTIME_FUNCTION(Runtime_ThrowNotGeneric) { |
229 HandleScope scope(isolate); | 241 HandleScope scope(isolate); |
230 DCHECK_EQ(1, args.length()); | 242 DCHECK_EQ(1, args.length()); |
231 CONVERT_ARG_HANDLE_CHECKED(Object, arg0, 0); | 243 CONVERT_ARG_HANDLE_CHECKED(Object, arg0, 0); |
232 THROW_NEW_ERROR_RETURN_FAILURE( | 244 THROW_NEW_ERROR_RETURN_FAILURE( |
233 isolate, NewTypeError(MessageTemplate::kNotGeneric, arg0)); | 245 isolate, NewTypeError(MessageTemplate::kNotGeneric, arg0)); |
234 } | 246 } |
235 | 247 |
236 RUNTIME_FUNCTION(Runtime_ThrowGeneratorRunning) { | 248 RUNTIME_FUNCTION(Runtime_ThrowGeneratorRunning) { |
237 HandleScope scope(isolate); | 249 HandleScope scope(isolate); |
(...skipping 254 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
492 HandleScope scope(isolate); | 504 HandleScope scope(isolate); |
493 DCHECK_EQ(1, args.length()); | 505 DCHECK_EQ(1, args.length()); |
494 CONVERT_ARG_HANDLE_CHECKED(JSFunction, target, 0); | 506 CONVERT_ARG_HANDLE_CHECKED(JSFunction, target, 0); |
495 Handle<JSObject> global_proxy(target->global_proxy(), isolate); | 507 Handle<JSObject> global_proxy(target->global_proxy(), isolate); |
496 return *isolate->factory()->ToBoolean( | 508 return *isolate->factory()->ToBoolean( |
497 Builtins::AllowDynamicFunction(isolate, target, global_proxy)); | 509 Builtins::AllowDynamicFunction(isolate, target, global_proxy)); |
498 } | 510 } |
499 | 511 |
500 } // namespace internal | 512 } // namespace internal |
501 } // namespace v8 | 513 } // namespace v8 |
OLD | NEW |