Simplify Document::processHttpEquiv
https://bugs.webkit.org/show_bug.cgi?id=133910

Reviewed by Andreas Kling.

* dom/Document.cpp:
(WebCore::Document::processHttpEquiv):
* platform/network/HTTPHeaderNames.in:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@169978 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Store DOM constants directly in the JS object rather than jumping through a custom accessor
https://bugs.webkit.org/show_bug.cgi?id=133898

Reviewed by Oliver Hunt.


Source/JavaScriptCore: 
* runtime/Lookup.h:
(JSC::HashTableValue::attributes):
Switch attributes to be stored as an unsigned rather than an unsigned char, since there is no difference in memory use
and will make adding more flags possibles.

(JSC::HashTableValue::propertyGetter):
(JSC::HashTableValue::propertyPutter):
Change assertion to use BuiltinOrFunctionOrConstant.

(JSC::HashTableValue::constantInteger):
Added.

(JSC::getStaticPropertySlot):
(JSC::getStaticValueSlot):
Use PropertySlot::setValue() for constants during static lookup.

(JSC::reifyStaticProperties):
Put the constant directly on the object when eagerly reifying.

* runtime/PropertySlot.h:
Add ConstantInteger flag and BuiltinOrFunctionOrConstant helper.

Source/WebCore: 
Instead of implementing constants as custom accessors that just happen to return a value,
we now store the constant directly in the HashTableValue array (where the GetValueFunc used
to be). 
        
- For the case where the constant is accessed via the static table (still in use for instances 
  and some prototypes), the static lookup function will set the value on the property slot,
  instead of passing a function pointer.
- For the case where the constant is eagerly reified (most prototypes and all constructors) the
  constant is put directly in the object.

In micro benchmarks this looks to be around a 4x speedup on the use of DOM constants.

This also removes support for constant strings in IDL, which we had no uses of.

* bindings/scripts/CodeGeneratorJS.pm:
(GenerateHeader):
Remove code to generate forward declaration of constant accessor functions.

(GenerateImplementation):
Remove code to generate implementation of constant accessor functions.

(GenerateHashTableValueArray):
Plant the constant directly in the value array.

* bindings/scripts/IDLParser.pm:
(parseConstValue):
Remove support for constant strings.

* bindings/scripts/test/JS/JSTestInterface.cpp:
* bindings/scripts/test/JS/JSTestInterface.h:
* bindings/scripts/test/JS/JSTestObj.cpp:
* bindings/scripts/test/JS/JSTestObj.h:
* bindings/scripts/test/ObjC/DOMTestObj.h:
* bindings/scripts/test/TestObj.idl:
Update test results.



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@169979 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Fix the ARM64 build

* cssjit/SelectorCompiler.cpp:
(WebCore::SelectorCompiler::SelectorCodeGenerator::addFlagsToElementStyleFromContext):


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@169980 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Simplify ResourceRequest constructors
https://bugs.webkit.org/show_bug.cgi?id=133911

Reviewed by Sam Weinig.

* platform/network/cf/ResourceRequest.h:
(WebCore::ResourceRequest::ResourceRequest):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@169981 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Tried to fix the GTK build.

* UIProcess/GenericCallback.h:
(WebKit::invalidateCallbackMap):



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@169982 268f45cc-cd09-0410-ab3c-d52691b4dbfc