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 #ifndef V8_ARGUMENTS_H_ | 5 #ifndef V8_ARGUMENTS_H_ |
6 #define V8_ARGUMENTS_H_ | 6 #define V8_ARGUMENTS_H_ |
7 | 7 |
8 #include "src/allocation.h" | 8 #include "src/allocation.h" |
9 #include "src/isolate.h" | 9 #include "src/isolate.h" |
10 | 10 |
(...skipping 265 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
276 Arguments args(args_length, args_object); \ | 276 Arguments args(args_length, args_object); \ |
277 return __RT_impl_##Name(args, isolate); \ | 277 return __RT_impl_##Name(args, isolate); \ |
278 } \ | 278 } \ |
279 static Type __RT_impl_##Name(Arguments args, Isolate* isolate) | 279 static Type __RT_impl_##Name(Arguments args, Isolate* isolate) |
280 | 280 |
281 | 281 |
282 #define RUNTIME_FUNCTION(Name) RUNTIME_FUNCTION_RETURNS_TYPE(Object*, Name) | 282 #define RUNTIME_FUNCTION(Name) RUNTIME_FUNCTION_RETURNS_TYPE(Object*, Name) |
283 #define RUNTIME_FUNCTION_RETURN_PAIR(Name) \ | 283 #define RUNTIME_FUNCTION_RETURN_PAIR(Name) \ |
284 RUNTIME_FUNCTION_RETURNS_TYPE(ObjectPair, Name) | 284 RUNTIME_FUNCTION_RETURNS_TYPE(ObjectPair, Name) |
285 | 285 |
286 #define RUNTIME_ARGUMENTS(isolate, args) \ | |
287 args.length(), args.arguments(), isolate | |
288 | |
289 } } // namespace v8::internal | 286 } } // namespace v8::internal |
290 | 287 |
291 #endif // V8_ARGUMENTS_H_ | 288 #endif // V8_ARGUMENTS_H_ |
OLD | NEW |