Commit 9b26e5d3 authored by akling@apple.com's avatar akling@apple.com

Pack create_hash_table tables better.

<https://webkit.org/b/121517>

Reviewed by Sam Weinig.

Source/JavaScriptCore:

Reduces JavaScriptCore binary size by 4648 bytes.

* create_hash_table:
* runtime/Lookup.h:

    Reorder HashTableValue members to avoid unnecessary padding.

Source/WebCore:

Reduces WebCore binary size by 72744 bytes.

* bindings/scripts/CodeGeneratorJS.pm:
(GenerateHashTable):

    Updated for new HashTableValue member order.

* bindings/scripts/test/JS/*:

    Rebaselined bindings tests.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@156009 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 30416c83
2013-09-17 Andreas Kling <akling@apple.com>
Pack create_hash_table tables better.
<https://webkit.org/b/121517>
Reviewed by Sam Weinig.
Reduces JavaScriptCore binary size by 4648 bytes.
* create_hash_table:
* runtime/Lookup.h:
Reorder HashTableValue members to avoid unnecessary padding.
2013-09-17 Mark Hahnenberg <mhahnenberg@apple.com>
DFG doesn't properly keep scope alive for op_put_to_scope
......
......@@ -281,10 +281,10 @@ sub output() {
$intrinsic = "RegExpTestIntrinsic" if ($key eq "test");
}
print " { \"$key\", $attrs[$i], (intptr_t)" . $castStr . "($firstValue), (intptr_t)$secondValue, $intrinsic },\n";
print " { \"$key\", $attrs[$i], $intrinsic, (intptr_t)" . $castStr . "($firstValue), (intptr_t)$secondValue },\n";
$i++;
}
print " { 0, 0, 0, 0, NoIntrinsic }\n";
print " { 0, 0, NoIntrinsic, 0, 0 }\n";
print "};\n\n";
print "extern const struct HashTable $name =\n";
print " \{ $compactSize, $compactHashSizeMask, $nameEntries, 0 \};\n";
......
......@@ -34,9 +34,9 @@ namespace JSC {
struct HashTableValue {
const char* key; // property name
unsigned char attributes; // JSObject attributes
Intrinsic intrinsic;
intptr_t value1;
intptr_t value2;
Intrinsic intrinsic;
};
// FIXME: There is no reason this get function can't be simpler.
......
2013-09-17 Andreas Kling <akling@apple.com>
Pack create_hash_table tables better.
<https://webkit.org/b/121517>
Reviewed by Sam Weinig.
Reduces WebCore binary size by 72744 bytes.
* bindings/scripts/CodeGeneratorJS.pm:
(GenerateHashTable):
Updated for new HashTableValue member order.
* bindings/scripts/test/JS/*:
Rebaselined bindings tests.
2013-09-17 Zoltan Horvath <zoltan@webkit.org>
[Qt] Add FlowThreadController.h to Target.pri
......@@ -3638,11 +3638,11 @@ sub GenerateHashTable
} else {
$targetType = "static_cast<PropertySlot::GetValueFunc>";
}
push(@implContent, " { \"$key\", @$specials[$i], (intptr_t)" . $targetType . "(@$value1[$i]), (intptr_t)@$value2[$i], NoIntrinsic },\n");
push(@implContent, " { \"$key\", @$specials[$i], NoIntrinsic, (intptr_t)" . $targetType . "(@$value1[$i]), (intptr_t)@$value2[$i] },\n");
push(@implContent, "#endif\n") if $conditional;
++$i;
}
push(@implContent, " { 0, 0, 0, 0, NoIntrinsic }\n");
push(@implContent, " { 0, 0, NoIntrinsic, 0, 0 }\n");
push(@implContent, "};\n\n");
my $compactSizeMask = $numEntries - 1;
push(@implContent, "static const HashTable $name = { $compactSize, $compactSizeMask, $nameEntries, 0 };\n");
......
......@@ -37,9 +37,9 @@ namespace WebCore {
static const HashTableValue JSTestActiveDOMObjectTableValues[] =
{
{ "excitingAttr", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsTestActiveDOMObjectExcitingAttr), (intptr_t)0, NoIntrinsic },
{ "constructor", DontEnum | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsTestActiveDOMObjectConstructor), (intptr_t)0, NoIntrinsic },
{ 0, 0, 0, 0, NoIntrinsic }
{ "excitingAttr", DontDelete | ReadOnly, NoIntrinsic, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsTestActiveDOMObjectExcitingAttr), (intptr_t)0 },
{ "constructor", DontEnum | ReadOnly, NoIntrinsic, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsTestActiveDOMObjectConstructor), (intptr_t)0 },
{ 0, 0, NoIntrinsic, 0, 0 }
};
static const HashTable JSTestActiveDOMObjectTable = { 4, 3, JSTestActiveDOMObjectTableValues, 0 };
......@@ -47,7 +47,7 @@ static const HashTable JSTestActiveDOMObjectTable = { 4, 3, JSTestActiveDOMObjec
static const HashTableValue JSTestActiveDOMObjectConstructorTableValues[] =
{
{ 0, 0, 0, 0, NoIntrinsic }
{ 0, 0, NoIntrinsic, 0, 0 }
};
static const HashTable JSTestActiveDOMObjectConstructorTable = { 1, 0, JSTestActiveDOMObjectConstructorTableValues, 0 };
......@@ -75,9 +75,9 @@ bool JSTestActiveDOMObjectConstructor::getOwnPropertySlot(JSObject* object, Exec
static const HashTableValue JSTestActiveDOMObjectPrototypeTableValues[] =
{
{ "excitingFunction", DontDelete | JSC::Function, (intptr_t)static_cast<NativeFunction>(jsTestActiveDOMObjectPrototypeFunctionExcitingFunction), (intptr_t)1, NoIntrinsic },
{ "postMessage", DontDelete | JSC::Function, (intptr_t)static_cast<NativeFunction>(jsTestActiveDOMObjectPrototypeFunctionPostMessage), (intptr_t)1, NoIntrinsic },
{ 0, 0, 0, 0, NoIntrinsic }
{ "excitingFunction", DontDelete | JSC::Function, NoIntrinsic, (intptr_t)static_cast<NativeFunction>(jsTestActiveDOMObjectPrototypeFunctionExcitingFunction), (intptr_t)1 },
{ "postMessage", DontDelete | JSC::Function, NoIntrinsic, (intptr_t)static_cast<NativeFunction>(jsTestActiveDOMObjectPrototypeFunctionPostMessage), (intptr_t)1 },
{ 0, 0, NoIntrinsic, 0, 0 }
};
static const HashTable JSTestActiveDOMObjectPrototypeTable = { 4, 3, JSTestActiveDOMObjectPrototypeTableValues, 0 };
......
......@@ -36,8 +36,8 @@ namespace WebCore {
static const HashTableValue JSTestCustomNamedGetterTableValues[] =
{
{ "constructor", DontEnum | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsTestCustomNamedGetterConstructor), (intptr_t)0, NoIntrinsic },
{ 0, 0, 0, 0, NoIntrinsic }
{ "constructor", DontEnum | ReadOnly, NoIntrinsic, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsTestCustomNamedGetterConstructor), (intptr_t)0 },
{ 0, 0, NoIntrinsic, 0, 0 }
};
static const HashTable JSTestCustomNamedGetterTable = { 2, 1, JSTestCustomNamedGetterTableValues, 0 };
......@@ -45,7 +45,7 @@ static const HashTable JSTestCustomNamedGetterTable = { 2, 1, JSTestCustomNamedG
static const HashTableValue JSTestCustomNamedGetterConstructorTableValues[] =
{
{ 0, 0, 0, 0, NoIntrinsic }
{ 0, 0, NoIntrinsic, 0, 0 }
};
static const HashTable JSTestCustomNamedGetterConstructorTable = { 1, 0, JSTestCustomNamedGetterConstructorTableValues, 0 };
......@@ -73,8 +73,8 @@ bool JSTestCustomNamedGetterConstructor::getOwnPropertySlot(JSObject* object, Ex
static const HashTableValue JSTestCustomNamedGetterPrototypeTableValues[] =
{
{ "anotherFunction", DontDelete | JSC::Function, (intptr_t)static_cast<NativeFunction>(jsTestCustomNamedGetterPrototypeFunctionAnotherFunction), (intptr_t)1, NoIntrinsic },
{ 0, 0, 0, 0, NoIntrinsic }
{ "anotherFunction", DontDelete | JSC::Function, NoIntrinsic, (intptr_t)static_cast<NativeFunction>(jsTestCustomNamedGetterPrototypeFunctionAnotherFunction), (intptr_t)1 },
{ 0, 0, NoIntrinsic, 0, 0 }
};
static const HashTable JSTestCustomNamedGetterPrototypeTable = { 2, 1, JSTestCustomNamedGetterPrototypeTableValues, 0 };
......
......@@ -36,10 +36,10 @@ namespace WebCore {
static const HashTableValue JSTestEventConstructorTableValues[] =
{
{ "attr1", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsTestEventConstructorAttr1), (intptr_t)0, NoIntrinsic },
{ "attr2", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsTestEventConstructorAttr2), (intptr_t)0, NoIntrinsic },
{ "constructor", DontEnum | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsTestEventConstructorConstructor), (intptr_t)0, NoIntrinsic },
{ 0, 0, 0, 0, NoIntrinsic }
{ "attr1", DontDelete | ReadOnly, NoIntrinsic, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsTestEventConstructorAttr1), (intptr_t)0 },
{ "attr2", DontDelete | ReadOnly, NoIntrinsic, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsTestEventConstructorAttr2), (intptr_t)0 },
{ "constructor", DontEnum | ReadOnly, NoIntrinsic, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsTestEventConstructorConstructor), (intptr_t)0 },
{ 0, 0, NoIntrinsic, 0, 0 }
};
static const HashTable JSTestEventConstructorTable = { 9, 7, JSTestEventConstructorTableValues, 0 };
......@@ -47,7 +47,7 @@ static const HashTable JSTestEventConstructorTable = { 9, 7, JSTestEventConstruc
static const HashTableValue JSTestEventConstructorConstructorTableValues[] =
{
{ 0, 0, 0, 0, NoIntrinsic }
{ 0, 0, NoIntrinsic, 0, 0 }
};
static const HashTable JSTestEventConstructorConstructorTable = { 1, 0, JSTestEventConstructorConstructorTableValues, 0 };
......@@ -119,7 +119,7 @@ ConstructType JSTestEventConstructorConstructor::getConstructData(JSCell*, Const
static const HashTableValue JSTestEventConstructorPrototypeTableValues[] =
{
{ 0, 0, 0, 0, NoIntrinsic }
{ 0, 0, NoIntrinsic, 0, 0 }
};
static const HashTable JSTestEventConstructorPrototypeTable = { 1, 0, JSTestEventConstructorPrototypeTableValues, 0 };
......
......@@ -42,8 +42,8 @@ namespace WebCore {
static const HashTableValue JSTestEventTargetTableValues[] =
{
{ "constructor", DontEnum | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsTestEventTargetConstructor), (intptr_t)0, NoIntrinsic },
{ 0, 0, 0, 0, NoIntrinsic }
{ "constructor", DontEnum | ReadOnly, NoIntrinsic, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsTestEventTargetConstructor), (intptr_t)0 },
{ 0, 0, NoIntrinsic, 0, 0 }
};
static const HashTable JSTestEventTargetTable = { 2, 1, JSTestEventTargetTableValues, 0 };
......@@ -51,7 +51,7 @@ static const HashTable JSTestEventTargetTable = { 2, 1, JSTestEventTargetTableVa
static const HashTableValue JSTestEventTargetConstructorTableValues[] =
{
{ 0, 0, 0, 0, NoIntrinsic }
{ 0, 0, NoIntrinsic, 0, 0 }
};
static const HashTable JSTestEventTargetConstructorTable = { 1, 0, JSTestEventTargetConstructorTableValues, 0 };
......@@ -79,11 +79,11 @@ bool JSTestEventTargetConstructor::getOwnPropertySlot(JSObject* object, ExecStat
static const HashTableValue JSTestEventTargetPrototypeTableValues[] =
{
{ "item", DontDelete | JSC::Function, (intptr_t)static_cast<NativeFunction>(jsTestEventTargetPrototypeFunctionItem), (intptr_t)1, NoIntrinsic },
{ "addEventListener", DontDelete | JSC::Function, (intptr_t)static_cast<NativeFunction>(jsTestEventTargetPrototypeFunctionAddEventListener), (intptr_t)2, NoIntrinsic },
{ "removeEventListener", DontDelete | JSC::Function, (intptr_t)static_cast<NativeFunction>(jsTestEventTargetPrototypeFunctionRemoveEventListener), (intptr_t)2, NoIntrinsic },
{ "dispatchEvent", DontDelete | JSC::Function, (intptr_t)static_cast<NativeFunction>(jsTestEventTargetPrototypeFunctionDispatchEvent), (intptr_t)1, NoIntrinsic },
{ 0, 0, 0, 0, NoIntrinsic }
{ "item", DontDelete | JSC::Function, NoIntrinsic, (intptr_t)static_cast<NativeFunction>(jsTestEventTargetPrototypeFunctionItem), (intptr_t)1 },
{ "addEventListener", DontDelete | JSC::Function, NoIntrinsic, (intptr_t)static_cast<NativeFunction>(jsTestEventTargetPrototypeFunctionAddEventListener), (intptr_t)2 },
{ "removeEventListener", DontDelete | JSC::Function, NoIntrinsic, (intptr_t)static_cast<NativeFunction>(jsTestEventTargetPrototypeFunctionRemoveEventListener), (intptr_t)2 },
{ "dispatchEvent", DontDelete | JSC::Function, NoIntrinsic, (intptr_t)static_cast<NativeFunction>(jsTestEventTargetPrototypeFunctionDispatchEvent), (intptr_t)1 },
{ 0, 0, NoIntrinsic, 0, 0 }
};
static const HashTable JSTestEventTargetPrototypeTable = { 8, 7, JSTestEventTargetPrototypeTableValues, 0 };
......
......@@ -34,9 +34,9 @@ namespace WebCore {
static const HashTableValue JSTestExceptionTableValues[] =
{
{ "name", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsTestExceptionName), (intptr_t)0, NoIntrinsic },
{ "constructor", DontEnum | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsTestExceptionConstructor), (intptr_t)0, NoIntrinsic },
{ 0, 0, 0, 0, NoIntrinsic }
{ "name", DontDelete | ReadOnly, NoIntrinsic, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsTestExceptionName), (intptr_t)0 },
{ "constructor", DontEnum | ReadOnly, NoIntrinsic, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsTestExceptionConstructor), (intptr_t)0 },
{ 0, 0, NoIntrinsic, 0, 0 }
};
static const HashTable JSTestExceptionTable = { 5, 3, JSTestExceptionTableValues, 0 };
......@@ -44,7 +44,7 @@ static const HashTable JSTestExceptionTable = { 5, 3, JSTestExceptionTableValues
static const HashTableValue JSTestExceptionConstructorTableValues[] =
{
{ 0, 0, 0, 0, NoIntrinsic }
{ 0, 0, NoIntrinsic, 0, 0 }
};
static const HashTable JSTestExceptionConstructorTable = { 1, 0, JSTestExceptionConstructorTableValues, 0 };
......@@ -72,7 +72,7 @@ bool JSTestExceptionConstructor::getOwnPropertySlot(JSObject* object, ExecState*
static const HashTableValue JSTestExceptionPrototypeTableValues[] =
{
{ 0, 0, 0, 0, NoIntrinsic }
{ 0, 0, NoIntrinsic, 0, 0 }
};
static const HashTable JSTestExceptionPrototypeTable = { 1, 0, JSTestExceptionPrototypeTableValues, 0 };
......
......@@ -36,8 +36,8 @@ namespace WebCore {
static const HashTableValue JSTestMediaQueryListListenerTableValues[] =
{
{ "constructor", DontEnum | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsTestMediaQueryListListenerConstructor), (intptr_t)0, NoIntrinsic },
{ 0, 0, 0, 0, NoIntrinsic }
{ "constructor", DontEnum | ReadOnly, NoIntrinsic, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsTestMediaQueryListListenerConstructor), (intptr_t)0 },
{ 0, 0, NoIntrinsic, 0, 0 }
};
static const HashTable JSTestMediaQueryListListenerTable = { 2, 1, JSTestMediaQueryListListenerTableValues, 0 };
......@@ -45,7 +45,7 @@ static const HashTable JSTestMediaQueryListListenerTable = { 2, 1, JSTestMediaQu
static const HashTableValue JSTestMediaQueryListListenerConstructorTableValues[] =
{
{ 0, 0, 0, 0, NoIntrinsic }
{ 0, 0, NoIntrinsic, 0, 0 }
};
static const HashTable JSTestMediaQueryListListenerConstructorTable = { 1, 0, JSTestMediaQueryListListenerConstructorTableValues, 0 };
......@@ -73,8 +73,8 @@ bool JSTestMediaQueryListListenerConstructor::getOwnPropertySlot(JSObject* objec
static const HashTableValue JSTestMediaQueryListListenerPrototypeTableValues[] =
{
{ "method", DontDelete | JSC::Function, (intptr_t)static_cast<NativeFunction>(jsTestMediaQueryListListenerPrototypeFunctionMethod), (intptr_t)1, NoIntrinsic },
{ 0, 0, 0, 0, NoIntrinsic }
{ "method", DontDelete | JSC::Function, NoIntrinsic, (intptr_t)static_cast<NativeFunction>(jsTestMediaQueryListListenerPrototypeFunctionMethod), (intptr_t)1 },
{ 0, 0, NoIntrinsic, 0, 0 }
};
static const HashTable JSTestMediaQueryListListenerPrototypeTable = { 2, 1, JSTestMediaQueryListListenerPrototypeTableValues, 0 };
......
......@@ -35,8 +35,8 @@ namespace WebCore {
static const HashTableValue JSTestNamedConstructorTableValues[] =
{
{ "constructor", DontEnum | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsTestNamedConstructorConstructor), (intptr_t)0, NoIntrinsic },
{ 0, 0, 0, 0, NoIntrinsic }
{ "constructor", DontEnum | ReadOnly, NoIntrinsic, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsTestNamedConstructorConstructor), (intptr_t)0 },
{ 0, 0, NoIntrinsic, 0, 0 }
};
static const HashTable JSTestNamedConstructorTable = { 2, 1, JSTestNamedConstructorTableValues, 0 };
......@@ -44,7 +44,7 @@ static const HashTable JSTestNamedConstructorTable = { 2, 1, JSTestNamedConstruc
static const HashTableValue JSTestNamedConstructorConstructorTableValues[] =
{
{ 0, 0, 0, 0, NoIntrinsic }
{ 0, 0, NoIntrinsic, 0, 0 }
};
static const HashTable JSTestNamedConstructorConstructorTable = { 1, 0, JSTestNamedConstructorConstructorTableValues, 0 };
......@@ -116,7 +116,7 @@ ConstructType JSTestNamedConstructorNamedConstructor::getConstructData(JSCell*,
static const HashTableValue JSTestNamedConstructorPrototypeTableValues[] =
{
{ 0, 0, 0, 0, NoIntrinsic }
{ 0, 0, NoIntrinsic, 0, 0 }
};
static const HashTable JSTestNamedConstructorPrototypeTable = { 1, 0, JSTestNamedConstructorPrototypeTableValues, 0 };
......
......@@ -35,8 +35,8 @@ namespace WebCore {
static const HashTableValue JSTestNodeTableValues[] =
{
{ "constructor", DontEnum | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsTestNodeConstructor), (intptr_t)0, NoIntrinsic },
{ 0, 0, 0, 0, NoIntrinsic }
{ "constructor", DontEnum | ReadOnly, NoIntrinsic, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsTestNodeConstructor), (intptr_t)0 },
{ 0, 0, NoIntrinsic, 0, 0 }
};
static const HashTable JSTestNodeTable = { 2, 1, JSTestNodeTableValues, 0 };
......@@ -44,7 +44,7 @@ static const HashTable JSTestNodeTable = { 2, 1, JSTestNodeTableValues, 0 };
static const HashTableValue JSTestNodeConstructorTableValues[] =
{
{ 0, 0, 0, 0, NoIntrinsic }
{ 0, 0, NoIntrinsic, 0, 0 }
};
static const HashTable JSTestNodeConstructorTable = { 1, 0, JSTestNodeConstructorTableValues, 0 };
......@@ -85,7 +85,7 @@ ConstructType JSTestNodeConstructor::getConstructData(JSCell*, ConstructData& co
static const HashTableValue JSTestNodePrototypeTableValues[] =
{
{ 0, 0, 0, 0, NoIntrinsic }
{ 0, 0, NoIntrinsic, 0, 0 }
};
static const HashTable JSTestNodePrototypeTable = { 1, 0, JSTestNodePrototypeTableValues, 0 };
......
......@@ -36,8 +36,8 @@ namespace WebCore {
static const HashTableValue JSTestOverloadedConstructorsTableValues[] =
{
{ "constructor", DontEnum | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsTestOverloadedConstructorsConstructor), (intptr_t)0, NoIntrinsic },
{ 0, 0, 0, 0, NoIntrinsic }
{ "constructor", DontEnum | ReadOnly, NoIntrinsic, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsTestOverloadedConstructorsConstructor), (intptr_t)0 },
{ 0, 0, NoIntrinsic, 0, 0 }
};
static const HashTable JSTestOverloadedConstructorsTable = { 2, 1, JSTestOverloadedConstructorsTableValues, 0 };
......@@ -45,7 +45,7 @@ static const HashTable JSTestOverloadedConstructorsTable = { 2, 1, JSTestOverloa
static const HashTableValue JSTestOverloadedConstructorsConstructorTableValues[] =
{
{ 0, 0, 0, 0, NoIntrinsic }
{ 0, 0, NoIntrinsic, 0, 0 }
};
static const HashTable JSTestOverloadedConstructorsConstructorTable = { 1, 0, JSTestOverloadedConstructorsConstructorTableValues, 0 };
......@@ -144,7 +144,7 @@ ConstructType JSTestOverloadedConstructorsConstructor::getConstructData(JSCell*,
static const HashTableValue JSTestOverloadedConstructorsPrototypeTableValues[] =
{
{ 0, 0, 0, 0, NoIntrinsic }
{ 0, 0, NoIntrinsic, 0, 0 }
};
static const HashTable JSTestOverloadedConstructorsPrototypeTable = { 1, 0, JSTestOverloadedConstructorsPrototypeTableValues, 0 };
......
......@@ -39,13 +39,13 @@ namespace WebCore {
static const HashTableValue JSTestSerializedScriptValueInterfaceTableValues[] =
{
{ "value", DontDelete, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsTestSerializedScriptValueInterfaceValue), (intptr_t)setJSTestSerializedScriptValueInterfaceValue, NoIntrinsic },
{ "readonlyValue", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsTestSerializedScriptValueInterfaceReadonlyValue), (intptr_t)0, NoIntrinsic },
{ "cachedValue", DontDelete, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsTestSerializedScriptValueInterfaceCachedValue), (intptr_t)setJSTestSerializedScriptValueInterfaceCachedValue, NoIntrinsic },
{ "ports", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsTestSerializedScriptValueInterfacePorts), (intptr_t)0, NoIntrinsic },
{ "cachedReadonlyValue", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsTestSerializedScriptValueInterfaceCachedReadonlyValue), (intptr_t)0, NoIntrinsic },
{ "constructor", DontEnum | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsTestSerializedScriptValueInterfaceConstructor), (intptr_t)0, NoIntrinsic },
{ 0, 0, 0, 0, NoIntrinsic }
{ "value", DontDelete, NoIntrinsic, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsTestSerializedScriptValueInterfaceValue), (intptr_t)setJSTestSerializedScriptValueInterfaceValue },
{ "readonlyValue", DontDelete | ReadOnly, NoIntrinsic, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsTestSerializedScriptValueInterfaceReadonlyValue), (intptr_t)0 },
{ "cachedValue", DontDelete, NoIntrinsic, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsTestSerializedScriptValueInterfaceCachedValue), (intptr_t)setJSTestSerializedScriptValueInterfaceCachedValue },
{ "ports", DontDelete | ReadOnly, NoIntrinsic, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsTestSerializedScriptValueInterfacePorts), (intptr_t)0 },
{ "cachedReadonlyValue", DontDelete | ReadOnly, NoIntrinsic, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsTestSerializedScriptValueInterfaceCachedReadonlyValue), (intptr_t)0 },
{ "constructor", DontEnum | ReadOnly, NoIntrinsic, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsTestSerializedScriptValueInterfaceConstructor), (intptr_t)0 },
{ 0, 0, NoIntrinsic, 0, 0 }
};
static const HashTable JSTestSerializedScriptValueInterfaceTable = { 17, 15, JSTestSerializedScriptValueInterfaceTableValues, 0 };
......@@ -53,7 +53,7 @@ static const HashTable JSTestSerializedScriptValueInterfaceTable = { 17, 15, JST
static const HashTableValue JSTestSerializedScriptValueInterfaceConstructorTableValues[] =
{
{ 0, 0, 0, 0, NoIntrinsic }
{ 0, 0, NoIntrinsic, 0, 0 }
};
static const HashTable JSTestSerializedScriptValueInterfaceConstructorTable = { 1, 0, JSTestSerializedScriptValueInterfaceConstructorTableValues, 0 };
......@@ -81,7 +81,7 @@ bool JSTestSerializedScriptValueInterfaceConstructor::getOwnPropertySlot(JSObjec
static const HashTableValue JSTestSerializedScriptValueInterfacePrototypeTableValues[] =
{
{ 0, 0, 0, 0, NoIntrinsic }
{ 0, 0, NoIntrinsic, 0, 0 }
};
static const HashTable JSTestSerializedScriptValueInterfacePrototypeTable = { 1, 0, JSTestSerializedScriptValueInterfacePrototypeTableValues, 0 };
......
......@@ -47,14 +47,14 @@ namespace WebCore {
static const HashTableValue JSTestTypedefsTableValues[] =
{
{ "unsignedLongLongAttr", DontDelete, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsTestTypedefsUnsignedLongLongAttr), (intptr_t)setJSTestTypedefsUnsignedLongLongAttr, NoIntrinsic },
{ "immutableSerializedScriptValue", DontDelete, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsTestTypedefsImmutableSerializedScriptValue), (intptr_t)setJSTestTypedefsImmutableSerializedScriptValue, NoIntrinsic },
{ "attrWithGetterException", DontDelete, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsTestTypedefsAttrWithGetterException), (intptr_t)setJSTestTypedefsAttrWithGetterException, NoIntrinsic },
{ "attrWithSetterException", DontDelete, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsTestTypedefsAttrWithSetterException), (intptr_t)setJSTestTypedefsAttrWithSetterException, NoIntrinsic },
{ "stringAttrWithGetterException", DontDelete, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsTestTypedefsStringAttrWithGetterException), (intptr_t)setJSTestTypedefsStringAttrWithGetterException, NoIntrinsic },
{ "stringAttrWithSetterException", DontDelete, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsTestTypedefsStringAttrWithSetterException), (intptr_t)setJSTestTypedefsStringAttrWithSetterException, NoIntrinsic },
{ "constructor", DontEnum | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsTestTypedefsConstructor), (intptr_t)0, NoIntrinsic },
{ 0, 0, 0, 0, NoIntrinsic }
{ "unsignedLongLongAttr", DontDelete, NoIntrinsic, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsTestTypedefsUnsignedLongLongAttr), (intptr_t)setJSTestTypedefsUnsignedLongLongAttr },
{ "immutableSerializedScriptValue", DontDelete, NoIntrinsic, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsTestTypedefsImmutableSerializedScriptValue), (intptr_t)setJSTestTypedefsImmutableSerializedScriptValue },
{ "attrWithGetterException", DontDelete, NoIntrinsic, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsTestTypedefsAttrWithGetterException), (intptr_t)setJSTestTypedefsAttrWithGetterException },
{ "attrWithSetterException", DontDelete, NoIntrinsic, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsTestTypedefsAttrWithSetterException), (intptr_t)setJSTestTypedefsAttrWithSetterException },
{ "stringAttrWithGetterException", DontDelete, NoIntrinsic, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsTestTypedefsStringAttrWithGetterException), (intptr_t)setJSTestTypedefsStringAttrWithGetterException },
{ "stringAttrWithSetterException", DontDelete, NoIntrinsic, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsTestTypedefsStringAttrWithSetterException), (intptr_t)setJSTestTypedefsStringAttrWithSetterException },
{ "constructor", DontEnum | ReadOnly, NoIntrinsic, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsTestTypedefsConstructor), (intptr_t)0 },
{ 0, 0, NoIntrinsic, 0, 0 }
};
static const HashTable JSTestTypedefsTable = { 18, 15, JSTestTypedefsTableValues, 0 };
......@@ -62,8 +62,8 @@ static const HashTable JSTestTypedefsTable = { 18, 15, JSTestTypedefsTableValues
static const HashTableValue JSTestTypedefsConstructorTableValues[] =
{
{ "TestSubObj", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsTestTypedefsConstructorTestSubObj), (intptr_t)0, NoIntrinsic },
{ 0, 0, 0, 0, NoIntrinsic }
{ "TestSubObj", DontDelete | ReadOnly, NoIntrinsic, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsTestTypedefsConstructorTestSubObj), (intptr_t)0 },
{ 0, 0, NoIntrinsic, 0, 0 }
};
static const HashTable JSTestTypedefsConstructorTable = { 1, 0, JSTestTypedefsConstructorTableValues, 0 };
......@@ -112,17 +112,17 @@ ConstructType JSTestTypedefsConstructor::getConstructData(JSCell*, ConstructData
static const HashTableValue JSTestTypedefsPrototypeTableValues[] =
{
{ "func", DontDelete | JSC::Function, (intptr_t)static_cast<NativeFunction>(jsTestTypedefsPrototypeFunctionFunc), (intptr_t)0, NoIntrinsic },
{ "setShadow", DontDelete | JSC::Function, (intptr_t)static_cast<NativeFunction>(jsTestTypedefsPrototypeFunctionSetShadow), (intptr_t)3, NoIntrinsic },
{ "methodWithSequenceArg", DontDelete | JSC::Function, (intptr_t)static_cast<NativeFunction>(jsTestTypedefsPrototypeFunctionMethodWithSequenceArg), (intptr_t)1, NoIntrinsic },
{ "nullableArrayArg", DontDelete | JSC::Function, (intptr_t)static_cast<NativeFunction>(jsTestTypedefsPrototypeFunctionNullableArrayArg), (intptr_t)1, NoIntrinsic },
{ "funcWithClamp", DontDelete | JSC::Function, (intptr_t)static_cast<NativeFunction>(jsTestTypedefsPrototypeFunctionFuncWithClamp), (intptr_t)1, NoIntrinsic },
{ "immutablePointFunction", DontDelete | JSC::Function, (intptr_t)static_cast<NativeFunction>(jsTestTypedefsPrototypeFunctionImmutablePointFunction), (intptr_t)0, NoIntrinsic },
{ "stringArrayFunction", DontDelete | JSC::Function, (intptr_t)static_cast<NativeFunction>(jsTestTypedefsPrototypeFunctionStringArrayFunction), (intptr_t)1, NoIntrinsic },
{ "stringArrayFunction2", DontDelete | JSC::Function, (intptr_t)static_cast<NativeFunction>(jsTestTypedefsPrototypeFunctionStringArrayFunction2), (intptr_t)1, NoIntrinsic },
{ "callWithSequenceThatRequiresInclude", DontDelete | JSC::Function, (intptr_t)static_cast<NativeFunction>(jsTestTypedefsPrototypeFunctionCallWithSequenceThatRequiresInclude), (intptr_t)1, NoIntrinsic },
{ "methodWithException", DontDelete | JSC::Function, (intptr_t)static_cast<NativeFunction>(jsTestTypedefsPrototypeFunctionMethodWithException), (intptr_t)0, NoIntrinsic },
{ 0, 0, 0, 0, NoIntrinsic }
{ "func", DontDelete | JSC::Function, NoIntrinsic, (intptr_t)static_cast<NativeFunction>(jsTestTypedefsPrototypeFunctionFunc), (intptr_t)0 },
{ "setShadow", DontDelete | JSC::Function, NoIntrinsic, (intptr_t)static_cast<NativeFunction>(jsTestTypedefsPrototypeFunctionSetShadow), (intptr_t)3 },
{ "methodWithSequenceArg", DontDelete | JSC::Function, NoIntrinsic, (intptr_t)static_cast<NativeFunction>(jsTestTypedefsPrototypeFunctionMethodWithSequenceArg), (intptr_t)1 },
{ "nullableArrayArg", DontDelete | JSC::Function, NoIntrinsic, (intptr_t)static_cast<NativeFunction>(jsTestTypedefsPrototypeFunctionNullableArrayArg), (intptr_t)1 },
{ "funcWithClamp", DontDelete | JSC::Function, NoIntrinsic, (intptr_t)static_cast<NativeFunction>(jsTestTypedefsPrototypeFunctionFuncWithClamp), (intptr_t)1 },
{ "immutablePointFunction", DontDelete | JSC::Function, NoIntrinsic, (intptr_t)static_cast<NativeFunction>(jsTestTypedefsPrototypeFunctionImmutablePointFunction), (intptr_t)0 },
{ "stringArrayFunction", DontDelete | JSC::Function, NoIntrinsic, (intptr_t)static_cast<NativeFunction>(jsTestTypedefsPrototypeFunctionStringArrayFunction), (intptr_t)1 },
{ "stringArrayFunction2", DontDelete | JSC::Function, NoIntrinsic, (intptr_t)static_cast<NativeFunction>(jsTestTypedefsPrototypeFunctionStringArrayFunction2), (intptr_t)1 },
{ "callWithSequenceThatRequiresInclude", DontDelete | JSC::Function, NoIntrinsic, (intptr_t)static_cast<NativeFunction>(jsTestTypedefsPrototypeFunctionCallWithSequenceThatRequiresInclude), (intptr_t)1 },
{ "methodWithException", DontDelete | JSC::Function, NoIntrinsic, (intptr_t)static_cast<NativeFunction>(jsTestTypedefsPrototypeFunctionMethodWithException), (intptr_t)0 },
{ 0, 0, NoIntrinsic, 0, 0 }
};
static const HashTable JSTestTypedefsPrototypeTable = { 33, 31, JSTestTypedefsPrototypeTableValues, 0 };
......
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