Searched refs:exec (Results 26 - 50 of 801) sorted by relevance

1234567891011>>

/external/webkit/Source/WebCore/bindings/js/
H A DJSSQLTransactionCustom.cpp45 JSValue JSSQLTransaction::executeSql(ExecState* exec) argument
47 if (!exec->argumentCount()) {
48 setDOMException(exec, SYNTAX_ERR);
52 String sqlStatement = ustringToString(exec->argument(0).toString(exec));
53 if (exec->hadException())
58 if (!exec->argument(1).isUndefinedOrNull()) {
59 JSObject* object = exec->argument(1).getObject();
61 setDOMException(exec, TYPE_MISMATCH_ERR);
65 JSValue lengthValue = object->get(exec, exe
[all...]
H A DJSXSLTProcessorCustom.cpp49 JSValue JSXSLTProcessor::importStylesheet(ExecState* exec) argument
51 JSValue nodeVal = exec->argument(0);
61 JSValue JSXSLTProcessor::transformToFragment(ExecState* exec) argument
63 JSValue nodeVal = exec->argument(0);
64 JSValue docVal = exec->argument(1);
68 return toJS(exec, impl()->transformToFragment(node, doc).get());
74 JSValue JSXSLTProcessor::transformToDocument(ExecState* exec) argument
76 JSValue nodeVal = exec->argument(0);
81 return toJS(exec, resultDocument.get());
88 JSValue JSXSLTProcessor::setParameter(ExecState* exec) argument
99 getParameter(ExecState* exec) argument
109 removeParameter(ExecState* exec) argument
119 constructJSXSLTProcessor(ExecState* exec) argument
[all...]
H A DJSAudioNodeCustom.cpp36 JSC::JSValue JSAudioNode::connect(JSC::ExecState* exec) argument
38 if (exec->argumentCount() < 1)
39 return throwError(exec, createSyntaxError(exec, "Not enough arguments"));
44 AudioNode* destinationNode = toAudioNode(exec->argument(0));
46 return throwError(exec, createSyntaxError(exec, "Invalid destination node"));
48 if (exec->argumentCount() > 1)
49 outputIndex = exec->argument(1).toInt32(exec);
62 disconnect(JSC::ExecState* exec) argument
[all...]
H A DJSDeviceMotionEventCustom.cpp38 static PassRefPtr<DeviceMotionData::Acceleration> readAccelerationArgument(JSValue value, ExecState* exec) argument
44 JSObject* object = value.toObject(exec);
46 JSValue xValue = object->get(exec, Identifier(exec, "x"));
47 if (exec->hadException())
50 double x = xValue.toNumber(exec);
51 if (exec->hadException())
54 JSValue yValue = object->get(exec, Identifier(exec, "y"));
55 if (exec
76 readRotationRateArgument(JSValue value, ExecState* exec) argument
114 createAccelerationObject(const DeviceMotionData::Acceleration* acceleration, ExecState* exec) argument
123 createRotationRateObject(const DeviceMotionData::RotationRate* rotationRate, ExecState* exec) argument
164 initDeviceMotionEvent(ExecState* exec) argument
[all...]
H A DJSEventSourceCustom.cpp47 EncodedJSValue JSC_HOST_CALL JSEventSourceConstructor::constructJSEventSource(ExecState* exec) argument
49 if (exec->argumentCount() < 1)
50 return throwVMError(exec, createSyntaxError(exec, "Not enough arguments"));
52 UString url = exec->argument(0).toString(exec);
53 if (exec->hadException())
56 JSEventSourceConstructor* jsConstructor = static_cast<JSEventSourceConstructor*>(exec->callee());
59 return throwVMError(exec, createReferenceError(exec, "EventSourc
[all...]
H A DJSArrayBufferCustom.cpp37 EncodedJSValue JSC_HOST_CALL JSArrayBufferConstructor::constructJSArrayBuffer(ExecState* exec) argument
39 JSArrayBufferConstructor* jsConstructor = static_cast<JSArrayBufferConstructor*>(exec->callee());
42 if (exec->argumentCount() > 0)
43 length = exec->argument(0).toInt32(exec); // NaN/+inf/-inf returns 0, this is intended by WebIDL
48 return throwVMError(exec, createRangeError(exec, "ArrayBuffer size is not a small enough positive integer."));
49 return JSValue::encode(asObject(toJS(exec, jsConstructor->globalObject(), buffer.get())));
H A DJSDedicatedWorkerContextCustom.cpp45 JSC::JSValue JSDedicatedWorkerContext::postMessage(JSC::ExecState* exec) argument
47 return handlePostMessage(exec, impl());
H A DJSWebKitPointCustom.cpp35 EncodedJSValue JSC_HOST_CALL JSWebKitPointConstructor::constructJSWebKitPoint(ExecState* exec) argument
37 JSWebKitPointConstructor* jsConstructor = static_cast<JSWebKitPointConstructor*>(exec->callee());
41 if (exec->argumentCount() >= 2) {
42 x = static_cast<float>(exec->argument(0).toNumber(exec));
43 y = static_cast<float>(exec->argument(1).toNumber(exec));
49 return JSValue::encode(asObject(toJS(exec, jsConstructor->globalObject(), WebKitPoint::create(x, y))));
H A DJSWebSocketCustom.cpp47 EncodedJSValue JSC_HOST_CALL JSWebSocketConstructor::constructJSWebSocket(ExecState* exec) argument
49 JSWebSocketConstructor* jsConstructor = static_cast<JSWebSocketConstructor*>(exec->callee());
52 return throwVMError(exec, createReferenceError(exec, "WebSocket constructor associated document is unavailable"));
54 if (!exec->argumentCount())
55 return throwVMError(exec, createSyntaxError(exec, "Not enough arguments"));
57 String urlString = ustringToString(exec->argument(0).toString(exec));
58 if (exec
[all...]
H A DJSNavigatorCustom.cpp51 JSValue JSNavigator::webkitGetUserMedia(ExecState* exec) argument
55 String options = ustringToString(exec->argument(0).toString(exec));
56 if (exec->hadException())
59 RefPtr<NavigatorUserMediaSuccessCallback> successCallback = createFunctionOnlyCallback<JSNavigatorUserMediaSuccessCallback>(exec, static_cast<JSDOMGlobalObject*>(exec->lexicalGlobalObject()), exec->argument(1));
60 if (exec->hadException())
63 RefPtr<NavigatorUserMediaErrorCallback> errorCallback = createFunctionOnlyCallback<JSNavigatorUserMediaErrorCallback>(exec, static_cast<JSDOMGlobalObject*>(exec
73 isApplicationInstalled(JSC::ExecState* exec) argument
[all...]
H A DJSDataViewCustom.cpp45 JSValue toJS(ExecState* exec, JSDOMGlobalObject* globalObject, DataView* object) argument
47 return wrap<JSDataView>(exec, globalObject, object);
50 EncodedJSValue JSC_HOST_CALL JSDataViewConstructor::constructJSDataView(ExecState* exec) argument
52 if (exec->argument(0).isNull() || !exec->argument(0).isObject())
53 return throwVMTypeError(exec);
55 RefPtr<DataView> view = constructArrayBufferViewWithArrayBufferArgument<DataView, char>(exec);
57 setDOMException(exec, INDEX_SIZE_ERR);
61 JSDataViewConstructor* jsConstructor = static_cast<JSDataViewConstructor*>(exec->callee());
62 return JSValue::encode(asObject(toJS(exec, jsConstructo
65 getDataViewMember(ExecState* exec, DataView* imp, DataViewAccessType type) argument
102 getInt8(ExecState* exec) argument
107 getUint8(ExecState* exec) argument
112 getFloat32(ExecState* exec) argument
117 getFloat64(ExecState* exec) argument
122 setDataViewMember(ExecState* exec, DataView* imp, DataViewAccessType type) argument
149 setInt8(ExecState* exec) argument
154 setUint8(ExecState* exec) argument
[all...]
H A DJSWorkerContextCustom.cpp70 bool JSWorkerContext::getOwnPropertySlotDelegate(ExecState* exec, const Identifier& propertyName, PropertySlot& slot) argument
73 if (JSGlobalObject::getOwnPropertySlot(exec, propertyName, slot))
78 bool JSWorkerContext::getOwnPropertyDescriptorDelegate(ExecState* exec, const Identifier& propertyName, PropertyDescriptor& descriptor) argument
81 if (JSGlobalObject::getOwnPropertyDescriptor(exec, propertyName, descriptor))
87 JSValue JSWorkerContext::eventSource(ExecState* exec) const
89 return getDOMConstructor<JSEventSourceConstructor>(exec, this);
93 JSValue JSWorkerContext::xmlHttpRequest(ExecState* exec) const
95 return getDOMConstructor<JSXMLHttpRequestConstructor>(exec, this);
99 JSValue JSWorkerContext::webSocket(ExecState* exec) const
101 return getDOMConstructor<JSWebSocketConstructor>(exec, thi
105 importScripts(ExecState* exec) argument
123 setTimeout(ExecState* exec) argument
133 setInterval(ExecState* exec) argument
[all...]
H A DJSSVGPathSegCustom.cpp61 JSValue toJS(ExecState* exec, JSDOMGlobalObject* globalObject, SVGPathSeg* object) argument
66 if (JSDOMWrapper* wrapper = getCachedWrapper(currentWorld(exec), object))
71 return CREATE_DOM_OBJECT_WRAPPER(exec, globalObject, SVGPathSegClosePath, object);
73 return CREATE_DOM_OBJECT_WRAPPER(exec, globalObject, SVGPathSegMovetoAbs, object);
75 return CREATE_DOM_OBJECT_WRAPPER(exec, globalObject, SVGPathSegMovetoRel, object);
77 return CREATE_DOM_OBJECT_WRAPPER(exec, globalObject, SVGPathSegLinetoAbs, object);
79 return CREATE_DOM_OBJECT_WRAPPER(exec, globalObject, SVGPathSegLinetoRel, object);
81 return CREATE_DOM_OBJECT_WRAPPER(exec, globalObject, SVGPathSegCurvetoCubicAbs, object);
83 return CREATE_DOM_OBJECT_WRAPPER(exec, globalObject, SVGPathSegCurvetoCubicRel, object);
85 return CREATE_DOM_OBJECT_WRAPPER(exec, globalObjec
[all...]
H A DJSClipboardCustom.cpp51 JSValue JSClipboard::types(ExecState* exec) const
62 list.append(jsString(exec, stringToUString(*it)));
63 return constructArray(exec, list);
66 JSValue JSClipboard::clearData(ExecState* exec) argument
70 if (!exec->argumentCount()) {
75 if (exec->argumentCount() == 1) {
76 clipboard->clearData(ustringToString(exec->argument(0).toString(exec)));
81 return throwError(exec, createSyntaxError(exec, "clearDat
84 getData(ExecState* exec) argument
100 setDragImage(ExecState* exec) argument
[all...]
/external/webkit/Source/JavaScriptCore/runtime/
H A DObjectConstructor.cpp78 ObjectConstructor::ObjectConstructor(ExecState* exec, JSGlobalObject* globalObject, Structure* structure, ObjectPrototype* objectPrototype) argument
79 : InternalFunction(&exec->globalData(), globalObject, structure, Identifier(exec, "Object"))
82 putDirectWithoutTransition(exec->globalData(), exec->propertyNames().prototype, objectPrototype, DontEnum | DontDelete | ReadOnly);
84 putDirectWithoutTransition(exec->globalData(), exec->propertyNames().length, jsNumber(1), ReadOnly | DontEnum | DontDelete);
87 bool ObjectConstructor::getOwnPropertySlot(ExecState* exec, const Identifier& propertyName, PropertySlot &slot) argument
89 return getStaticFunctionSlot<JSObject>(exec, ExecState::objectConstructorTable(exec), thi
92 getOwnPropertyDescriptor(ExecState* exec, const Identifier& propertyName, PropertyDescriptor& descriptor) argument
98 constructObject(ExecState* exec, JSGlobalObject* globalObject, const ArgList& args) argument
106 constructWithObjectConstructor(ExecState* exec) argument
118 callObjectConstructor(ExecState* exec) argument
130 objectConstructorGetPrototypeOf(ExecState* exec) argument
137 objectConstructorGetOwnPropertyDescriptor(ExecState* exec) argument
167 objectConstructorGetOwnPropertyNames(ExecState* exec) argument
181 objectConstructorKeys(ExecState* exec) argument
195 toPropertyDescriptor(ExecState* exec, JSValue in, PropertyDescriptor& desc) argument
280 objectConstructorDefineProperty(ExecState* exec) argument
297 defineProperties(ExecState* exec, JSObject* object, JSObject* properties) argument
331 objectConstructorDefineProperties(ExecState* exec) argument
340 objectConstructorCreate(ExecState* exec) argument
353 objectConstructorSeal(ExecState* exec) argument
362 objectConstructorFreeze(ExecState* exec) argument
371 objectConstructorPreventExtensions(ExecState* exec) argument
380 objectConstructorIsSealed(ExecState* exec) argument
388 objectConstructorIsFrozen(ExecState* exec) argument
396 objectConstructorIsExtensible(ExecState* exec) argument
[all...]
H A DRegExpMatchesArray.h33 virtual bool getOwnPropertySlot(ExecState* exec, const Identifier& propertyName, PropertySlot& slot) argument
36 fillArrayInstance(exec);
37 return JSArray::getOwnPropertySlot(exec, propertyName, slot);
40 virtual bool getOwnPropertySlot(ExecState* exec, unsigned propertyName, PropertySlot& slot) argument
43 fillArrayInstance(exec);
44 return JSArray::getOwnPropertySlot(exec, propertyName, slot);
47 virtual bool getOwnPropertyDescriptor(ExecState* exec, const Identifier& propertyName, PropertyDescriptor& descriptor) argument
50 fillArrayInstance(exec);
51 return JSArray::getOwnPropertyDescriptor(exec, propertyName, descriptor);
54 virtual void put(ExecState* exec, cons argument
61 put(ExecState* exec, unsigned propertyName, JSValue v) argument
68 deleteProperty(ExecState* exec, const Identifier& propertyName) argument
75 deleteProperty(ExecState* exec, unsigned propertyName) argument
82 getOwnPropertyNames(ExecState* exec, PropertyNameArray& arr, EnumerationMode mode = ExcludeDontEnumProperties) argument
[all...]
H A DCompletion.cpp37 Completion checkSyntax(ExecState* exec, const SourceCode& source) argument
39 JSLock lock(exec);
40 ASSERT(exec->globalData().identifierTable == wtfThreadData().currentIdentifierTable());
42 ProgramExecutable* program = ProgramExecutable::create(exec, source);
43 JSObject* error = program->checkSyntax(exec);
50 Completion evaluate(ExecState* exec, ScopeChainNode* scopeChain, const SourceCode& source, JSValue thisValue) argument
52 JSLock lock(exec);
53 ASSERT(exec->globalData().identifierTable == wtfThreadData().currentIdentifierTable());
55 ProgramExecutable* program = ProgramExecutable::create(exec, source);
57 JSValue exception = exec
[all...]
H A DBooleanConstructor.cpp31 BooleanConstructor::BooleanConstructor(ExecState* exec, JSGlobalObject* globalObject, Structure* structure, BooleanPrototype* booleanPrototype) argument
32 : InternalFunction(&exec->globalData(), globalObject, structure, Identifier(exec, booleanPrototype->classInfo()->className))
34 putDirectWithoutTransition(exec->globalData(), exec->propertyNames().prototype, booleanPrototype, DontEnum | DontDelete | ReadOnly);
37 putDirectWithoutTransition(exec->globalData(), exec->propertyNames().length, jsNumber(1), ReadOnly | DontDelete | DontEnum);
41 JSObject* constructBoolean(ExecState* exec, const ArgList& args) argument
43 BooleanObject* obj = new (exec) BooleanObject(exec
48 constructWithBooleanConstructor(ExecState* exec) argument
61 callBooleanConstructor(ExecState* exec) argument
72 constructBooleanFromImmediateBoolean(ExecState* exec, JSGlobalObject* globalObject, JSValue immediateBooleanValue) argument
[all...]
H A DErrorConstructor.cpp32 ErrorConstructor::ErrorConstructor(ExecState* exec, JSGlobalObject* globalObject, Structure* structure, ErrorPrototype* errorPrototype) argument
33 : InternalFunction(&exec->globalData(), globalObject, structure, Identifier(exec, errorPrototype->classInfo()->className))
36 putDirectWithoutTransition(exec->globalData(), exec->propertyNames().prototype, errorPrototype, DontEnum | DontDelete | ReadOnly);
37 putDirectWithoutTransition(exec->globalData(), exec->propertyNames().length, jsNumber(1), DontDelete | ReadOnly | DontEnum);
42 static EncodedJSValue JSC_HOST_CALL constructWithErrorConstructor(ExecState* exec) argument
44 JSValue message = exec->argumentCount() ? exec
55 callErrorConstructor(ExecState* exec) argument
[all...]
H A DFunctionConstructor.cpp40 FunctionConstructor::FunctionConstructor(ExecState* exec, JSGlobalObject* globalObject, Structure* structure, FunctionPrototype* functionPrototype) argument
41 : InternalFunction(&exec->globalData(), globalObject, structure, Identifier(exec, functionPrototype->classInfo()->className))
43 putDirectWithoutTransition(exec->globalData(), exec->propertyNames().prototype, functionPrototype, DontEnum | DontDelete | ReadOnly);
46 putDirectWithoutTransition(exec->globalData(), exec->propertyNames().length, jsNumber(1), ReadOnly | DontDelete | DontEnum);
49 static EncodedJSValue JSC_HOST_CALL constructWithFunctionConstructor(ExecState* exec) argument
51 ArgList args(exec);
52 return JSValue::encode(constructFunction(exec, asInternalFunctio
61 callFunctionConstructor(ExecState* exec) argument
75 constructFunction(ExecState* exec, JSGlobalObject* globalObject, const ArgList& args, const Identifier& functionName, const UString& sourceURL, int lineNumber) argument
113 constructFunction(ExecState* exec, JSGlobalObject* globalObject, const ArgList& args) argument
[all...]
H A DNativeErrorConstructor.cpp35 NativeErrorConstructor::NativeErrorConstructor(ExecState* exec, JSGlobalObject* globalObject, Structure* structure, Structure* prototypeStructure, const UString& nameAndMessage) argument
36 : InternalFunction(&exec->globalData(), globalObject, structure, Identifier(exec, nameAndMessage))
40 NativeErrorPrototype* prototype = new (exec) NativeErrorPrototype(exec, globalObject, prototypeStructure, nameAndMessage, this);
42 putDirect(exec->globalData(), exec->propertyNames().length, jsNumber(1), DontDelete | ReadOnly | DontEnum); // ECMA 15.11.7.5
43 putDirect(exec->globalData(), exec->propertyNames().prototype, prototype, DontDelete | ReadOnly | DontEnum);
44 m_errorStructure.set(exec
56 constructWithNativeErrorConstructor(ExecState* exec) argument
70 callNativeErrorConstructor(ExecState* exec) argument
[all...]
/external/v8/test/mjsunit/bugs/
H A Dbug-617.js36 RegExp.prototype.exec = make_sure_we_dont_get_here;
40 re.exec = make_sure_we_dont_get_here;
/external/v8/test/mjsunit/regress/
H A Dregress-227.js29 var res = re.exec("!");
32 res = re.exec("!x");
H A Dregress-246.js31 assertEquals(["text"], /(?:text)/.exec("text"))
/external/v8/test/mjsunit/
H A Dregexp-loop-capture.js28 assertEquals(["abc",undefined,undefined,"c"], /(?:(a)|(b)|(c))+/.exec("abc"));
29 assertEquals(["ab",undefined], /(?:(a)|b)*/.exec("ab"));

Completed in 332 milliseconds

1234567891011>>