| 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 191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 202 | 202 |
| 203 RUNTIME_FUNCTION(Runtime_ThrowIteratorResultNotAnObject) { | 203 RUNTIME_FUNCTION(Runtime_ThrowIteratorResultNotAnObject) { |
| 204 HandleScope scope(isolate); | 204 HandleScope scope(isolate); |
| 205 DCHECK(args.length() == 1); | 205 DCHECK(args.length() == 1); |
| 206 CONVERT_ARG_HANDLE_CHECKED(Object, value, 0); | 206 CONVERT_ARG_HANDLE_CHECKED(Object, value, 0); |
| 207 THROW_NEW_ERROR_RETURN_FAILURE( | 207 THROW_NEW_ERROR_RETURN_FAILURE( |
| 208 isolate, | 208 isolate, |
| 209 NewTypeError(MessageTemplate::kIteratorResultNotAnObject, value)); | 209 NewTypeError(MessageTemplate::kIteratorResultNotAnObject, value)); |
| 210 } | 210 } |
| 211 | 211 |
| 212 RUNTIME_FUNCTION(Runtime_ThrowSymbolIteratorInvalid) { |
| 213 HandleScope scope(isolate); |
| 214 DCHECK(args.length() == 0); |
| 215 THROW_NEW_ERROR_RETURN_FAILURE( |
| 216 isolate, NewTypeError(MessageTemplate::kSymbolIteratorInvalid)); |
| 217 } |
| 218 |
| 212 RUNTIME_FUNCTION(Runtime_ThrowNotGeneric) { | 219 RUNTIME_FUNCTION(Runtime_ThrowNotGeneric) { |
| 213 HandleScope scope(isolate); | 220 HandleScope scope(isolate); |
| 214 DCHECK_EQ(1, args.length()); | 221 DCHECK_EQ(1, args.length()); |
| 215 CONVERT_ARG_HANDLE_CHECKED(Object, arg0, 0); | 222 CONVERT_ARG_HANDLE_CHECKED(Object, arg0, 0); |
| 216 THROW_NEW_ERROR_RETURN_FAILURE( | 223 THROW_NEW_ERROR_RETURN_FAILURE( |
| 217 isolate, NewTypeError(MessageTemplate::kNotGeneric, arg0)); | 224 isolate, NewTypeError(MessageTemplate::kNotGeneric, arg0)); |
| 218 } | 225 } |
| 219 | 226 |
| 220 RUNTIME_FUNCTION(Runtime_ThrowGeneratorRunning) { | 227 RUNTIME_FUNCTION(Runtime_ThrowGeneratorRunning) { |
| 221 HandleScope scope(isolate); | 228 HandleScope scope(isolate); |
| (...skipping 250 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 472 | 479 |
| 473 RUNTIME_FUNCTION(Runtime_Typeof) { | 480 RUNTIME_FUNCTION(Runtime_Typeof) { |
| 474 HandleScope scope(isolate); | 481 HandleScope scope(isolate); |
| 475 DCHECK_EQ(1, args.length()); | 482 DCHECK_EQ(1, args.length()); |
| 476 CONVERT_ARG_HANDLE_CHECKED(Object, object, 0); | 483 CONVERT_ARG_HANDLE_CHECKED(Object, object, 0); |
| 477 return *Object::TypeOf(isolate, object); | 484 return *Object::TypeOf(isolate, object); |
| 478 } | 485 } |
| 479 | 486 |
| 480 } // namespace internal | 487 } // namespace internal |
| 481 } // namespace v8 | 488 } // namespace v8 |
| OLD | NEW |