Lines Matching refs:scriptState

47 bool ScriptValue::getString(ScriptState* scriptState, String& result) const
53 if (!m_value.get().getString(scriptState, ustring))
59 String ScriptValue::toString(ScriptState* scriptState) const
61 String result = ustringToString(m_value.get().toString(scriptState));
63 if (scriptState->hadException())
64 scriptState->clearException();
68 bool ScriptValue::isEqual(ScriptState* scriptState, const ScriptValue& anotherValue) const
73 return JSValueIsEqual(toRef(scriptState), toRef(scriptState, jsValue()), toRef(scriptState, anotherValue.jsValue()), 0);
103 PassRefPtr<SerializedScriptValue> ScriptValue::serialize(ScriptState* scriptState, SerializationErrorMode throwExceptions)
105 return SerializedScriptValue::create(scriptState, jsValue(), throwExceptions);
108 ScriptValue ScriptValue::deserialize(ScriptState* scriptState, SerializedScriptValue* value, SerializationErrorMode throwExceptions)
110 return ScriptValue(scriptState->globalData(), value->deserialize(scriptState, scriptState->lexicalGlobalObject(), throwExceptions));
114 static PassRefPtr<InspectorValue> jsToInspectorValue(ScriptState* scriptState, JSValue value)
127 UString s = value.getString(scriptState);
131 if (isJSArray(&scriptState->globalData(), value)) {
137 RefPtr<InspectorValue> elementValue = jsToInspectorValue(scriptState, element);
148 PropertyNameArray propertyNames(scriptState);
149 object->getOwnPropertyNames(scriptState, propertyNames);
152 JSValue propertyValue = object->get(scriptState, name);
153 RefPtr<InspectorValue> inspectorValue = jsToInspectorValue(scriptState, propertyValue);
166 PassRefPtr<InspectorValue> ScriptValue::toInspectorValue(ScriptState* scriptState) const
168 return jsToInspectorValue(scriptState, m_value.get());