Commit 9a0472b2 authored by ggaren@apple.com's avatar ggaren@apple.com

JavaScriptCore:

2008-07-28  Geoffrey Garen  <ggaren@apple.com>

        Reviewed by Sam Weinig.

        Renamed "ConstructTypeNative" => "ConstructTypeHost".

WebCore:

2008-07-28  Geoffrey Garen  <ggaren@apple.com>

        Reviewed by Sam Weinig.

        Renamed "ConstructTypeNative" => "ConstructTypeHost".



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@35411 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent d0ff3bc7
......@@ -79,7 +79,7 @@ static JSObject* constructJSCallback(ExecState* exec, JSObject* constructor, con
ConstructType JSCallbackConstructor::getConstructData(ConstructData& constructData)
{
constructData.native.function = constructJSCallback;
return ConstructTypeNative;
return ConstructTypeHost;
}
} // namespace KJS
......@@ -245,7 +245,7 @@ ConstructType JSCallbackObject<Base>::getConstructData(ConstructData& constructD
for (JSClassRef jsClass = m_class; jsClass; jsClass = jsClass->parentClass) {
if (jsClass->callAsConstructor) {
constructData.native.function = construct;
return ConstructTypeNative;
return ConstructTypeHost;
}
}
return ConstructTypeNone;
......
2008-07-28 Geoffrey Garen <ggaren@apple.com>
Reviewed by Sam Weinig.
Renamed "ConstructTypeNative" => "ConstructTypeHost".
2008-07-26 Mark Rowe <mrowe@apple.com>
Speculative fix for the wx build.
......@@ -2494,7 +2494,7 @@ JSValue* Machine::privateExecute(ExecutionFlag flag, ExecState* exec, RegisterFi
NEXT_OPCODE;
}
if (constructType == ConstructTypeNative) {
if (constructType == ConstructTypeHost) {
if (*enabledProfilerReference)
(*enabledProfilerReference)->willExecute(exec, constructor);
......
......@@ -64,7 +64,7 @@ static JSObject* constructWithArrayConstructor(ExecState* exec, JSObject*, const
ConstructType ArrayConstructor::getConstructData(ConstructData& constructData)
{
constructData.native.function = constructWithArrayConstructor;
return ConstructTypeNative;
return ConstructTypeHost;
}
static JSValue* callArrayConstructor(ExecState* exec, JSObject*, JSValue*, const ArgList& args)
......
......@@ -51,7 +51,7 @@ static JSObject* constructWithBooleanConstructor(ExecState* exec, JSObject*, con
ConstructType BooleanConstructor::getConstructData(ConstructData& constructData)
{
constructData.native.function = constructWithBooleanConstructor;
return ConstructTypeNative;
return ConstructTypeHost;
}
// ECMA 15.6.1
......
......@@ -32,7 +32,7 @@ namespace KJS {
JSObject* construct(ExecState* exec, JSValue* object, ConstructType constructType, const ConstructData& constructData, const ArgList& args)
{
if (constructType == ConstructTypeNative)
if (constructType == ConstructTypeHost)
return constructData.native.function(exec, static_cast<JSObject*>(object), args);
ASSERT(constructType == ConstructTypeJS);
// FIXME: Can this be done more efficiently using the constructData?
......
......@@ -40,7 +40,7 @@ namespace KJS {
enum ConstructType {
ConstructTypeNone,
ConstructTypeNative,
ConstructTypeHost,
ConstructTypeJS
};
......
......@@ -112,7 +112,7 @@ static JSObject* constructDate(ExecState* exec, JSObject*, const ArgList& args)
ConstructType DateConstructor::getConstructData(ConstructData& constructData)
{
constructData.native.function = constructDate;
return ConstructTypeNative;
return ConstructTypeHost;
}
// ECMA 15.9.2
......
......@@ -54,7 +54,7 @@ static JSObject* constructWithErrorConstructor(ExecState* exec, JSObject*, const
ConstructType ErrorConstructor::getConstructData(ConstructData& constructData)
{
constructData.native.function = constructWithErrorConstructor;
return ConstructTypeNative;
return ConstructTypeHost;
}
// ECMA 15.9.2
......
......@@ -49,7 +49,7 @@ static JSObject* constructWithFunctionConstructor(ExecState* exec, JSObject*, co
ConstructType FunctionConstructor::getConstructData(ConstructData& constructData)
{
constructData.native.function = constructWithFunctionConstructor;
return ConstructTypeNative;
return ConstructTypeHost;
}
static JSValue* callFunctionConstructor(ExecState* exec, JSObject*, JSValue*, const ArgList& args)
......
......@@ -54,7 +54,7 @@ static JSObject* constructWithNativeErrorConstructor(ExecState* exec, JSObject*
ConstructType NativeErrorConstructor::getConstructData(ConstructData& constructData)
{
constructData.native.function = constructWithNativeErrorConstructor;
return ConstructTypeNative;
return ConstructTypeHost;
}
static JSValue* callNativeErrorConstructor(ExecState* exec, JSObject* constructor, JSValue*, const ArgList& args)
......
......@@ -85,7 +85,7 @@ static JSObject* constructWithNumberConstructor(ExecState* exec, JSObject*, cons
ConstructType NumberConstructor::getConstructData(ConstructData& constructData)
{
constructData.native.function = constructWithNumberConstructor;
return ConstructTypeNative;
return ConstructTypeHost;
}
// ECMA 15.7.2
......
......@@ -54,7 +54,7 @@ static JSObject* constructWithObjectConstructor(ExecState* exec, JSObject*, cons
ConstructType ObjectConstructor::getConstructData(ConstructData& constructData)
{
constructData.native.function = constructWithObjectConstructor;
return ConstructTypeNative;
return ConstructTypeHost;
}
static JSValue* callObjectConstructor(ExecState* exec, JSObject*, JSValue*, const ArgList& args)
......
......@@ -296,7 +296,7 @@ static JSObject* constructWithRegExpConstructor(ExecState* exec, JSObject*, cons
ConstructType RegExpConstructor::getConstructData(ConstructData& constructData)
{
constructData.native.function = constructWithRegExpConstructor;
return ConstructTypeNative;
return ConstructTypeHost;
}
// ECMA 15.10.3
......
......@@ -69,7 +69,7 @@ static JSObject* constructWithStringConstructor(ExecState* exec, JSObject*, cons
ConstructType StringConstructor::getConstructData(ConstructData& constructData)
{
constructData.native.function = constructWithStringConstructor;
return ConstructTypeNative;
return ConstructTypeHost;
}
// ECMA 15.5.1
......
2008-07-28 Geoffrey Garen <ggaren@apple.com>
Reviewed by Sam Weinig.
Renamed "ConstructTypeNative" => "ConstructTypeHost".
2008-07-28 Anders Carlsson <andersca@apple.com>
Reviewed by Kevin Decker.
......@@ -62,7 +62,7 @@ static JSObject* constructAudio(ExecState* exec, JSObject* constructor, const Ar
ConstructType JSAudioConstructor::getConstructData(ConstructData& constructData)
{
constructData.native.function = constructAudio;
return ConstructTypeNative;
return ConstructTypeHost;
}
} // namespace WebCore
......
......@@ -70,7 +70,7 @@ static JSObject* constructHTMLOptionElement(ExecState* exec, JSObject* construct
ConstructType JSHTMLOptionElementConstructor::getConstructData(ConstructData& constructData)
{
constructData.native.function = constructHTMLOptionElement;
return ConstructTypeNative;
return ConstructTypeHost;
}
} // namespace WebCore
......@@ -69,7 +69,7 @@ static JSObject* constructImage(ExecState* exec, JSObject* constructor, const Ar
ConstructType JSImageConstructor::getConstructData(ConstructData& constructData)
{
constructData.native.function = constructImage;
return ConstructTypeNative;
return ConstructTypeHost;
}
} // namespace WebCore
......@@ -215,7 +215,7 @@ ConstructType JSQuarantinedObjectWrapper::getConstructData(ConstructData& constr
if (m_unwrappedObject->getConstructData(unwrappedConstructData) == ConstructTypeNone)
return ConstructTypeNone;
constructData.native.function = construct;
return ConstructTypeNative;
return ConstructTypeHost;
}
bool JSQuarantinedObjectWrapper::implementsHasInstance() const
......
......@@ -48,7 +48,7 @@ static JSObject* constructXMLHttpRequest(ExecState* exec, JSObject* constructor,
ConstructType JSXMLHttpRequestConstructor::getConstructData(ConstructData& constructData)
{
constructData.native.function = constructXMLHttpRequest;
return ConstructTypeNative;
return ConstructTypeHost;
}
} // namespace WebCore
......@@ -53,7 +53,7 @@ static JSObject* constructXSLTProcessor(ExecState* exec, JSObject*, const ArgLis
ConstructType JSXSLTProcessorConstructor::getConstructData(ConstructData& constructData)
{
constructData.native.function = constructXSLTProcessor;
return ConstructTypeNative;
return ConstructTypeHost;
}
} // namespace WebCore
......
......@@ -1829,7 +1829,7 @@ $implContent .= << "EOF";
virtual ConstructType getConstructData(ConstructData& constructData)
{
constructData.native.function = construct;
return ConstructTypeNative;
return ConstructTypeHost;
}
EOF
}
......
......@@ -99,7 +99,7 @@ ConstructType QtRuntimeObjectImp::getConstructData(ConstructData& constructData)
case CallTypeNone:
break;
case CallTypeHost:
type = ConstructTypeNative;
type = ConstructTypeHost;
break;
case CallTypeJS:
type = ConstructTypeJS;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment