Searched refs:exec (Results 1 - 25 of 801) sorted by relevance

1234567891011>>

/external/webkit/Source/WebCore/bindings/js/
H A DJSCanvasRenderingContext2DCustom.cpp45 static JSValue toJS(ExecState* exec, CanvasStyle* style) argument
48 return toJS(exec, style->canvasGradient());
50 return toJS(exec, style->canvasPattern());
51 return jsString(exec, style->color());
66 JSValue JSCanvasRenderingContext2D::strokeStyle(ExecState* exec) const
69 return toJS(exec, context->strokeStyle());
72 void JSCanvasRenderingContext2D::setStrokeStyle(ExecState* exec, JSValue value) argument
76 context->setStrokeColor(ustringToString(asString(value)->value(exec)));
79 context->setStrokeStyle(toHTMLCanvasStyle(exec, value));
82 JSValue JSCanvasRenderingContext2D::fillStyle(ExecState* exec) cons
88 setFillStyle(ExecState* exec, JSValue value) argument
98 setFillColor(ExecState* exec) argument
135 setStrokeColor(ExecState* exec) argument
173 strokeRect(ExecState* exec) argument
187 drawImage(ExecState* exec) argument
279 drawImageFromRect(ExecState* exec) argument
299 setShadow(ExecState* exec) argument
345 createPattern(ExecState* exec) argument
376 createImageData(ExecState* exec) argument
394 putImageData(ExecState* exec) argument
412 fillText(ExecState* exec) argument
430 strokeText(ExecState* exec) argument
[all...]
H A DJSGeolocationCustom.cpp48 static PassRefPtr<PositionOptions> createPositionOptions(ExecState* exec, JSValue value) argument
60 JSObject* object = value.toObject(exec);
66 JSValue enableHighAccuracyValue = object->get(exec, Identifier(exec, "enableHighAccuracy"));
67 if (exec->hadException())
70 options->setEnableHighAccuracy(enableHighAccuracyValue.toBoolean(exec));
71 if (exec->hadException())
75 JSValue timeoutValue = object->get(exec, Identifier(exec, "timeout"));
76 if (exec
112 getCurrentPosition(ExecState* exec) argument
134 watchPosition(ExecState* exec) argument
[all...]
H A DJSAudioContextCustom.cpp42 EncodedJSValue JSC_HOST_CALL JSAudioContextConstructor::constructJSAudioContext(ExecState* exec) argument
44 JSAudioContextConstructor* jsConstructor = static_cast<JSAudioContextConstructor*>(exec->callee());
46 return throwError(exec, createReferenceError(exec, "AudioContext constructor callee is unavailable"));
50 return throwError(exec, createReferenceError(exec, "AudioContext constructor script execution context is unavailable"));
53 return throwError(exec, createReferenceError(exec, "AudioContext constructor called in a script execution context which is not a document"));
59 if (!exec->argumentCount()) {
65 if (exec
81 createBuffer(ExecState* exec) argument
[all...]
H A DJSDirectoryEntryCustom.cpp48 JSValue JSDirectoryEntry::getFile(ExecState* exec) argument
51 const String& path = valueToStringWithUndefinedOrNullCheck(exec, exec->argument(0));
52 if (exec->hadException())
55 int argsCount = exec->argumentCount();
62 if (!exec->argument(1).isNull() && !exec->argument(1).isUndefined() && exec->argument(1).isObject() && !exec->argument(1).inherits(&JSWebKitFlags::s_info)) {
63 JSObject* object = exec
94 getDirectory(ExecState* exec) argument
[all...]
H A DJSMessageEventCustom.cpp45 JSValue JSMessageEvent::ports(ExecState* exec) const
53 list.append(toJS(exec, globalObject(), (*ports)[i].get()));
54 return constructArray(exec, list);
57 JSC::JSValue JSMessageEvent::initMessageEvent(JSC::ExecState* exec) argument
59 const UString& typeArg = exec->argument(0).toString(exec);
60 bool canBubbleArg = exec->argument(1).toBoolean(exec);
61 bool cancelableArg = exec->argument(2).toBoolean(exec);
[all...]
H A DJSHTMLCanvasElementCustom.cpp53 JSValue JSHTMLCanvasElement::getContext(ExecState* exec) argument
56 const UString& contextId = exec->argument(0).toString(exec);
62 if (exec->argumentCount() > 1 && exec->argument(1).isObject()) {
63 JSObject* jsAttrs = exec->argument(1).getObject();
64 Identifier alpha(exec, "alpha");
65 if (jsAttrs->hasProperty(exec, alpha))
66 webGLAttrs->setAlpha(jsAttrs->get(exec, alpha).toBoolean(exec));
91 toDataURL(ExecState* exec) argument
[all...]
H A DJSArrayBufferViewHelper.h43 JSC::JSValue setWebGLArrayHelper(JSC::ExecState* exec, T* impl, T* (*conversionFunc)(JSC::JSValue)) argument
45 if (exec->argumentCount() < 1)
46 return JSC::throwSyntaxError(exec);
48 T* array = (*conversionFunc)(exec->argument(0));
52 if (exec->argumentCount() == 2)
53 offset = exec->argument(1).toInt32(exec);
56 setDOMException(exec, ec);
60 if (exec->argument(0).isObject()) {
62 JSC::JSObject* array = JSC::asObject(exec
89 constructArrayBufferViewWithArrayBufferArgument(JSC::ExecState* exec) argument
108 constructArrayBufferView(JSC::ExecState* exec) argument
161 toJSArrayBufferView(JSC::ExecState* exec, JSDOMGlobalObject* globalObject, WebCoreType* object) argument
[all...]
H A DJSLocationCustom.cpp33 static JSValue nonCachingStaticReplaceFunctionGetter(ExecState* exec, JSValue, const Identifier& propertyName) argument
35 return new (exec) JSFunction(exec, exec->lexicalGlobalObject(), exec->lexicalGlobalObject()->functionStructure(), 1, propertyName, jsLocationPrototypeFunctionReplace);
38 static JSValue nonCachingStaticReloadFunctionGetter(ExecState* exec, JSValue, const Identifier& propertyName) argument
40 return new (exec) JSFunction(exec, exec->lexicalGlobalObject(), exec
43 nonCachingStaticAssignFunctionGetter(ExecState* exec, JSValue, const Identifier& propertyName) argument
48 getOwnPropertySlotDelegate(ExecState* exec, const Identifier& propertyName, PropertySlot& slot) argument
89 getOwnPropertyDescriptorDelegate(ExecState* exec, const Identifier& propertyName, PropertyDescriptor& descriptor) argument
128 putDelegate(ExecState* exec, const Identifier& propertyName, JSValue value, PutPropertySlot& slot) argument
155 deleteProperty(ExecState* exec, const Identifier& propertyName) argument
163 getOwnPropertyNames(ExecState* exec, PropertyNameArray& propertyNames, EnumerationMode mode) argument
171 defineGetter(ExecState* exec, const Identifier& propertyName, JSObject* getterFunction, unsigned attributes) argument
178 setHref(ExecState* exec, JSValue value) argument
186 setProtocol(ExecState* exec, JSValue value) argument
196 setHost(ExecState* exec, JSValue value) argument
204 setHostname(ExecState* exec, JSValue value) argument
212 setPort(ExecState* exec, JSValue value) argument
220 setPathname(ExecState* exec, JSValue value) argument
228 setSearch(ExecState* exec, JSValue value) argument
236 setHash(ExecState* exec, JSValue value) argument
244 replace(ExecState* exec) argument
253 reload(ExecState* exec) argument
259 assign(ExecState* exec) argument
268 toStringFunction(ExecState* exec) argument
277 putDelegate(ExecState* exec, const Identifier& propertyName, JSValue, PutPropertySlot&) argument
282 defineGetter(ExecState* exec, const Identifier& propertyName, JSObject* getterFunction, unsigned attributes) argument
[all...]
H A DJSWorkerCustom.cpp42 JSC::JSValue JSWorker::postMessage(JSC::ExecState* exec) argument
44 return handlePostMessage(exec, impl());
47 EncodedJSValue JSC_HOST_CALL JSWorkerConstructor::constructJSWorker(ExecState* exec) argument
49 JSWorkerConstructor* jsConstructor = static_cast<JSWorkerConstructor*>(exec->callee());
51 if (!exec->argumentCount())
52 return throwVMError(exec, createSyntaxError(exec, "Not enough arguments"));
54 UString scriptURL = exec->argument(0).toString(exec);
55 if (exec
[all...]
H A DJSSQLTransactionSyncCustom.cpp44 JSValue JSSQLTransactionSync::executeSql(ExecState* exec) argument
46 if (!exec->argumentCount()) {
47 setDOMException(exec, SYNTAX_ERR);
51 String sqlStatement = ustringToString(exec->argument(0).toString(exec));
52 if (exec->hadException())
57 if (!exec->argument(1).isUndefinedOrNull()) {
58 JSObject* object = exec->argument(1).getObject();
60 setDOMException(exec, TYPE_MISMATCH_ERR);
64 JSValue lengthValue = object->get(exec, exe
[all...]
H A DJSOptionConstructor.cpp38 JSOptionConstructor::JSOptionConstructor(ExecState* exec, JSDOMGlobalObject* globalObject) argument
42 putDirect(exec->globalData(), exec->propertyNames().prototype, JSHTMLOptionElementPrototype::self(exec, globalObject), None);
43 putDirect(exec->globalData(), exec->propertyNames().length, jsNumber(4), ReadOnly | DontDelete | DontEnum);
46 static EncodedJSValue JSC_HOST_CALL constructHTMLOptionElement(ExecState* exec) argument
48 JSOptionConstructor* jsConstructor = static_cast<JSOptionConstructor*>(exec->callee());
51 return throwVMError(exec, createReferenceError(exec, "Optio
[all...]
H A DJSDirectoryEntrySyncCustom.cpp48 static PassRefPtr<WebKitFlags> getFlags(ExecState* exec, const JSValue& argument) argument
58 JSValue jsCreate = object->get(exec, Identifier(exec, "create"));
59 flags->setCreate(jsCreate.toBoolean(exec));
60 JSValue jsExclusive = object->get(exec, Identifier(exec, "exclusive"));
61 flags->setExclusive(jsExclusive.toBoolean(exec));
65 JSValue JSDirectoryEntrySync::getFile(ExecState* exec) argument
68 const String& path = valueToStringWithUndefinedOrNullCheck(exec, exec
82 getDirectory(ExecState* exec) argument
[all...]
/external/webkit/Source/JavaScriptCore/runtime/
H A DJSNotAnObject.cpp40 JSValue JSNotAnObject::toPrimitive(ExecState* exec, PreferredPrimitiveType) const argument
42 ASSERT_UNUSED(exec, exec->hadException());
46 bool JSNotAnObject::getPrimitiveNumber(ExecState* exec, double&, JSValue&) argument
48 ASSERT_UNUSED(exec, exec->hadException());
52 bool JSNotAnObject::toBoolean(ExecState* exec) const
54 ASSERT_UNUSED(exec, exec->hadException());
58 double JSNotAnObject::toNumber(ExecState* exec) cons
70 toObject(ExecState* exec, JSGlobalObject*) const argument
77 getOwnPropertySlot(ExecState* exec, const Identifier&, PropertySlot&) argument
83 getOwnPropertySlot(ExecState* exec, unsigned, PropertySlot&) argument
89 getOwnPropertyDescriptor(ExecState* exec, const Identifier&, PropertyDescriptor&) argument
95 put(ExecState* exec, const Identifier& , JSValue, PutPropertySlot&) argument
100 put(ExecState* exec, unsigned, JSValue) argument
105 deleteProperty(ExecState* exec, const Identifier&) argument
111 deleteProperty(ExecState* exec, unsigned) argument
117 getOwnPropertyNames(ExecState* exec, PropertyNameArray&, EnumerationMode) argument
[all...]
H A DObjectPrototype.cpp43 ObjectPrototype::ObjectPrototype(ExecState* exec, JSGlobalObject* globalObject, Structure* stucture, Structure* functionStructure) argument
44 : JSNonFinalObject(exec->globalData(), stucture)
47 putDirectFunctionWithoutTransition(exec, new (exec) JSFunction(exec, globalObject, functionStructure, 0, exec->propertyNames().toString, objectProtoFuncToString), DontEnum);
48 putDirectFunctionWithoutTransition(exec, new (exec) JSFunction(exec, globalObject, functionStructure, 0, exec
61 put(ExecState* exec, const Identifier& propertyName, JSValue value, PutPropertySlot& slot) argument
72 getOwnPropertySlot(ExecState* exec, unsigned propertyName, PropertySlot& slot) argument
83 objectProtoFuncValueOf(ExecState* exec) argument
89 objectProtoFuncHasOwnProperty(ExecState* exec) argument
95 objectProtoFuncIsPrototypeOf(ExecState* exec) argument
114 objectProtoFuncDefineGetter(ExecState* exec) argument
124 objectProtoFuncDefineSetter(ExecState* exec) argument
134 objectProtoFuncLookupGetter(ExecState* exec) argument
140 objectProtoFuncLookupSetter(ExecState* exec) argument
146 objectProtoFuncPropertyIsEnumerable(ExecState* exec) argument
152 objectProtoFuncToLocaleString(ExecState* exec) argument
158 objectProtoFuncToString(ExecState* exec) argument
[all...]
H A DErrorPrototype.cpp38 ErrorPrototype::ErrorPrototype(ExecState* exec, JSGlobalObject* globalObject, Structure* structure, Structure* functionStructure) argument
39 : ErrorInstance(&exec->globalData(), structure)
43 putDirectWithoutTransition(exec->globalData(), exec->propertyNames().name, jsNontrivialString(exec, "Error"), DontEnum);
44 putDirectFunctionWithoutTransition(exec, new (exec) JSFunction(exec, globalObject, functionStructure, 0, exec->propertyNames().toString, errorProtoFuncToString), DontEnum);
47 EncodedJSValue JSC_HOST_CALL errorProtoFuncToString(ExecState* exec) argument
[all...]
H A DRegExpPrototype.cpp50 RegExpPrototype::RegExpPrototype(ExecState* exec, JSGlobalObject* globalObject, Structure* structure, Structure* functionStructure) argument
51 : RegExpObject(globalObject, structure, RegExp::create(&exec->globalData(), "", NoFlags))
53 putDirectFunctionWithoutTransition(exec, new (exec) JSFunction(exec, globalObject, functionStructure, 2, exec->propertyNames().compile, regExpProtoFuncCompile), DontEnum);
54 putDirectFunctionWithoutTransition(exec, new (exec) JSFunction(exec, globalObject, functionStructure, 1, exec
61 regExpProtoFuncTest(ExecState* exec) argument
69 regExpProtoFuncExec(ExecState* exec) argument
77 regExpProtoFuncCompile(ExecState* exec) argument
115 regExpProtoFuncToString(ExecState* exec) argument
[all...]
H A DStringConstructor.cpp32 static NEVER_INLINE JSValue stringFromCharCodeSlowCase(ExecState* exec) argument
34 unsigned length = exec->argumentCount();
38 buf[i] = static_cast<UChar>(exec->argument(i).toUInt32(exec));
39 return jsString(exec, impl);
42 static EncodedJSValue JSC_HOST_CALL stringFromCharCode(ExecState* exec) argument
44 if (LIKELY(exec->argumentCount() == 1))
45 return JSValue::encode(jsSingleCharacterString(exec, exec->argument(0).toUInt32(exec)));
51 StringConstructor(ExecState* exec, JSGlobalObject* globalObject, Structure* structure, Structure* functionStructure, StringPrototype* stringPrototype) argument
68 constructWithStringConstructor(ExecState* exec) argument
83 callStringConstructor(ExecState* exec) argument
[all...]
H A DArrayConstructor.cpp40 ArrayConstructor::ArrayConstructor(ExecState* exec, JSGlobalObject* globalObject, Structure* structure, ArrayPrototype* arrayPrototype, Structure* functionStructure) argument
41 : InternalFunction(&exec->globalData(), globalObject, structure, Identifier(exec, arrayPrototype->classInfo()->className))
44 putDirectWithoutTransition(exec->globalData(), exec->propertyNames().prototype, arrayPrototype, DontEnum | DontDelete | ReadOnly);
47 putDirectWithoutTransition(exec->globalData(), exec->propertyNames().length, jsNumber(1), ReadOnly | DontEnum | DontDelete);
50 putDirectFunctionWithoutTransition(exec, new (exec) JSFunction(exec, globalObjec
53 constructArrayWithSizeQuirk(ExecState* exec, const ArgList& args) argument
69 constructWithArrayConstructor(ExecState* exec) argument
82 callArrayConstructor(ExecState* exec) argument
96 arrayConstructorIsArray(ExecState* exec) argument
[all...]
H A DBooleanPrototype.cpp40 BooleanPrototype::BooleanPrototype(ExecState* exec, JSGlobalObject* globalObject, Structure* structure, Structure* functionStructure) argument
41 : BooleanObject(exec->globalData(), structure)
43 setInternalValue(exec->globalData(), jsBoolean(false));
45 putDirectFunctionWithoutTransition(exec, new (exec) JSFunction(exec, globalObject, functionStructure, 0, exec->propertyNames().toString, booleanProtoFuncToString), DontEnum);
46 putDirectFunctionWithoutTransition(exec, new (exec) JSFunction(exec, globalObjec
54 booleanProtoFuncToString(ExecState* exec) argument
73 booleanProtoFuncValueOf(ExecState* exec) argument
[all...]
H A DNativeErrorPrototype.cpp34 NativeErrorPrototype::NativeErrorPrototype(ExecState* exec, JSGlobalObject* globalObject, Structure* structure, const UString& nameAndMessage, NativeErrorConstructor* constructor) argument
37 putDirect(exec->globalData(), exec->propertyNames().name, jsString(exec, nameAndMessage), 0);
38 putDirect(exec->globalData(), exec->propertyNames().message, jsString(exec, nameAndMessage), 0);
39 putDirect(exec->globalData(), exec->propertyNames().constructor, constructor, DontEnum);
H A DPropertySlot.cpp29 JSValue PropertySlot::functionGetter(ExecState* exec) const
32 if (exec->hadException())
33 return exec->exception();
37 return call(exec, m_data.getterFunc, callType, callData, thisValue(), exec->emptyList());
H A DStrictEvalActivation.cpp31 StrictEvalActivation::StrictEvalActivation(ExecState* exec) argument
32 : JSNonFinalObject(exec->globalData(), exec->globalData().strictEvalActivationStructure.get())
41 JSObject* StrictEvalActivation::toThisObject(ExecState* exec) const
43 return exec->globalThisValue();
/external/v8/test/mjsunit/third_party/
H A Dregexp-pcre.js1647 assertToStringEquals("abc", res[1].exec("abc"), 0);
1648 assertToStringEquals("abc", res[1].exec("defabc"), 1);
1649 assertToStringEquals("abc", res[1].exec("Aabc"), 2);
1650 assertNull(res[1].exec("*** Failers", 3));
1651 assertToStringEquals("abc", res[1].exec("Adefabc"), 4);
1652 assertToStringEquals("ABC", res[1].exec("ABC"), 5);
1653 assertToStringEquals("abc", res[2].exec("abc"), 6);
1654 assertNull(res[2].exec("Aabc", 7));
1655 assertNull(res[2].exec("*** Failers", 8));
1656 assertNull(res[2].exec("defab
[all...]
/external/v8/test/mjsunit/regress/
H A Dregress-58740.js31 re.exec("");
32 re.exec("anystring");
34 re.exec("");
H A Dregress-1236.js32 pattern.exec(string); // Ensure that JSRegExp is compiled.
34 pattern.exec(string); // Call again to trigger bug in stub.

Completed in 1310 milliseconds

1234567891011>>