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/allocation.h" | 8 #include "src/allocation.h" |
9 #include "src/base/smart-pointers.h" | 9 #include "src/base/smart-pointers.h" |
10 #include "src/builtins.h" | 10 #include "src/builtins.h" |
11 #include "src/frames.h" | 11 #include "src/frames.h" |
12 #include "src/interpreter/bytecodes.h" | 12 #include "src/interpreter/bytecodes.h" |
13 #include "src/interpreter/interpreter-assembler.h" | 13 #include "src/interpreter/interpreter-assembler.h" |
14 #include "src/runtime/runtime.h" | 14 #include "src/runtime/runtime.h" |
15 | 15 |
16 namespace v8 { | 16 namespace v8 { |
17 namespace internal { | 17 namespace internal { |
18 | 18 |
19 namespace compiler { | 19 namespace compiler { |
20 class Node; | 20 class Node; |
21 } // namespace compiler | 21 } // namespace compiler |
22 | 22 |
23 namespace interpreter { | 23 namespace interpreter { |
24 | 24 |
25 // List of supported intrisics, with upper case name, lower case name and | 25 // List of supported intrisics, with upper case name, lower case name and |
26 // expected number of arguments (-1 denoting argument count is variable). | 26 // expected number of arguments (-1 denoting argument count is variable). |
27 #define INTRINSICS_LIST(V) \ | 27 #define INTRINSICS_LIST(V) \ |
28 V(Call, call, -1) \ | 28 V(Call, call, -1) \ |
| 29 V(ClassOf, class_of, 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(IsJSProxy, is_js_proxy, 1) \ | 32 V(IsJSProxy, is_js_proxy, 1) \ |
32 V(IsJSReceiver, is_js_receiver, 1) \ | 33 V(IsJSReceiver, is_js_receiver, 1) \ |
33 V(IsRegExp, is_regexp, 1) \ | 34 V(IsRegExp, is_regexp, 1) \ |
34 V(IsSmi, is_smi, 1) \ | 35 V(IsSmi, is_smi, 1) \ |
35 V(IsTypedArray, is_typed_array, 1) \ | 36 V(IsTypedArray, is_typed_array, 1) \ |
36 V(NewObject, new_object, 2) \ | 37 V(NewObject, new_object, 2) \ |
37 V(NumberToString, number_to_string, 1) \ | 38 V(NumberToString, number_to_string, 1) \ |
38 V(RegExpConstructResult, reg_exp_construct_result, 3) \ | 39 V(RegExpConstructResult, reg_exp_construct_result, 3) \ |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
95 InterpreterAssembler* assembler_; | 96 InterpreterAssembler* assembler_; |
96 | 97 |
97 DISALLOW_COPY_AND_ASSIGN(IntrinsicsHelper); | 98 DISALLOW_COPY_AND_ASSIGN(IntrinsicsHelper); |
98 }; | 99 }; |
99 | 100 |
100 } // namespace interpreter | 101 } // namespace interpreter |
101 } // namespace internal | 102 } // namespace internal |
102 } // namespace v8 | 103 } // namespace v8 |
103 | 104 |
104 #endif | 105 #endif |
OLD | NEW |