| 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 177 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  188 RUNTIME_FUNCTION(Runtime_ThrowIncompatibleMethodReceiver) { |  188 RUNTIME_FUNCTION(Runtime_ThrowIncompatibleMethodReceiver) { | 
|  189   HandleScope scope(isolate); |  189   HandleScope scope(isolate); | 
|  190   DCHECK_EQ(2, args.length()); |  190   DCHECK_EQ(2, args.length()); | 
|  191   CONVERT_ARG_HANDLE_CHECKED(Object, arg0, 0); |  191   CONVERT_ARG_HANDLE_CHECKED(Object, arg0, 0); | 
|  192   CONVERT_ARG_HANDLE_CHECKED(Object, arg1, 1); |  192   CONVERT_ARG_HANDLE_CHECKED(Object, arg1, 1); | 
|  193   THROW_NEW_ERROR_RETURN_FAILURE( |  193   THROW_NEW_ERROR_RETURN_FAILURE( | 
|  194       isolate, |  194       isolate, | 
|  195       NewTypeError(MessageTemplate::kIncompatibleMethodReceiver, arg0, arg1)); |  195       NewTypeError(MessageTemplate::kIncompatibleMethodReceiver, arg0, arg1)); | 
|  196 } |  196 } | 
|  197  |  197  | 
 |  198 RUNTIME_FUNCTION(Runtime_ThrowInvalidHint) { | 
 |  199   HandleScope scope(isolate); | 
 |  200   DCHECK_EQ(1, args.length()); | 
 |  201   CONVERT_ARG_HANDLE_CHECKED(Object, hint, 0); | 
 |  202   THROW_NEW_ERROR_RETURN_FAILURE( | 
 |  203       isolate, NewTypeError(MessageTemplate::kInvalidHint, hint)); | 
 |  204 } | 
 |  205  | 
|  198 RUNTIME_FUNCTION(Runtime_ThrowInvalidStringLength) { |  206 RUNTIME_FUNCTION(Runtime_ThrowInvalidStringLength) { | 
|  199   HandleScope scope(isolate); |  207   HandleScope scope(isolate); | 
|  200   THROW_NEW_ERROR_RETURN_FAILURE(isolate, NewInvalidStringLengthError()); |  208   THROW_NEW_ERROR_RETURN_FAILURE(isolate, NewInvalidStringLengthError()); | 
|  201 } |  209 } | 
|  202  |  210  | 
|  203 RUNTIME_FUNCTION(Runtime_ThrowIteratorResultNotAnObject) { |  211 RUNTIME_FUNCTION(Runtime_ThrowIteratorResultNotAnObject) { | 
|  204   HandleScope scope(isolate); |  212   HandleScope scope(isolate); | 
|  205   DCHECK(args.length() == 1); |  213   DCHECK(args.length() == 1); | 
|  206   CONVERT_ARG_HANDLE_CHECKED(Object, value, 0); |  214   CONVERT_ARG_HANDLE_CHECKED(Object, value, 0); | 
|  207   THROW_NEW_ERROR_RETURN_FAILURE( |  215   THROW_NEW_ERROR_RETURN_FAILURE( | 
| (...skipping 271 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  479  |  487  | 
|  480 RUNTIME_FUNCTION(Runtime_Typeof) { |  488 RUNTIME_FUNCTION(Runtime_Typeof) { | 
|  481   HandleScope scope(isolate); |  489   HandleScope scope(isolate); | 
|  482   DCHECK_EQ(1, args.length()); |  490   DCHECK_EQ(1, args.length()); | 
|  483   CONVERT_ARG_HANDLE_CHECKED(Object, object, 0); |  491   CONVERT_ARG_HANDLE_CHECKED(Object, object, 0); | 
|  484   return *Object::TypeOf(isolate, object); |  492   return *Object::TypeOf(isolate, object); | 
|  485 } |  493 } | 
|  486  |  494  | 
|  487 }  // namespace internal |  495 }  // namespace internal | 
|  488 }  // namespace v8 |  496 }  // namespace v8 | 
| OLD | NEW |