Home
last modified time | relevance | path

Searched refs:V8Proxy (Results 1 – 25 of 95) sorted by relevance

1234

/external/webkit/Source/WebCore/bindings/v8/
DV8Proxy.cpp89 V8Extensions V8Proxy::m_extensions;
148 void V8Proxy::reportUnsafeAccessTo(Frame* target) in reportUnsafeAccessTo()
155 Frame* source = V8Proxy::retrieveFrameForEnteredContext(); in reportUnsafeAccessTo()
188 V8Proxy::V8Proxy(Frame* frame) in V8Proxy() function in WebCore::V8Proxy
197 V8Proxy::~V8Proxy() in ~V8Proxy()
203 v8::Handle<v8::Script> V8Proxy::compileScript(v8::Handle<v8::String> code, const String& fileName, … in compileScript()
214 bool V8Proxy::handleOutOfMemory() in handleOutOfMemory()
222 Frame* frame = V8Proxy::retrieveFrame(context); in handleOutOfMemory()
224 V8Proxy* proxy = V8Proxy::retrieve(frame); in handleOutOfMemory()
244 void V8Proxy::evaluateInIsolatedWorld(int worldID, const Vector<ScriptSourceCode>& sources, int ext… in evaluateInIsolatedWorld()
[all …]
DV8Proxy.h124 class V8Proxy {
135 explicit V8Proxy(Frame*);
137 ~V8Proxy();
186 static V8Proxy* retrieve();
188 static V8Proxy* retrieve(Frame*);
190 static V8Proxy* retrieve(ScriptExecutionContext*);
345 …v8::Handle<v8::Value> V8Proxy::constructDOMObject(const v8::Arguments& args, WrapperTypeInfo* type) in constructDOMObject()
348 … return throwError(V8Proxy::TypeError, "DOM object constructor cannot be called as a function."); in constructDOMObject()
360 …v8::Handle<v8::Value> V8Proxy::constructDOMObjectWithScriptExecutionContext(const v8::Arguments& a… in constructDOMObjectWithScriptExecutionContext()
363 return throwError(V8Proxy::TypeError, ""); in constructDOMObjectWithScriptExecutionContext()
[all …]
DScriptCachedFrameData.cpp44 ASSERT(V8Proxy::mainWorldContext(frame) == V8Proxy::context(frame)); in ScriptCachedFrameData()
45 m_context.set(V8Proxy::mainWorldContext(frame)); in ScriptCachedFrameData()
67 V8Proxy* proxy = V8Proxy::retrieve(frame); in restore()
DScriptController.cpp90 return V8Proxy::retrieveFrameForEnteredContext(); in retrieveFrameForEnteredContext()
95 return V8Proxy::retrieveFrameForCurrentContext(); in retrieveFrameForCurrentContext()
115 , m_proxy(new V8Proxy(frame)) in ScriptController()
159 Frame* activeFrame = V8Proxy::retrieveFrameForEnteredContext(); in processingUserGesture()
165 V8Proxy* activeProxy = activeFrame->script()->proxy(); in processingUserGesture()
168 v8::Handle<v8::Context> v8Context = V8Proxy::mainWorldContext(activeFrame); in processingUserGesture()
227 v8::Handle<v8::Context> v8Context = V8Proxy::mainWorldContext(m_proxy->frame()); in evaluate()
267 v8::Handle<v8::Context> v8Context = V8Proxy::mainWorldContext(frame); in bindToWindowObject()
398 v8::Handle<v8::Context> v8Context = V8Proxy::mainWorldContext(frame); in createScriptObject()
435 v8::Handle<v8::Context> v8Context = V8Proxy::mainWorldContext(m_frame); in createScriptObjectForPluginElement()
DV8Helpers.cpp43 return V8Proxy::mainWorldContext(object->rootObject->frame()); in toV8Context()
46 V8Proxy* toV8Proxy(NPObject* npObject) in toV8Proxy()
50 return V8Proxy::retrieve(frame); in toV8Proxy()
DV8LazyEventListener.cpp68 if (V8Proxy* proxy = V8Proxy::retrieve(context)) in callListenerFunction()
89 V8Proxy* proxy = V8Proxy::retrieve(context); in prepareListenerObject()
120 …v8::Handle<v8::Script> script = V8Proxy::compileScript(codeExternalString, m_sourceURL, m_position… in prepareListenerObject()
DV8NodeFilterCondition.cpp76V8Proxy::throwError(V8Proxy::TypeError, "NodeFilter object does not have an acceptNode function"); in acceptNode()
86 … v8::Handle<v8::Value> result = V8Proxy::callFunctionWithoutFrame(callback, object, 1, args.get()); in acceptNode()
DV8Helpers.h38 class V8Proxy; variable
42 V8Proxy* toV8Proxy(NPObject*);
DWorkerContextExecutionProxy.cpp203 …v8::Handle<v8::Script> compiledScript = V8Proxy::compileScript(scriptString, fileName, scriptStart… in evaluate()
218 … state->exception = V8Proxy::throwError(V8Proxy::GeneralError, state->errorMessage.utf8().data()); in evaluate()
240 script = V8Proxy::compileScript(code, "", TextPosition0::minimumPosition()); in runScript()
243 if (V8Proxy::handleOutOfMemory()) in runScript()
/external/webkit/Source/WebCore/bindings/v8/custom/
DV8AudioContextCustom.cpp46 Frame* frame = V8Proxy::retrieveFrameForCurrentContext(); in constructorCallback()
48 …return throwError("AudioContext constructor associated frame is unavailable", V8Proxy::ReferenceEr… in constructorCallback()
52 …return throwError("AudioContext constructor associated document is unavailable", V8Proxy::Referenc… in constructorCallback()
63 return throwError("Not enough arguments", V8Proxy::SyntaxError); in constructorCallback()
69 return throwError("Invalid number of channels", V8Proxy::SyntaxError); in constructorCallback()
73 return throwError("Invalid number of frames", V8Proxy::SyntaxError); in constructorCallback()
81 return throwError("Error creating AudioContext", V8Proxy::SyntaxError); in constructorCallback()
93 return throwError("Not enough arguments", V8Proxy::SyntaxError); in createBufferCallback()
111 return throwError("Error decoding audio file data", V8Proxy::SyntaxError); in createBufferCallback()
121 return throwError("Not enough arguments", V8Proxy::SyntaxError); in createBufferCallback()
[all …]
DV8DataViewCustom.cpp42 … return throwError("DOM object constructor cannot be called as a function", V8Proxy::SyntaxError); in constructorCallback()
45 return V8Proxy::throwTypeError(); in constructorCallback()
60 return throwError("Not enough arguments", V8Proxy::SyntaxError); in getInt8Callback()
67 V8Proxy::setDOMException(ec); in getInt8Callback()
77 return throwError("Not enough arguments", V8Proxy::SyntaxError); in getUint8Callback()
84 V8Proxy::setDOMException(ec); in getUint8Callback()
94 return throwError("Not enough arguments", V8Proxy::SyntaxError); in setInt8Callback()
102 V8Proxy::setDOMException(ec); in setInt8Callback()
110 return throwError("Not enough arguments", V8Proxy::SyntaxError); in setUint8Callback()
118 V8Proxy::setDOMException(ec); in setUint8Callback()
DV8AudioNodeCustom.cpp42 return throwError("Not enough arguments", V8Proxy::SyntaxError); in connectCallback()
46 return throwError("Invalid destination node", V8Proxy::SyntaxError); in connectCallback()
54 return throwError("Invalid index parameters", V8Proxy::SyntaxError); in connectCallback()
60 return throwError("Invalid index parameters", V8Proxy::SyntaxError); in connectCallback()
66 return throwError("Invalid index parameter", V8Proxy::SyntaxError); in connectCallback()
78 return throwError("Invalid index parameters", V8Proxy::SyntaxError); in disconnectCallback()
84 return throwError("Invalid index parameter", V8Proxy::SyntaxError); in disconnectCallback()
DV8WebGLRenderingContextCustom.cpp190 V8Proxy::setDOMException(SYNTAX_ERR); in getObjectParameter()
218 V8Proxy::setDOMException(ec); in getObjectParameter()
244 V8Proxy::setDOMException(SYNTAX_ERR); in getAttachedShadersCallback()
251 V8Proxy::throwTypeError(); in getAttachedShadersCallback()
258 V8Proxy::setDOMException(ec); in getAttachedShadersCallback()
280 V8Proxy::setDOMException(SYNTAX_ERR); in getExtensionCallback()
293 V8Proxy::setDOMException(SYNTAX_ERR); in getFramebufferAttachmentParameterCallback()
304 V8Proxy::setDOMException(ec); in getFramebufferAttachmentParameterCallback()
315 V8Proxy::setDOMException(SYNTAX_ERR); in getParameterCallback()
324 V8Proxy::setDOMException(ec); in getParameterCallback()
[all …]
DV8SVGLengthCustom.cpp50 V8Proxy::setDOMException(ec); in valueAccessorGetter()
61 V8Proxy::setDOMException(NO_MODIFICATION_ALLOWED_ERR); in valueAccessorSetter()
66 V8Proxy::throwTypeError(); in valueAccessorSetter()
74 V8Proxy::setDOMException(ec); in valueAccessorSetter()
84 V8Proxy::setDOMException(NO_MODIFICATION_ALLOWED_ERR); in convertToSpecifiedUnitsCallback()
89 return throwError("Not enough arguments", V8Proxy::SyntaxError); in convertToSpecifiedUnitsCallback()
96 V8Proxy::setDOMException(ec); in convertToSpecifiedUnitsCallback()
DV8SQLResultSetRowListCustom.cpp47 V8Proxy::throwError(V8Proxy::SyntaxError, "Item index is required."); in itemCallback()
52 V8Proxy::throwError(V8Proxy::TypeError, "Item index must be a number."); in itemCallback()
60 V8Proxy::throwError(V8Proxy::RangeError, "Item index is out of range."); in itemCallback()
DV8ArrayBufferViewCustom.h58 …ayBuffer length minus the byteOffset is not a multiple of the element size.", V8Proxy::RangeError); in constructWebGLArrayWithArrayBufferArgument()
68 V8Proxy::setDOMException(INDEX_SIZE_ERR); in constructWebGLArrayWithArrayBufferArgument()
117 return V8Proxy::throwError(V8Proxy::TypeError, "Type error"); in constructWebGLArray()
147 …return throwError("ArrayBufferView size is not a small enough positive integer.", V8Proxy::RangeEr… in constructWebGLArray()
167 V8Proxy::setDOMException(SYNTAX_ERR); in setWebGLArrayHelper()
181 V8Proxy::setDOMException(ec); in setWebGLArrayHelper()
196 V8Proxy::setDOMException(INDEX_SIZE_ERR); in setWebGLArrayHelper()
204 V8Proxy::setDOMException(SYNTAX_ERR); in setWebGLArrayHelper()
DV8HTMLDocumentCustom.cpp115 Frame* frame = V8Proxy::retrieveFrameForCallingContext(); in writeCallback()
124 Frame* frame = V8Proxy::retrieveFrameForCallingContext(); in writelnCallback()
137 v8::Local<v8::Context> context = V8Proxy::context(frame); in openCallback()
154 V8Proxy* proxy = V8Proxy::retrieve(frame); in openCallback()
163 Frame* frame = V8Proxy::retrieveFrameForCallingContext(); in openCallback()
191 if (V8Proxy* proxy = V8Proxy::retrieve(impl->frame())) in toV8()
DV8EventSourceConstructor.cpp51 … return throwError("DOM object constructor cannot be called as a function.", V8Proxy::TypeError); in constructorCallback()
57 …return throwError("EventSource constructor's associated context is not available", V8Proxy::Refere… in constructorCallback()
59 return throwError("Not enough arguments", V8Proxy::SyntaxError); in constructorCallback()
DV8DirectoryEntrySyncCustom.cpp105 V8Proxy::setDOMException(ec); in getDirectoryCallback()
110 V8Proxy::setDOMException(ec); in getDirectoryCallback()
124 V8Proxy::setDOMException(ec); in getFileCallback()
129 V8Proxy::setDOMException(ec); in getFileCallback()
DV8WebSocketCustom.cpp55 return throwError("Not enough arguments", V8Proxy::SyntaxError); in constructorCallback()
62 return throwError("Empty URL", V8Proxy::SyntaxError); in constructorCallback()
67 …return throwError("WebSocket constructor's associated frame is not available", V8Proxy::ReferenceE… in constructorCallback()
DV8CustomXPathNSResolver.cpp68 if (V8Proxy* proxy = V8Proxy::retrieve()) { in lookupNamespaceURI()
83 …v8::Handle<v8::Value> retval = V8Proxy::callFunctionWithoutFrame(function, m_resolver, argc, argv); in lookupNamespaceURI()
DV8HTMLAudioElementConstructor.cpp56 Frame* frame = V8Proxy::retrieveFrameForCurrentContext(); in v8HTMLAudioElementConstructorCallback()
58 … return throwError("Audio constructor associated frame is unavailable", V8Proxy::ReferenceError); in v8HTMLAudioElementConstructorCallback()
62 …return throwError("Audio constructor associated document is unavailable", V8Proxy::ReferenceError); in v8HTMLAudioElementConstructorCallback()
DV8DOMWindowCustom.cpp85 V8Proxy::setDOMException(INVALID_ACCESS_ERR); in WindowSetTimeoutImpl()
129 …ScheduledAction* action = new ScheduledAction(V8Proxy::context(imp->frame()), v8::Handle<v8::Funct… in WindowSetTimeoutImpl()
137 …id = DOMTimer::install(scriptContext, new ScheduledAction(V8Proxy::context(imp->frame()), function… in WindowSetTimeoutImpl()
160 v8::Local<v8::Context> context = V8Proxy::context(frame); in eventAccessorGetter()
181 v8::Local<v8::Context> context = V8Proxy::context(frame); in eventAccessorSetter()
269 V8Proxy* proxy = V8Proxy::retrieve(imp->frame()); in addEventListenerCallback()
301 V8Proxy* proxy = V8Proxy::retrieve(imp->frame()); in removeEventListenerCallback()
320 DOMWindow* source = V8Proxy::retrieveFrameForCallingContext()->domWindow(); in postMessageCallback()
394 m_dialogContext = V8Proxy::context(dialogFrame->frame()); in dialogCreated()
611 v8::Handle<v8::Context> context = V8Proxy::context(frame); in toV8()
DV8HTMLImageElementConstructor.cpp56 Frame* frame = V8Proxy::retrieveFrameForCurrentContext(); in v8HTMLImageElementConstructorCallback()
58 … return throwError("Image constructor associated frame is unavailable", V8Proxy::ReferenceError); in v8HTMLImageElementConstructorCallback()
62 …return throwError("Image constructor associated document is unavailable", V8Proxy::ReferenceError); in v8HTMLImageElementConstructorCallback()
/external/webkit/Source/WebCore/bindings/v8/specialization/
DV8BindingState.cpp55 return V8Proxy::retrieveWindow(activeContext); in activeWindow()
60 return V8Proxy::retrieveWindow(v8::Context::GetEntered()); in firstWindow()
65 Frame* frame = V8Proxy::retrieveFrameForCallingContext(); in activeFrame()
72 frame = V8Proxy::retrieveFrameForEnteredContext(); in activeFrame()
79 return V8Proxy::retrieveFrameForEnteredContext(); in firstFrame()
84 V8Proxy::reportUnsafeAccessTo(target); in immediatelyReportUnsafeAccessTo()

1234