OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 <stdlib.h> | 5 #include <stdlib.h> |
6 #include <limits> | 6 #include <limits> |
7 | 7 |
8 #include "src/v8.h" | 8 #include "src/v8.h" |
9 | 9 |
10 #include "src/accessors.h" | 10 #include "src/accessors.h" |
(...skipping 2786 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2797 | 2797 |
2798 | 2798 |
2799 RUNTIME_FUNCTION(Runtime_FunctionIsGenerator) { | 2799 RUNTIME_FUNCTION(Runtime_FunctionIsGenerator) { |
2800 SealHandleScope shs(isolate); | 2800 SealHandleScope shs(isolate); |
2801 ASSERT(args.length() == 1); | 2801 ASSERT(args.length() == 1); |
2802 CONVERT_ARG_CHECKED(JSFunction, f, 0); | 2802 CONVERT_ARG_CHECKED(JSFunction, f, 0); |
2803 return isolate->heap()->ToBoolean(f->shared()->is_generator()); | 2803 return isolate->heap()->ToBoolean(f->shared()->is_generator()); |
2804 } | 2804 } |
2805 | 2805 |
2806 | 2806 |
| 2807 RUNTIME_FUNCTION(Runtime_FunctionIsArrow) { |
| 2808 SealHandleScope shs(isolate); |
| 2809 ASSERT(args.length() == 1); |
| 2810 CONVERT_ARG_CHECKED(JSFunction, f, 0); |
| 2811 return isolate->heap()->ToBoolean(f->shared()->is_arrow()); |
| 2812 } |
| 2813 |
| 2814 |
2807 RUNTIME_FUNCTION(Runtime_FunctionRemovePrototype) { | 2815 RUNTIME_FUNCTION(Runtime_FunctionRemovePrototype) { |
2808 SealHandleScope shs(isolate); | 2816 SealHandleScope shs(isolate); |
2809 ASSERT(args.length() == 1); | 2817 ASSERT(args.length() == 1); |
2810 | 2818 |
2811 CONVERT_ARG_CHECKED(JSFunction, f, 0); | 2819 CONVERT_ARG_CHECKED(JSFunction, f, 0); |
2812 RUNTIME_ASSERT(f->RemovePrototype()); | 2820 RUNTIME_ASSERT(f->RemovePrototype()); |
2813 | 2821 |
2814 return isolate->heap()->undefined_value(); | 2822 return isolate->heap()->undefined_value(); |
2815 } | 2823 } |
2816 | 2824 |
(...skipping 12288 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
15105 } | 15113 } |
15106 return NULL; | 15114 return NULL; |
15107 } | 15115 } |
15108 | 15116 |
15109 | 15117 |
15110 const Runtime::Function* Runtime::FunctionForId(Runtime::FunctionId id) { | 15118 const Runtime::Function* Runtime::FunctionForId(Runtime::FunctionId id) { |
15111 return &(kIntrinsicFunctions[static_cast<int>(id)]); | 15119 return &(kIntrinsicFunctions[static_cast<int>(id)]); |
15112 } | 15120 } |
15113 | 15121 |
15114 } } // namespace v8::internal | 15122 } } // namespace v8::internal |
OLD | NEW |