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/builtins/builtins.h" | 9 #include "src/builtins/builtins.h" |
10 #include "src/frames.h" | 10 #include "src/frames.h" |
(...skipping 22 matching lines...) Expand all Loading... |
33 V(IsJSReceiver, is_js_receiver, 1) \ | 33 V(IsJSReceiver, is_js_receiver, 1) \ |
34 V(IsSmi, is_smi, 1) \ | 34 V(IsSmi, is_smi, 1) \ |
35 V(IsTypedArray, is_typed_array, 1) \ | 35 V(IsTypedArray, is_typed_array, 1) \ |
36 V(NumberToString, number_to_string, 1) \ | 36 V(NumberToString, number_to_string, 1) \ |
37 V(RegExpExec, reg_exp_exec, 4) \ | 37 V(RegExpExec, reg_exp_exec, 4) \ |
38 V(SubString, sub_string, 3) \ | 38 V(SubString, sub_string, 3) \ |
39 V(ToString, to_string, 1) \ | 39 V(ToString, to_string, 1) \ |
40 V(ToLength, to_length, 1) \ | 40 V(ToLength, to_length, 1) \ |
41 V(ToInteger, to_integer, 1) \ | 41 V(ToInteger, to_integer, 1) \ |
42 V(ToNumber, to_number, 1) \ | 42 V(ToNumber, to_number, 1) \ |
43 V(ToObject, to_object, 1) \ | 43 V(ToObject, to_object, 1) |
44 V(ValueOf, value_of, 1) | |
45 | 44 |
46 class IntrinsicsHelper { | 45 class IntrinsicsHelper { |
47 public: | 46 public: |
48 enum class IntrinsicId { | 47 enum class IntrinsicId { |
49 #define DECLARE_INTRINSIC_ID(name, lower_case, count) k##name, | 48 #define DECLARE_INTRINSIC_ID(name, lower_case, count) k##name, |
50 INTRINSICS_LIST(DECLARE_INTRINSIC_ID) | 49 INTRINSICS_LIST(DECLARE_INTRINSIC_ID) |
51 #undef DECLARE_INTRINSIC_ID | 50 #undef DECLARE_INTRINSIC_ID |
52 kIdCount | 51 kIdCount |
53 }; | 52 }; |
54 STATIC_ASSERT(static_cast<uint32_t>(IntrinsicId::kIdCount) <= kMaxUInt8); | 53 STATIC_ASSERT(static_cast<uint32_t>(IntrinsicId::kIdCount) <= kMaxUInt8); |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
92 InterpreterAssembler* assembler_; | 91 InterpreterAssembler* assembler_; |
93 | 92 |
94 DISALLOW_COPY_AND_ASSIGN(IntrinsicsHelper); | 93 DISALLOW_COPY_AND_ASSIGN(IntrinsicsHelper); |
95 }; | 94 }; |
96 | 95 |
97 } // namespace interpreter | 96 } // namespace interpreter |
98 } // namespace internal | 97 } // namespace internal |
99 } // namespace v8 | 98 } // namespace v8 |
100 | 99 |
101 #endif | 100 #endif |
OLD | NEW |