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 "src/accessors.h" | 7 #include "src/accessors.h" |
8 #include "src/arguments.h" | 8 #include "src/arguments.h" |
9 #include "src/compiler.h" | 9 #include "src/compiler.h" |
10 #include "src/deoptimizer.h" | 10 #include "src/deoptimizer.h" |
(...skipping 585 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
596 return isolate->heap()->ToBoolean(obj->IsJSFunction()); | 596 return isolate->heap()->ToBoolean(obj->IsJSFunction()); |
597 } | 597 } |
598 | 598 |
599 | 599 |
600 RUNTIME_FUNCTION(Runtime_ThrowStrongModeTooFewArguments) { | 600 RUNTIME_FUNCTION(Runtime_ThrowStrongModeTooFewArguments) { |
601 HandleScope scope(isolate); | 601 HandleScope scope(isolate); |
602 DCHECK(args.length() == 0); | 602 DCHECK(args.length() == 0); |
603 THROW_NEW_ERROR_RETURN_FAILURE(isolate, | 603 THROW_NEW_ERROR_RETURN_FAILURE(isolate, |
604 NewTypeError(MessageTemplate::kStrongArity)); | 604 NewTypeError(MessageTemplate::kStrongArity)); |
605 } | 605 } |
| 606 |
606 } // namespace internal | 607 } // namespace internal |
607 } // namespace v8 | 608 } // namespace v8 |
OLD | NEW |