| OLD | NEW |
| 1 // Copyright 2015 the V8 project authors. All rights reserved. | 1 // Copyright 2015 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 #ifndef V8_INTERPRETER_INTERPRETER_INTRINSICS_H_ | 5 #ifndef V8_INTERPRETER_INTERPRETER_INTRINSICS_H_ |
| 6 #define V8_INTERPRETER_INTERPRETER_INTRINSICS_H_ | 6 #define V8_INTERPRETER_INTERPRETER_INTRINSICS_H_ |
| 7 | 7 |
| 8 #include "src/runtime/runtime.h" | 8 #include "src/runtime/runtime.h" |
| 9 | 9 |
| 10 namespace v8 { | 10 namespace v8 { |
| 11 namespace internal { | 11 namespace internal { |
| 12 namespace interpreter { | 12 namespace interpreter { |
| 13 | 13 |
| 14 // List of supported intrisics, with upper case name, lower case name and | 14 // List of supported intrisics, with upper case name, lower case name and |
| 15 // expected number of arguments (-1 denoting argument count is variable). | 15 // expected number of arguments (-1 denoting argument count is variable). |
| 16 #define INTRINSICS_LIST(V) \ | 16 #define INTRINSICS_LIST(V) \ |
| 17 V(AsyncGeneratorGetAwaitInputOrDebugPos, \ | 17 V(AsyncGeneratorGetAwaitInputOrDebugPos, \ |
| 18 async_generator_get_await_input_or_debug_pos, 1) \ | 18 async_generator_get_await_input_or_debug_pos, 1) \ |
| 19 V(AsyncGeneratorReject, async_generator_reject, 2) \ | 19 V(AsyncGeneratorReject, async_generator_reject, 2) \ |
| 20 V(AsyncGeneratorResolve, async_generator_resolve, 3) \ | 20 V(AsyncGeneratorResolve, async_generator_resolve, 3) \ |
| 21 V(CreateJSGeneratorObject, create_js_generator_object, 2) \ | 21 V(CreateJSGeneratorObject, create_js_generator_object, 2) \ |
| 22 V(Call, call, -1) \ | 22 V(Call, call, -1) \ |
| 23 V(ClassOf, class_of, 1) \ | 23 V(ClassOf, class_of, 1) \ |
| 24 V(CreateIterResultObject, create_iter_result_object, 2) \ | 24 V(CreateIterResultObject, create_iter_result_object, 2) \ |
| 25 V(CreateAsyncFromSyncIterator, create_async_from_sync_iterator, 1) \ | 25 V(CreateAsyncFromSyncIterator, create_async_from_sync_iterator, 1) \ |
| 26 V(HasProperty, has_property, 2) \ | 26 V(HasProperty, has_property, 2) \ |
| 27 V(IsArray, is_array, 1) \ | 27 V(IsArray, is_array, 1) \ |
| 28 V(IsJSMap, is_js_map, 1) \ |
| 29 V(IsJSMapIterator, is_js_map_iterator, 1) \ |
| 28 V(IsJSProxy, is_js_proxy, 1) \ | 30 V(IsJSProxy, is_js_proxy, 1) \ |
| 29 V(IsJSReceiver, is_js_receiver, 1) \ | 31 V(IsJSReceiver, is_js_receiver, 1) \ |
| 32 V(IsJSSet, is_js_set, 1) \ |
| 33 V(IsJSSetIterator, is_js_set_iterator, 1) \ |
| 34 V(IsJSWeakMap, is_js_weak_map, 1) \ |
| 35 V(IsJSWeakSet, is_js_weak_set, 1) \ |
| 30 V(IsSmi, is_smi, 1) \ | 36 V(IsSmi, is_smi, 1) \ |
| 31 V(IsTypedArray, is_typed_array, 1) \ | 37 V(IsTypedArray, is_typed_array, 1) \ |
| 32 V(SubString, sub_string, 3) \ | 38 V(SubString, sub_string, 3) \ |
| 33 V(ToString, to_string, 1) \ | 39 V(ToString, to_string, 1) \ |
| 34 V(ToLength, to_length, 1) \ | 40 V(ToLength, to_length, 1) \ |
| 35 V(ToInteger, to_integer, 1) \ | 41 V(ToInteger, to_integer, 1) \ |
| 36 V(ToNumber, to_number, 1) \ | 42 V(ToNumber, to_number, 1) \ |
| 37 V(ToObject, to_object, 1) | 43 V(ToObject, to_object, 1) |
| 38 | 44 |
| 39 class IntrinsicsHelper { | 45 class IntrinsicsHelper { |
| (...skipping 12 matching lines...) Expand all Loading... |
| 52 | 58 |
| 53 private: | 59 private: |
| 54 DISALLOW_IMPLICIT_CONSTRUCTORS(IntrinsicsHelper); | 60 DISALLOW_IMPLICIT_CONSTRUCTORS(IntrinsicsHelper); |
| 55 }; | 61 }; |
| 56 | 62 |
| 57 } // namespace interpreter | 63 } // namespace interpreter |
| 58 } // namespace internal | 64 } // namespace internal |
| 59 } // namespace v8 | 65 } // namespace v8 |
| 60 | 66 |
| 61 #endif | 67 #endif |
| OLD | NEW |