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 "allocation.h" | 8 #include "src/allocation.h" |
9 | 9 |
10 namespace v8 { | 10 namespace v8 { |
11 namespace internal { | 11 namespace internal { |
12 | 12 |
13 // Arguments provides access to runtime call parameters. | 13 // Arguments provides access to runtime call parameters. |
14 // | 14 // |
15 // It uses the fact that the instance fields of Arguments | 15 // It uses the fact that the instance fields of Arguments |
16 // (length_, arguments_) are "overlayed" with the parameters | 16 // (length_, arguments_) are "overlayed" with the parameters |
17 // (no. of parameters, and the parameter pointer) passed so | 17 // (no. of parameters, and the parameter pointer) passed so |
18 // that inside the C++ function, the parameters passed can | 18 // that inside the C++ function, the parameters passed can |
(...skipping 273 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
292 #define RUNTIME_FUNCTION(Name) RUNTIME_FUNCTION_RETURNS_TYPE(Object*, Name) | 292 #define RUNTIME_FUNCTION(Name) RUNTIME_FUNCTION_RETURNS_TYPE(Object*, Name) |
293 #define RUNTIME_FUNCTION_RETURN_PAIR(Name) \ | 293 #define RUNTIME_FUNCTION_RETURN_PAIR(Name) \ |
294 RUNTIME_FUNCTION_RETURNS_TYPE(ObjectPair, Name) | 294 RUNTIME_FUNCTION_RETURNS_TYPE(ObjectPair, Name) |
295 | 295 |
296 #define RUNTIME_ARGUMENTS(isolate, args) \ | 296 #define RUNTIME_ARGUMENTS(isolate, args) \ |
297 args.length(), args.arguments(), isolate | 297 args.length(), args.arguments(), isolate |
298 | 298 |
299 } } // namespace v8::internal | 299 } } // namespace v8::internal |
300 | 300 |
301 #endif // V8_ARGUMENTS_H_ | 301 #endif // V8_ARGUMENTS_H_ |
OLD | NEW |