v8.h | v8.h | |||
---|---|---|---|---|
skipping to change at line 1757 | skipping to change at line 1757 | |||
class Arguments { | class Arguments { | |||
public: | public: | |||
inline int Length() const; | inline int Length() const; | |||
inline Local<Value> operator[](int i) const; | inline Local<Value> operator[](int i) const; | |||
inline Local<Function> Callee() const; | inline Local<Function> Callee() const; | |||
inline Local<Object> This() const; | inline Local<Object> This() const; | |||
inline Local<Object> Holder() const; | inline Local<Object> Holder() const; | |||
inline bool IsConstructCall() const; | inline bool IsConstructCall() const; | |||
inline Local<Value> Data() const; | inline Local<Value> Data() const; | |||
private: | private: | |||
static const int kDataIndex = 0; | ||||
static const int kCalleeIndex = -1; | ||||
static const int kHolderIndex = -2; | ||||
friend class ImplementationUtilities; | friend class ImplementationUtilities; | |||
inline Arguments(Local<Value> data, | inline Arguments(internal::Object** implicit_args, | |||
Local<Object> holder, | internal::Object** values, | |||
Local<Function> callee, | int length, | |||
bool is_construct_call, | bool is_construct_call); | |||
void** values, int length); | internal::Object** implicit_args_; | |||
Local<Value> data_; | internal::Object** values_; | |||
Local<Object> holder_; | ||||
Local<Function> callee_; | ||||
bool is_construct_call_; | ||||
void** values_; | ||||
int length_; | int length_; | |||
bool is_construct_call_; | ||||
}; | }; | |||
/** | /** | |||
* The information passed to an accessor callback about the context | * The information passed to an accessor callback about the context | |||
* of the property access. | * of the property access. | |||
*/ | */ | |||
class V8EXPORT AccessorInfo { | class V8EXPORT AccessorInfo { | |||
public: | public: | |||
inline AccessorInfo(internal::Object** args) | inline AccessorInfo(internal::Object** args) | |||
: args_(args) { } | : args_(args) { } | |||
skipping to change at line 3386 | skipping to change at line 3387 | |||
V8::MakeWeak(reinterpret_cast<internal::Object**>(**this), | V8::MakeWeak(reinterpret_cast<internal::Object**>(**this), | |||
parameters, | parameters, | |||
callback); | callback); | |||
} | } | |||
template <class T> | template <class T> | |||
void Persistent<T>::ClearWeak() { | void Persistent<T>::ClearWeak() { | |||
V8::ClearWeak(reinterpret_cast<internal::Object**>(**this)); | V8::ClearWeak(reinterpret_cast<internal::Object**>(**this)); | |||
} | } | |||
Arguments::Arguments(v8::Local<v8::Value> data, | Arguments::Arguments(internal::Object** implicit_args, | |||
v8::Local<v8::Object> holder, | internal::Object** values, int length, | |||
v8::Local<v8::Function> callee, | bool is_construct_call) | |||
bool is_construct_call, | : implicit_args_(implicit_args), | |||
void** values, int length) | values_(values), | |||
: data_(data), holder_(holder), callee_(callee), | length_(length), | |||
is_construct_call_(is_construct_call), | is_construct_call_(is_construct_call) { } | |||
values_(values), length_(length) { } | ||||
Local<Value> Arguments::operator[](int i) const { | Local<Value> Arguments::operator[](int i) const { | |||
if (i < 0 || length_ <= i) return Local<Value>(*Undefined()); | if (i < 0 || length_ <= i) return Local<Value>(*Undefined()); | |||
return Local<Value>(reinterpret_cast<Value*>(values_ - i)); | return Local<Value>(reinterpret_cast<Value*>(values_ - i)); | |||
} | } | |||
Local<Function> Arguments::Callee() const { | Local<Function> Arguments::Callee() const { | |||
return callee_; | return Local<Function>(reinterpret_cast<Function*>( | |||
&implicit_args_[kCalleeIndex])); | ||||
} | } | |||
Local<Object> Arguments::This() const { | Local<Object> Arguments::This() const { | |||
return Local<Object>(reinterpret_cast<Object*>(values_ + 1)); | return Local<Object>(reinterpret_cast<Object*>(values_ + 1)); | |||
} | } | |||
Local<Object> Arguments::Holder() const { | Local<Object> Arguments::Holder() const { | |||
return holder_; | return Local<Object>(reinterpret_cast<Object*>( | |||
&implicit_args_[kHolderIndex])); | ||||
} | } | |||
Local<Value> Arguments::Data() const { | Local<Value> Arguments::Data() const { | |||
return data_; | return Local<Value>(reinterpret_cast<Value*>(&implicit_args_[kDataIndex]) ); | |||
} | } | |||
bool Arguments::IsConstructCall() const { | bool Arguments::IsConstructCall() const { | |||
return is_construct_call_; | return is_construct_call_; | |||
} | } | |||
int Arguments::Length() const { | int Arguments::Length() const { | |||
return length_; | return length_; | |||
} | } | |||
End of changes. 7 change blocks. | ||||
21 lines changed or deleted | 23 lines changed or added | |||