| 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 216 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 227 DCHECK_EQ(2, args.length()); | 227 DCHECK_EQ(2, args.length()); |
| 228 CONVERT_ARG_HANDLE_CHECKED(Object, arg0, 0); | 228 CONVERT_ARG_HANDLE_CHECKED(Object, arg0, 0); |
| 229 CONVERT_ARG_HANDLE_CHECKED(Object, arg1, 1); | 229 CONVERT_ARG_HANDLE_CHECKED(Object, arg1, 1); |
| 230 THROW_NEW_ERROR_RETURN_FAILURE( | 230 THROW_NEW_ERROR_RETURN_FAILURE( |
| 231 isolate, | 231 isolate, |
| 232 NewTypeError(MessageTemplate::kIncompatibleMethodReceiver, arg0, arg1)); | 232 NewTypeError(MessageTemplate::kIncompatibleMethodReceiver, arg0, arg1)); |
| 233 } | 233 } |
| 234 | 234 |
| 235 RUNTIME_FUNCTION(Runtime_ThrowInvalidStringLength) { | 235 RUNTIME_FUNCTION(Runtime_ThrowInvalidStringLength) { |
| 236 HandleScope scope(isolate); | 236 HandleScope scope(isolate); |
| 237 THROW_NEW_ERROR_RETURN_FAILURE(isolate, NewInvalidStringLengthError()); | 237 THROW_NEW_ERROR_RETURN_FAILURE( |
| 238 isolate, NewRangeError(MessageTemplate::kInvalidStringLength)); |
| 238 } | 239 } |
| 239 | 240 |
| 240 RUNTIME_FUNCTION(Runtime_ThrowIteratorResultNotAnObject) { | 241 RUNTIME_FUNCTION(Runtime_ThrowIteratorResultNotAnObject) { |
| 241 HandleScope scope(isolate); | 242 HandleScope scope(isolate); |
| 242 DCHECK(args.length() == 1); | 243 DCHECK(args.length() == 1); |
| 243 CONVERT_ARG_HANDLE_CHECKED(Object, value, 0); | 244 CONVERT_ARG_HANDLE_CHECKED(Object, value, 0); |
| 244 THROW_NEW_ERROR_RETURN_FAILURE( | 245 THROW_NEW_ERROR_RETURN_FAILURE( |
| 245 isolate, | 246 isolate, |
| 246 NewTypeError(MessageTemplate::kIteratorResultNotAnObject, value)); | 247 NewTypeError(MessageTemplate::kIteratorResultNotAnObject, value)); |
| 247 } | 248 } |
| (...skipping 341 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 589 | 590 |
| 590 RUNTIME_FUNCTION(Runtime_Typeof) { | 591 RUNTIME_FUNCTION(Runtime_Typeof) { |
| 591 HandleScope scope(isolate); | 592 HandleScope scope(isolate); |
| 592 DCHECK_EQ(1, args.length()); | 593 DCHECK_EQ(1, args.length()); |
| 593 CONVERT_ARG_HANDLE_CHECKED(Object, object, 0); | 594 CONVERT_ARG_HANDLE_CHECKED(Object, object, 0); |
| 594 return *Object::TypeOf(isolate, object); | 595 return *Object::TypeOf(isolate, object); |
| 595 } | 596 } |
| 596 | 597 |
| 597 } // namespace internal | 598 } // namespace internal |
| 598 } // namespace v8 | 599 } // namespace v8 |
| OLD | NEW |