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/v8.h" | 5 #include "src/runtime/runtime.h" |
6 | 6 |
7 #include "src/runtime/runtime.h" | 7 #include "src/handles-inl.h" |
| 8 #include "src/heap/heap.h" |
| 9 #include "src/isolate.h" |
8 #include "src/runtime/runtime-utils.h" | 10 #include "src/runtime/runtime-utils.h" |
9 | 11 |
10 namespace v8 { | 12 namespace v8 { |
11 namespace internal { | 13 namespace internal { |
12 | 14 |
13 // Header of runtime functions. | 15 // Header of runtime functions. |
14 #define F(name, number_of_args, result_size) \ | 16 #define F(name, number_of_args, result_size) \ |
15 Object* Runtime_##name(int args_length, Object** args_object, \ | 17 Object* Runtime_##name(int args_length, Object** args_object, \ |
16 Isolate* isolate); | 18 Isolate* isolate); |
17 FOR_EACH_INTRINSIC_RETURN_OBJECT(F) | 19 FOR_EACH_INTRINSIC_RETURN_OBJECT(F) |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
89 return &(kIntrinsicFunctions[static_cast<int>(id)]); | 91 return &(kIntrinsicFunctions[static_cast<int>(id)]); |
90 } | 92 } |
91 | 93 |
92 | 94 |
93 std::ostream& operator<<(std::ostream& os, Runtime::FunctionId id) { | 95 std::ostream& operator<<(std::ostream& os, Runtime::FunctionId id) { |
94 return os << Runtime::FunctionForId(id)->name; | 96 return os << Runtime::FunctionForId(id)->name; |
95 } | 97 } |
96 | 98 |
97 } // namespace internal | 99 } // namespace internal |
98 } // namespace v8 | 100 } // namespace v8 |
OLD | NEW |