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 "src/runtime/runtime.h" | 5 #include "src/runtime/runtime.h" |
6 | 6 |
7 #include "src/assembler.h" | 7 #include "src/assembler.h" |
8 #include "src/contexts.h" | 8 #include "src/contexts.h" |
9 #include "src/handles-inl.h" | 9 #include "src/handles-inl.h" |
10 #include "src/heap/heap.h" | 10 #include "src/heap/heap.h" |
11 #include "src/isolate.h" | 11 #include "src/isolate.h" |
12 #include "src/runtime/runtime-utils.h" | 12 #include "src/runtime/runtime-utils.h" |
13 | 13 |
14 namespace v8 { | 14 namespace v8 { |
15 namespace internal { | 15 namespace internal { |
16 | 16 |
17 // Header of runtime functions. | 17 // Header of runtime functions. |
18 #define F(name, number_of_args, result_size) \ | 18 #define F(name, number_of_args, result_size) \ |
19 Object* Runtime_##name(int args_length, Object** args_object, \ | 19 Object* Runtime_##name(int args_length, Object** args_object, \ |
20 Isolate* isolate); | 20 Isolate* isolate); |
21 FOR_EACH_INTRINSIC_RETURN_OBJECT(F) | 21 FOR_EACH_INTRINSIC_RETURN_OBJECT(F) |
22 #undef F | 22 #undef F |
23 | 23 |
24 #define P(name, number_of_args, result_size) \ | 24 #define P(name, number_of_args, result_size) \ |
25 ObjectPair Runtime_##name(int args_length, Object** args_object, \ | 25 ObjectPair Runtime_##name(int args_length, Object** args_object, \ |
26 Isolate* isolate); | 26 Isolate* isolate); |
27 FOR_EACH_INTRINSIC_RETURN_PAIR(P) | 27 FOR_EACH_INTRINSIC_RETURN_PAIR(P) |
28 #undef P | 28 #undef P |
29 | 29 |
| 30 #define T(name, number_of_args, result_size) \ |
| 31 ObjectTriple Runtime_##name(int args_length, Object** args_object, \ |
| 32 Isolate* isolate); |
| 33 FOR_EACH_INTRINSIC_RETURN_TRIPLE(T) |
| 34 #undef T |
| 35 |
30 | 36 |
31 #define F(name, number_of_args, result_size) \ | 37 #define F(name, number_of_args, result_size) \ |
32 { \ | 38 { \ |
33 Runtime::k##name, Runtime::RUNTIME, #name, FUNCTION_ADDR(Runtime_##name), \ | 39 Runtime::k##name, Runtime::RUNTIME, #name, FUNCTION_ADDR(Runtime_##name), \ |
34 number_of_args, result_size \ | 40 number_of_args, result_size \ |
35 } \ | 41 } \ |
36 , | 42 , |
37 | 43 |
38 | 44 |
39 #define I(name, number_of_args, result_size) \ | 45 #define I(name, number_of_args, result_size) \ |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
119 } | 125 } |
120 } | 126 } |
121 | 127 |
122 | 128 |
123 std::ostream& operator<<(std::ostream& os, Runtime::FunctionId id) { | 129 std::ostream& operator<<(std::ostream& os, Runtime::FunctionId id) { |
124 return os << Runtime::FunctionForId(id)->name; | 130 return os << Runtime::FunctionForId(id)->name; |
125 } | 131 } |
126 | 132 |
127 } // namespace internal | 133 } // namespace internal |
128 } // namespace v8 | 134 } // namespace v8 |
OLD | NEW |