| 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/v8.h" | 5 #include "src/v8.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" |
| 11 #include "src/frames.h" | 11 #include "src/frames.h" |
| 12 #include "src/runtime/runtime.h" | |
| 13 #include "src/runtime/runtime-utils.h" | 12 #include "src/runtime/runtime-utils.h" |
| 14 | 13 |
| 15 namespace v8 { | 14 namespace v8 { |
| 16 namespace internal { | 15 namespace internal { |
| 17 | 16 |
| 18 RUNTIME_FUNCTION(Runtime_IsSloppyModeFunction) { | 17 RUNTIME_FUNCTION(Runtime_IsSloppyModeFunction) { |
| 19 SealHandleScope shs(isolate); | 18 SealHandleScope shs(isolate); |
| 20 DCHECK(args.length() == 1); | 19 DCHECK(args.length() == 1); |
| 21 CONVERT_ARG_CHECKED(JSReceiver, callable, 0); | 20 CONVERT_ARG_CHECKED(JSReceiver, callable, 0); |
| 22 if (!callable->IsJSFunction()) { | 21 if (!callable->IsJSFunction()) { |
| (...skipping 575 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 598 | 597 |
| 599 | 598 |
| 600 RUNTIME_FUNCTION(RuntimeReference_IsFunction) { | 599 RUNTIME_FUNCTION(RuntimeReference_IsFunction) { |
| 601 SealHandleScope shs(isolate); | 600 SealHandleScope shs(isolate); |
| 602 DCHECK(args.length() == 1); | 601 DCHECK(args.length() == 1); |
| 603 CONVERT_ARG_CHECKED(Object, obj, 0); | 602 CONVERT_ARG_CHECKED(Object, obj, 0); |
| 604 return isolate->heap()->ToBoolean(obj->IsJSFunction()); | 603 return isolate->heap()->ToBoolean(obj->IsJSFunction()); |
| 605 } | 604 } |
| 606 } | 605 } |
| 607 } // namespace v8::internal | 606 } // namespace v8::internal |
| OLD | NEW |