Source/WebCore/bindings/v8/V8Utilities.cpp
void createHiddenDependency(v8::Handle<v8::Object> object, v8::Local<v8::Value> value, int cacheIndex)
{
    v8::Local<v8::Value> cache = object->GetInternalField(cacheIndex);
    if (cache->IsNull() || cache->IsUndefined()) {
        cache = v8::Array::New();
        object->SetInternalField(cacheIndex, cache);
    }

    v8::Local<v8::Array> cacheArray = v8::Local<v8::Array>::Cast(cache);
    cacheArray->Set(v8::Integer::New(cacheArray->Length()), value);
}
// Use an array to hold dependents. It works like a ref-counted scheme.
// A value can be added more than once to the DOM object.
Use an array to hold dependents. It works like a ref-counted scheme.
A value can be added more than once to the DOM object.
Use an array to hold dependents . It works like a ref - counted scheme . A value can be added more than once to the DOM object .
void createHiddenDependency(v8::Handle<v8::Object> object, v8::Local<v8::Value> value, int cacheIndex)
{
    v8::Local<v8::Value> cache = object->GetInternalField(cacheIndex);
    if (cache->IsNull() || cache->IsUndefined()) {
        cache = v8::Array::New();
        object->SetInternalField(cacheIndex, cache);
    }
    v8::Local<v8::Array> cacheArray = v8::Local<v8::Array>::Cast(cache);
    cacheArray->Set(v8::Integer::New(cacheArray->Length()), value);
}
void createHiddenDependency ( v8 :: Handle < v8 :: Object > object , v8 :: Local < v8 :: Value > value , int cacheIndex ) { v8 :: Local < v8 :: Value > cache = object -> GetInternalField ( cacheIndex ) ; if ( cache -> IsNull ( ) || cache -> IsUndefined ( ) ) { cache = v8 :: Array :: New ( ) ; object -> SetInternalField ( cacheIndex , cache ) ; } v8 :: Local < v8 :: Array > cacheArray = v8 :: Local < v8 :: Array > :: Cast ( cache ) ; cacheArray -> Set ( v8 :: Integer :: New ( cacheArray -> Length ( ) ) , value ) ; }
Use an array to hold dependents.
Use an array to hold dependents .