| Index: src/arguments.h
|
| diff --git a/src/arguments.h b/src/arguments.h
|
| index 92e57401f2c27ad710b6e235eaabe0f8b7f1de8f..634545e82c2161a3388bdf732fc45625e894b48b 100644
|
| --- a/src/arguments.h
|
| +++ b/src/arguments.h
|
| @@ -137,7 +137,7 @@ class CustomArgumentsBase : public Relocatable {
|
| v->VisitPointers(values_, values_ + kArrayLength);
|
| }
|
| protected:
|
| - inline Object** begin() { return values_; }
|
| + inline Object** end() { return values_ + kArrayLength - 1; }
|
| explicit inline CustomArgumentsBase(Isolate* isolate)
|
| : Relocatable(isolate) {}
|
| Object* values_[kArrayLength];
|
| @@ -151,7 +151,7 @@ class CustomArguments : public CustomArgumentsBase<T::kArgsLength> {
|
|
|
| typedef CustomArgumentsBase<T::kArgsLength> Super;
|
| ~CustomArguments() {
|
| - this->begin()[kReturnValueOffset] =
|
| + this->end()[kReturnValueOffset] =
|
| reinterpret_cast<Object*>(kHandleZapValue);
|
| }
|
|
|
| @@ -162,7 +162,7 @@ class CustomArguments : public CustomArgumentsBase<T::kArgsLength> {
|
| v8::Handle<V> GetReturnValue(Isolate* isolate);
|
|
|
| inline Isolate* isolate() {
|
| - return reinterpret_cast<Isolate*>(this->begin()[T::kIsolateIndex]);
|
| + return reinterpret_cast<Isolate*>(this->end()[T::kIsolateIndex]);
|
| }
|
| };
|
|
|
| @@ -185,7 +185,7 @@ class PropertyCallbackArguments
|
| Object* self,
|
| JSObject* holder)
|
| : Super(isolate) {
|
| - Object** values = this->begin();
|
| + Object** values = this->end();
|
| values[T::kThisIndex] = self;
|
| values[T::kHolderIndex] = holder;
|
| values[T::kDataIndex] = data;
|
| @@ -256,7 +256,7 @@ class FunctionCallbackArguments
|
| argv_(argv),
|
| argc_(argc),
|
| is_construct_call_(is_construct_call) {
|
| - Object** values = begin();
|
| + Object** values = end();
|
| values[T::kDataIndex] = data;
|
| values[T::kCalleeIndex] = callee;
|
| values[T::kHolderIndex] = holder;
|
|
|