| OLD | NEW |
| 1 // Copyright 2006-2008 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2008 the V8 project authors. All rights reserved. |
| 2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
| 3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
| 4 // met: | 4 // met: |
| 5 // | 5 // |
| 6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
| 7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
| 8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
| 9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
| 10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 68 } | 68 } |
| 69 | 69 |
| 70 double number_at(int index) { | 70 double number_at(int index) { |
| 71 return (*this)[index]->Number(); | 71 return (*this)[index]->Number(); |
| 72 } | 72 } |
| 73 | 73 |
| 74 // Get the total number of arguments including the receiver. | 74 // Get the total number of arguments including the receiver. |
| 75 int length() const { return length_; } | 75 int length() const { return length_; } |
| 76 | 76 |
| 77 Object** arguments() { return arguments_; } | 77 Object** arguments() { return arguments_; } |
| 78 |
| 78 private: | 79 private: |
| 79 int length_; | 80 int length_; |
| 80 Object** arguments_; | 81 Object** arguments_; |
| 81 }; | 82 }; |
| 82 | 83 |
| 83 | 84 |
| 84 // Custom arguments replicate a small segment of stack that can be | 85 // Custom arguments replicate a small segment of stack that can be |
| 85 // accessed through an Arguments object the same way the actual stack | 86 // accessed through an Arguments object the same way the actual stack |
| 86 // can. | 87 // can. |
| 87 class CustomArguments : public Relocatable { | 88 class CustomArguments : public Relocatable { |
| (...skipping 29 matching lines...) Expand all Loading... |
| 117 #define RUNTIME_FUNCTION(Type, Name) \ | 118 #define RUNTIME_FUNCTION(Type, Name) \ |
| 118 Type Name(Arguments args, Isolate* isolate) | 119 Type Name(Arguments args, Isolate* isolate) |
| 119 | 120 |
| 120 | 121 |
| 121 #define RUNTIME_ARGUMENTS(isolate, args) args, isolate | 122 #define RUNTIME_ARGUMENTS(isolate, args) args, isolate |
| 122 | 123 |
| 123 | 124 |
| 124 } } // namespace v8::internal | 125 } } // namespace v8::internal |
| 125 | 126 |
| 126 #endif // V8_ARGUMENTS_H_ | 127 #endif // V8_ARGUMENTS_H_ |
| OLD | NEW |