Revision f230a1cf deps/v8/src/arguments.cc
deps/v8/src/arguments.cc | ||
---|---|---|
38 | 38 |
template<typename V> |
39 | 39 |
v8::Handle<V> CustomArguments<T>::GetReturnValue(Isolate* isolate) { |
40 | 40 |
// Check the ReturnValue. |
41 |
Object** handle = &this->end()[kReturnValueOffset];
|
|
41 |
Object** handle = &this->begin()[kReturnValueOffset];
|
|
42 | 42 |
// Nothing was set, return empty handle as per previous behaviour. |
43 | 43 |
if ((*handle)->IsTheHole()) return v8::Handle<V>(); |
44 | 44 |
return Utils::Convert<Object, V>(Handle<Object>(handle)); |
... | ... | |
49 | 49 |
Isolate* isolate = this->isolate(); |
50 | 50 |
VMState<EXTERNAL> state(isolate); |
51 | 51 |
ExternalCallbackScope call_scope(isolate, FUNCTION_ADDR(f)); |
52 |
FunctionCallbackInfo<v8::Value> info(end(),
|
|
52 |
FunctionCallbackInfo<v8::Value> info(begin(),
|
|
53 | 53 |
argv_, |
54 | 54 |
argc_, |
55 | 55 |
is_construct_call_); |
... | ... | |
63 | 63 |
Isolate* isolate = this->isolate(); \ |
64 | 64 |
VMState<EXTERNAL> state(isolate); \ |
65 | 65 |
ExternalCallbackScope call_scope(isolate, FUNCTION_ADDR(f)); \ |
66 |
PropertyCallbackInfo<ReturnValue> info(end()); \
|
|
66 |
PropertyCallbackInfo<ReturnValue> info(begin()); \
|
|
67 | 67 |
f(info); \ |
68 | 68 |
return GetReturnValue<ReturnValue>(isolate); \ |
69 | 69 |
} |
... | ... | |
75 | 75 |
Isolate* isolate = this->isolate(); \ |
76 | 76 |
VMState<EXTERNAL> state(isolate); \ |
77 | 77 |
ExternalCallbackScope call_scope(isolate, FUNCTION_ADDR(f)); \ |
78 |
PropertyCallbackInfo<ReturnValue> info(end()); \
|
|
78 |
PropertyCallbackInfo<ReturnValue> info(begin()); \
|
|
79 | 79 |
f(arg1, info); \ |
80 | 80 |
return GetReturnValue<ReturnValue>(isolate); \ |
81 | 81 |
} |
... | ... | |
88 | 88 |
Isolate* isolate = this->isolate(); \ |
89 | 89 |
VMState<EXTERNAL> state(isolate); \ |
90 | 90 |
ExternalCallbackScope call_scope(isolate, FUNCTION_ADDR(f)); \ |
91 |
PropertyCallbackInfo<ReturnValue> info(end()); \
|
|
91 |
PropertyCallbackInfo<ReturnValue> info(begin()); \
|
|
92 | 92 |
f(arg1, arg2, info); \ |
93 | 93 |
return GetReturnValue<ReturnValue>(isolate); \ |
94 | 94 |
} |
... | ... | |
101 | 101 |
Isolate* isolate = this->isolate(); \ |
102 | 102 |
VMState<EXTERNAL> state(isolate); \ |
103 | 103 |
ExternalCallbackScope call_scope(isolate, FUNCTION_ADDR(f)); \ |
104 |
PropertyCallbackInfo<ReturnValue> info(end()); \
|
|
104 |
PropertyCallbackInfo<ReturnValue> info(begin()); \
|
|
105 | 105 |
f(arg1, arg2, info); \ |
106 | 106 |
} |
107 | 107 |
|
... | ... | |
118 | 118 |
|
119 | 119 |
|
120 | 120 |
} } // namespace v8::internal |
121 |
|
Also available in: Unified diff