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(GeneratorGetContext, generator_get_context, 1) \ | 22 V(GeneratorGetContext, generator_get_context, 1) \ |
23 V(GeneratorGetResumeMode, generator_get_resume_mode, 1) \ | 23 V(GeneratorGetResumeMode, generator_get_resume_mode, 1) \ |
24 V(GeneratorGetInputOrDebugPos, generator_get_input_or_debug_pos, 1) \ | 24 V(GeneratorGetInputOrDebugPos, generator_get_input_or_debug_pos, 1) \ |
| 25 V(GeneratorClose, generator_close, 1) \ |
25 V(Call, call, -1) \ | 26 V(Call, call, -1) \ |
26 V(ClassOf, class_of, 1) \ | 27 V(ClassOf, class_of, 1) \ |
27 V(CreateIterResultObject, create_iter_result_object, 2) \ | 28 V(CreateIterResultObject, create_iter_result_object, 2) \ |
28 V(CreateAsyncFromSyncIterator, create_async_from_sync_iterator, 1) \ | 29 V(CreateAsyncFromSyncIterator, create_async_from_sync_iterator, 1) \ |
29 V(HasProperty, has_property, 2) \ | 30 V(HasProperty, has_property, 2) \ |
30 V(IsArray, is_array, 1) \ | 31 V(IsArray, is_array, 1) \ |
31 V(IsJSMap, is_js_map, 1) \ | 32 V(IsJSMap, is_js_map, 1) \ |
32 V(IsJSMapIterator, is_js_map_iterator, 1) \ | 33 V(IsJSMapIterator, is_js_map_iterator, 1) \ |
33 V(IsJSProxy, is_js_proxy, 1) \ | 34 V(IsJSProxy, is_js_proxy, 1) \ |
34 V(IsJSReceiver, is_js_receiver, 1) \ | 35 V(IsJSReceiver, is_js_receiver, 1) \ |
(...skipping 26 matching lines...) Expand all Loading... |
61 | 62 |
62 private: | 63 private: |
63 DISALLOW_IMPLICIT_CONSTRUCTORS(IntrinsicsHelper); | 64 DISALLOW_IMPLICIT_CONSTRUCTORS(IntrinsicsHelper); |
64 }; | 65 }; |
65 | 66 |
66 } // namespace interpreter | 67 } // namespace interpreter |
67 } // namespace internal | 68 } // namespace internal |
68 } // namespace v8 | 69 } // namespace v8 |
69 | 70 |
70 #endif | 71 #endif |
OLD | NEW |