/external/webkit/Source/WebCore/bindings/v8/ |
V8NodeFilterCondition.cpp | 44 V8NodeFilterCondition::V8NodeFilterCondition(v8::Handle<v8::Value> filter) 45 : m_filter(v8::Persistent<v8::Value>::New(filter)) 63 ASSERT(v8::Context::InContext()); 68 v8::TryCatch exceptionCatcher; 70 v8::Handle<v8::Function> callback; 72 callback = v8::Handle<v8::Function>::Cast(m_filter) [all...] |
RetainedObjectInfo.h | 34 #include <v8-profiler.h> 38 class RetainedObjectInfo : public v8::RetainedObjectInfo {
|
V8NPUtils.h | 39 #include <v8.h> 43 // Convert a V8 Value of any type (string, bool, object, etc) to a NPVariant. 44 void convertV8ObjectToNPVariant(v8::Local<v8::Value>, NPObject*, NPVariant*); 46 // Convert a NPVariant (string, bool, object, etc) back to a V8 Value. The owner object is the NPObject which relates to the 48 v8::Handle<v8::Value> convertNPVariantToV8Object(const NPVariant*, NPObject*); 50 // Helper function to create an NPN String Identifier from a v8 string. 51 NPIdentifier getStringIdentifier(v8::Handle<v8::String>) [all...] |
V8Utilities.cpp | 34 #include <v8.h> 53 void createHiddenDependency(v8::Handle<v8::Object> object, v8::Local<v8::Value> value, int cacheIndex) 55 v8::Local<v8::Value> cache = object->GetInternalField(cacheIndex); 57 cache = v8::Array::New(); 61 v8::Local<v8::Array> cacheArray = v8::Local<v8::Array>::Cast(cache) [all...] |
V8LazyEventListener.cpp | 55 v8::Local<v8::Value> V8LazyEventListener::callListenerFunction(ScriptExecutionContext* context, v8::Handle<v8::Value> jsEvent, Event* event) 57 v8::Local<v8::Object> listenerObject = getListenerObject(context); 59 return v8::Local<v8::Value>(); 61 v8::Local<v8::Function> handlerFunction = v8::Local<v8::Function>::Cast(listenerObject) [all...] |
OptionsObject.cpp | 44 OptionsObject::OptionsObject(const v8::Local<v8::Value>& options) 68 v8::Local<v8::Value> v8Value; 72 v8::Local<v8::Boolean> v8Bool = v8Value->ToBoolean(); 81 v8::Local<v8::Value> v8Value; 85 v8::Local<v8::Int32> v8Int32 = v8Value->ToInt32() [all...] |
V8Binding.cpp | 52 class WebCoreStringResource : public v8::String::ExternalStringResource { 61 v8::V8::AdjustAmountOfExternalAllocatedMemory(2 * string.length()); 72 v8::V8::AdjustAmountOfExternalAllocatedMemory(2 * string.length()); 83 v8::V8::AdjustAmountOfExternalAllocatedMemory(reducedExternalMemory); 104 v8::V8::AdjustAmountOfExternalAllocatedMemory(2 * m_atomicString.length()); 109 static WebCoreStringResource* toStringResource(v8::Handle<v8::String> v8String [all...] |
ScriptInstance.h | 34 #include <v8.h> 44 static PassRefPtr<V8ScriptInstance> create(v8::Handle<v8::Object> instance) 49 V8ScriptInstance(v8::Handle<v8::Object>); 51 v8::Persistent<v8::Object> instance(); 55 void set(v8::Handle<v8::Object>); 56 mutable v8::Persistent<v8::Object> m_instance [all...] |
V8WorkerContextEventListener.h | 37 #include <v8.h> 47 static PassRefPtr<V8WorkerContextEventListener> create(v8::Local<v8::Object> listener, bool isInline, const WorldContextHandle& worldContext) 55 V8WorkerContextEventListener(v8::Local<v8::Object> listener, bool isInline, const WorldContextHandle& worldContext); 58 virtual v8::Local<v8::Value> callListenerFunction(ScriptExecutionContext*, v8::Handle<v8::Value> jsEvent, Event*); 59 v8::Local<v8::Object> getReceiverObject(ScriptExecutionContext*, Event*) [all...] |
WorkerScriptDebugServer.cpp | 43 #include <v8.h> 48 static WorkerContext* retrieveWorkerContext(v8::Handle<v8::Context> context) 50 v8::Handle<v8::Object> global = context->Global(); 53 v8::Handle<v8::Object> prototype = v8::Handle<v8::Object>::Cast(global->GetPrototype()); 56 prototype = v8::Handle<v8::Object>::Cast(prototype->GetPrototype()) [all...] |
/external/webkit/Source/WebCore/bindings/v8/custom/ |
V8StorageCustom.cpp | 43 v8::Handle<v8::Array> V8Storage::namedPropertyEnumerator(const v8::AccessorInfo& info) 47 v8::Handle<v8::Array> properties = v8::Array::New(length); 52 properties->Set(v8::Integer::New(i), v8String(key)); 58 static v8::Handle<v8::Value> storageGetter(v8::Local<v8::String> v8Name, const v8::AccessorInfo& info [all...] |
V8DOMWindowCustom.cpp | 74 v8::Handle<v8::Value> WindowSetTimeoutImpl(const v8::Arguments& args, bool singleShot) 79 return v8::Undefined(); 86 return v8::Undefined(); 89 v8::Handle<v8::Value> function = args[0]; 95 v8::Handle<v8::Value> v8String = function->ToString(); 99 return v8::Undefined() [all...] |
V8DOMTokenListCustom.cpp | 41 v8::Handle<v8::Value> toV8(DOMTokenList* impl) 44 return v8::Null(); 45 v8::Handle<v8::Object> wrapper = V8DOMTokenList::wrap(impl); 49 v8::Handle<v8::Value> elementValue = toV8(element); 51 V8DOMWrapper::setHiddenReference(elementValue.As<v8::Object>(), wrapper);
|
V8HTMLDocumentCustom.cpp | 52 v8::Local<v8::Object> V8HTMLDocument::WrapInShadowObject(v8::Local<v8::Object> wrapper, Node* impl) 54 DEFINE_STATIC_LOCAL(v8::Persistent<v8::FunctionTemplate>, shadowTemplate, ()); 56 shadowTemplate = v8::Persistent<v8::FunctionTemplate>::New(v8::FunctionTemplate::New()); 58 return v8::Local<v8::Object>() [all...] |
V8HTMLSelectElementCustom.cpp | 49 v8::Handle<v8::Value> V8HTMLSelectElement::indexedPropertyGetter(uint32_t index, const v8::AccessorInfo& info) 59 v8::Handle<v8::Value> V8HTMLSelectElement::indexedPropertySetter(uint32_t index, v8::Local<v8::Value> value, const v8::AccessorInfo& info) 66 v8::Handle<v8::Value> V8HTMLSelectElement::removeCallback(const v8::Arguments& args [all...] |
V8MessagePortCustom.cpp | 45 v8::Handle<v8::Value> V8MessagePort::postMessageCallback(const v8::Arguments& args) 52 return v8::Undefined(); 56 return v8::Undefined(); 63 bool getMessagePortArray(v8::Local<v8::Value> value, MessagePortArray& portArray) 75 v8::Local<v8::Object> ports = v8::Local<v8::Object>::Cast(value) [all...] |
V8HTMLCollectionCustom.cpp | 44 static v8::Handle<v8::Value> getNamedItems(HTMLCollection* collection, AtomicString name) 50 return v8::Handle<v8::Value>(); 58 static v8::Handle<v8::Value> getItem(HTMLCollection* collection, v8::Handle<v8::Value> argument) 60 v8::Local<v8::Uint32> index = argument->ToArrayIndex() [all...] |
V8InjectedScriptManager.cpp | 48 static void WeakReferenceCallback(v8::Persistent<v8::Value> object, void* parameter) 55 static v8::Local<v8::Object> createInjectedScriptHostV8Wrapper(InjectedScriptHost* host) 57 v8::Local<v8::Function> function = V8InjectedScriptHost::GetTemplate()->GetFunction(); 60 return v8::Local<v8::Object>(); 62 v8::Local<v8::Object> instance = SafeAllocation::newInstance(function) [all...] |
V8CustomApplicationInstalledCallback.cpp | 36 V8CustomApplicationInstalledCallback::V8CustomApplicationInstalledCallback(v8::Local<v8::Object> callback, Frame* frame) 37 : m_callback(v8::Persistent<v8::Object>::New(callback)) 49 v8::HandleScope handleScope; 51 v8::Handle<v8::Context> context = V8Proxy::context(m_frame.get()); 55 v8::Context::Scope scope(context); 57 v8::Handle<v8::Value> argv[] = [all...] |
V8CustomVoidCallback.h | 36 #include <v8.h> 46 static PassRefPtr<V8CustomVoidCallback> create(v8::Local<v8::Value> value, ScriptExecutionContext* context) 56 V8CustomVoidCallback(v8::Local<v8::Object>, ScriptExecutionContext* context); 58 v8::Persistent<v8::Object> m_callback; 64 bool invokeCallback(v8::Persistent<v8::Object> callback, int argc, v8::Handle<v8::Value> argv[], bool& callbackReturnValue, ScriptExecutionContext* scriptExecutionConte (…) [all...] |
V8DocumentLocationCustom.cpp | 35 v8::Handle<v8::Value> V8Document::locationAccessorGetter(v8::Local<v8::String> name, const v8::AccessorInfo& info) 39 return v8::Null(); 45 void V8Document::locationAccessorSetter(v8::Local<v8::String> name, v8::Local<v8::Value> value, const v8::AccessorInfo& info [all...] |
V8DirectoryEntrySyncCustom.cpp | 50 static bool extractBooleanValue(const v8::Handle<v8::Object>& object, const char* name, ExceptionCode& ec) { 52 v8::Local<v8::Value> value = object->Get(v8::String::New(name)); 54 v8::TryCatch block; 65 static PassRefPtr<WebKitFlags> getFlags(const v8::Local<v8::Value>& arg, ExceptionCode& ec) 71 return V8WebKitFlags::toNative(v8::Handle<v8::Object>::Cast(arg)) [all...] |
/hardware/ril/mock-ril/src/cpp/ |
js_support.cpp | 17 #include <v8.h> 50 v8::Handle<v8::Value> RadioStateGetter(v8::Local<v8::String> property, 51 const v8::AccessorInfo& info) { 52 return v8::Integer::New((int)gRadioState); 55 void RadioStateSetter(v8::Local<v8::String> property, 56 v8::Local<v8::Value> value, const v8::AccessorInfo& info) [all...] |
/external/v8/test/cctest/ |
test-heap-profiler.cc | 1 // Copyright 2011 the V8 project authors. All rights reserved. 5 #include "v8.h" 11 #include "../include/v8-profiler.h" 55 static const v8::HeapGraphNode* GetGlobalObject( 56 const v8::HeapSnapshot* snapshot) { 58 const v8::HeapGraphNode* global_obj = 66 static const v8::HeapGraphNode* GetProperty(const v8::HeapGraphNode* node, 67 v8::HeapGraphEdge::Type type, 70 const v8::HeapGraphEdge* prop = node->GetChild(i) [all...] |
test-debug.cc | 1 // Copyright 2012 the V8 project authors. All rights reserved. 32 #include "v8.h" 44 using ::v8::internal::EmbeddedVector; 45 using ::v8::internal::Object; 46 using ::v8::internal::OS; 47 using ::v8::internal::Handle; 48 using ::v8::internal::Heap; 49 using ::v8::internal::JSGlobalProxy; 50 using ::v8::internal::Code; 51 using ::v8::internal::Debug 380 namespace v8 { namespace [all...] |