/external/webkit/Source/JavaScriptCore/runtime/ |
H A D | ObjectPrototype.cpp | 61 void ObjectPrototype::put(ExecState* exec, const Identifier& propertyName, JSValue value, PutPropertySlot& slot) 85 JSValue thisValue = exec->hostThisValue(); 86 return JSValue::encode(thisValue.toThisObject(exec)); 91 JSValue thisValue = exec->hostThisValue(); 92 return JSValue::encode(jsBoolean(thisValue.toThisObject(exec)->hasOwnProperty(exec, Identifier(exec, exec->argument(0).toString(exec))))); 97 JSValue thisValue = exec->hostThisValue(); 101 return JSValue::encode(jsBoolean(false)); 103 JSValue v = asObject(exec->argument(0))->prototype(); 107 return JSValue::encode(jsBoolean(false)); 109 return JSValue [all...] |
H A D | JSFunction.h | 76 static Structure* createStructure(JSGlobalData& globalData, JSValue prototype) 97 virtual void put(ExecState*, const Identifier& propertyName, JSValue, PutPropertySlot&); 102 static JSValue argumentsGetter(ExecState*, JSValue, const Identifier&); 103 static JSValue callerGetter(ExecState*, JSValue, const Identifier&); 104 static JSValue lengthGetter(ExecState*, JSValue, const Identifier&); 110 JSFunction* asFunction(JSValue); 112 inline JSFunction* asFunction(JSValue valu [all...] |
H A D | JSCell.h | 64 friend class JSValue; 105 // FIXME: remove these methods, can check isNumberCell in JSValue && then call asNumberCell::*. 109 virtual JSValue toPrimitive(ExecState*, PreferredPrimitiveType) const; 110 virtual bool getPrimitiveNumber(ExecState*, double& number, JSValue&); 128 virtual void put(ExecState*, const Identifier& propertyName, JSValue, PutPropertySlot&); 129 virtual void put(ExecState*, unsigned propertyName, JSValue); 134 virtual JSValue getJSNumber(); 186 // --- JSValue inlines ---------------------------- 188 inline bool JSValue::isString() const 193 inline bool JSValue [all...] |
H A D | DatePrototype.cpp | 456 JSValue thisValue = exec->hostThisValue(); 464 return JSValue::encode(jsNontrivialString(exec, "Invalid Date")); 469 return JSValue::encode(jsMakeNontrivialString(exec, date, " ", time)); 474 JSValue thisValue = exec->hostThisValue(); 482 return JSValue::encode(jsNontrivialString(exec, "Invalid Date")); 487 return JSValue::encode(jsMakeNontrivialString(exec, date, " ", time)); 492 JSValue thisValue = exec->hostThisValue(); 500 return JSValue::encode(jsNontrivialString(exec, "Invalid Date")); 506 return JSValue::encode(jsNontrivialString(exec, buffer)); 511 JSValue thisValu [all...] |
H A D | StringPrototype.cpp | 251 static ALWAYS_INLINE JSValue jsSpliceSubstringsWithSeparators(ExecState* exec, JSString* sourceVal, const UString& source, const StringRange* substringRanges, int rangeCount, const UString* separators, int separatorCount) 299 JSValue thisValue = exec->hostThisValue(); 301 JSValue pattern = exec->argument(0); 302 JSValue replacement = exec->argument(1); 314 return JSValue::encode(JSValue()); 333 return JSValue::encode(jsNull()); 360 JSValue result = cachedCall.call(); 434 return JSValue::encode(sourceVal); 439 return JSValue [all...] |
H A D | NumberPrototype.cpp | 67 static ALWAYS_INLINE bool toThisNumber(JSValue thisValue, double &x) 69 JSValue v = thisValue.getJSNumber(); 81 JSValue argument0 = exec->argument(0); 114 return JSValue::encode(jsString(exec, UString::number(x))); 122 return JSValue::encode(jsString(exec, UString(buffer, length))); 132 JSValue thisValue = exec->hostThisValue(); 133 JSValue v = thisValue.getJSNumber(); 148 return JSValue::encode(jsString(exec, UString::number(x))); 157 return JSValue::encode(jsString(exec, UString(buffer, length))); 170 JSValue thisValu [all...] |
H A D | RegExpPrototype.cpp | 31 #include "JSValue.h" 63 JSValue thisValue = exec->hostThisValue(); 66 return JSValue::encode(asRegExpObject(thisValue)->test(exec)); 71 JSValue thisValue = exec->hostThisValue(); 74 return JSValue::encode(asRegExpObject(thisValue)->exec(exec)); 79 JSValue thisValue = exec->hostThisValue(); 84 JSValue arg0 = exec->argument(0); 85 JSValue arg1 = exec->argument(1); 94 return JSValue::encode(jsUndefined()); 100 return JSValue [all...] |
H A D | Completion.cpp | 50 Completion evaluate(ExecState* exec, ScopeChainNode* scopeChain, const SourceCode& source, JSValue thisValue) 57 JSValue exception = exec->globalData().exception; 58 exec->globalData().exception = JSValue(); 64 JSValue result = exec->interpreter()->execute(program, exec, scopeChain, thisObj); 67 JSValue exception = exec->exception();
|
H A D | JSNotAnObject.h | 46 static Structure* createStructure(JSGlobalData& globalData, JSValue prototype) 55 // JSValue methods 56 virtual JSValue toPrimitive(ExecState*, PreferredPrimitiveType) const; 57 virtual bool getPrimitiveNumber(ExecState*, double& number, JSValue&); 68 virtual void put(ExecState*, const Identifier& propertyName, JSValue, PutPropertySlot&); 69 virtual void put(ExecState*, unsigned propertyName, JSValue);
|
H A D | JSStaticScopeObject.h | 35 JSStaticScopeObject(ExecState* exec, const Identifier& ident, JSValue value, unsigned attributes) 45 virtual JSValue toStrictThisObject(ExecState*) const; 47 virtual void put(ExecState*, const Identifier&, JSValue, PutPropertySlot&); 48 void putWithAttributes(ExecState*, const Identifier&, JSValue, unsigned attributes); 50 static Structure* createStructure(JSGlobalData& globalData, JSValue proto) { return Structure::create(globalData, proto, TypeInfo(ObjectType, StructureFlags), AnonymousSlotCount, &s_info); }
|
H A D | Operations.h | 32 NEVER_INLINE JSValue jsAddSlowCase(CallFrame*, JSValue, JSValue); 33 JSValue jsTypeStringForValue(CallFrame*, JSValue); 34 bool jsIsObjectType(JSValue); 35 bool jsIsFunctionType(JSValue); 37 ALWAYS_INLINE JSValue jsString(ExecState* exec, JSString* s1, JSString* s2) 62 ALWAYS_INLINE JSValue jsString(ExecState* exec, const UString& u1, JSString* s2) 87 ALWAYS_INLINE JSValue jsStrin [all...] |
H A D | JSObject.h | 43 inline JSCell* getJSFunction(JSGlobalData& globalData, JSValue value) 89 JSValue prototype() const; 90 void setPrototype(JSGlobalData&, JSValue prototype); 91 bool setPrototypeWithCycleCheck(JSGlobalData&, JSValue prototype); 98 JSValue get(ExecState*, const Identifier& propertyName) const; 99 JSValue get(ExecState*, unsigned propertyName) const; 109 virtual void put(ExecState*, const Identifier& propertyName, JSValue value, PutPropertySlot&); 110 virtual void put(ExecState*, unsigned propertyName, JSValue value); 112 virtual void putWithAttributes(JSGlobalData*, const Identifier& propertyName, JSValue value, unsigned attributes, bool checkReadOnly, PutPropertySlot& slot); 113 virtual void putWithAttributes(JSGlobalData*, const Identifier& propertyName, JSValue valu [all...] |
/external/webkit/Source/JavaScriptGlue/ |
H A D | UserObjectImp.h | 48 virtual JSValue callAsFunction(ExecState *exec); 50 virtual void put(ExecState *exec, const Identifier &propertyName, JSValue value, PutPropertySlot&); 52 JSValue toPrimitive(ExecState*, PreferredPrimitiveType preferredType = NoPreference) const; 61 static Structure* createStructure(JSGlobalData& globalData, JSValue prototype) 67 static JSValue userObjectGetter(ExecState*, JSValue, const Identifier& propertyName);
|
/external/webkit/Source/WebCore/bindings/js/ |
H A D | JSWorkerContextBase.h | 52 static JSC::Structure* createStructure(JSC::JSGlobalData& globalData, JSC::JSValue prototype) 63 JSC::JSValue toJS(JSC::ExecState*, JSDOMGlobalObject*, WorkerContext*); 64 JSC::JSValue toJS(JSC::ExecState*, WorkerContext*); 66 JSDedicatedWorkerContext* toJSDedicatedWorkerContext(JSC::JSValue); 67 JSWorkerContext* toJSWorkerContext(JSC::JSValue); 70 JSSharedWorkerContext* toJSSharedWorkerContext(JSC::JSValue);
|
H A D | JSDirectoryEntrySyncCustom.cpp | 48 static PassRefPtr<WebKitFlags> getFlags(ExecState* exec, const JSValue& argument) 58 JSValue jsCreate = object->get(exec, Identifier(exec, "create")); 60 JSValue jsExclusive = object->get(exec, Identifier(exec, "exclusive")); 65 JSValue JSDirectoryEntrySync::getFile(ExecState* exec) 77 JSC::JSValue result = toJS(exec, this->globalObject(), WTF::getPtr(imp->getFile(path, flags, ec))); 82 JSValue JSDirectoryEntrySync::getDirectory(ExecState* exec) 94 JSC::JSValue result = toJS(exec, this->globalObject(), WTF::getPtr(imp->getDirectory(path, flags, ec)));
|
H A D | JSDataViewCustom.cpp | 45 JSValue toJS(ExecState* exec, JSDOMGlobalObject* globalObject, DataView* object) 58 return JSValue::encode(jsUndefined()); 62 return JSValue::encode(asObject(toJS(exec, jsConstructor->globalObject(), view.get()))); 65 static JSValue getDataViewMember(ExecState* exec, DataView* imp, DataViewAccessType type) 81 JSC::JSValue result; 92 result = isnan(value) ? JSValue(nonInlineNaN()) : jsNumber(value); 102 JSValue JSDataView::getInt8(ExecState* exec) 107 JSValue JSDataView::getUint8(ExecState* exec) 112 JSValue JSDataView::getFloat32(ExecState* exec) 117 JSValue JSDataVie [all...] |
H A D | JSCallbackData.cpp | 45 JSValue JSCallbackData::invokeCallback(MarkedArgumentBuffer& args, bool* raisedException) 51 JSValue function = callback()->get(exec, Identifier(exec, "handleEvent")); 58 return JSValue(); 66 return JSValue(); 69 JSValue result = contextIsDocument
|
H A D | JSHTMLInputElementCustom.cpp | 36 JSValue JSHTMLInputElement::selectionStart(ExecState* exec) const 45 void JSHTMLInputElement::setSelectionStart(ExecState* exec, JSValue value) 54 JSValue JSHTMLInputElement::selectionEnd(ExecState* exec) const 63 void JSHTMLInputElement::setSelectionEnd(ExecState* exec, JSValue value) 72 JSValue JSHTMLInputElement::setSelectionRange(ExecState* exec)
|
H A D | JSSharedWorkerCustom.cpp | 67 return JSValue::encode(JSValue()); 75 return JSValue::encode(JSValue()); 78 return JSValue::encode(asObject(toJS(exec, jsConstructor->globalObject(), worker.release())));
|
H A D | JSWorkerContextBase.cpp | 64 JSValue toJS(ExecState* exec, JSDOMGlobalObject*, WorkerContext* workerContext) 69 JSValue toJS(ExecState*, WorkerContext* workerContext) 81 JSDedicatedWorkerContext* toJSDedicatedWorkerContext(JSValue value) 92 JSSharedWorkerContext* toJSSharedWorkerContext(JSValue value) 103 JSWorkerContext* toJSWorkerContext(JSValue value)
|
/external/webkit/Source/JavaScriptCore/interpreter/ |
H A D | Register.h | 32 #include "JSValue.h" 54 Register(const JSValue&); 55 Register& operator=(const JSValue&); 56 JSValue jsValue() const; 93 *this = JSValue(); 97 ALWAYS_INLINE Register::Register(const JSValue& v) 102 u.value = JSValue::encode(v); 105 ALWAYS_INLINE Register& Register::operator=(const JSValue& v) 110 u.value = JSValue::encode(v); 114 ALWAYS_INLINE JSValue Registe [all...] |
/external/webkit/Source/WebCore/bridge/jsc/ |
H A D | BridgeJSC.h | 57 virtual JSValue valueFromInstance(ExecState*, const Instance*) const = 0; 58 virtual void setValueToInstance(ExecState*, const Instance*, JSValue) const = 0; 69 virtual JSValue fallbackObject(ExecState*, Instance*, const Identifier&) { return jsUndefined(); } 94 virtual bool setValueOfUndefinedField(ExecState*, const Identifier&, JSValue) { return false; } 96 virtual JSValue getMethod(ExecState* exec, const Identifier& propertyName) = 0; 97 virtual JSValue invokeMethod(ExecState*, RuntimeMethod* method) = 0; 100 virtual JSValue invokeDefaultMethod(ExecState*) { return jsUndefined(); } 103 virtual JSValue invokeConstruct(ExecState*, const ArgList&) { return JSValue(); } 107 virtual JSValue defaultValu [all...] |
/external/webkit/Source/WebCore/bindings/scripts/test/JS/ |
H A D | JSTestSerializedScriptValueInterface.h | 44 static PassRefPtr<JSC::Structure> createStructure(JSC::JSGlobalData& globalData, JSC::JSValue prototype) 49 static JSC::JSValue getConstructor(JSC::ExecState*, JSC::JSGlobalObject*); 58 JSC::JSValue toJS(JSC::ExecState*, JSDOMGlobalObject*, TestSerializedScriptValueInterface*); 59 TestSerializedScriptValueInterface* toTestSerializedScriptValueInterface(JSC::JSValue); 66 static PassRefPtr<JSC::Structure> createStructure(JSC::JSGlobalData& globalData, JSC::JSValue prototype) 77 JSC::JSValue jsTestSerializedScriptValueInterfaceValue(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&); 78 JSC::JSValue jsTestSerializedScriptValueInterfaceConstructor(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
|
/external/webkit/Source/JavaScriptCore/debugger/ |
H A D | DebuggerActivation.h | 42 virtual void put(ExecState*, const Identifier& propertyName, JSValue, PutPropertySlot&); 43 virtual void putWithAttributes(ExecState*, const Identifier& propertyName, JSValue, unsigned attributes); 49 virtual JSValue lookupGetter(ExecState*, const Identifier& propertyName); 50 virtual JSValue lookupSetter(ExecState*, const Identifier& propertyName); 52 static Structure* createStructure(JSGlobalData& globalData, JSValue prototype)
|
/external/webkit/Source/JavaScriptCore/API/ |
H A D | JSCallbackObject.h | 50 JSValue getPrivateProperty(const Identifier& propertyName) const 53 return JSValue(); 57 void setPrivateProperty(JSGlobalData& globalData, JSCell* owner, const Identifier& propertyName, JSValue value) 81 JSValue getPrivateProperty(const Identifier& propertyName) const 85 return JSValue(); 89 void setPrivateProperty(JSGlobalData& globalData, JSCell* owner, const Identifier& propertyName, JSValue value) 131 static Structure* createStructure(JSGlobalData& globalData, JSValue proto) 136 JSValue getPrivateProperty(const Identifier& propertyName) const 141 void setPrivateProperty(JSGlobalData& globalData, const Identifier& propertyName, JSValue value) 160 virtual void put(ExecState*, const Identifier&, JSValue, PutPropertySlo [all...] |