Index: src/arguments.h |
=================================================================== |
--- src/arguments.h (revision 8259) |
+++ src/arguments.h (working copy) |
@@ -63,6 +63,14 @@ |
return Handle<S>(reinterpret_cast<S**>(value)); |
} |
+ int smi_at(int index) { |
+ return Smi::cast((*this)[index])->value(); |
+ } |
+ |
+ double number_at(int index) { |
+ return (*this)[index]->Number(); |
+ } |
+ |
// Get the total number of arguments including the receiver. |
int length() const { return length_; } |