Changeset 190714 in webkit


Ignore:
Timestamp:
Oct 8, 2015 12:30:23 AM (9 years ago)
Author:
youenn.fablet@crf.canon.fr
Message:

Binding generated JS constructors should use GlobalObject references
https://bugs.webkit.org/show_bug.cgi?id=149872

Reviewed by Darin Adler.

Updated binding generator to generate JS DOM constructors code with JSDOMGlobalOBject references.
Updated WebCore JS binding layer accordingly.

Covered by updated binding tests.

  • bindings/js/DOMConstructorWithDocument.h:

(WebCore::DOMConstructorWithDocument::DOMConstructorWithDocument):
(WebCore::DOMConstructorWithDocument::finishCreation):

  • bindings/js/JSDOMBinding.cpp:

(WebCore::getCachedDOMStructure):
(WebCore::cacheDOMStructure):

  • bindings/js/JSDOMBinding.h:

(WebCore::DOMConstructorObject::DOMConstructorObject):
(WebCore::DOMConstructorJSBuiltinObject::DOMConstructorJSBuiltinObject):
(WebCore::getDOMStructure):
(WebCore::deprecatedGetDOMStructure):
(WebCore::getDOMPrototype):
(WebCore::createJSBuiltin):
(WebCore::createWrapper):

  • bindings/js/JSDOMConstructor.h:

(WebCore::JSBuiltinConstructor::JSBuiltinConstructor):

  • bindings/js/JSDOMGlobalObject.h:

(WebCore::getDOMConstructor):

  • bindings/js/JSDOMWindowCustom.cpp:

(WebCore::JSDOMWindow::image):
(WebCore::JSDOMWindow::touch):
(WebCore::JSDOMWindow::touchList):

  • bindings/js/JSDOMWrapper.h:

(WebCore::JSDOMWrapper::JSDOMWrapper):
(WebCore::JSDOMWrapperWithImplementation::JSDOMWrapperWithImplementation):

  • bindings/js/JSImageConstructor.cpp:

(WebCore::JSImageConstructor::JSImageConstructor):
(WebCore::JSImageConstructor::finishCreation):

  • bindings/js/JSImageConstructor.h:

(WebCore::JSImageConstructor::create):
(WebCore::JSImageConstructor::createStructure):

  • bindings/js/JSReadableStreamPrivateConstructors.cpp:

(WebCore::JSBuiltinReadableStreamReaderPrivateConstructor::createJSObject):
(WebCore::JSBuiltinReadableStreamControllerPrivateConstructor::createJSObject):

  • bindings/scripts/CodeGeneratorJS.pm:

(GenerateHeader):
(GenerateImplementation):
(GenerateCallbackImplementation):
(GenerateConstructorDeclaration):
(GenerateConstructorHelperMethods):

  • bindings/scripts/test/JS/JSTestActiveDOMObject.cpp:

(WebCore::JSTestActiveDOMObjectConstructor::create):
(WebCore::JSTestActiveDOMObjectConstructor::createStructure):
(WebCore::JSTestActiveDOMObjectConstructor::JSTestActiveDOMObjectConstructor):
(WebCore::JSTestActiveDOMObjectConstructor::finishCreation):
(WebCore::JSTestActiveDOMObject::JSTestActiveDOMObject):
(WebCore::JSTestActiveDOMObject::getConstructor):

  • bindings/scripts/test/JS/JSTestActiveDOMObject.h:

(WebCore::JSTestActiveDOMObject::create):

  • bindings/scripts/test/JS/JSTestCallback.cpp:

(WebCore::JSTestCallbackConstructor::create):
(WebCore::JSTestCallbackConstructor::createStructure):
(WebCore::JSTestCallbackConstructor::JSTestCallbackConstructor):
(WebCore::JSTestCallback::getConstructor):

  • bindings/scripts/test/JS/JSTestCustomConstructorWithNoInterfaceObject.cpp:

(WebCore::JSTestCustomConstructorWithNoInterfaceObjectConstructor::create):
(WebCore::JSTestCustomConstructorWithNoInterfaceObjectConstructor::createStructure):
(WebCore::JSTestCustomConstructorWithNoInterfaceObjectConstructor::JSTestCustomConstructorWithNoInterfaceObjectConstructor):
(WebCore::JSTestCustomConstructorWithNoInterfaceObjectConstructor::finishCreation):
(WebCore::JSTestCustomConstructorWithNoInterfaceObject::JSTestCustomConstructorWithNoInterfaceObject):
(WebCore::jsTestCustomConstructorWithNoInterfaceObjectConstructor):

  • bindings/scripts/test/JS/JSTestCustomConstructorWithNoInterfaceObject.h:

(WebCore::JSTestCustomConstructorWithNoInterfaceObject::create):

  • bindings/scripts/test/JS/JSTestCustomNamedGetter.cpp:

(WebCore::JSTestCustomNamedGetterConstructor::create):
(WebCore::JSTestCustomNamedGetterConstructor::createStructure):
(WebCore::JSTestCustomNamedGetterConstructor::JSTestCustomNamedGetterConstructor):
(WebCore::JSTestCustomNamedGetterConstructor::finishCreation):
(WebCore::JSTestCustomNamedGetter::JSTestCustomNamedGetter):
(WebCore::JSTestCustomNamedGetter::getConstructor):

  • bindings/scripts/test/JS/JSTestCustomNamedGetter.h:

(WebCore::JSTestCustomNamedGetter::create):

  • bindings/scripts/test/JS/JSTestEventConstructor.cpp:

(WebCore::JSTestEventConstructorConstructor::create):
(WebCore::JSTestEventConstructorConstructor::createStructure):
(WebCore::JSTestEventConstructorConstructor::JSTestEventConstructorConstructor):
(WebCore::JSTestEventConstructorConstructor::finishCreation):
(WebCore::JSTestEventConstructor::JSTestEventConstructor):
(WebCore::JSTestEventConstructor::getConstructor):

  • bindings/scripts/test/JS/JSTestEventConstructor.h:

(WebCore::JSTestEventConstructor::create):

  • bindings/scripts/test/JS/JSTestEventTarget.cpp:

(WebCore::JSTestEventTargetConstructor::create):
(WebCore::JSTestEventTargetConstructor::createStructure):
(WebCore::JSTestEventTargetConstructor::JSTestEventTargetConstructor):
(WebCore::JSTestEventTargetConstructor::finishCreation):
(WebCore::JSTestEventTarget::JSTestEventTarget):
(WebCore::JSTestEventTarget::getConstructor):

  • bindings/scripts/test/JS/JSTestEventTarget.h:

(WebCore::JSTestEventTarget::create):

  • bindings/scripts/test/JS/JSTestException.cpp:

(WebCore::JSTestExceptionConstructor::create):
(WebCore::JSTestExceptionConstructor::createStructure):
(WebCore::JSTestExceptionConstructor::JSTestExceptionConstructor):
(WebCore::JSTestExceptionConstructor::finishCreation):
(WebCore::JSTestException::JSTestException):
(WebCore::JSTestException::getConstructor):

  • bindings/scripts/test/JS/JSTestException.h:

(WebCore::JSTestException::create):

  • bindings/scripts/test/JS/JSTestGenerateIsReachable.cpp:

(WebCore::JSTestGenerateIsReachableConstructor::create):
(WebCore::JSTestGenerateIsReachableConstructor::createStructure):
(WebCore::JSTestGenerateIsReachableConstructor::JSTestGenerateIsReachableConstructor):
(WebCore::JSTestGenerateIsReachableConstructor::finishCreation):
(WebCore::JSTestGenerateIsReachable::JSTestGenerateIsReachable):
(WebCore::JSTestGenerateIsReachable::getConstructor):

  • bindings/scripts/test/JS/JSTestGenerateIsReachable.h:

(WebCore::JSTestGenerateIsReachable::create):

  • bindings/scripts/test/JS/JSTestInterface.cpp:

(WebCore::JSTestInterfaceConstructor::create):
(WebCore::JSTestInterfaceConstructor::createStructure):
(WebCore::JSTestInterfaceConstructor::JSTestInterfaceConstructor):
(WebCore::JSTestInterfaceConstructor::finishCreation):
(WebCore::JSTestInterface::JSTestInterface):
(WebCore::JSTestInterface::getConstructor):

  • bindings/scripts/test/JS/JSTestInterface.h:
  • bindings/scripts/test/JS/JSTestJSBuiltinConstructor.cpp:

(WebCore::JSTestJSBuiltinConstructorConstructor::create):
(WebCore::JSTestJSBuiltinConstructorConstructor::createStructure):
(WebCore::JSTestJSBuiltinConstructorConstructor::JSTestJSBuiltinConstructorConstructor):
(WebCore::JSTestJSBuiltinConstructorConstructor::finishCreation):
(WebCore::JSTestJSBuiltinConstructor::JSTestJSBuiltinConstructor):
(WebCore::JSTestJSBuiltinConstructor::getConstructor):

  • bindings/scripts/test/JS/JSTestJSBuiltinConstructor.h:

(WebCore::JSTestJSBuiltinConstructor::create):

  • bindings/scripts/test/JS/JSTestMediaQueryListListener.cpp:

(WebCore::JSTestMediaQueryListListenerConstructor::create):
(WebCore::JSTestMediaQueryListListenerConstructor::createStructure):
(WebCore::JSTestMediaQueryListListenerConstructor::JSTestMediaQueryListListenerConstructor):
(WebCore::JSTestMediaQueryListListenerConstructor::finishCreation):
(WebCore::JSTestMediaQueryListListener::JSTestMediaQueryListListener):
(WebCore::JSTestMediaQueryListListener::getConstructor):

  • bindings/scripts/test/JS/JSTestMediaQueryListListener.h:

(WebCore::JSTestMediaQueryListListener::create):

  • bindings/scripts/test/JS/JSTestNamedConstructor.cpp:

(WebCore::JSTestNamedConstructorConstructor::create):
(WebCore::JSTestNamedConstructorConstructor::createStructure):
(WebCore::JSTestNamedConstructorNamedConstructor::create):
(WebCore::JSTestNamedConstructorNamedConstructor::createStructure):
(WebCore::JSTestNamedConstructorConstructor::JSTestNamedConstructorConstructor):
(WebCore::JSTestNamedConstructorConstructor::finishCreation):
(WebCore::JSTestNamedConstructorNamedConstructor::JSTestNamedConstructorNamedConstructor):
(WebCore::JSTestNamedConstructorNamedConstructor::finishCreation):
(WebCore::JSTestNamedConstructor::JSTestNamedConstructor):
(WebCore::JSTestNamedConstructor::getConstructor):
(WebCore::JSTestNamedConstructor::getNamedConstructor):

  • bindings/scripts/test/JS/JSTestNamedConstructor.h:

(WebCore::JSTestNamedConstructor::create):

  • bindings/scripts/test/JS/JSTestNode.cpp:

(WebCore::JSTestNodeConstructor::create):
(WebCore::JSTestNodeConstructor::createStructure):
(WebCore::JSTestNodeConstructor::JSTestNodeConstructor):
(WebCore::JSTestNodeConstructor::finishCreation):
(WebCore::JSTestNode::JSTestNode):
(WebCore::JSTestNode::getConstructor):

  • bindings/scripts/test/JS/JSTestNode.h:
  • bindings/scripts/test/JS/JSTestNondeterministic.cpp:

(WebCore::JSTestNondeterministicConstructor::create):
(WebCore::JSTestNondeterministicConstructor::createStructure):
(WebCore::JSTestNondeterministicConstructor::JSTestNondeterministicConstructor):
(WebCore::JSTestNondeterministicConstructor::finishCreation):
(WebCore::JSTestNondeterministic::JSTestNondeterministic):
(WebCore::JSTestNondeterministic::getConstructor):

  • bindings/scripts/test/JS/JSTestNondeterministic.h:

(WebCore::JSTestNondeterministic::create):

  • bindings/scripts/test/JS/JSTestObj.cpp:

(WebCore::JSTestObjConstructor::create):
(WebCore::JSTestObjConstructor::createStructure):
(WebCore::JSTestObjConstructor::JSTestObjConstructor):
(WebCore::JSTestObjConstructor::finishCreation):
(WebCore::JSTestObj::JSTestObj):
(WebCore::JSTestObj::getConstructor):

  • bindings/scripts/test/JS/JSTestObj.h:

(WebCore::JSTestObj::create):

  • bindings/scripts/test/JS/JSTestOverloadedConstructors.cpp:

(WebCore::JSTestOverloadedConstructorsConstructor::create):
(WebCore::JSTestOverloadedConstructorsConstructor::createStructure):
(WebCore::JSTestOverloadedConstructorsConstructor::JSTestOverloadedConstructorsConstructor):
(WebCore::JSTestOverloadedConstructorsConstructor::finishCreation):
(WebCore::JSTestOverloadedConstructors::JSTestOverloadedConstructors):
(WebCore::JSTestOverloadedConstructors::getConstructor):

  • bindings/scripts/test/JS/JSTestOverloadedConstructors.h:

(WebCore::JSTestOverloadedConstructors::create):

  • bindings/scripts/test/JS/JSTestOverrideBuiltins.cpp:

(WebCore::JSTestOverrideBuiltinsConstructor::create):
(WebCore::JSTestOverrideBuiltinsConstructor::createStructure):
(WebCore::JSTestOverrideBuiltinsConstructor::JSTestOverrideBuiltinsConstructor):
(WebCore::JSTestOverrideBuiltinsConstructor::finishCreation):
(WebCore::JSTestOverrideBuiltins::JSTestOverrideBuiltins):
(WebCore::JSTestOverrideBuiltins::getConstructor):

  • bindings/scripts/test/JS/JSTestOverrideBuiltins.h:

(WebCore::JSTestOverrideBuiltins::create):

  • bindings/scripts/test/JS/JSTestSerializedScriptValueInterface.cpp:

(WebCore::JSTestSerializedScriptValueInterfaceConstructor::create):
(WebCore::JSTestSerializedScriptValueInterfaceConstructor::createStructure):
(WebCore::JSTestSerializedScriptValueInterfaceConstructor::JSTestSerializedScriptValueInterfaceConstructor):
(WebCore::JSTestSerializedScriptValueInterfaceConstructor::finishCreation):
(WebCore::JSTestSerializedScriptValueInterface::JSTestSerializedScriptValueInterface):
(WebCore::JSTestSerializedScriptValueInterface::getConstructor):

  • bindings/scripts/test/JS/JSTestSerializedScriptValueInterface.h:

(WebCore::JSTestSerializedScriptValueInterface::create):

  • bindings/scripts/test/JS/JSTestTypedefs.cpp:

(WebCore::JSTestTypedefsConstructor::create):
(WebCore::JSTestTypedefsConstructor::createStructure):
(WebCore::JSTestTypedefsConstructor::JSTestTypedefsConstructor):
(WebCore::JSTestTypedefsConstructor::finishCreation):
(WebCore::JSTestTypedefs::JSTestTypedefs):
(WebCore::JSTestTypedefs::getConstructor):

  • bindings/scripts/test/JS/JSTestTypedefs.h:

(WebCore::JSTestTypedefs::create):

  • bindings/scripts/test/JS/JSattribute.cpp:

(WebCore::JSattributeConstructor::create):
(WebCore::JSattributeConstructor::createStructure):
(WebCore::JSattributeConstructor::JSattributeConstructor):
(WebCore::JSattributeConstructor::finishCreation):
(WebCore::JSattribute::JSattribute):
(WebCore::JSattribute::getConstructor):

  • bindings/scripts/test/JS/JSattribute.h:

(WebCore::JSattribute::create):

  • bindings/scripts/test/JS/JSreadonly.cpp:

(WebCore::JSreadonlyConstructor::create):
(WebCore::JSreadonlyConstructor::createStructure):
(WebCore::JSreadonlyConstructor::JSreadonlyConstructor):
(WebCore::JSreadonlyConstructor::finishCreation):
(WebCore::JSreadonly::JSreadonly):
(WebCore::JSreadonly::getConstructor):

  • bindings/scripts/test/JS/JSreadonly.h:

(WebCore::JSreadonly::create):

Location:
trunk/Source/WebCore
Files:
53 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r190713 r190714  
     12015-10-08  Youenn Fablet  <youenn.fablet@crf.canon.fr>
     2
     3        Binding generated JS constructors should use GlobalObject references
     4        https://bugs.webkit.org/show_bug.cgi?id=149872
     5
     6        Reviewed by Darin Adler.
     7
     8        Updated binding generator to generate JS DOM constructors code with JSDOMGlobalOBject references.
     9        Updated WebCore JS binding layer accordingly.
     10
     11        Covered by updated binding tests.
     12
     13        * bindings/js/DOMConstructorWithDocument.h:
     14        (WebCore::DOMConstructorWithDocument::DOMConstructorWithDocument):
     15        (WebCore::DOMConstructorWithDocument::finishCreation):
     16        * bindings/js/JSDOMBinding.cpp:
     17        (WebCore::getCachedDOMStructure):
     18        (WebCore::cacheDOMStructure):
     19        * bindings/js/JSDOMBinding.h:
     20        (WebCore::DOMConstructorObject::DOMConstructorObject):
     21        (WebCore::DOMConstructorJSBuiltinObject::DOMConstructorJSBuiltinObject):
     22        (WebCore::getDOMStructure):
     23        (WebCore::deprecatedGetDOMStructure):
     24        (WebCore::getDOMPrototype):
     25        (WebCore::createJSBuiltin):
     26        (WebCore::createWrapper):
     27        * bindings/js/JSDOMConstructor.h:
     28        (WebCore::JSBuiltinConstructor::JSBuiltinConstructor):
     29        * bindings/js/JSDOMGlobalObject.h:
     30        (WebCore::getDOMConstructor):
     31        * bindings/js/JSDOMWindowCustom.cpp:
     32        (WebCore::JSDOMWindow::image):
     33        (WebCore::JSDOMWindow::touch):
     34        (WebCore::JSDOMWindow::touchList):
     35        * bindings/js/JSDOMWrapper.h:
     36        (WebCore::JSDOMWrapper::JSDOMWrapper):
     37        (WebCore::JSDOMWrapperWithImplementation::JSDOMWrapperWithImplementation):
     38        * bindings/js/JSImageConstructor.cpp:
     39        (WebCore::JSImageConstructor::JSImageConstructor):
     40        (WebCore::JSImageConstructor::finishCreation):
     41        * bindings/js/JSImageConstructor.h:
     42        (WebCore::JSImageConstructor::create):
     43        (WebCore::JSImageConstructor::createStructure):
     44        * bindings/js/JSReadableStreamPrivateConstructors.cpp:
     45        (WebCore::JSBuiltinReadableStreamReaderPrivateConstructor::createJSObject):
     46        (WebCore::JSBuiltinReadableStreamControllerPrivateConstructor::createJSObject):
     47        * bindings/scripts/CodeGeneratorJS.pm:
     48        (GenerateHeader):
     49        (GenerateImplementation):
     50        (GenerateCallbackImplementation):
     51        (GenerateConstructorDeclaration):
     52        (GenerateConstructorHelperMethods):
     53        * bindings/scripts/test/JS/JSTestActiveDOMObject.cpp:
     54        (WebCore::JSTestActiveDOMObjectConstructor::create):
     55        (WebCore::JSTestActiveDOMObjectConstructor::createStructure):
     56        (WebCore::JSTestActiveDOMObjectConstructor::JSTestActiveDOMObjectConstructor):
     57        (WebCore::JSTestActiveDOMObjectConstructor::finishCreation):
     58        (WebCore::JSTestActiveDOMObject::JSTestActiveDOMObject):
     59        (WebCore::JSTestActiveDOMObject::getConstructor):
     60        * bindings/scripts/test/JS/JSTestActiveDOMObject.h:
     61        (WebCore::JSTestActiveDOMObject::create):
     62        * bindings/scripts/test/JS/JSTestCallback.cpp:
     63        (WebCore::JSTestCallbackConstructor::create):
     64        (WebCore::JSTestCallbackConstructor::createStructure):
     65        (WebCore::JSTestCallbackConstructor::JSTestCallbackConstructor):
     66        (WebCore::JSTestCallback::getConstructor):
     67        * bindings/scripts/test/JS/JSTestCustomConstructorWithNoInterfaceObject.cpp:
     68        (WebCore::JSTestCustomConstructorWithNoInterfaceObjectConstructor::create):
     69        (WebCore::JSTestCustomConstructorWithNoInterfaceObjectConstructor::createStructure):
     70        (WebCore::JSTestCustomConstructorWithNoInterfaceObjectConstructor::JSTestCustomConstructorWithNoInterfaceObjectConstructor):
     71        (WebCore::JSTestCustomConstructorWithNoInterfaceObjectConstructor::finishCreation):
     72        (WebCore::JSTestCustomConstructorWithNoInterfaceObject::JSTestCustomConstructorWithNoInterfaceObject):
     73        (WebCore::jsTestCustomConstructorWithNoInterfaceObjectConstructor):
     74        * bindings/scripts/test/JS/JSTestCustomConstructorWithNoInterfaceObject.h:
     75        (WebCore::JSTestCustomConstructorWithNoInterfaceObject::create):
     76        * bindings/scripts/test/JS/JSTestCustomNamedGetter.cpp:
     77        (WebCore::JSTestCustomNamedGetterConstructor::create):
     78        (WebCore::JSTestCustomNamedGetterConstructor::createStructure):
     79        (WebCore::JSTestCustomNamedGetterConstructor::JSTestCustomNamedGetterConstructor):
     80        (WebCore::JSTestCustomNamedGetterConstructor::finishCreation):
     81        (WebCore::JSTestCustomNamedGetter::JSTestCustomNamedGetter):
     82        (WebCore::JSTestCustomNamedGetter::getConstructor):
     83        * bindings/scripts/test/JS/JSTestCustomNamedGetter.h:
     84        (WebCore::JSTestCustomNamedGetter::create):
     85        * bindings/scripts/test/JS/JSTestEventConstructor.cpp:
     86        (WebCore::JSTestEventConstructorConstructor::create):
     87        (WebCore::JSTestEventConstructorConstructor::createStructure):
     88        (WebCore::JSTestEventConstructorConstructor::JSTestEventConstructorConstructor):
     89        (WebCore::JSTestEventConstructorConstructor::finishCreation):
     90        (WebCore::JSTestEventConstructor::JSTestEventConstructor):
     91        (WebCore::JSTestEventConstructor::getConstructor):
     92        * bindings/scripts/test/JS/JSTestEventConstructor.h:
     93        (WebCore::JSTestEventConstructor::create):
     94        * bindings/scripts/test/JS/JSTestEventTarget.cpp:
     95        (WebCore::JSTestEventTargetConstructor::create):
     96        (WebCore::JSTestEventTargetConstructor::createStructure):
     97        (WebCore::JSTestEventTargetConstructor::JSTestEventTargetConstructor):
     98        (WebCore::JSTestEventTargetConstructor::finishCreation):
     99        (WebCore::JSTestEventTarget::JSTestEventTarget):
     100        (WebCore::JSTestEventTarget::getConstructor):
     101        * bindings/scripts/test/JS/JSTestEventTarget.h:
     102        (WebCore::JSTestEventTarget::create):
     103        * bindings/scripts/test/JS/JSTestException.cpp:
     104        (WebCore::JSTestExceptionConstructor::create):
     105        (WebCore::JSTestExceptionConstructor::createStructure):
     106        (WebCore::JSTestExceptionConstructor::JSTestExceptionConstructor):
     107        (WebCore::JSTestExceptionConstructor::finishCreation):
     108        (WebCore::JSTestException::JSTestException):
     109        (WebCore::JSTestException::getConstructor):
     110        * bindings/scripts/test/JS/JSTestException.h:
     111        (WebCore::JSTestException::create):
     112        * bindings/scripts/test/JS/JSTestGenerateIsReachable.cpp:
     113        (WebCore::JSTestGenerateIsReachableConstructor::create):
     114        (WebCore::JSTestGenerateIsReachableConstructor::createStructure):
     115        (WebCore::JSTestGenerateIsReachableConstructor::JSTestGenerateIsReachableConstructor):
     116        (WebCore::JSTestGenerateIsReachableConstructor::finishCreation):
     117        (WebCore::JSTestGenerateIsReachable::JSTestGenerateIsReachable):
     118        (WebCore::JSTestGenerateIsReachable::getConstructor):
     119        * bindings/scripts/test/JS/JSTestGenerateIsReachable.h:
     120        (WebCore::JSTestGenerateIsReachable::create):
     121        * bindings/scripts/test/JS/JSTestInterface.cpp:
     122        (WebCore::JSTestInterfaceConstructor::create):
     123        (WebCore::JSTestInterfaceConstructor::createStructure):
     124        (WebCore::JSTestInterfaceConstructor::JSTestInterfaceConstructor):
     125        (WebCore::JSTestInterfaceConstructor::finishCreation):
     126        (WebCore::JSTestInterface::JSTestInterface):
     127        (WebCore::JSTestInterface::getConstructor):
     128        * bindings/scripts/test/JS/JSTestInterface.h:
     129        * bindings/scripts/test/JS/JSTestJSBuiltinConstructor.cpp:
     130        (WebCore::JSTestJSBuiltinConstructorConstructor::create):
     131        (WebCore::JSTestJSBuiltinConstructorConstructor::createStructure):
     132        (WebCore::JSTestJSBuiltinConstructorConstructor::JSTestJSBuiltinConstructorConstructor):
     133        (WebCore::JSTestJSBuiltinConstructorConstructor::finishCreation):
     134        (WebCore::JSTestJSBuiltinConstructor::JSTestJSBuiltinConstructor):
     135        (WebCore::JSTestJSBuiltinConstructor::getConstructor):
     136        * bindings/scripts/test/JS/JSTestJSBuiltinConstructor.h:
     137        (WebCore::JSTestJSBuiltinConstructor::create):
     138        * bindings/scripts/test/JS/JSTestMediaQueryListListener.cpp:
     139        (WebCore::JSTestMediaQueryListListenerConstructor::create):
     140        (WebCore::JSTestMediaQueryListListenerConstructor::createStructure):
     141        (WebCore::JSTestMediaQueryListListenerConstructor::JSTestMediaQueryListListenerConstructor):
     142        (WebCore::JSTestMediaQueryListListenerConstructor::finishCreation):
     143        (WebCore::JSTestMediaQueryListListener::JSTestMediaQueryListListener):
     144        (WebCore::JSTestMediaQueryListListener::getConstructor):
     145        * bindings/scripts/test/JS/JSTestMediaQueryListListener.h:
     146        (WebCore::JSTestMediaQueryListListener::create):
     147        * bindings/scripts/test/JS/JSTestNamedConstructor.cpp:
     148        (WebCore::JSTestNamedConstructorConstructor::create):
     149        (WebCore::JSTestNamedConstructorConstructor::createStructure):
     150        (WebCore::JSTestNamedConstructorNamedConstructor::create):
     151        (WebCore::JSTestNamedConstructorNamedConstructor::createStructure):
     152        (WebCore::JSTestNamedConstructorConstructor::JSTestNamedConstructorConstructor):
     153        (WebCore::JSTestNamedConstructorConstructor::finishCreation):
     154        (WebCore::JSTestNamedConstructorNamedConstructor::JSTestNamedConstructorNamedConstructor):
     155        (WebCore::JSTestNamedConstructorNamedConstructor::finishCreation):
     156        (WebCore::JSTestNamedConstructor::JSTestNamedConstructor):
     157        (WebCore::JSTestNamedConstructor::getConstructor):
     158        (WebCore::JSTestNamedConstructor::getNamedConstructor):
     159        * bindings/scripts/test/JS/JSTestNamedConstructor.h:
     160        (WebCore::JSTestNamedConstructor::create):
     161        * bindings/scripts/test/JS/JSTestNode.cpp:
     162        (WebCore::JSTestNodeConstructor::create):
     163        (WebCore::JSTestNodeConstructor::createStructure):
     164        (WebCore::JSTestNodeConstructor::JSTestNodeConstructor):
     165        (WebCore::JSTestNodeConstructor::finishCreation):
     166        (WebCore::JSTestNode::JSTestNode):
     167        (WebCore::JSTestNode::getConstructor):
     168        * bindings/scripts/test/JS/JSTestNode.h:
     169        * bindings/scripts/test/JS/JSTestNondeterministic.cpp:
     170        (WebCore::JSTestNondeterministicConstructor::create):
     171        (WebCore::JSTestNondeterministicConstructor::createStructure):
     172        (WebCore::JSTestNondeterministicConstructor::JSTestNondeterministicConstructor):
     173        (WebCore::JSTestNondeterministicConstructor::finishCreation):
     174        (WebCore::JSTestNondeterministic::JSTestNondeterministic):
     175        (WebCore::JSTestNondeterministic::getConstructor):
     176        * bindings/scripts/test/JS/JSTestNondeterministic.h:
     177        (WebCore::JSTestNondeterministic::create):
     178        * bindings/scripts/test/JS/JSTestObj.cpp:
     179        (WebCore::JSTestObjConstructor::create):
     180        (WebCore::JSTestObjConstructor::createStructure):
     181        (WebCore::JSTestObjConstructor::JSTestObjConstructor):
     182        (WebCore::JSTestObjConstructor::finishCreation):
     183        (WebCore::JSTestObj::JSTestObj):
     184        (WebCore::JSTestObj::getConstructor):
     185        * bindings/scripts/test/JS/JSTestObj.h:
     186        (WebCore::JSTestObj::create):
     187        * bindings/scripts/test/JS/JSTestOverloadedConstructors.cpp:
     188        (WebCore::JSTestOverloadedConstructorsConstructor::create):
     189        (WebCore::JSTestOverloadedConstructorsConstructor::createStructure):
     190        (WebCore::JSTestOverloadedConstructorsConstructor::JSTestOverloadedConstructorsConstructor):
     191        (WebCore::JSTestOverloadedConstructorsConstructor::finishCreation):
     192        (WebCore::JSTestOverloadedConstructors::JSTestOverloadedConstructors):
     193        (WebCore::JSTestOverloadedConstructors::getConstructor):
     194        * bindings/scripts/test/JS/JSTestOverloadedConstructors.h:
     195        (WebCore::JSTestOverloadedConstructors::create):
     196        * bindings/scripts/test/JS/JSTestOverrideBuiltins.cpp:
     197        (WebCore::JSTestOverrideBuiltinsConstructor::create):
     198        (WebCore::JSTestOverrideBuiltinsConstructor::createStructure):
     199        (WebCore::JSTestOverrideBuiltinsConstructor::JSTestOverrideBuiltinsConstructor):
     200        (WebCore::JSTestOverrideBuiltinsConstructor::finishCreation):
     201        (WebCore::JSTestOverrideBuiltins::JSTestOverrideBuiltins):
     202        (WebCore::JSTestOverrideBuiltins::getConstructor):
     203        * bindings/scripts/test/JS/JSTestOverrideBuiltins.h:
     204        (WebCore::JSTestOverrideBuiltins::create):
     205        * bindings/scripts/test/JS/JSTestSerializedScriptValueInterface.cpp:
     206        (WebCore::JSTestSerializedScriptValueInterfaceConstructor::create):
     207        (WebCore::JSTestSerializedScriptValueInterfaceConstructor::createStructure):
     208        (WebCore::JSTestSerializedScriptValueInterfaceConstructor::JSTestSerializedScriptValueInterfaceConstructor):
     209        (WebCore::JSTestSerializedScriptValueInterfaceConstructor::finishCreation):
     210        (WebCore::JSTestSerializedScriptValueInterface::JSTestSerializedScriptValueInterface):
     211        (WebCore::JSTestSerializedScriptValueInterface::getConstructor):
     212        * bindings/scripts/test/JS/JSTestSerializedScriptValueInterface.h:
     213        (WebCore::JSTestSerializedScriptValueInterface::create):
     214        * bindings/scripts/test/JS/JSTestTypedefs.cpp:
     215        (WebCore::JSTestTypedefsConstructor::create):
     216        (WebCore::JSTestTypedefsConstructor::createStructure):
     217        (WebCore::JSTestTypedefsConstructor::JSTestTypedefsConstructor):
     218        (WebCore::JSTestTypedefsConstructor::finishCreation):
     219        (WebCore::JSTestTypedefs::JSTestTypedefs):
     220        (WebCore::JSTestTypedefs::getConstructor):
     221        * bindings/scripts/test/JS/JSTestTypedefs.h:
     222        (WebCore::JSTestTypedefs::create):
     223        * bindings/scripts/test/JS/JSattribute.cpp:
     224        (WebCore::JSattributeConstructor::create):
     225        (WebCore::JSattributeConstructor::createStructure):
     226        (WebCore::JSattributeConstructor::JSattributeConstructor):
     227        (WebCore::JSattributeConstructor::finishCreation):
     228        (WebCore::JSattribute::JSattribute):
     229        (WebCore::JSattribute::getConstructor):
     230        * bindings/scripts/test/JS/JSattribute.h:
     231        (WebCore::JSattribute::create):
     232        * bindings/scripts/test/JS/JSreadonly.cpp:
     233        (WebCore::JSreadonlyConstructor::create):
     234        (WebCore::JSreadonlyConstructor::createStructure):
     235        (WebCore::JSreadonlyConstructor::JSreadonlyConstructor):
     236        (WebCore::JSreadonlyConstructor::finishCreation):
     237        (WebCore::JSreadonly::JSreadonly):
     238        (WebCore::JSreadonly::getConstructor):
     239        * bindings/scripts/test/JS/JSreadonly.h:
     240        (WebCore::JSreadonly::create):
     241
    12422015-10-08  Philippe Normand  <pnormand@igalia.com>
    2243
  • trunk/Source/WebCore/bindings/js/DOMConstructorWithDocument.h

    r174089 r190714  
    3737
    3838protected:
    39     DOMConstructorWithDocument(JSC::Structure* structure, JSDOMGlobalObject* globalObject)
     39    DOMConstructorWithDocument(JSC::Structure* structure, JSDOMGlobalObject& globalObject)
    4040        : DOMConstructorObject(structure, globalObject)
    4141    {
    4242    }
    4343
    44     void finishCreation(JSDOMGlobalObject* globalObject)
     44    void finishCreation(JSDOMGlobalObject& globalObject)
    4545    {
    46         Base::finishCreation(globalObject->vm());
    47         ASSERT(globalObject->scriptExecutionContext()->isDocument());
     46        Base::finishCreation(globalObject.vm());
     47        ASSERT(globalObject.scriptExecutionContext()->isDocument());
    4848    }
    4949};
  • trunk/Source/WebCore/bindings/js/JSDOMBinding.cpp

    r190198 r190714  
    296296}
    297297
    298 Structure* getCachedDOMStructure(JSDOMGlobalObject* globalObject, const ClassInfo* classInfo)
    299 {
    300     JSDOMStructureMap& structures = globalObject->structures();
     298Structure* getCachedDOMStructure(JSDOMGlobalObject& globalObject, const ClassInfo* classInfo)
     299{
     300    JSDOMStructureMap& structures = globalObject.structures();
    301301    return structures.get(classInfo).get();
    302302}
    303303
    304 Structure* cacheDOMStructure(JSDOMGlobalObject* globalObject, Structure* structure, const ClassInfo* classInfo)
    305 {
    306     JSDOMStructureMap& structures = globalObject->structures();
     304Structure* cacheDOMStructure(JSDOMGlobalObject& globalObject, Structure* structure, const ClassInfo* classInfo)
     305{
     306    JSDOMStructureMap& structures = globalObject.structures();
    307307    ASSERT(!structures.contains(classInfo));
    308     return structures.set(classInfo, WriteBarrier<Structure>(globalObject->vm(), globalObject, structure)).iterator->value.get();
     308    return structures.set(classInfo, WriteBarrier<Structure>(globalObject.vm(), &globalObject, structure)).iterator->value.get();
    309309}
    310310
  • trunk/Source/WebCore/bindings/js/JSDOMBinding.h

    r190314 r190714  
    9898
    9999protected:
    100     DOMConstructorObject(JSC::Structure* structure, JSDOMGlobalObject* globalObject)
     100    DOMConstructorObject(JSC::Structure* structure, JSDOMGlobalObject& globalObject)
    101101        : JSDOMWrapper(structure, globalObject)
    102102    {
     
    109109
    110110protected:
    111     DOMConstructorJSBuiltinObject(JSC::Structure* structure, JSDOMGlobalObject* globalObject)
     111    DOMConstructorJSBuiltinObject(JSC::Structure* structure, JSDOMGlobalObject& globalObject)
    112112        : DOMConstructorObject(structure, globalObject) { }
    113113
     
    121121};
    122122
    123 WEBCORE_EXPORT JSC::Structure* getCachedDOMStructure(JSDOMGlobalObject*, const JSC::ClassInfo*);
    124 WEBCORE_EXPORT JSC::Structure* cacheDOMStructure(JSDOMGlobalObject*, JSC::Structure*, const JSC::ClassInfo*);
     123WEBCORE_EXPORT JSC::Structure* getCachedDOMStructure(JSDOMGlobalObject&, const JSC::ClassInfo*);
     124WEBCORE_EXPORT JSC::Structure* cacheDOMStructure(JSDOMGlobalObject&, JSC::Structure*, const JSC::ClassInfo*);
    125125
    126126inline JSDOMGlobalObject* deprecatedGlobalObjectForPrototype(JSC::ExecState* exec)
     
    132132}
    133133
    134 template<typename WrapperClass> inline JSC::Structure* getDOMStructure(JSC::VM& vm, JSDOMGlobalObject* globalObject)
     134template<typename WrapperClass> inline JSC::Structure* getDOMStructure(JSC::VM& vm, JSDOMGlobalObject& globalObject)
    135135{
    136136    if (JSC::Structure* structure = getCachedDOMStructure(globalObject, WrapperClass::info()))
    137137        return structure;
    138     return cacheDOMStructure(globalObject, WrapperClass::createStructure(vm, globalObject, WrapperClass::createPrototype(vm, globalObject)), WrapperClass::info());
     138    return cacheDOMStructure(globalObject, WrapperClass::createStructure(vm, &globalObject, WrapperClass::createPrototype(vm, &globalObject)), WrapperClass::info());
    139139}
    140140
     
    142142{
    143143    // FIXME: This function is wrong. It uses the wrong global object for creating the prototype structure.
    144     return getDOMStructure<WrapperClass>(exec->vm(), deprecatedGlobalObjectForPrototype(exec));
     144    return getDOMStructure<WrapperClass>(exec->vm(), *deprecatedGlobalObjectForPrototype(exec));
    145145}
    146146
    147147template<typename WrapperClass> inline JSC::JSObject* getDOMPrototype(JSC::VM& vm, JSC::JSGlobalObject* globalObject)
    148148{
    149     return JSC::jsCast<JSC::JSObject*>(asObject(getDOMStructure<WrapperClass>(vm, JSC::jsCast<JSDOMGlobalObject*>(globalObject))->storedPrototype()));
     149    return JSC::jsCast<JSC::JSObject*>(asObject(getDOMStructure<WrapperClass>(vm, *JSC::jsCast<JSDOMGlobalObject*>(globalObject))->storedPrototype()));
    150150}
    151151
     
    154154template<typename JSClass> inline JSC::EncodedJSValue createJSBuiltin(JSC::ExecState& state, JSC::JSFunction& initializeFunction, JSDOMGlobalObject& globalObject)
    155155{
    156     JSC::JSObject* object = JSClass::create(getDOMStructure<JSClass>(globalObject.vm(), &globalObject), &globalObject);
     156    JSC::JSObject* object = JSClass::create(getDOMStructure<JSClass>(globalObject.vm(), globalObject), &globalObject);
    157157    callFunctionWithCurrentArguments(state, *object, initializeFunction);
    158158    return JSC::JSValue::encode(object);
     
    241241    ASSERT(node);
    242242    ASSERT(!getCachedWrapper(globalObject->world(), node));
    243     WrapperClass* wrapper = WrapperClass::create(getDOMStructure<WrapperClass>(globalObject->vm(), globalObject), globalObject, Ref<DOMClass>(*node));
     243    WrapperClass* wrapper = WrapperClass::create(getDOMStructure<WrapperClass>(globalObject->vm(), *globalObject), globalObject, Ref<DOMClass>(*node));
    244244    cacheWrapper(globalObject->world(), node, wrapper);
    245245    return wrapper;
  • trunk/Source/WebCore/bindings/js/JSDOMConstructor.h

    r190608 r190714  
    4343
    4444private:
    45     JSBuiltinConstructor(JSC::Structure* structure, JSDOMGlobalObject& globalObject): Base(structure, &globalObject) { }
     45    JSBuiltinConstructor(JSC::Structure* structure, JSDOMGlobalObject& globalObject) : Base(structure, globalObject) { }
    4646
    4747    void finishCreation(JSC::VM&, JSDOMGlobalObject&);
  • trunk/Source/WebCore/bindings/js/JSDOMGlobalObject.h

    r180301 r190714  
    8989
    9090    template<class ConstructorClass>
    91     inline JSC::JSObject* getDOMConstructor(JSC::VM& vm, const JSDOMGlobalObject* globalObject)
     91    inline JSC::JSObject* getDOMConstructor(JSC::VM& vm, const JSDOMGlobalObject& globalObject)
    9292    {
    93         if (JSC::JSObject* constructor = const_cast<JSDOMGlobalObject*>(globalObject)->constructors().get(ConstructorClass::info()).get())
     93        if (JSC::JSObject* constructor = const_cast<JSDOMGlobalObject&>(globalObject).constructors().get(ConstructorClass::info()).get())
    9494            return constructor;
    95         JSC::JSObject* constructor = ConstructorClass::create(vm, ConstructorClass::createStructure(vm, const_cast<JSDOMGlobalObject*>(globalObject), globalObject->objectPrototype()), const_cast<JSDOMGlobalObject*>(globalObject));
    96         ASSERT(!const_cast<JSDOMGlobalObject*>(globalObject)->constructors().contains(ConstructorClass::info()));
     95        JSC::JSObject* constructor = ConstructorClass::create(vm, ConstructorClass::createStructure(vm, const_cast<JSDOMGlobalObject&>(globalObject), globalObject.objectPrototype()), const_cast<JSDOMGlobalObject&>(globalObject));
     96        ASSERT(!const_cast<JSDOMGlobalObject&>(globalObject).constructors().contains(ConstructorClass::info()));
    9797        JSC::WriteBarrier<JSC::JSObject> temp;
    98         const_cast<JSDOMGlobalObject*>(globalObject)->constructors().add(ConstructorClass::info(), temp).iterator->value.set(vm, globalObject, constructor);
     98        const_cast<JSDOMGlobalObject&>(globalObject).constructors().add(ConstructorClass::info(), temp).iterator->value.set(vm, &globalObject, constructor);
    9999        return constructor;
    100100    }
  • trunk/Source/WebCore/bindings/js/JSDOMWindowCustom.cpp

    r190036 r190714  
    502502JSValue JSDOMWindow::image(ExecState& state) const
    503503{
    504     return getDOMConstructor<JSImageConstructor>(state.vm(), this);
     504    return getDOMConstructor<JSImageConstructor>(state.vm(), *this);
    505505}
    506506
     
    508508JSValue JSDOMWindow::touch(ExecState& state) const
    509509{
    510     return getDOMConstructor<JSTouchConstructor>(state.vm(), this);
     510    return getDOMConstructor<JSTouchConstructor>(state.vm(), *this);
    511511}
    512512
    513513JSValue JSDOMWindow::touchList(ExecState& state) const
    514514{
    515     return getDOMConstructor<JSTouchListConstructor>(state.vm(), this);
     515    return getDOMConstructor<JSTouchListConstructor>(state.vm(), *this);
    516516}
    517517#endif
  • trunk/Source/WebCore/bindings/js/JSDOMWrapper.h

    r190403 r190714  
    4242
    4343protected:
    44     JSDOMWrapper(JSC::Structure* structure, JSC::JSGlobalObject* globalObject)
    45         : Base(globalObject->vm(), structure)
     44    JSDOMWrapper(JSC::Structure* structure, JSC::JSGlobalObject& globalObject)
     45        : Base(globalObject.vm(), structure)
    4646    {
    4747        ASSERT(scriptExecutionContext());
     
    5757
    5858protected:
    59     JSDOMWrapperWithImplementation(JSC::Structure* structure, JSC::JSGlobalObject* globalObject, Ref<ImplementationClass>&& impl)
     59    JSDOMWrapperWithImplementation(JSC::Structure* structure, JSC::JSGlobalObject& globalObject, Ref<ImplementationClass>&& impl)
    6060        : Base(structure, globalObject)
    6161        , m_impl(&impl.leakRef()) { }
  • trunk/Source/WebCore/bindings/js/JSImageConstructor.cpp

    r171824 r190714  
    3535const ClassInfo JSImageConstructor::s_info = { "ImageConstructor", &Base::s_info, 0, CREATE_METHOD_TABLE(JSImageConstructor) };
    3636
    37 JSImageConstructor::JSImageConstructor(Structure* structure, JSDOMGlobalObject* globalObject)
     37JSImageConstructor::JSImageConstructor(Structure* structure, JSDOMGlobalObject& globalObject)
    3838    : DOMConstructorWithDocument(structure, globalObject)
    3939{
    4040}
    4141
    42 void JSImageConstructor::finishCreation(VM& vm, JSDOMGlobalObject* globalObject)
     42void JSImageConstructor::finishCreation(VM& vm, JSDOMGlobalObject& globalObject)
    4343{
    4444    Base::finishCreation(globalObject);
    4545    ASSERT(inherits(info()));
    46     putDirect(vm, vm.propertyNames->prototype, JSHTMLImageElement::getPrototype(vm, globalObject), None);
     46    putDirect(vm, vm.propertyNames->prototype, JSHTMLImageElement::getPrototype(vm, &globalObject), None);
    4747}
    4848
  • trunk/Source/WebCore/bindings/js/JSImageConstructor.h

    r156485 r190714  
    3131        typedef DOMConstructorWithDocument Base;
    3232
    33         static JSImageConstructor* create(JSC::VM& vm, JSC::Structure* structure, JSDOMGlobalObject* globalObject)
     33        static JSImageConstructor* create(JSC::VM& vm, JSC::Structure* structure, JSDOMGlobalObject& globalObject)
    3434        {
    3535            JSImageConstructor* constructor = new (NotNull, JSC::allocateCell<JSImageConstructor>(vm.heap)) JSImageConstructor(structure, globalObject);
     
    3838        }
    3939
    40         static JSC::Structure* createStructure(JSC::VM& vm, JSC::JSGlobalObject* globalObject, JSC::JSValue prototype)
     40        static JSC::Structure* createStructure(JSC::VM& vm, JSC::JSGlobalObject& globalObject, JSC::JSValue prototype)
    4141        {
    42             return JSC::Structure::create(vm, globalObject, prototype, JSC::TypeInfo(JSC::ObjectType, StructureFlags), info());
     42            return JSC::Structure::create(vm, &globalObject, prototype, JSC::TypeInfo(JSC::ObjectType, StructureFlags), info());
    4343        }
    4444
     
    4646
    4747    private:
    48         JSImageConstructor(JSC::Structure*, JSDOMGlobalObject*);
    49         void finishCreation(JSC::VM&, JSDOMGlobalObject*);
     48        JSImageConstructor(JSC::Structure*, JSDOMGlobalObject&);
     49        void finishCreation(JSC::VM&, JSDOMGlobalObject&);
    5050        static JSC::ConstructType getConstructData(JSC::JSCell*, JSC::ConstructData&);
    5151    };
  • trunk/Source/WebCore/bindings/js/JSReadableStreamPrivateConstructors.cpp

    r190608 r190714  
    6666template<> JSObject* JSBuiltinReadableStreamReaderPrivateConstructor::createJSObject()
    6767{
    68     return JSReadableStreamReader::create(getDOMStructure<JSReadableStreamReader>(globalObject()->vm(), globalObject()), globalObject(), ReadableStreamReader::create());
     68    return JSReadableStreamReader::create(getDOMStructure<JSReadableStreamReader>(globalObject()->vm(), *globalObject()), globalObject(), ReadableStreamReader::create());
    6969}
    7070
    7171template<> JSObject* JSBuiltinReadableStreamControllerPrivateConstructor::createJSObject()
    7272{
    73     return JSReadableStreamController::create(getDOMStructure<JSReadableStreamController>(globalObject()->vm(), globalObject()), globalObject(), ReadableStreamController::create());
     73    return JSReadableStreamController::create(getDOMStructure<JSReadableStreamController>(globalObject()->vm(), *globalObject()), globalObject(), ReadableStreamController::create());
    7474}
    7575
  • trunk/Source/WebCore/bindings/scripts/CodeGeneratorJS.pm

    r190637 r190714  
    939939        push(@headerContent, "    {\n");
    940940        push(@headerContent, "        globalObject->masqueradesAsUndefinedWatchpoint()->fireAll(\"Allocated masquerading object\");\n");
    941         push(@headerContent, "        $className* ptr = new (NotNull, JSC::allocateCell<$className>(globalObject->vm().heap)) $className(structure, globalObject, WTF::move(impl));\n");
     941        push(@headerContent, "        $className* ptr = new (NotNull, JSC::allocateCell<$className>(globalObject->vm().heap)) $className(structure, *globalObject, WTF::move(impl));\n");
    942942        push(@headerContent, "        ptr->finishCreation(globalObject->vm());\n");
    943943        push(@headerContent, "        return ptr;\n");
     
    946946        push(@headerContent, "    static $className* create(JSC::Structure* structure, JSDOMGlobalObject* globalObject)\n");
    947947        push(@headerContent, "    {\n");
    948         push(@headerContent, "        $className* ptr = new (NotNull, JSC::allocateCell<$className>(globalObject->vm().heap)) $className(structure, globalObject);\n");
     948        push(@headerContent, "        $className* ptr = new (NotNull, JSC::allocateCell<$className>(globalObject->vm().heap)) $className(structure, *globalObject);\n");
    949949        push(@headerContent, "        ptr->finishCreation(globalObject->vm());\n");
    950950        push(@headerContent, "        return ptr;\n");
     
    954954        push(@headerContent, "    static $className* create(JSC::Structure* structure, JSDOMGlobalObject* globalObject, Ref<$implType>&& impl)\n");
    955955        push(@headerContent, "    {\n");
    956         push(@headerContent, "        $className* ptr = new (NotNull, JSC::allocateCell<$className>(globalObject->vm().heap)) $className(structure, globalObject, WTF::move(impl));\n");
     956        push(@headerContent, "        $className* ptr = new (NotNull, JSC::allocateCell<$className>(globalObject->vm().heap)) $className(structure, *globalObject, WTF::move(impl));\n");
    957957        push(@headerContent, "        ptr->finishCreation(globalObject->vm());\n");
    958958        push(@headerContent, "        return ptr;\n");
     
    12171217        push(@headerContent, "    $className(JSC::VM&, JSC::Structure*, Ref<$implType>&&);\n");
    12181218    } elsif (!NeedsImplementationClass($interface)) {
    1219         push(@headerContent, "    $className(JSC::Structure*, JSDOMGlobalObject*);\n\n");
     1219        push(@headerContent, "    $className(JSC::Structure*, JSDOMGlobalObject&);\n\n");
    12201220     } else {
    1221         push(@headerContent, "    $className(JSC::Structure*, JSDOMGlobalObject*, Ref<$implType>&&);\n\n");
     1221        push(@headerContent, "    $className(JSC::Structure*, JSDOMGlobalObject&, Ref<$implType>&&);\n\n");
    12221222        push(@headerContent, "    void finishCreation(JSC::VM& vm)\n");
    12231223        push(@headerContent, "    {\n");
     
    21552155        push(@implContent, "}\n\n");
    21562156    } elsif (!NeedsImplementationClass($interface)) {
    2157         push(@implContent, "${className}::$className(Structure* structure, JSDOMGlobalObject* globalObject)\n");
     2157        push(@implContent, "${className}::$className(Structure* structure, JSDOMGlobalObject& globalObject)\n");
    21582158        push(@implContent, "    : $parentClassName(structure, globalObject) { }\n\n");
    2159      }else {
    2160         push(@implContent, "${className}::$className(Structure* structure, JSDOMGlobalObject* globalObject, Ref<$implType>&& impl)\n");
     2159    } else {
     2160        push(@implContent, "${className}::$className(Structure* structure, JSDOMGlobalObject& globalObject, Ref<$implType>&& impl)\n");
    21612161        push(@implContent, "    : $parentClassName(structure, globalObject, WTF::move(impl))\n");
    21622162        push(@implContent, "{\n");
     
    25192519                push(@implContent, "    return JSValue::encode(${className}::getConstructor(state->vm(), domObject->globalObject()));\n");
    25202520            } else {
    2521                 push(@implContent, "    JSValue constructor = ${className}Constructor::create(state->vm(), ${className}Constructor::createStructure(state->vm(), domObject->globalObject(), domObject->globalObject()->objectPrototype()), jsCast<JSDOMGlobalObject*>(domObject->globalObject()));\n");
     2521                push(@implContent, "    JSValue constructor = ${className}Constructor::create(state->vm(), ${className}Constructor::createStructure(state->vm(), *domObject->globalObject(), domObject->globalObject()->objectPrototype()), *jsCast<JSDOMGlobalObject*>(domObject->globalObject()));\n");
    25222522                push(@implContent, "    // Shadowing constructor property to ensure reusing the same constructor object\n");
    25232523                push(@implContent, "    domObject->putDirect(state->vm(), state->propertyNames().constructor, constructor, DontEnum | ReadOnly);\n");
     
    28342834    if (!$interface->extendedAttributes->{"NoInterfaceObject"}) {
    28352835        push(@implContent, "JSValue ${className}::getConstructor(VM& vm, JSGlobalObject* globalObject)\n{\n");
    2836         push(@implContent, "    return getDOMConstructor<${className}Constructor>(vm, jsCast<JSDOMGlobalObject*>(globalObject));\n");
     2836        push(@implContent, "    return getDOMConstructor<${className}Constructor>(vm, *jsCast<JSDOMGlobalObject*>(globalObject));\n");
    28372837        push(@implContent, "}\n\n");
    28382838        if ($interface->extendedAttributes->{"NamedConstructor"}) {
    28392839            push(@implContent, "JSValue ${className}::getNamedConstructor(VM& vm, JSGlobalObject* globalObject)\n{\n");
    2840             push(@implContent, "    return getDOMConstructor<${className}NamedConstructor>(vm, jsCast<JSDOMGlobalObject*>(globalObject));\n");
     2840            push(@implContent, "    return getDOMConstructor<${className}NamedConstructor>(vm, *jsCast<JSDOMGlobalObject*>(globalObject));\n");
    28412841            push(@implContent, "}\n\n");
    28422842        }
     
    37313731
    37323732       push(@implContent, "JSValue ${className}::getConstructor(VM& vm, JSGlobalObject* globalObject)\n{\n");
    3733        push(@implContent, "    return getDOMConstructor<${className}Constructor>(vm, jsCast<JSDOMGlobalObject*>(globalObject));\n");
     3733       push(@implContent, "    return getDOMConstructor<${className}Constructor>(vm, *jsCast<JSDOMGlobalObject*>(globalObject));\n");
    37343734       push(@implContent, "}\n\n");
    37353735    }
     
    46074607    push(@$outputArray, "class ${constructorClassName} : public " . $parentClassName . " {\n");
    46084608    push(@$outputArray, "private:\n");
    4609     push(@$outputArray, "    ${constructorClassName}(JSC::Structure*, JSDOMGlobalObject*);\n");
     4609    push(@$outputArray, "    ${constructorClassName}(JSC::Structure*, JSDOMGlobalObject&);\n");
    46104610    push(@$outputArray, "    void finishCreation(JSC::VM&, JSDOMGlobalObject&);\n\n");
    46114611
    46124612    push(@$outputArray, "public:\n");
    46134613    push(@$outputArray, "    typedef " . $parentClassName . " Base;\n");
    4614     push(@$outputArray, "    static $constructorClassName* create(JSC::VM& vm, JSC::Structure* structure, JSDOMGlobalObject* globalObject)\n");
     4614    push(@$outputArray, "    static $constructorClassName* create(JSC::VM& vm, JSC::Structure* structure, JSDOMGlobalObject& globalObject)\n");
    46154615    push(@$outputArray, "    {\n");
    46164616    push(@$outputArray, "        $constructorClassName* ptr = new (NotNull, JSC::allocateCell<$constructorClassName>(vm.heap)) $constructorClassName(structure, globalObject);\n");
    4617     push(@$outputArray, "        ptr->finishCreation(vm, *globalObject);\n");
     4617    push(@$outputArray, "        ptr->finishCreation(vm, globalObject);\n");
    46184618    push(@$outputArray, "        return ptr;\n");
    46194619    push(@$outputArray, "    }\n\n");
     
    46214621    push(@$outputArray, "    DECLARE_INFO;\n");
    46224622
    4623     push(@$outputArray, "    static JSC::Structure* createStructure(JSC::VM& vm, JSC::JSGlobalObject* globalObject, JSC::JSValue prototype)\n");
     4623    push(@$outputArray, "    static JSC::Structure* createStructure(JSC::VM& vm, JSC::JSGlobalObject& globalObject, JSC::JSValue prototype)\n");
    46244624    push(@$outputArray, "    {\n");
    4625     push(@$outputArray, "        return JSC::Structure::create(vm, globalObject, prototype, JSC::TypeInfo(JSC::ObjectType, StructureFlags), info());\n");
     4625    push(@$outputArray, "        return JSC::Structure::create(vm, &globalObject, prototype, JSC::TypeInfo(JSC::ObjectType, StructureFlags), info());\n");
    46264626    push(@$outputArray, "    }\n");
    46274627
     
    46524652    typedef DOMConstructorWithDocument Base;
    46534653
    4654     static JS${interfaceName}NamedConstructor* create(JSC::VM& vm, JSC::Structure* structure, JSDOMGlobalObject* globalObject)
     4654    static JS${interfaceName}NamedConstructor* create(JSC::VM& vm, JSC::Structure* structure, JSDOMGlobalObject& globalObject)
    46554655    {
    46564656        JS${interfaceName}NamedConstructor* constructor = new (NotNull, JSC::allocateCell<JS${interfaceName}NamedConstructor>(vm.heap)) JS${interfaceName}NamedConstructor(structure, globalObject);
    4657         constructor->finishCreation(vm, *globalObject);
     4657        constructor->finishCreation(vm, globalObject);
    46584658        return constructor;
    46594659    }
    46604660
    4661     static JSC::Structure* createStructure(JSC::VM& vm, JSC::JSGlobalObject* globalObject, JSC::JSValue prototype)
     4661    static JSC::Structure* createStructure(JSC::VM& vm, JSC::JSGlobalObject& globalObject, JSC::JSValue prototype)
    46624662    {
    4663         return JSC::Structure::create(vm, globalObject, prototype, JSC::TypeInfo(JSC::ObjectType, StructureFlags), info());
     4663        return JSC::Structure::create(vm, &globalObject, prototype, JSC::TypeInfo(JSC::ObjectType, StructureFlags), info());
    46644664    }
    46654665
     
    46674667
    46684668private:
    4669     JS${interfaceName}NamedConstructor(JSC::Structure*, JSDOMGlobalObject*);
     4669    JS${interfaceName}NamedConstructor(JSC::Structure*, JSDOMGlobalObject&);
    46704670    static JSC::EncodedJSValue JSC_HOST_CALL constructJS${interfaceName}(JSC::ExecState*);
    46714671    static JSC::ConstructType getConstructData(JSC::JSCell*, JSC::ConstructData&);
     
    49724972    push(@$outputArray, "const ClassInfo ${constructorClassName}::s_info = { \"${visibleInterfaceName}Constructor\", &Base::s_info, 0, CREATE_METHOD_TABLE($constructorClassName) };\n\n");
    49734973
    4974     push(@$outputArray, "${constructorClassName}::${constructorClassName}(Structure* structure, JSDOMGlobalObject* globalObject)\n");
     4974    push(@$outputArray, "${constructorClassName}::${constructorClassName}(Structure* structure, JSDOMGlobalObject& globalObject)\n");
    49754975    push(@$outputArray, "    : Base(structure, globalObject)\n");
    49764976    push(@$outputArray, "{\n");
     
    49814981
    49824982    if ($generatingNamedConstructor) {
    4983         push(@$outputArray, "    Base::finishCreation(&globalObject);\n");
     4983        push(@$outputArray, "    Base::finishCreation(globalObject);\n");
    49844984    } else {
    49854985        push(@$outputArray, "    Base::finishCreation(vm);\n");
  • trunk/Source/WebCore/bindings/scripts/test/JS/JSTestActiveDOMObject.cpp

    r190637 r190714  
    6969class JSTestActiveDOMObjectConstructor : public DOMConstructorObject {
    7070private:
    71     JSTestActiveDOMObjectConstructor(JSC::Structure*, JSDOMGlobalObject*);
     71    JSTestActiveDOMObjectConstructor(JSC::Structure*, JSDOMGlobalObject&);
    7272    void finishCreation(JSC::VM&, JSDOMGlobalObject&);
    7373
    7474public:
    7575    typedef DOMConstructorObject Base;
    76     static JSTestActiveDOMObjectConstructor* create(JSC::VM& vm, JSC::Structure* structure, JSDOMGlobalObject* globalObject)
     76    static JSTestActiveDOMObjectConstructor* create(JSC::VM& vm, JSC::Structure* structure, JSDOMGlobalObject& globalObject)
    7777    {
    7878        JSTestActiveDOMObjectConstructor* ptr = new (NotNull, JSC::allocateCell<JSTestActiveDOMObjectConstructor>(vm.heap)) JSTestActiveDOMObjectConstructor(structure, globalObject);
    79         ptr->finishCreation(vm, *globalObject);
     79        ptr->finishCreation(vm, globalObject);
    8080        return ptr;
    8181    }
    8282
    8383    DECLARE_INFO;
    84     static JSC::Structure* createStructure(JSC::VM& vm, JSC::JSGlobalObject* globalObject, JSC::JSValue prototype)
    85     {
    86         return JSC::Structure::create(vm, globalObject, prototype, JSC::TypeInfo(JSC::ObjectType, StructureFlags), info());
     84    static JSC::Structure* createStructure(JSC::VM& vm, JSC::JSGlobalObject& globalObject, JSC::JSValue prototype)
     85    {
     86        return JSC::Structure::create(vm, &globalObject, prototype, JSC::TypeInfo(JSC::ObjectType, StructureFlags), info());
    8787    }
    8888};
     
    107107const ClassInfo JSTestActiveDOMObjectConstructor::s_info = { "TestActiveDOMObjectConstructor", &Base::s_info, 0, CREATE_METHOD_TABLE(JSTestActiveDOMObjectConstructor) };
    108108
    109 JSTestActiveDOMObjectConstructor::JSTestActiveDOMObjectConstructor(Structure* structure, JSDOMGlobalObject* globalObject)
     109JSTestActiveDOMObjectConstructor::JSTestActiveDOMObjectConstructor(Structure* structure, JSDOMGlobalObject& globalObject)
    110110    : Base(structure, globalObject)
    111111{
     
    139139const ClassInfo JSTestActiveDOMObject::s_info = { "TestActiveDOMObject", &Base::s_info, &JSTestActiveDOMObjectTable, CREATE_METHOD_TABLE(JSTestActiveDOMObject) };
    140140
    141 JSTestActiveDOMObject::JSTestActiveDOMObject(Structure* structure, JSDOMGlobalObject* globalObject, Ref<TestActiveDOMObject>&& impl)
     141JSTestActiveDOMObject::JSTestActiveDOMObject(Structure* structure, JSDOMGlobalObject& globalObject, Ref<TestActiveDOMObject>&& impl)
    142142    : JSDOMWrapperWithImplementation<TestActiveDOMObject>(structure, globalObject, WTF::move(impl))
    143143{
     
    195195JSValue JSTestActiveDOMObject::getConstructor(VM& vm, JSGlobalObject* globalObject)
    196196{
    197     return getDOMConstructor<JSTestActiveDOMObjectConstructor>(vm, jsCast<JSDOMGlobalObject*>(globalObject));
     197    return getDOMConstructor<JSTestActiveDOMObjectConstructor>(vm, *jsCast<JSDOMGlobalObject*>(globalObject));
    198198}
    199199
  • trunk/Source/WebCore/bindings/scripts/test/JS/JSTestActiveDOMObject.h

    r190403 r190714  
    3333    static JSTestActiveDOMObject* create(JSC::Structure* structure, JSDOMGlobalObject* globalObject, Ref<TestActiveDOMObject>&& impl)
    3434    {
    35         JSTestActiveDOMObject* ptr = new (NotNull, JSC::allocateCell<JSTestActiveDOMObject>(globalObject->vm().heap)) JSTestActiveDOMObject(structure, globalObject, WTF::move(impl));
     35        JSTestActiveDOMObject* ptr = new (NotNull, JSC::allocateCell<JSTestActiveDOMObject>(globalObject->vm().heap)) JSTestActiveDOMObject(structure, *globalObject, WTF::move(impl));
    3636        ptr->finishCreation(globalObject->vm());
    3737        return ptr;
     
    5555    static const unsigned StructureFlags = JSC::OverridesGetOwnPropertySlot | Base::StructureFlags;
    5656protected:
    57     JSTestActiveDOMObject(JSC::Structure*, JSDOMGlobalObject*, Ref<TestActiveDOMObject>&&);
     57    JSTestActiveDOMObject(JSC::Structure*, JSDOMGlobalObject&, Ref<TestActiveDOMObject>&&);
    5858
    5959    void finishCreation(JSC::VM& vm)
  • trunk/Source/WebCore/bindings/scripts/test/JS/JSTestCallback.cpp

    r190637 r190714  
    6262class JSTestCallbackConstructor : public DOMConstructorObject {
    6363private:
    64     JSTestCallbackConstructor(JSC::Structure*, JSDOMGlobalObject*);
     64    JSTestCallbackConstructor(JSC::Structure*, JSDOMGlobalObject&);
    6565    void finishCreation(JSC::VM&, JSDOMGlobalObject&);
    6666
    6767public:
    6868    typedef DOMConstructorObject Base;
    69     static JSTestCallbackConstructor* create(JSC::VM& vm, JSC::Structure* structure, JSDOMGlobalObject* globalObject)
     69    static JSTestCallbackConstructor* create(JSC::VM& vm, JSC::Structure* structure, JSDOMGlobalObject& globalObject)
    7070    {
    7171        JSTestCallbackConstructor* ptr = new (NotNull, JSC::allocateCell<JSTestCallbackConstructor>(vm.heap)) JSTestCallbackConstructor(structure, globalObject);
    72         ptr->finishCreation(vm, *globalObject);
     72        ptr->finishCreation(vm, globalObject);
    7373        return ptr;
    7474    }
    7575
    7676    DECLARE_INFO;
    77     static JSC::Structure* createStructure(JSC::VM& vm, JSC::JSGlobalObject* globalObject, JSC::JSValue prototype)
     77    static JSC::Structure* createStructure(JSC::VM& vm, JSC::JSGlobalObject& globalObject, JSC::JSValue prototype)
    7878    {
    79         return JSC::Structure::create(vm, globalObject, prototype, JSC::TypeInfo(JSC::ObjectType, StructureFlags), info());
     79        return JSC::Structure::create(vm, &globalObject, prototype, JSC::TypeInfo(JSC::ObjectType, StructureFlags), info());
    8080    }
    8181};
     
    9595const ClassInfo JSTestCallbackConstructor::s_info = { "TestCallbackConstructor", &Base::s_info, 0, CREATE_METHOD_TABLE(JSTestCallbackConstructor) };
    9696
    97 JSTestCallbackConstructor::JSTestCallbackConstructor(Structure* structure, JSDOMGlobalObject* globalObject)
     97JSTestCallbackConstructor::JSTestCallbackConstructor(Structure* structure, JSDOMGlobalObject& globalObject)
    9898    : Base(structure, globalObject)
    9999{
     
    112112JSValue JSTestCallback::getConstructor(VM& vm, JSGlobalObject* globalObject)
    113113{
    114     return getDOMConstructor<JSTestCallbackConstructor>(vm, jsCast<JSDOMGlobalObject*>(globalObject));
     114    return getDOMConstructor<JSTestCallbackConstructor>(vm, *jsCast<JSDOMGlobalObject*>(globalObject));
    115115}
    116116
  • trunk/Source/WebCore/bindings/scripts/test/JS/JSTestCustomConstructorWithNoInterfaceObject.cpp

    r190637 r190714  
    6060class JSTestCustomConstructorWithNoInterfaceObjectConstructor : public DOMConstructorObject {
    6161private:
    62     JSTestCustomConstructorWithNoInterfaceObjectConstructor(JSC::Structure*, JSDOMGlobalObject*);
     62    JSTestCustomConstructorWithNoInterfaceObjectConstructor(JSC::Structure*, JSDOMGlobalObject&);
    6363    void finishCreation(JSC::VM&, JSDOMGlobalObject&);
    6464
    6565public:
    6666    typedef DOMConstructorObject Base;
    67     static JSTestCustomConstructorWithNoInterfaceObjectConstructor* create(JSC::VM& vm, JSC::Structure* structure, JSDOMGlobalObject* globalObject)
     67    static JSTestCustomConstructorWithNoInterfaceObjectConstructor* create(JSC::VM& vm, JSC::Structure* structure, JSDOMGlobalObject& globalObject)
    6868    {
    6969        JSTestCustomConstructorWithNoInterfaceObjectConstructor* ptr = new (NotNull, JSC::allocateCell<JSTestCustomConstructorWithNoInterfaceObjectConstructor>(vm.heap)) JSTestCustomConstructorWithNoInterfaceObjectConstructor(structure, globalObject);
    70         ptr->finishCreation(vm, *globalObject);
     70        ptr->finishCreation(vm, globalObject);
    7171        return ptr;
    7272    }
    7373
    7474    DECLARE_INFO;
    75     static JSC::Structure* createStructure(JSC::VM& vm, JSC::JSGlobalObject* globalObject, JSC::JSValue prototype)
    76     {
    77         return JSC::Structure::create(vm, globalObject, prototype, JSC::TypeInfo(JSC::ObjectType, StructureFlags), info());
     75    static JSC::Structure* createStructure(JSC::VM& vm, JSC::JSGlobalObject& globalObject, JSC::JSValue prototype)
     76    {
     77        return JSC::Structure::create(vm, &globalObject, prototype, JSC::TypeInfo(JSC::ObjectType, StructureFlags), info());
    7878    }
    7979    static JSC::ConstructType getConstructData(JSC::JSCell*, JSC::ConstructData&);
     
    8282const ClassInfo JSTestCustomConstructorWithNoInterfaceObjectConstructor::s_info = { "TestCustomConstructorWithNoInterfaceObjectConstructor", &Base::s_info, 0, CREATE_METHOD_TABLE(JSTestCustomConstructorWithNoInterfaceObjectConstructor) };
    8383
    84 JSTestCustomConstructorWithNoInterfaceObjectConstructor::JSTestCustomConstructorWithNoInterfaceObjectConstructor(Structure* structure, JSDOMGlobalObject* globalObject)
     84JSTestCustomConstructorWithNoInterfaceObjectConstructor::JSTestCustomConstructorWithNoInterfaceObjectConstructor(Structure* structure, JSDOMGlobalObject& globalObject)
    8585    : Base(structure, globalObject)
    8686{
     
    119119const ClassInfo JSTestCustomConstructorWithNoInterfaceObject::s_info = { "TestCustomConstructorWithNoInterfaceObject", &Base::s_info, 0, CREATE_METHOD_TABLE(JSTestCustomConstructorWithNoInterfaceObject) };
    120120
    121 JSTestCustomConstructorWithNoInterfaceObject::JSTestCustomConstructorWithNoInterfaceObject(Structure* structure, JSDOMGlobalObject* globalObject, Ref<TestCustomConstructorWithNoInterfaceObject>&& impl)
     121JSTestCustomConstructorWithNoInterfaceObject::JSTestCustomConstructorWithNoInterfaceObject(Structure* structure, JSDOMGlobalObject& globalObject, Ref<TestCustomConstructorWithNoInterfaceObject>&& impl)
    122122    : JSDOMWrapperWithImplementation<TestCustomConstructorWithNoInterfaceObject>(structure, globalObject, WTF::move(impl))
    123123{
     
    145145    if (!domObject)
    146146        return throwVMTypeError(state);
    147     JSValue constructor = JSTestCustomConstructorWithNoInterfaceObjectConstructor::create(state->vm(), JSTestCustomConstructorWithNoInterfaceObjectConstructor::createStructure(state->vm(), domObject->globalObject(), domObject->globalObject()->objectPrototype()), jsCast<JSDOMGlobalObject*>(domObject->globalObject()));
     147    JSValue constructor = JSTestCustomConstructorWithNoInterfaceObjectConstructor::create(state->vm(), JSTestCustomConstructorWithNoInterfaceObjectConstructor::createStructure(state->vm(), *domObject->globalObject(), domObject->globalObject()->objectPrototype()), *jsCast<JSDOMGlobalObject*>(domObject->globalObject()));
    148148    // Shadowing constructor property to ensure reusing the same constructor object
    149149    domObject->putDirect(state->vm(), state->propertyNames().constructor, constructor, DontEnum | ReadOnly);
  • trunk/Source/WebCore/bindings/scripts/test/JS/JSTestCustomConstructorWithNoInterfaceObject.h

    r190403 r190714  
    3333    static JSTestCustomConstructorWithNoInterfaceObject* create(JSC::Structure* structure, JSDOMGlobalObject* globalObject, Ref<TestCustomConstructorWithNoInterfaceObject>&& impl)
    3434    {
    35         JSTestCustomConstructorWithNoInterfaceObject* ptr = new (NotNull, JSC::allocateCell<JSTestCustomConstructorWithNoInterfaceObject>(globalObject->vm().heap)) JSTestCustomConstructorWithNoInterfaceObject(structure, globalObject, WTF::move(impl));
     35        JSTestCustomConstructorWithNoInterfaceObject* ptr = new (NotNull, JSC::allocateCell<JSTestCustomConstructorWithNoInterfaceObject>(globalObject->vm().heap)) JSTestCustomConstructorWithNoInterfaceObject(structure, *globalObject, WTF::move(impl));
    3636        ptr->finishCreation(globalObject->vm());
    3737        return ptr;
     
    5151
    5252protected:
    53     JSTestCustomConstructorWithNoInterfaceObject(JSC::Structure*, JSDOMGlobalObject*, Ref<TestCustomConstructorWithNoInterfaceObject>&&);
     53    JSTestCustomConstructorWithNoInterfaceObject(JSC::Structure*, JSDOMGlobalObject&, Ref<TestCustomConstructorWithNoInterfaceObject>&&);
    5454
    5555    void finishCreation(JSC::VM& vm)
  • trunk/Source/WebCore/bindings/scripts/test/JS/JSTestCustomNamedGetter.cpp

    r190637 r190714  
    6767class JSTestCustomNamedGetterConstructor : public DOMConstructorObject {
    6868private:
    69     JSTestCustomNamedGetterConstructor(JSC::Structure*, JSDOMGlobalObject*);
     69    JSTestCustomNamedGetterConstructor(JSC::Structure*, JSDOMGlobalObject&);
    7070    void finishCreation(JSC::VM&, JSDOMGlobalObject&);
    7171
    7272public:
    7373    typedef DOMConstructorObject Base;
    74     static JSTestCustomNamedGetterConstructor* create(JSC::VM& vm, JSC::Structure* structure, JSDOMGlobalObject* globalObject)
     74    static JSTestCustomNamedGetterConstructor* create(JSC::VM& vm, JSC::Structure* structure, JSDOMGlobalObject& globalObject)
    7575    {
    7676        JSTestCustomNamedGetterConstructor* ptr = new (NotNull, JSC::allocateCell<JSTestCustomNamedGetterConstructor>(vm.heap)) JSTestCustomNamedGetterConstructor(structure, globalObject);
    77         ptr->finishCreation(vm, *globalObject);
     77        ptr->finishCreation(vm, globalObject);
    7878        return ptr;
    7979    }
    8080
    8181    DECLARE_INFO;
    82     static JSC::Structure* createStructure(JSC::VM& vm, JSC::JSGlobalObject* globalObject, JSC::JSValue prototype)
    83     {
    84         return JSC::Structure::create(vm, globalObject, prototype, JSC::TypeInfo(JSC::ObjectType, StructureFlags), info());
     82    static JSC::Structure* createStructure(JSC::VM& vm, JSC::JSGlobalObject& globalObject, JSC::JSValue prototype)
     83    {
     84        return JSC::Structure::create(vm, &globalObject, prototype, JSC::TypeInfo(JSC::ObjectType, StructureFlags), info());
    8585    }
    8686};
     
    102102const ClassInfo JSTestCustomNamedGetterConstructor::s_info = { "TestCustomNamedGetterConstructor", &Base::s_info, 0, CREATE_METHOD_TABLE(JSTestCustomNamedGetterConstructor) };
    103103
    104 JSTestCustomNamedGetterConstructor::JSTestCustomNamedGetterConstructor(Structure* structure, JSDOMGlobalObject* globalObject)
     104JSTestCustomNamedGetterConstructor::JSTestCustomNamedGetterConstructor(Structure* structure, JSDOMGlobalObject& globalObject)
    105105    : Base(structure, globalObject)
    106106{
     
    133133const ClassInfo JSTestCustomNamedGetter::s_info = { "TestCustomNamedGetter", &Base::s_info, &JSTestCustomNamedGetterTable, CREATE_METHOD_TABLE(JSTestCustomNamedGetter) };
    134134
    135 JSTestCustomNamedGetter::JSTestCustomNamedGetter(Structure* structure, JSDOMGlobalObject* globalObject, Ref<TestCustomNamedGetter>&& impl)
     135JSTestCustomNamedGetter::JSTestCustomNamedGetter(Structure* structure, JSDOMGlobalObject& globalObject, Ref<TestCustomNamedGetter>&& impl)
    136136    : JSDOMWrapperWithImplementation<TestCustomNamedGetter>(structure, globalObject, WTF::move(impl))
    137137{
     
    199199JSValue JSTestCustomNamedGetter::getConstructor(VM& vm, JSGlobalObject* globalObject)
    200200{
    201     return getDOMConstructor<JSTestCustomNamedGetterConstructor>(vm, jsCast<JSDOMGlobalObject*>(globalObject));
     201    return getDOMConstructor<JSTestCustomNamedGetterConstructor>(vm, *jsCast<JSDOMGlobalObject*>(globalObject));
    202202}
    203203
  • trunk/Source/WebCore/bindings/scripts/test/JS/JSTestCustomNamedGetter.h

    r190403 r190714  
    3333    static JSTestCustomNamedGetter* create(JSC::Structure* structure, JSDOMGlobalObject* globalObject, Ref<TestCustomNamedGetter>&& impl)
    3434    {
    35         JSTestCustomNamedGetter* ptr = new (NotNull, JSC::allocateCell<JSTestCustomNamedGetter>(globalObject->vm().heap)) JSTestCustomNamedGetter(structure, globalObject, WTF::move(impl));
     35        JSTestCustomNamedGetter* ptr = new (NotNull, JSC::allocateCell<JSTestCustomNamedGetter>(globalObject->vm().heap)) JSTestCustomNamedGetter(structure, *globalObject, WTF::move(impl));
    3636        ptr->finishCreation(globalObject->vm());
    3737        return ptr;
     
    5656    static const unsigned StructureFlags = JSC::InterceptsGetOwnPropertySlotByIndexEvenWhenLengthIsNotZero | JSC::OverridesGetOwnPropertySlot | Base::StructureFlags;
    5757protected:
    58     JSTestCustomNamedGetter(JSC::Structure*, JSDOMGlobalObject*, Ref<TestCustomNamedGetter>&&);
     58    JSTestCustomNamedGetter(JSC::Structure*, JSDOMGlobalObject&, Ref<TestCustomNamedGetter>&&);
    5959
    6060    void finishCreation(JSC::VM& vm)
  • trunk/Source/WebCore/bindings/scripts/test/JS/JSTestEventConstructor.cpp

    r190637 r190714  
    6666class JSTestEventConstructorConstructor : public DOMConstructorObject {
    6767private:
    68     JSTestEventConstructorConstructor(JSC::Structure*, JSDOMGlobalObject*);
     68    JSTestEventConstructorConstructor(JSC::Structure*, JSDOMGlobalObject&);
    6969    void finishCreation(JSC::VM&, JSDOMGlobalObject&);
    7070
    7171public:
    7272    typedef DOMConstructorObject Base;
    73     static JSTestEventConstructorConstructor* create(JSC::VM& vm, JSC::Structure* structure, JSDOMGlobalObject* globalObject)
     73    static JSTestEventConstructorConstructor* create(JSC::VM& vm, JSC::Structure* structure, JSDOMGlobalObject& globalObject)
    7474    {
    7575        JSTestEventConstructorConstructor* ptr = new (NotNull, JSC::allocateCell<JSTestEventConstructorConstructor>(vm.heap)) JSTestEventConstructorConstructor(structure, globalObject);
    76         ptr->finishCreation(vm, *globalObject);
     76        ptr->finishCreation(vm, globalObject);
    7777        return ptr;
    7878    }
    7979
    8080    DECLARE_INFO;
    81     static JSC::Structure* createStructure(JSC::VM& vm, JSC::JSGlobalObject* globalObject, JSC::JSValue prototype)
    82     {
    83         return JSC::Structure::create(vm, globalObject, prototype, JSC::TypeInfo(JSC::ObjectType, StructureFlags), info());
     81    static JSC::Structure* createStructure(JSC::VM& vm, JSC::JSGlobalObject& globalObject, JSC::JSValue prototype)
     82    {
     83        return JSC::Structure::create(vm, &globalObject, prototype, JSC::TypeInfo(JSC::ObjectType, StructureFlags), info());
    8484    }
    8585protected:
     
    131131const ClassInfo JSTestEventConstructorConstructor::s_info = { "TestEventConstructorConstructor", &Base::s_info, 0, CREATE_METHOD_TABLE(JSTestEventConstructorConstructor) };
    132132
    133 JSTestEventConstructorConstructor::JSTestEventConstructorConstructor(Structure* structure, JSDOMGlobalObject* globalObject)
     133JSTestEventConstructorConstructor::JSTestEventConstructorConstructor(Structure* structure, JSDOMGlobalObject& globalObject)
    134134    : Base(structure, globalObject)
    135135{
     
    170170const ClassInfo JSTestEventConstructor::s_info = { "TestEventConstructor", &Base::s_info, 0, CREATE_METHOD_TABLE(JSTestEventConstructor) };
    171171
    172 JSTestEventConstructor::JSTestEventConstructor(Structure* structure, JSDOMGlobalObject* globalObject, Ref<TestEventConstructor>&& impl)
     172JSTestEventConstructor::JSTestEventConstructor(Structure* structure, JSDOMGlobalObject& globalObject, Ref<TestEventConstructor>&& impl)
    173173    : JSDOMWrapperWithImplementation<TestEventConstructor>(structure, globalObject, WTF::move(impl))
    174174{
     
    235235JSValue JSTestEventConstructor::getConstructor(VM& vm, JSGlobalObject* globalObject)
    236236{
    237     return getDOMConstructor<JSTestEventConstructorConstructor>(vm, jsCast<JSDOMGlobalObject*>(globalObject));
     237    return getDOMConstructor<JSTestEventConstructorConstructor>(vm, *jsCast<JSDOMGlobalObject*>(globalObject));
    238238}
    239239
  • trunk/Source/WebCore/bindings/scripts/test/JS/JSTestEventConstructor.h

    r190403 r190714  
    3535    static JSTestEventConstructor* create(JSC::Structure* structure, JSDOMGlobalObject* globalObject, Ref<TestEventConstructor>&& impl)
    3636    {
    37         JSTestEventConstructor* ptr = new (NotNull, JSC::allocateCell<JSTestEventConstructor>(globalObject->vm().heap)) JSTestEventConstructor(structure, globalObject, WTF::move(impl));
     37        JSTestEventConstructor* ptr = new (NotNull, JSC::allocateCell<JSTestEventConstructor>(globalObject->vm().heap)) JSTestEventConstructor(structure, *globalObject, WTF::move(impl));
    3838        ptr->finishCreation(globalObject->vm());
    3939        return ptr;
     
    5454    static JSC::JSValue getConstructor(JSC::VM&, JSC::JSGlobalObject*);
    5555protected:
    56     JSTestEventConstructor(JSC::Structure*, JSDOMGlobalObject*, Ref<TestEventConstructor>&&);
     56    JSTestEventConstructor(JSC::Structure*, JSDOMGlobalObject&, Ref<TestEventConstructor>&&);
    5757
    5858    void finishCreation(JSC::VM& vm)
  • trunk/Source/WebCore/bindings/scripts/test/JS/JSTestEventTarget.cpp

    r190637 r190714  
    7676class JSTestEventTargetConstructor : public DOMConstructorObject {
    7777private:
    78     JSTestEventTargetConstructor(JSC::Structure*, JSDOMGlobalObject*);
     78    JSTestEventTargetConstructor(JSC::Structure*, JSDOMGlobalObject&);
    7979    void finishCreation(JSC::VM&, JSDOMGlobalObject&);
    8080
    8181public:
    8282    typedef DOMConstructorObject Base;
    83     static JSTestEventTargetConstructor* create(JSC::VM& vm, JSC::Structure* structure, JSDOMGlobalObject* globalObject)
     83    static JSTestEventTargetConstructor* create(JSC::VM& vm, JSC::Structure* structure, JSDOMGlobalObject& globalObject)
    8484    {
    8585        JSTestEventTargetConstructor* ptr = new (NotNull, JSC::allocateCell<JSTestEventTargetConstructor>(vm.heap)) JSTestEventTargetConstructor(structure, globalObject);
    86         ptr->finishCreation(vm, *globalObject);
     86        ptr->finishCreation(vm, globalObject);
    8787        return ptr;
    8888    }
    8989
    9090    DECLARE_INFO;
    91     static JSC::Structure* createStructure(JSC::VM& vm, JSC::JSGlobalObject* globalObject, JSC::JSValue prototype)
    92     {
    93         return JSC::Structure::create(vm, globalObject, prototype, JSC::TypeInfo(JSC::ObjectType, StructureFlags), info());
     91    static JSC::Structure* createStructure(JSC::VM& vm, JSC::JSGlobalObject& globalObject, JSC::JSValue prototype)
     92    {
     93        return JSC::Structure::create(vm, &globalObject, prototype, JSC::TypeInfo(JSC::ObjectType, StructureFlags), info());
    9494    }
    9595};
     
    111111const ClassInfo JSTestEventTargetConstructor::s_info = { "TestEventTargetConstructor", &Base::s_info, 0, CREATE_METHOD_TABLE(JSTestEventTargetConstructor) };
    112112
    113 JSTestEventTargetConstructor::JSTestEventTargetConstructor(Structure* structure, JSDOMGlobalObject* globalObject)
     113JSTestEventTargetConstructor::JSTestEventTargetConstructor(Structure* structure, JSDOMGlobalObject& globalObject)
    114114    : Base(structure, globalObject)
    115115{
     
    145145const ClassInfo JSTestEventTarget::s_info = { "TestEventTarget", &Base::s_info, &JSTestEventTargetTable, CREATE_METHOD_TABLE(JSTestEventTarget) };
    146146
    147 JSTestEventTarget::JSTestEventTarget(Structure* structure, JSDOMGlobalObject* globalObject, Ref<TestEventTarget>&& impl)
     147JSTestEventTarget::JSTestEventTarget(Structure* structure, JSDOMGlobalObject& globalObject, Ref<TestEventTarget>&& impl)
    148148    : JSDOMWrapperWithImplementation<TestEventTarget>(structure, globalObject, WTF::move(impl))
    149149{
     
    236236JSValue JSTestEventTarget::getConstructor(VM& vm, JSGlobalObject* globalObject)
    237237{
    238     return getDOMConstructor<JSTestEventTargetConstructor>(vm, jsCast<JSDOMGlobalObject*>(globalObject));
     238    return getDOMConstructor<JSTestEventTargetConstructor>(vm, *jsCast<JSDOMGlobalObject*>(globalObject));
    239239}
    240240
  • trunk/Source/WebCore/bindings/scripts/test/JS/JSTestEventTarget.h

    r190403 r190714  
    3434    {
    3535        globalObject->masqueradesAsUndefinedWatchpoint()->fireAll("Allocated masquerading object");
    36         JSTestEventTarget* ptr = new (NotNull, JSC::allocateCell<JSTestEventTarget>(globalObject->vm().heap)) JSTestEventTarget(structure, globalObject, WTF::move(impl));
     36        JSTestEventTarget* ptr = new (NotNull, JSC::allocateCell<JSTestEventTarget>(globalObject->vm().heap)) JSTestEventTarget(structure, *globalObject, WTF::move(impl));
    3737        ptr->finishCreation(globalObject->vm());
    3838        return ptr;
     
    6060    static const unsigned StructureFlags = JSC::InterceptsGetOwnPropertySlotByIndexEvenWhenLengthIsNotZero | JSC::MasqueradesAsUndefined | JSC::OverridesGetOwnPropertySlot | JSC::OverridesGetPropertyNames | Base::StructureFlags;
    6161protected:
    62     JSTestEventTarget(JSC::Structure*, JSDOMGlobalObject*, Ref<TestEventTarget>&&);
     62    JSTestEventTarget(JSC::Structure*, JSDOMGlobalObject&, Ref<TestEventTarget>&&);
    6363
    6464    void finishCreation(JSC::VM& vm)
  • trunk/Source/WebCore/bindings/scripts/test/JS/JSTestException.cpp

    r190637 r190714  
    6363class JSTestExceptionConstructor : public DOMConstructorObject {
    6464private:
    65     JSTestExceptionConstructor(JSC::Structure*, JSDOMGlobalObject*);
     65    JSTestExceptionConstructor(JSC::Structure*, JSDOMGlobalObject&);
    6666    void finishCreation(JSC::VM&, JSDOMGlobalObject&);
    6767
    6868public:
    6969    typedef DOMConstructorObject Base;
    70     static JSTestExceptionConstructor* create(JSC::VM& vm, JSC::Structure* structure, JSDOMGlobalObject* globalObject)
     70    static JSTestExceptionConstructor* create(JSC::VM& vm, JSC::Structure* structure, JSDOMGlobalObject& globalObject)
    7171    {
    7272        JSTestExceptionConstructor* ptr = new (NotNull, JSC::allocateCell<JSTestExceptionConstructor>(vm.heap)) JSTestExceptionConstructor(structure, globalObject);
    73         ptr->finishCreation(vm, *globalObject);
     73        ptr->finishCreation(vm, globalObject);
    7474        return ptr;
    7575    }
    7676
    7777    DECLARE_INFO;
    78     static JSC::Structure* createStructure(JSC::VM& vm, JSC::JSGlobalObject* globalObject, JSC::JSValue prototype)
    79     {
    80         return JSC::Structure::create(vm, globalObject, prototype, JSC::TypeInfo(JSC::ObjectType, StructureFlags), info());
     78    static JSC::Structure* createStructure(JSC::VM& vm, JSC::JSGlobalObject& globalObject, JSC::JSValue prototype)
     79    {
     80        return JSC::Structure::create(vm, &globalObject, prototype, JSC::TypeInfo(JSC::ObjectType, StructureFlags), info());
    8181    }
    8282};
     
    9898const ClassInfo JSTestExceptionConstructor::s_info = { "TestExceptionConstructor", &Base::s_info, 0, CREATE_METHOD_TABLE(JSTestExceptionConstructor) };
    9999
    100 JSTestExceptionConstructor::JSTestExceptionConstructor(Structure* structure, JSDOMGlobalObject* globalObject)
     100JSTestExceptionConstructor::JSTestExceptionConstructor(Structure* structure, JSDOMGlobalObject& globalObject)
    101101    : Base(structure, globalObject)
    102102{
     
    129129const ClassInfo JSTestException::s_info = { "TestException", &Base::s_info, &JSTestExceptionTable, CREATE_METHOD_TABLE(JSTestException) };
    130130
    131 JSTestException::JSTestException(Structure* structure, JSDOMGlobalObject* globalObject, Ref<TestException>&& impl)
     131JSTestException::JSTestException(Structure* structure, JSDOMGlobalObject& globalObject, Ref<TestException>&& impl)
    132132    : JSDOMWrapperWithImplementation<TestException>(structure, globalObject, WTF::move(impl))
    133133{
     
    181181JSValue JSTestException::getConstructor(VM& vm, JSGlobalObject* globalObject)
    182182{
    183     return getDOMConstructor<JSTestExceptionConstructor>(vm, jsCast<JSDOMGlobalObject*>(globalObject));
     183    return getDOMConstructor<JSTestExceptionConstructor>(vm, *jsCast<JSDOMGlobalObject*>(globalObject));
    184184}
    185185
  • trunk/Source/WebCore/bindings/scripts/test/JS/JSTestException.h

    r190403 r190714  
    3434    static JSTestException* create(JSC::Structure* structure, JSDOMGlobalObject* globalObject, Ref<TestException>&& impl)
    3535    {
    36         JSTestException* ptr = new (NotNull, JSC::allocateCell<JSTestException>(globalObject->vm().heap)) JSTestException(structure, globalObject, WTF::move(impl));
     36        JSTestException* ptr = new (NotNull, JSC::allocateCell<JSTestException>(globalObject->vm().heap)) JSTestException(structure, *globalObject, WTF::move(impl));
    3737        ptr->finishCreation(globalObject->vm());
    3838        return ptr;
     
    5656    static const unsigned StructureFlags = JSC::OverridesGetOwnPropertySlot | Base::StructureFlags;
    5757protected:
    58     JSTestException(JSC::Structure*, JSDOMGlobalObject*, Ref<TestException>&&);
     58    JSTestException(JSC::Structure*, JSDOMGlobalObject&, Ref<TestException>&&);
    5959
    6060    void finishCreation(JSC::VM& vm)
  • trunk/Source/WebCore/bindings/scripts/test/JS/JSTestGenerateIsReachable.cpp

    r190637 r190714  
    6060class JSTestGenerateIsReachableConstructor : public DOMConstructorObject {
    6161private:
    62     JSTestGenerateIsReachableConstructor(JSC::Structure*, JSDOMGlobalObject*);
     62    JSTestGenerateIsReachableConstructor(JSC::Structure*, JSDOMGlobalObject&);
    6363    void finishCreation(JSC::VM&, JSDOMGlobalObject&);
    6464
    6565public:
    6666    typedef DOMConstructorObject Base;
    67     static JSTestGenerateIsReachableConstructor* create(JSC::VM& vm, JSC::Structure* structure, JSDOMGlobalObject* globalObject)
     67    static JSTestGenerateIsReachableConstructor* create(JSC::VM& vm, JSC::Structure* structure, JSDOMGlobalObject& globalObject)
    6868    {
    6969        JSTestGenerateIsReachableConstructor* ptr = new (NotNull, JSC::allocateCell<JSTestGenerateIsReachableConstructor>(vm.heap)) JSTestGenerateIsReachableConstructor(structure, globalObject);
    70         ptr->finishCreation(vm, *globalObject);
     70        ptr->finishCreation(vm, globalObject);
    7171        return ptr;
    7272    }
    7373
    7474    DECLARE_INFO;
    75     static JSC::Structure* createStructure(JSC::VM& vm, JSC::JSGlobalObject* globalObject, JSC::JSValue prototype)
    76     {
    77         return JSC::Structure::create(vm, globalObject, prototype, JSC::TypeInfo(JSC::ObjectType, StructureFlags), info());
     75    static JSC::Structure* createStructure(JSC::VM& vm, JSC::JSGlobalObject& globalObject, JSC::JSValue prototype)
     76    {
     77        return JSC::Structure::create(vm, &globalObject, prototype, JSC::TypeInfo(JSC::ObjectType, StructureFlags), info());
    7878    }
    7979};
     
    8181const ClassInfo JSTestGenerateIsReachableConstructor::s_info = { "TestGenerateIsReachableConstructor", &Base::s_info, 0, CREATE_METHOD_TABLE(JSTestGenerateIsReachableConstructor) };
    8282
    83 JSTestGenerateIsReachableConstructor::JSTestGenerateIsReachableConstructor(Structure* structure, JSDOMGlobalObject* globalObject)
     83JSTestGenerateIsReachableConstructor::JSTestGenerateIsReachableConstructor(Structure* structure, JSDOMGlobalObject& globalObject)
    8484    : Base(structure, globalObject)
    8585{
     
    112112const ClassInfo JSTestGenerateIsReachable::s_info = { "TestGenerateIsReachable", &Base::s_info, 0, CREATE_METHOD_TABLE(JSTestGenerateIsReachable) };
    113113
    114 JSTestGenerateIsReachable::JSTestGenerateIsReachable(Structure* structure, JSDOMGlobalObject* globalObject, Ref<TestGenerateIsReachable>&& impl)
     114JSTestGenerateIsReachable::JSTestGenerateIsReachable(Structure* structure, JSDOMGlobalObject& globalObject, Ref<TestGenerateIsReachable>&& impl)
    115115    : JSDOMWrapperWithImplementation<TestGenerateIsReachable>(structure, globalObject, WTF::move(impl))
    116116{
     
    143143JSValue JSTestGenerateIsReachable::getConstructor(VM& vm, JSGlobalObject* globalObject)
    144144{
    145     return getDOMConstructor<JSTestGenerateIsReachableConstructor>(vm, jsCast<JSDOMGlobalObject*>(globalObject));
     145    return getDOMConstructor<JSTestGenerateIsReachableConstructor>(vm, *jsCast<JSDOMGlobalObject*>(globalObject));
    146146}
    147147
  • trunk/Source/WebCore/bindings/scripts/test/JS/JSTestGenerateIsReachable.h

    r190403 r190714  
    3333    static JSTestGenerateIsReachable* create(JSC::Structure* structure, JSDOMGlobalObject* globalObject, Ref<TestGenerateIsReachable>&& impl)
    3434    {
    35         JSTestGenerateIsReachable* ptr = new (NotNull, JSC::allocateCell<JSTestGenerateIsReachable>(globalObject->vm().heap)) JSTestGenerateIsReachable(structure, globalObject, WTF::move(impl));
     35        JSTestGenerateIsReachable* ptr = new (NotNull, JSC::allocateCell<JSTestGenerateIsReachable>(globalObject->vm().heap)) JSTestGenerateIsReachable(structure, *globalObject, WTF::move(impl));
    3636        ptr->finishCreation(globalObject->vm());
    3737        return ptr;
     
    5252    static JSC::JSValue getConstructor(JSC::VM&, JSC::JSGlobalObject*);
    5353protected:
    54     JSTestGenerateIsReachable(JSC::Structure*, JSDOMGlobalObject*, Ref<TestGenerateIsReachable>&&);
     54    JSTestGenerateIsReachable(JSC::Structure*, JSDOMGlobalObject&, Ref<TestGenerateIsReachable>&&);
    5555
    5656    void finishCreation(JSC::VM& vm)
  • trunk/Source/WebCore/bindings/scripts/test/JS/JSTestInterface.cpp

    r190637 r190714  
    146146class JSTestInterfaceConstructor : public DOMConstructorObject {
    147147private:
    148     JSTestInterfaceConstructor(JSC::Structure*, JSDOMGlobalObject*);
     148    JSTestInterfaceConstructor(JSC::Structure*, JSDOMGlobalObject&);
    149149    void finishCreation(JSC::VM&, JSDOMGlobalObject&);
    150150
    151151public:
    152152    typedef DOMConstructorObject Base;
    153     static JSTestInterfaceConstructor* create(JSC::VM& vm, JSC::Structure* structure, JSDOMGlobalObject* globalObject)
     153    static JSTestInterfaceConstructor* create(JSC::VM& vm, JSC::Structure* structure, JSDOMGlobalObject& globalObject)
    154154    {
    155155        JSTestInterfaceConstructor* ptr = new (NotNull, JSC::allocateCell<JSTestInterfaceConstructor>(vm.heap)) JSTestInterfaceConstructor(structure, globalObject);
    156         ptr->finishCreation(vm, *globalObject);
     156        ptr->finishCreation(vm, globalObject);
    157157        return ptr;
    158158    }
    159159
    160160    DECLARE_INFO;
    161     static JSC::Structure* createStructure(JSC::VM& vm, JSC::JSGlobalObject* globalObject, JSC::JSValue prototype)
     161    static JSC::Structure* createStructure(JSC::VM& vm, JSC::JSGlobalObject& globalObject, JSC::JSValue prototype)
    162162    {
    163         return JSC::Structure::create(vm, globalObject, prototype, JSC::TypeInfo(JSC::ObjectType, StructureFlags), info());
     163        return JSC::Structure::create(vm, &globalObject, prototype, JSC::TypeInfo(JSC::ObjectType, StructureFlags), info());
    164164    }
    165165protected:
     
    290290const ClassInfo JSTestInterfaceConstructor::s_info = { "TestInterfaceConstructor", &Base::s_info, 0, CREATE_METHOD_TABLE(JSTestInterfaceConstructor) };
    291291
    292 JSTestInterfaceConstructor::JSTestInterfaceConstructor(Structure* structure, JSDOMGlobalObject* globalObject)
     292JSTestInterfaceConstructor::JSTestInterfaceConstructor(Structure* structure, JSDOMGlobalObject& globalObject)
    293293    : Base(structure, globalObject)
    294294{
     
    410410const ClassInfo JSTestInterface::s_info = { "TestInterface", &Base::s_info, &JSTestInterfaceTable, CREATE_METHOD_TABLE(JSTestInterface) };
    411411
    412 JSTestInterface::JSTestInterface(Structure* structure, JSDOMGlobalObject* globalObject, Ref<TestInterface>&& impl)
     412JSTestInterface::JSTestInterface(Structure* structure, JSDOMGlobalObject& globalObject, Ref<TestInterface>&& impl)
    413413    : JSDOMWrapperWithImplementation<TestInterface>(structure, globalObject, WTF::move(impl))
    414414{
     
    798798JSValue JSTestInterface::getConstructor(VM& vm, JSGlobalObject* globalObject)
    799799{
    800     return getDOMConstructor<JSTestInterfaceConstructor>(vm, jsCast<JSDOMGlobalObject*>(globalObject));
     800    return getDOMConstructor<JSTestInterfaceConstructor>(vm, *jsCast<JSDOMGlobalObject*>(globalObject));
    801801}
    802802
  • trunk/Source/WebCore/bindings/scripts/test/JS/JSTestInterface.h

    r190403 r190714  
    3535    static JSTestInterface* create(JSC::Structure* structure, JSDOMGlobalObject* globalObject, Ref<TestInterface>&& impl)
    3636    {
    37         JSTestInterface* ptr = new (NotNull, JSC::allocateCell<JSTestInterface>(globalObject->vm().heap)) JSTestInterface(structure, globalObject, WTF::move(impl));
     37        JSTestInterface* ptr = new (NotNull, JSC::allocateCell<JSTestInterface>(globalObject->vm().heap)) JSTestInterface(structure, *globalObject, WTF::move(impl));
    3838        ptr->finishCreation(globalObject->vm());
    3939        return ptr;
     
    8282    static const unsigned StructureFlags = JSC::OverridesGetOwnPropertySlot | Base::StructureFlags;
    8383protected:
    84     JSTestInterface(JSC::Structure*, JSDOMGlobalObject*, Ref<TestInterface>&&);
     84    JSTestInterface(JSC::Structure*, JSDOMGlobalObject&, Ref<TestInterface>&&);
    8585
    8686    void finishCreation(JSC::VM& vm)
  • trunk/Source/WebCore/bindings/scripts/test/JS/JSTestJSBuiltinConstructor.cpp

    r190637 r190714  
    6161class JSTestJSBuiltinConstructorConstructor : public DOMConstructorJSBuiltinObject {
    6262private:
    63     JSTestJSBuiltinConstructorConstructor(JSC::Structure*, JSDOMGlobalObject*);
     63    JSTestJSBuiltinConstructorConstructor(JSC::Structure*, JSDOMGlobalObject&);
    6464    void finishCreation(JSC::VM&, JSDOMGlobalObject&);
    6565
    6666public:
    6767    typedef DOMConstructorJSBuiltinObject Base;
    68     static JSTestJSBuiltinConstructorConstructor* create(JSC::VM& vm, JSC::Structure* structure, JSDOMGlobalObject* globalObject)
     68    static JSTestJSBuiltinConstructorConstructor* create(JSC::VM& vm, JSC::Structure* structure, JSDOMGlobalObject& globalObject)
    6969    {
    7070        JSTestJSBuiltinConstructorConstructor* ptr = new (NotNull, JSC::allocateCell<JSTestJSBuiltinConstructorConstructor>(vm.heap)) JSTestJSBuiltinConstructorConstructor(structure, globalObject);
    71         ptr->finishCreation(vm, *globalObject);
     71        ptr->finishCreation(vm, globalObject);
    7272        return ptr;
    7373    }
    7474
    7575    DECLARE_INFO;
    76     static JSC::Structure* createStructure(JSC::VM& vm, JSC::JSGlobalObject* globalObject, JSC::JSValue prototype)
     76    static JSC::Structure* createStructure(JSC::VM& vm, JSC::JSGlobalObject& globalObject, JSC::JSValue prototype)
    7777    {
    78         return JSC::Structure::create(vm, globalObject, prototype, JSC::TypeInfo(JSC::ObjectType, StructureFlags), info());
     78        return JSC::Structure::create(vm, &globalObject, prototype, JSC::TypeInfo(JSC::ObjectType, StructureFlags), info());
    7979    }
    8080protected:
     
    9191const ClassInfo JSTestJSBuiltinConstructorConstructor::s_info = { "TestJSBuiltinConstructorConstructor", &Base::s_info, 0, CREATE_METHOD_TABLE(JSTestJSBuiltinConstructorConstructor) };
    9292
    93 JSTestJSBuiltinConstructorConstructor::JSTestJSBuiltinConstructorConstructor(Structure* structure, JSDOMGlobalObject* globalObject)
     93JSTestJSBuiltinConstructorConstructor::JSTestJSBuiltinConstructorConstructor(Structure* structure, JSDOMGlobalObject& globalObject)
    9494    : Base(structure, globalObject)
    9595{
     
    129129const ClassInfo JSTestJSBuiltinConstructor::s_info = { "TestJSBuiltinConstructor", &Base::s_info, 0, CREATE_METHOD_TABLE(JSTestJSBuiltinConstructor) };
    130130
    131 JSTestJSBuiltinConstructor::JSTestJSBuiltinConstructor(Structure* structure, JSDOMGlobalObject* globalObject)
     131JSTestJSBuiltinConstructor::JSTestJSBuiltinConstructor(Structure* structure, JSDOMGlobalObject& globalObject)
    132132    : JSDOMWrapper(structure, globalObject) { }
    133133
     
    158158JSValue JSTestJSBuiltinConstructor::getConstructor(VM& vm, JSGlobalObject* globalObject)
    159159{
    160     return getDOMConstructor<JSTestJSBuiltinConstructorConstructor>(vm, jsCast<JSDOMGlobalObject*>(globalObject));
     160    return getDOMConstructor<JSTestJSBuiltinConstructorConstructor>(vm, *jsCast<JSDOMGlobalObject*>(globalObject));
    161161}
    162162
  • trunk/Source/WebCore/bindings/scripts/test/JS/JSTestJSBuiltinConstructor.h

    r190403 r190714  
    3131    static JSTestJSBuiltinConstructor* create(JSC::Structure* structure, JSDOMGlobalObject* globalObject)
    3232    {
    33         JSTestJSBuiltinConstructor* ptr = new (NotNull, JSC::allocateCell<JSTestJSBuiltinConstructor>(globalObject->vm().heap)) JSTestJSBuiltinConstructor(structure, globalObject);
     33        JSTestJSBuiltinConstructor* ptr = new (NotNull, JSC::allocateCell<JSTestJSBuiltinConstructor>(globalObject->vm().heap)) JSTestJSBuiltinConstructor(structure, *globalObject);
    3434        ptr->finishCreation(globalObject->vm());
    3535        return ptr;
     
    5151
    5252protected:
    53     JSTestJSBuiltinConstructor(JSC::Structure*, JSDOMGlobalObject*);
     53    JSTestJSBuiltinConstructor(JSC::Structure*, JSDOMGlobalObject&);
    5454
    5555};
  • trunk/Source/WebCore/bindings/scripts/test/JS/JSTestMediaQueryListListener.cpp

    r190637 r190714  
    6767class JSTestMediaQueryListListenerConstructor : public DOMConstructorObject {
    6868private:
    69     JSTestMediaQueryListListenerConstructor(JSC::Structure*, JSDOMGlobalObject*);
     69    JSTestMediaQueryListListenerConstructor(JSC::Structure*, JSDOMGlobalObject&);
    7070    void finishCreation(JSC::VM&, JSDOMGlobalObject&);
    7171
    7272public:
    7373    typedef DOMConstructorObject Base;
    74     static JSTestMediaQueryListListenerConstructor* create(JSC::VM& vm, JSC::Structure* structure, JSDOMGlobalObject* globalObject)
     74    static JSTestMediaQueryListListenerConstructor* create(JSC::VM& vm, JSC::Structure* structure, JSDOMGlobalObject& globalObject)
    7575    {
    7676        JSTestMediaQueryListListenerConstructor* ptr = new (NotNull, JSC::allocateCell<JSTestMediaQueryListListenerConstructor>(vm.heap)) JSTestMediaQueryListListenerConstructor(structure, globalObject);
    77         ptr->finishCreation(vm, *globalObject);
     77        ptr->finishCreation(vm, globalObject);
    7878        return ptr;
    7979    }
    8080
    8181    DECLARE_INFO;
    82     static JSC::Structure* createStructure(JSC::VM& vm, JSC::JSGlobalObject* globalObject, JSC::JSValue prototype)
    83     {
    84         return JSC::Structure::create(vm, globalObject, prototype, JSC::TypeInfo(JSC::ObjectType, StructureFlags), info());
     82    static JSC::Structure* createStructure(JSC::VM& vm, JSC::JSGlobalObject& globalObject, JSC::JSValue prototype)
     83    {
     84        return JSC::Structure::create(vm, &globalObject, prototype, JSC::TypeInfo(JSC::ObjectType, StructureFlags), info());
    8585    }
    8686};
     
    8888const ClassInfo JSTestMediaQueryListListenerConstructor::s_info = { "TestMediaQueryListListenerConstructor", &Base::s_info, 0, CREATE_METHOD_TABLE(JSTestMediaQueryListListenerConstructor) };
    8989
    90 JSTestMediaQueryListListenerConstructor::JSTestMediaQueryListListenerConstructor(Structure* structure, JSDOMGlobalObject* globalObject)
     90JSTestMediaQueryListListenerConstructor::JSTestMediaQueryListListenerConstructor(Structure* structure, JSDOMGlobalObject& globalObject)
    9191    : Base(structure, globalObject)
    9292{
     
    120120const ClassInfo JSTestMediaQueryListListener::s_info = { "TestMediaQueryListListener", &Base::s_info, 0, CREATE_METHOD_TABLE(JSTestMediaQueryListListener) };
    121121
    122 JSTestMediaQueryListListener::JSTestMediaQueryListListener(Structure* structure, JSDOMGlobalObject* globalObject, Ref<TestMediaQueryListListener>&& impl)
     122JSTestMediaQueryListListener::JSTestMediaQueryListListener(Structure* structure, JSDOMGlobalObject& globalObject, Ref<TestMediaQueryListListener>&& impl)
    123123    : JSDOMWrapperWithImplementation<TestMediaQueryListListener>(structure, globalObject, WTF::move(impl))
    124124{
     
    151151JSValue JSTestMediaQueryListListener::getConstructor(VM& vm, JSGlobalObject* globalObject)
    152152{
    153     return getDOMConstructor<JSTestMediaQueryListListenerConstructor>(vm, jsCast<JSDOMGlobalObject*>(globalObject));
     153    return getDOMConstructor<JSTestMediaQueryListListenerConstructor>(vm, *jsCast<JSDOMGlobalObject*>(globalObject));
    154154}
    155155
  • trunk/Source/WebCore/bindings/scripts/test/JS/JSTestMediaQueryListListener.h

    r190403 r190714  
    3333    static JSTestMediaQueryListListener* create(JSC::Structure* structure, JSDOMGlobalObject* globalObject, Ref<TestMediaQueryListListener>&& impl)
    3434    {
    35         JSTestMediaQueryListListener* ptr = new (NotNull, JSC::allocateCell<JSTestMediaQueryListListener>(globalObject->vm().heap)) JSTestMediaQueryListListener(structure, globalObject, WTF::move(impl));
     35        JSTestMediaQueryListListener* ptr = new (NotNull, JSC::allocateCell<JSTestMediaQueryListListener>(globalObject->vm().heap)) JSTestMediaQueryListListener(structure, *globalObject, WTF::move(impl));
    3636        ptr->finishCreation(globalObject->vm());
    3737        return ptr;
     
    5252    static JSC::JSValue getConstructor(JSC::VM&, JSC::JSGlobalObject*);
    5353protected:
    54     JSTestMediaQueryListListener(JSC::Structure*, JSDOMGlobalObject*, Ref<TestMediaQueryListListener>&&);
     54    JSTestMediaQueryListListener(JSC::Structure*, JSDOMGlobalObject&, Ref<TestMediaQueryListListener>&&);
    5555
    5656    void finishCreation(JSC::VM& vm)
  • trunk/Source/WebCore/bindings/scripts/test/JS/JSTestNamedConstructor.cpp

    r190637 r190714  
    6363class JSTestNamedConstructorConstructor : public DOMConstructorObject {
    6464private:
    65     JSTestNamedConstructorConstructor(JSC::Structure*, JSDOMGlobalObject*);
     65    JSTestNamedConstructorConstructor(JSC::Structure*, JSDOMGlobalObject&);
    6666    void finishCreation(JSC::VM&, JSDOMGlobalObject&);
    6767
    6868public:
    6969    typedef DOMConstructorObject Base;
    70     static JSTestNamedConstructorConstructor* create(JSC::VM& vm, JSC::Structure* structure, JSDOMGlobalObject* globalObject)
     70    static JSTestNamedConstructorConstructor* create(JSC::VM& vm, JSC::Structure* structure, JSDOMGlobalObject& globalObject)
    7171    {
    7272        JSTestNamedConstructorConstructor* ptr = new (NotNull, JSC::allocateCell<JSTestNamedConstructorConstructor>(vm.heap)) JSTestNamedConstructorConstructor(structure, globalObject);
    73         ptr->finishCreation(vm, *globalObject);
     73        ptr->finishCreation(vm, globalObject);
    7474        return ptr;
    7575    }
    7676
    7777    DECLARE_INFO;
    78     static JSC::Structure* createStructure(JSC::VM& vm, JSC::JSGlobalObject* globalObject, JSC::JSValue prototype)
    79     {
    80         return JSC::Structure::create(vm, globalObject, prototype, JSC::TypeInfo(JSC::ObjectType, StructureFlags), info());
     78    static JSC::Structure* createStructure(JSC::VM& vm, JSC::JSGlobalObject& globalObject, JSC::JSValue prototype)
     79    {
     80        return JSC::Structure::create(vm, &globalObject, prototype, JSC::TypeInfo(JSC::ObjectType, StructureFlags), info());
    8181    }
    8282};
     
    8686    typedef DOMConstructorWithDocument Base;
    8787
    88     static JSTestNamedConstructorNamedConstructor* create(JSC::VM& vm, JSC::Structure* structure, JSDOMGlobalObject* globalObject)
     88    static JSTestNamedConstructorNamedConstructor* create(JSC::VM& vm, JSC::Structure* structure, JSDOMGlobalObject& globalObject)
    8989    {
    9090        JSTestNamedConstructorNamedConstructor* constructor = new (NotNull, JSC::allocateCell<JSTestNamedConstructorNamedConstructor>(vm.heap)) JSTestNamedConstructorNamedConstructor(structure, globalObject);
    91         constructor->finishCreation(vm, *globalObject);
     91        constructor->finishCreation(vm, globalObject);
    9292        return constructor;
    9393    }
    9494
    95     static JSC::Structure* createStructure(JSC::VM& vm, JSC::JSGlobalObject* globalObject, JSC::JSValue prototype)
    96     {
    97         return JSC::Structure::create(vm, globalObject, prototype, JSC::TypeInfo(JSC::ObjectType, StructureFlags), info());
     95    static JSC::Structure* createStructure(JSC::VM& vm, JSC::JSGlobalObject& globalObject, JSC::JSValue prototype)
     96    {
     97        return JSC::Structure::create(vm, &globalObject, prototype, JSC::TypeInfo(JSC::ObjectType, StructureFlags), info());
    9898    }
    9999
     
    101101
    102102private:
    103     JSTestNamedConstructorNamedConstructor(JSC::Structure*, JSDOMGlobalObject*);
     103    JSTestNamedConstructorNamedConstructor(JSC::Structure*, JSDOMGlobalObject&);
    104104    static JSC::EncodedJSValue JSC_HOST_CALL constructJSTestNamedConstructor(JSC::ExecState*);
    105105    static JSC::ConstructType getConstructData(JSC::JSCell*, JSC::ConstructData&);
     
    109109const ClassInfo JSTestNamedConstructorConstructor::s_info = { "TestNamedConstructorConstructor", &Base::s_info, 0, CREATE_METHOD_TABLE(JSTestNamedConstructorConstructor) };
    110110
    111 JSTestNamedConstructorConstructor::JSTestNamedConstructorConstructor(Structure* structure, JSDOMGlobalObject* globalObject)
     111JSTestNamedConstructorConstructor::JSTestNamedConstructorConstructor(Structure* structure, JSDOMGlobalObject& globalObject)
    112112    : Base(structure, globalObject)
    113113{
     
    148148const ClassInfo JSTestNamedConstructorNamedConstructor::s_info = { "AudioConstructor", &Base::s_info, 0, CREATE_METHOD_TABLE(JSTestNamedConstructorNamedConstructor) };
    149149
    150 JSTestNamedConstructorNamedConstructor::JSTestNamedConstructorNamedConstructor(Structure* structure, JSDOMGlobalObject* globalObject)
     150JSTestNamedConstructorNamedConstructor::JSTestNamedConstructorNamedConstructor(Structure* structure, JSDOMGlobalObject& globalObject)
    151151    : Base(structure, globalObject)
    152152{
     
    155155void JSTestNamedConstructorNamedConstructor::finishCreation(VM& vm, JSDOMGlobalObject& globalObject)
    156156{
    157     Base::finishCreation(&globalObject);
     157    Base::finishCreation(globalObject);
    158158    ASSERT(inherits(info()));
    159159    putDirect(vm, vm.propertyNames->prototype, JSTestNamedConstructor::getPrototype(vm, &globalObject), DontDelete | ReadOnly | DontEnum);
     
    185185const ClassInfo JSTestNamedConstructor::s_info = { "TestNamedConstructor", &Base::s_info, 0, CREATE_METHOD_TABLE(JSTestNamedConstructor) };
    186186
    187 JSTestNamedConstructor::JSTestNamedConstructor(Structure* structure, JSDOMGlobalObject* globalObject, Ref<TestNamedConstructor>&& impl)
     187JSTestNamedConstructor::JSTestNamedConstructor(Structure* structure, JSDOMGlobalObject& globalObject, Ref<TestNamedConstructor>&& impl)
    188188    : JSDOMWrapperWithImplementation<TestNamedConstructor>(structure, globalObject, WTF::move(impl))
    189189{
     
    216216JSValue JSTestNamedConstructor::getConstructor(VM& vm, JSGlobalObject* globalObject)
    217217{
    218     return getDOMConstructor<JSTestNamedConstructorConstructor>(vm, jsCast<JSDOMGlobalObject*>(globalObject));
     218    return getDOMConstructor<JSTestNamedConstructorConstructor>(vm, *jsCast<JSDOMGlobalObject*>(globalObject));
    219219}
    220220
    221221JSValue JSTestNamedConstructor::getNamedConstructor(VM& vm, JSGlobalObject* globalObject)
    222222{
    223     return getDOMConstructor<JSTestNamedConstructorNamedConstructor>(vm, jsCast<JSDOMGlobalObject*>(globalObject));
     223    return getDOMConstructor<JSTestNamedConstructorNamedConstructor>(vm, *jsCast<JSDOMGlobalObject*>(globalObject));
    224224}
    225225
  • trunk/Source/WebCore/bindings/scripts/test/JS/JSTestNamedConstructor.h

    r190403 r190714  
    3333    static JSTestNamedConstructor* create(JSC::Structure* structure, JSDOMGlobalObject* globalObject, Ref<TestNamedConstructor>&& impl)
    3434    {
    35         JSTestNamedConstructor* ptr = new (NotNull, JSC::allocateCell<JSTestNamedConstructor>(globalObject->vm().heap)) JSTestNamedConstructor(structure, globalObject, WTF::move(impl));
     35        JSTestNamedConstructor* ptr = new (NotNull, JSC::allocateCell<JSTestNamedConstructor>(globalObject->vm().heap)) JSTestNamedConstructor(structure, *globalObject, WTF::move(impl));
    3636        ptr->finishCreation(globalObject->vm());
    3737        return ptr;
     
    5353    static JSC::JSValue getNamedConstructor(JSC::VM&, JSC::JSGlobalObject*);
    5454protected:
    55     JSTestNamedConstructor(JSC::Structure*, JSDOMGlobalObject*, Ref<TestNamedConstructor>&&);
     55    JSTestNamedConstructor(JSC::Structure*, JSDOMGlobalObject&, Ref<TestNamedConstructor>&&);
    5656
    5757    void finishCreation(JSC::VM& vm)
  • trunk/Source/WebCore/bindings/scripts/test/JS/JSTestNode.cpp

    r190637 r190714  
    6666class JSTestNodeConstructor : public DOMConstructorObject {
    6767private:
    68     JSTestNodeConstructor(JSC::Structure*, JSDOMGlobalObject*);
     68    JSTestNodeConstructor(JSC::Structure*, JSDOMGlobalObject&);
    6969    void finishCreation(JSC::VM&, JSDOMGlobalObject&);
    7070
    7171public:
    7272    typedef DOMConstructorObject Base;
    73     static JSTestNodeConstructor* create(JSC::VM& vm, JSC::Structure* structure, JSDOMGlobalObject* globalObject)
     73    static JSTestNodeConstructor* create(JSC::VM& vm, JSC::Structure* structure, JSDOMGlobalObject& globalObject)
    7474    {
    7575        JSTestNodeConstructor* ptr = new (NotNull, JSC::allocateCell<JSTestNodeConstructor>(vm.heap)) JSTestNodeConstructor(structure, globalObject);
    76         ptr->finishCreation(vm, *globalObject);
     76        ptr->finishCreation(vm, globalObject);
    7777        return ptr;
    7878    }
    7979
    8080    DECLARE_INFO;
    81     static JSC::Structure* createStructure(JSC::VM& vm, JSC::JSGlobalObject* globalObject, JSC::JSValue prototype)
    82     {
    83         return JSC::Structure::create(vm, globalObject, prototype, JSC::TypeInfo(JSC::ObjectType, StructureFlags), info());
     81    static JSC::Structure* createStructure(JSC::VM& vm, JSC::JSGlobalObject& globalObject, JSC::JSValue prototype)
     82    {
     83        return JSC::Structure::create(vm, &globalObject, prototype, JSC::TypeInfo(JSC::ObjectType, StructureFlags), info());
    8484    }
    8585protected:
     
    9797const ClassInfo JSTestNodeConstructor::s_info = { "TestNodeConstructor", &Base::s_info, 0, CREATE_METHOD_TABLE(JSTestNodeConstructor) };
    9898
    99 JSTestNodeConstructor::JSTestNodeConstructor(Structure* structure, JSDOMGlobalObject* globalObject)
     99JSTestNodeConstructor::JSTestNodeConstructor(Structure* structure, JSDOMGlobalObject& globalObject)
    100100    : Base(structure, globalObject)
    101101{
     
    135135const ClassInfo JSTestNode::s_info = { "TestNode", &Base::s_info, 0, CREATE_METHOD_TABLE(JSTestNode) };
    136136
    137 JSTestNode::JSTestNode(Structure* structure, JSDOMGlobalObject* globalObject, Ref<TestNode>&& impl)
     137JSTestNode::JSTestNode(Structure* structure, JSDOMGlobalObject& globalObject, Ref<TestNode>&& impl)
    138138    : JSNode(structure, globalObject, WTF::move(impl))
    139139{
     
    197197JSValue JSTestNode::getConstructor(VM& vm, JSGlobalObject* globalObject)
    198198{
    199     return getDOMConstructor<JSTestNodeConstructor>(vm, jsCast<JSDOMGlobalObject*>(globalObject));
     199    return getDOMConstructor<JSTestNodeConstructor>(vm, *jsCast<JSDOMGlobalObject*>(globalObject));
    200200}
    201201
  • trunk/Source/WebCore/bindings/scripts/test/JS/JSTestNode.h

    r184228 r190714  
    3232    static JSTestNode* create(JSC::Structure* structure, JSDOMGlobalObject* globalObject, Ref<TestNode>&& impl)
    3333    {
    34         JSTestNode* ptr = new (NotNull, JSC::allocateCell<JSTestNode>(globalObject->vm().heap)) JSTestNode(structure, globalObject, WTF::move(impl));
     34        JSTestNode* ptr = new (NotNull, JSC::allocateCell<JSTestNode>(globalObject->vm().heap)) JSTestNode(structure, *globalObject, WTF::move(impl));
    3535        ptr->finishCreation(globalObject->vm());
    3636        return ptr;
     
    5555    }
    5656protected:
    57     JSTestNode(JSC::Structure*, JSDOMGlobalObject*, Ref<TestNode>&&);
     57    JSTestNode(JSC::Structure*, JSDOMGlobalObject&, Ref<TestNode>&&);
    5858
    5959    void finishCreation(JSC::VM& vm)
  • trunk/Source/WebCore/bindings/scripts/test/JS/JSTestNondeterministic.cpp

    r190637 r190714  
    8383class JSTestNondeterministicConstructor : public DOMConstructorObject {
    8484private:
    85     JSTestNondeterministicConstructor(JSC::Structure*, JSDOMGlobalObject*);
     85    JSTestNondeterministicConstructor(JSC::Structure*, JSDOMGlobalObject&);
    8686    void finishCreation(JSC::VM&, JSDOMGlobalObject&);
    8787
    8888public:
    8989    typedef DOMConstructorObject Base;
    90     static JSTestNondeterministicConstructor* create(JSC::VM& vm, JSC::Structure* structure, JSDOMGlobalObject* globalObject)
     90    static JSTestNondeterministicConstructor* create(JSC::VM& vm, JSC::Structure* structure, JSDOMGlobalObject& globalObject)
    9191    {
    9292        JSTestNondeterministicConstructor* ptr = new (NotNull, JSC::allocateCell<JSTestNondeterministicConstructor>(vm.heap)) JSTestNondeterministicConstructor(structure, globalObject);
    93         ptr->finishCreation(vm, *globalObject);
     93        ptr->finishCreation(vm, globalObject);
    9494        return ptr;
    9595    }
    9696
    9797    DECLARE_INFO;
    98     static JSC::Structure* createStructure(JSC::VM& vm, JSC::JSGlobalObject* globalObject, JSC::JSValue prototype)
     98    static JSC::Structure* createStructure(JSC::VM& vm, JSC::JSGlobalObject& globalObject, JSC::JSValue prototype)
    9999    {
    100         return JSC::Structure::create(vm, globalObject, prototype, JSC::TypeInfo(JSC::ObjectType, StructureFlags), info());
     100        return JSC::Structure::create(vm, &globalObject, prototype, JSC::TypeInfo(JSC::ObjectType, StructureFlags), info());
    101101    }
    102102};
     
    104104const ClassInfo JSTestNondeterministicConstructor::s_info = { "TestNondeterministicConstructor", &Base::s_info, 0, CREATE_METHOD_TABLE(JSTestNondeterministicConstructor) };
    105105
    106 JSTestNondeterministicConstructor::JSTestNondeterministicConstructor(Structure* structure, JSDOMGlobalObject* globalObject)
     106JSTestNondeterministicConstructor::JSTestNondeterministicConstructor(Structure* structure, JSDOMGlobalObject& globalObject)
    107107    : Base(structure, globalObject)
    108108{
     
    141141const ClassInfo JSTestNondeterministic::s_info = { "TestNondeterministic", &Base::s_info, 0, CREATE_METHOD_TABLE(JSTestNondeterministic) };
    142142
    143 JSTestNondeterministic::JSTestNondeterministic(Structure* structure, JSDOMGlobalObject* globalObject, Ref<TestNondeterministic>&& impl)
     143JSTestNondeterministic::JSTestNondeterministic(Structure* structure, JSDOMGlobalObject& globalObject, Ref<TestNondeterministic>&& impl)
    144144    : JSDOMWrapperWithImplementation<TestNondeterministic>(structure, globalObject, WTF::move(impl))
    145145{
     
    443443JSValue JSTestNondeterministic::getConstructor(VM& vm, JSGlobalObject* globalObject)
    444444{
    445     return getDOMConstructor<JSTestNondeterministicConstructor>(vm, jsCast<JSDOMGlobalObject*>(globalObject));
     445    return getDOMConstructor<JSTestNondeterministicConstructor>(vm, *jsCast<JSDOMGlobalObject*>(globalObject));
    446446}
    447447
  • trunk/Source/WebCore/bindings/scripts/test/JS/JSTestNondeterministic.h

    r190403 r190714  
    3333    static JSTestNondeterministic* create(JSC::Structure* structure, JSDOMGlobalObject* globalObject, Ref<TestNondeterministic>&& impl)
    3434    {
    35         JSTestNondeterministic* ptr = new (NotNull, JSC::allocateCell<JSTestNondeterministic>(globalObject->vm().heap)) JSTestNondeterministic(structure, globalObject, WTF::move(impl));
     35        JSTestNondeterministic* ptr = new (NotNull, JSC::allocateCell<JSTestNondeterministic>(globalObject->vm().heap)) JSTestNondeterministic(structure, *globalObject, WTF::move(impl));
    3636        ptr->finishCreation(globalObject->vm());
    3737        return ptr;
     
    5252    static JSC::JSValue getConstructor(JSC::VM&, JSC::JSGlobalObject*);
    5353protected:
    54     JSTestNondeterministic(JSC::Structure*, JSDOMGlobalObject*, Ref<TestNondeterministic>&&);
     54    JSTestNondeterministic(JSC::Structure*, JSDOMGlobalObject&, Ref<TestNondeterministic>&&);
    5555
    5656    void finishCreation(JSC::VM& vm)
  • trunk/Source/WebCore/bindings/scripts/test/JS/JSTestObj.cpp

    r190637 r190714  
    348348class JSTestObjConstructor : public DOMConstructorObject {
    349349private:
    350     JSTestObjConstructor(JSC::Structure*, JSDOMGlobalObject*);
     350    JSTestObjConstructor(JSC::Structure*, JSDOMGlobalObject&);
    351351    void finishCreation(JSC::VM&, JSDOMGlobalObject&);
    352352
    353353public:
    354354    typedef DOMConstructorObject Base;
    355     static JSTestObjConstructor* create(JSC::VM& vm, JSC::Structure* structure, JSDOMGlobalObject* globalObject)
     355    static JSTestObjConstructor* create(JSC::VM& vm, JSC::Structure* structure, JSDOMGlobalObject& globalObject)
    356356    {
    357357        JSTestObjConstructor* ptr = new (NotNull, JSC::allocateCell<JSTestObjConstructor>(vm.heap)) JSTestObjConstructor(structure, globalObject);
    358         ptr->finishCreation(vm, *globalObject);
     358        ptr->finishCreation(vm, globalObject);
    359359        return ptr;
    360360    }
    361361
    362362    DECLARE_INFO;
    363     static JSC::Structure* createStructure(JSC::VM& vm, JSC::JSGlobalObject* globalObject, JSC::JSValue prototype)
     363    static JSC::Structure* createStructure(JSC::VM& vm, JSC::JSGlobalObject& globalObject, JSC::JSValue prototype)
    364364    {
    365         return JSC::Structure::create(vm, globalObject, prototype, JSC::TypeInfo(JSC::ObjectType, StructureFlags), info());
     365        return JSC::Structure::create(vm, &globalObject, prototype, JSC::TypeInfo(JSC::ObjectType, StructureFlags), info());
    366366    }
    367367protected:
     
    486486const ClassInfo JSTestObjConstructor::s_info = { "TestObjectConstructor", &Base::s_info, 0, CREATE_METHOD_TABLE(JSTestObjConstructor) };
    487487
    488 JSTestObjConstructor::JSTestObjConstructor(Structure* structure, JSDOMGlobalObject* globalObject)
     488JSTestObjConstructor::JSTestObjConstructor(Structure* structure, JSDOMGlobalObject& globalObject)
    489489    : Base(structure, globalObject)
    490490{
     
    726726const ClassInfo JSTestObj::s_info = { "TestObject", &Base::s_info, &JSTestObjTable, CREATE_METHOD_TABLE(JSTestObj) };
    727727
    728 JSTestObj::JSTestObj(Structure* structure, JSDOMGlobalObject* globalObject, Ref<TestObj>&& impl)
     728JSTestObj::JSTestObj(Structure* structure, JSDOMGlobalObject& globalObject, Ref<TestObj>&& impl)
    729729    : JSDOMWrapperWithImplementation<TestObj>(structure, globalObject, WTF::move(impl))
    730730{
     
    31633163JSValue JSTestObj::getConstructor(VM& vm, JSGlobalObject* globalObject)
    31643164{
    3165     return getDOMConstructor<JSTestObjConstructor>(vm, jsCast<JSDOMGlobalObject*>(globalObject));
     3165    return getDOMConstructor<JSTestObjConstructor>(vm, *jsCast<JSDOMGlobalObject*>(globalObject));
    31663166}
    31673167
  • trunk/Source/WebCore/bindings/scripts/test/JS/JSTestObj.h

    r190403 r190714  
    3333    static JSTestObj* create(JSC::Structure* structure, JSDOMGlobalObject* globalObject, Ref<TestObj>&& impl)
    3434    {
    35         JSTestObj* ptr = new (NotNull, JSC::allocateCell<JSTestObj>(globalObject->vm().heap)) JSTestObj(structure, globalObject, WTF::move(impl));
     35        JSTestObj* ptr = new (NotNull, JSC::allocateCell<JSTestObj>(globalObject->vm().heap)) JSTestObj(structure, *globalObject, WTF::move(impl));
    3636        ptr->finishCreation(globalObject->vm());
    3737        return ptr;
     
    6868    static const unsigned StructureFlags = JSC::OverridesGetOwnPropertySlot | Base::StructureFlags;
    6969protected:
    70     JSTestObj(JSC::Structure*, JSDOMGlobalObject*, Ref<TestObj>&&);
     70    JSTestObj(JSC::Structure*, JSDOMGlobalObject&, Ref<TestObj>&&);
    7171
    7272    void finishCreation(JSC::VM& vm)
  • trunk/Source/WebCore/bindings/scripts/test/JS/JSTestOverloadedConstructors.cpp

    r190637 r190714  
    6363class JSTestOverloadedConstructorsConstructor : public DOMConstructorObject {
    6464private:
    65     JSTestOverloadedConstructorsConstructor(JSC::Structure*, JSDOMGlobalObject*);
     65    JSTestOverloadedConstructorsConstructor(JSC::Structure*, JSDOMGlobalObject&);
    6666    void finishCreation(JSC::VM&, JSDOMGlobalObject&);
    6767
    6868public:
    6969    typedef DOMConstructorObject Base;
    70     static JSTestOverloadedConstructorsConstructor* create(JSC::VM& vm, JSC::Structure* structure, JSDOMGlobalObject* globalObject)
     70    static JSTestOverloadedConstructorsConstructor* create(JSC::VM& vm, JSC::Structure* structure, JSDOMGlobalObject& globalObject)
    7171    {
    7272        JSTestOverloadedConstructorsConstructor* ptr = new (NotNull, JSC::allocateCell<JSTestOverloadedConstructorsConstructor>(vm.heap)) JSTestOverloadedConstructorsConstructor(structure, globalObject);
    73         ptr->finishCreation(vm, *globalObject);
     73        ptr->finishCreation(vm, globalObject);
    7474        return ptr;
    7575    }
    7676
    7777    DECLARE_INFO;
    78     static JSC::Structure* createStructure(JSC::VM& vm, JSC::JSGlobalObject* globalObject, JSC::JSValue prototype)
    79     {
    80         return JSC::Structure::create(vm, globalObject, prototype, JSC::TypeInfo(JSC::ObjectType, StructureFlags), info());
     78    static JSC::Structure* createStructure(JSC::VM& vm, JSC::JSGlobalObject& globalObject, JSC::JSValue prototype)
     79    {
     80        return JSC::Structure::create(vm, &globalObject, prototype, JSC::TypeInfo(JSC::ObjectType, StructureFlags), info());
    8181    }
    8282protected:
     
    169169const ClassInfo JSTestOverloadedConstructorsConstructor::s_info = { "TestOverloadedConstructorsConstructor", &Base::s_info, 0, CREATE_METHOD_TABLE(JSTestOverloadedConstructorsConstructor) };
    170170
    171 JSTestOverloadedConstructorsConstructor::JSTestOverloadedConstructorsConstructor(Structure* structure, JSDOMGlobalObject* globalObject)
     171JSTestOverloadedConstructorsConstructor::JSTestOverloadedConstructorsConstructor(Structure* structure, JSDOMGlobalObject& globalObject)
    172172    : Base(structure, globalObject)
    173173{
     
    206206const ClassInfo JSTestOverloadedConstructors::s_info = { "TestOverloadedConstructors", &Base::s_info, 0, CREATE_METHOD_TABLE(JSTestOverloadedConstructors) };
    207207
    208 JSTestOverloadedConstructors::JSTestOverloadedConstructors(Structure* structure, JSDOMGlobalObject* globalObject, Ref<TestOverloadedConstructors>&& impl)
     208JSTestOverloadedConstructors::JSTestOverloadedConstructors(Structure* structure, JSDOMGlobalObject& globalObject, Ref<TestOverloadedConstructors>&& impl)
    209209    : JSDOMWrapperWithImplementation<TestOverloadedConstructors>(structure, globalObject, WTF::move(impl))
    210210{
     
    237237JSValue JSTestOverloadedConstructors::getConstructor(VM& vm, JSGlobalObject* globalObject)
    238238{
    239     return getDOMConstructor<JSTestOverloadedConstructorsConstructor>(vm, jsCast<JSDOMGlobalObject*>(globalObject));
     239    return getDOMConstructor<JSTestOverloadedConstructorsConstructor>(vm, *jsCast<JSDOMGlobalObject*>(globalObject));
    240240}
    241241
  • trunk/Source/WebCore/bindings/scripts/test/JS/JSTestOverloadedConstructors.h

    r190403 r190714  
    3333    static JSTestOverloadedConstructors* create(JSC::Structure* structure, JSDOMGlobalObject* globalObject, Ref<TestOverloadedConstructors>&& impl)
    3434    {
    35         JSTestOverloadedConstructors* ptr = new (NotNull, JSC::allocateCell<JSTestOverloadedConstructors>(globalObject->vm().heap)) JSTestOverloadedConstructors(structure, globalObject, WTF::move(impl));
     35        JSTestOverloadedConstructors* ptr = new (NotNull, JSC::allocateCell<JSTestOverloadedConstructors>(globalObject->vm().heap)) JSTestOverloadedConstructors(structure, *globalObject, WTF::move(impl));
    3636        ptr->finishCreation(globalObject->vm());
    3737        return ptr;
     
    5252    static JSC::JSValue getConstructor(JSC::VM&, JSC::JSGlobalObject*);
    5353protected:
    54     JSTestOverloadedConstructors(JSC::Structure*, JSDOMGlobalObject*, Ref<TestOverloadedConstructors>&&);
     54    JSTestOverloadedConstructors(JSC::Structure*, JSDOMGlobalObject&, Ref<TestOverloadedConstructors>&&);
    5555
    5656    void finishCreation(JSC::VM& vm)
  • trunk/Source/WebCore/bindings/scripts/test/JS/JSTestOverrideBuiltins.cpp

    r190637 r190714  
    6969class JSTestOverrideBuiltinsConstructor : public DOMConstructorObject {
    7070private:
    71     JSTestOverrideBuiltinsConstructor(JSC::Structure*, JSDOMGlobalObject*);
     71    JSTestOverrideBuiltinsConstructor(JSC::Structure*, JSDOMGlobalObject&);
    7272    void finishCreation(JSC::VM&, JSDOMGlobalObject&);
    7373
    7474public:
    7575    typedef DOMConstructorObject Base;
    76     static JSTestOverrideBuiltinsConstructor* create(JSC::VM& vm, JSC::Structure* structure, JSDOMGlobalObject* globalObject)
     76    static JSTestOverrideBuiltinsConstructor* create(JSC::VM& vm, JSC::Structure* structure, JSDOMGlobalObject& globalObject)
    7777    {
    7878        JSTestOverrideBuiltinsConstructor* ptr = new (NotNull, JSC::allocateCell<JSTestOverrideBuiltinsConstructor>(vm.heap)) JSTestOverrideBuiltinsConstructor(structure, globalObject);
    79         ptr->finishCreation(vm, *globalObject);
     79        ptr->finishCreation(vm, globalObject);
    8080        return ptr;
    8181    }
    8282
    8383    DECLARE_INFO;
    84     static JSC::Structure* createStructure(JSC::VM& vm, JSC::JSGlobalObject* globalObject, JSC::JSValue prototype)
    85     {
    86         return JSC::Structure::create(vm, globalObject, prototype, JSC::TypeInfo(JSC::ObjectType, StructureFlags), info());
     84    static JSC::Structure* createStructure(JSC::VM& vm, JSC::JSGlobalObject& globalObject, JSC::JSValue prototype)
     85    {
     86        return JSC::Structure::create(vm, &globalObject, prototype, JSC::TypeInfo(JSC::ObjectType, StructureFlags), info());
    8787    }
    8888};
     
    104104const ClassInfo JSTestOverrideBuiltinsConstructor::s_info = { "TestOverrideBuiltinsConstructor", &Base::s_info, 0, CREATE_METHOD_TABLE(JSTestOverrideBuiltinsConstructor) };
    105105
    106 JSTestOverrideBuiltinsConstructor::JSTestOverrideBuiltinsConstructor(Structure* structure, JSDOMGlobalObject* globalObject)
     106JSTestOverrideBuiltinsConstructor::JSTestOverrideBuiltinsConstructor(Structure* structure, JSDOMGlobalObject& globalObject)
    107107    : Base(structure, globalObject)
    108108{
     
    135135const ClassInfo JSTestOverrideBuiltins::s_info = { "TestOverrideBuiltins", &Base::s_info, &JSTestOverrideBuiltinsTable, CREATE_METHOD_TABLE(JSTestOverrideBuiltins) };
    136136
    137 JSTestOverrideBuiltins::JSTestOverrideBuiltins(Structure* structure, JSDOMGlobalObject* globalObject, Ref<TestOverrideBuiltins>&& impl)
     137JSTestOverrideBuiltins::JSTestOverrideBuiltins(Structure* structure, JSDOMGlobalObject& globalObject, Ref<TestOverrideBuiltins>&& impl)
    138138    : JSDOMWrapperWithImplementation<TestOverrideBuiltins>(structure, globalObject, WTF::move(impl))
    139139{
     
    208208JSValue JSTestOverrideBuiltins::getConstructor(VM& vm, JSGlobalObject* globalObject)
    209209{
    210     return getDOMConstructor<JSTestOverrideBuiltinsConstructor>(vm, jsCast<JSDOMGlobalObject*>(globalObject));
     210    return getDOMConstructor<JSTestOverrideBuiltinsConstructor>(vm, *jsCast<JSDOMGlobalObject*>(globalObject));
    211211}
    212212
  • trunk/Source/WebCore/bindings/scripts/test/JS/JSTestOverrideBuiltins.h

    r190403 r190714  
    3333    static JSTestOverrideBuiltins* create(JSC::Structure* structure, JSDOMGlobalObject* globalObject, Ref<TestOverrideBuiltins>&& impl)
    3434    {
    35         JSTestOverrideBuiltins* ptr = new (NotNull, JSC::allocateCell<JSTestOverrideBuiltins>(globalObject->vm().heap)) JSTestOverrideBuiltins(structure, globalObject, WTF::move(impl));
     35        JSTestOverrideBuiltins* ptr = new (NotNull, JSC::allocateCell<JSTestOverrideBuiltins>(globalObject->vm().heap)) JSTestOverrideBuiltins(structure, *globalObject, WTF::move(impl));
    3636        ptr->finishCreation(globalObject->vm());
    3737        return ptr;
     
    5757    static const unsigned StructureFlags = JSC::HasImpureGetOwnPropertySlot | JSC::InterceptsGetOwnPropertySlotByIndexEvenWhenLengthIsNotZero | JSC::OverridesGetOwnPropertySlot | JSC::OverridesGetPropertyNames | Base::StructureFlags;
    5858protected:
    59     JSTestOverrideBuiltins(JSC::Structure*, JSDOMGlobalObject*, Ref<TestOverrideBuiltins>&&);
     59    JSTestOverrideBuiltins(JSC::Structure*, JSDOMGlobalObject&, Ref<TestOverrideBuiltins>&&);
    6060
    6161    void finishCreation(JSC::VM& vm)
  • trunk/Source/WebCore/bindings/scripts/test/JS/JSTestSerializedScriptValueInterface.cpp

    r190637 r190714  
    7474class JSTestSerializedScriptValueInterfaceConstructor : public DOMConstructorObject {
    7575private:
    76     JSTestSerializedScriptValueInterfaceConstructor(JSC::Structure*, JSDOMGlobalObject*);
     76    JSTestSerializedScriptValueInterfaceConstructor(JSC::Structure*, JSDOMGlobalObject&);
    7777    void finishCreation(JSC::VM&, JSDOMGlobalObject&);
    7878
    7979public:
    8080    typedef DOMConstructorObject Base;
    81     static JSTestSerializedScriptValueInterfaceConstructor* create(JSC::VM& vm, JSC::Structure* structure, JSDOMGlobalObject* globalObject)
     81    static JSTestSerializedScriptValueInterfaceConstructor* create(JSC::VM& vm, JSC::Structure* structure, JSDOMGlobalObject& globalObject)
    8282    {
    8383        JSTestSerializedScriptValueInterfaceConstructor* ptr = new (NotNull, JSC::allocateCell<JSTestSerializedScriptValueInterfaceConstructor>(vm.heap)) JSTestSerializedScriptValueInterfaceConstructor(structure, globalObject);
    84         ptr->finishCreation(vm, *globalObject);
     84        ptr->finishCreation(vm, globalObject);
    8585        return ptr;
    8686    }
    8787
    8888    DECLARE_INFO;
    89     static JSC::Structure* createStructure(JSC::VM& vm, JSC::JSGlobalObject* globalObject, JSC::JSValue prototype)
    90     {
    91         return JSC::Structure::create(vm, globalObject, prototype, JSC::TypeInfo(JSC::ObjectType, StructureFlags), info());
     89    static JSC::Structure* createStructure(JSC::VM& vm, JSC::JSGlobalObject& globalObject, JSC::JSValue prototype)
     90    {
     91        return JSC::Structure::create(vm, &globalObject, prototype, JSC::TypeInfo(JSC::ObjectType, StructureFlags), info());
    9292    }
    9393};
     
    9595const ClassInfo JSTestSerializedScriptValueInterfaceConstructor::s_info = { "TestSerializedScriptValueInterfaceConstructor", &Base::s_info, 0, CREATE_METHOD_TABLE(JSTestSerializedScriptValueInterfaceConstructor) };
    9696
    97 JSTestSerializedScriptValueInterfaceConstructor::JSTestSerializedScriptValueInterfaceConstructor(Structure* structure, JSDOMGlobalObject* globalObject)
     97JSTestSerializedScriptValueInterfaceConstructor::JSTestSerializedScriptValueInterfaceConstructor(Structure* structure, JSDOMGlobalObject& globalObject)
    9898    : Base(structure, globalObject)
    9999{
     
    131131const ClassInfo JSTestSerializedScriptValueInterface::s_info = { "TestSerializedScriptValueInterface", &Base::s_info, 0, CREATE_METHOD_TABLE(JSTestSerializedScriptValueInterface) };
    132132
    133 JSTestSerializedScriptValueInterface::JSTestSerializedScriptValueInterface(Structure* structure, JSDOMGlobalObject* globalObject, Ref<TestSerializedScriptValueInterface>&& impl)
     133JSTestSerializedScriptValueInterface::JSTestSerializedScriptValueInterface(Structure* structure, JSDOMGlobalObject& globalObject, Ref<TestSerializedScriptValueInterface>&& impl)
    134134    : JSDOMWrapperWithImplementation<TestSerializedScriptValueInterface>(structure, globalObject, WTF::move(impl))
    135135{
     
    293293JSValue JSTestSerializedScriptValueInterface::getConstructor(VM& vm, JSGlobalObject* globalObject)
    294294{
    295     return getDOMConstructor<JSTestSerializedScriptValueInterfaceConstructor>(vm, jsCast<JSDOMGlobalObject*>(globalObject));
     295    return getDOMConstructor<JSTestSerializedScriptValueInterfaceConstructor>(vm, *jsCast<JSDOMGlobalObject*>(globalObject));
    296296}
    297297
  • trunk/Source/WebCore/bindings/scripts/test/JS/JSTestSerializedScriptValueInterface.h

    r190403 r190714  
    3535    static JSTestSerializedScriptValueInterface* create(JSC::Structure* structure, JSDOMGlobalObject* globalObject, Ref<TestSerializedScriptValueInterface>&& impl)
    3636    {
    37         JSTestSerializedScriptValueInterface* ptr = new (NotNull, JSC::allocateCell<JSTestSerializedScriptValueInterface>(globalObject->vm().heap)) JSTestSerializedScriptValueInterface(structure, globalObject, WTF::move(impl));
     37        JSTestSerializedScriptValueInterface* ptr = new (NotNull, JSC::allocateCell<JSTestSerializedScriptValueInterface>(globalObject->vm().heap)) JSTestSerializedScriptValueInterface(structure, *globalObject, WTF::move(impl));
    3838        ptr->finishCreation(globalObject->vm());
    3939        return ptr;
     
    5858
    5959protected:
    60     JSTestSerializedScriptValueInterface(JSC::Structure*, JSDOMGlobalObject*, Ref<TestSerializedScriptValueInterface>&&);
     60    JSTestSerializedScriptValueInterface(JSC::Structure*, JSDOMGlobalObject&, Ref<TestSerializedScriptValueInterface>&&);
    6161
    6262    void finishCreation(JSC::VM& vm)
  • trunk/Source/WebCore/bindings/scripts/test/JS/JSTestTypedefs.cpp

    r190637 r190714  
    100100class JSTestTypedefsConstructor : public DOMConstructorObject {
    101101private:
    102     JSTestTypedefsConstructor(JSC::Structure*, JSDOMGlobalObject*);
     102    JSTestTypedefsConstructor(JSC::Structure*, JSDOMGlobalObject&);
    103103    void finishCreation(JSC::VM&, JSDOMGlobalObject&);
    104104
    105105public:
    106106    typedef DOMConstructorObject Base;
    107     static JSTestTypedefsConstructor* create(JSC::VM& vm, JSC::Structure* structure, JSDOMGlobalObject* globalObject)
     107    static JSTestTypedefsConstructor* create(JSC::VM& vm, JSC::Structure* structure, JSDOMGlobalObject& globalObject)
    108108    {
    109109        JSTestTypedefsConstructor* ptr = new (NotNull, JSC::allocateCell<JSTestTypedefsConstructor>(vm.heap)) JSTestTypedefsConstructor(structure, globalObject);
    110         ptr->finishCreation(vm, *globalObject);
     110        ptr->finishCreation(vm, globalObject);
    111111        return ptr;
    112112    }
    113113
    114114    DECLARE_INFO;
    115     static JSC::Structure* createStructure(JSC::VM& vm, JSC::JSGlobalObject* globalObject, JSC::JSValue prototype)
     115    static JSC::Structure* createStructure(JSC::VM& vm, JSC::JSGlobalObject& globalObject, JSC::JSValue prototype)
    116116    {
    117         return JSC::Structure::create(vm, globalObject, prototype, JSC::TypeInfo(JSC::ObjectType, StructureFlags), info());
     117        return JSC::Structure::create(vm, &globalObject, prototype, JSC::TypeInfo(JSC::ObjectType, StructureFlags), info());
    118118    }
    119119protected:
     
    160160const ClassInfo JSTestTypedefsConstructor::s_info = { "TestTypedefsConstructor", &Base::s_info, 0, CREATE_METHOD_TABLE(JSTestTypedefsConstructor) };
    161161
    162 JSTestTypedefsConstructor::JSTestTypedefsConstructor(Structure* structure, JSDOMGlobalObject* globalObject)
     162JSTestTypedefsConstructor::JSTestTypedefsConstructor(Structure* structure, JSDOMGlobalObject& globalObject)
    163163    : Base(structure, globalObject)
    164164{
     
    214214const ClassInfo JSTestTypedefs::s_info = { "TestTypedefs", &Base::s_info, &JSTestTypedefsTable, CREATE_METHOD_TABLE(JSTestTypedefs) };
    215215
    216 JSTestTypedefs::JSTestTypedefs(Structure* structure, JSDOMGlobalObject* globalObject, Ref<TestTypedefs>&& impl)
     216JSTestTypedefs::JSTestTypedefs(Structure* structure, JSDOMGlobalObject& globalObject, Ref<TestTypedefs>&& impl)
    217217    : JSDOMWrapperWithImplementation<TestTypedefs>(structure, globalObject, WTF::move(impl))
    218218{
     
    494494JSValue JSTestTypedefs::getConstructor(VM& vm, JSGlobalObject* globalObject)
    495495{
    496     return getDOMConstructor<JSTestTypedefsConstructor>(vm, jsCast<JSDOMGlobalObject*>(globalObject));
     496    return getDOMConstructor<JSTestTypedefsConstructor>(vm, *jsCast<JSDOMGlobalObject*>(globalObject));
    497497}
    498498
  • trunk/Source/WebCore/bindings/scripts/test/JS/JSTestTypedefs.h

    r190403 r190714  
    3333    static JSTestTypedefs* create(JSC::Structure* structure, JSDOMGlobalObject* globalObject, Ref<TestTypedefs>&& impl)
    3434    {
    35         JSTestTypedefs* ptr = new (NotNull, JSC::allocateCell<JSTestTypedefs>(globalObject->vm().heap)) JSTestTypedefs(structure, globalObject, WTF::move(impl));
     35        JSTestTypedefs* ptr = new (NotNull, JSC::allocateCell<JSTestTypedefs>(globalObject->vm().heap)) JSTestTypedefs(structure, *globalObject, WTF::move(impl));
    3636        ptr->finishCreation(globalObject->vm());
    3737        return ptr;
     
    5555    static const unsigned StructureFlags = JSC::OverridesGetOwnPropertySlot | Base::StructureFlags;
    5656protected:
    57     JSTestTypedefs(JSC::Structure*, JSDOMGlobalObject*, Ref<TestTypedefs>&&);
     57    JSTestTypedefs(JSC::Structure*, JSDOMGlobalObject&, Ref<TestTypedefs>&&);
    5858
    5959    void finishCreation(JSC::VM& vm)
  • trunk/Source/WebCore/bindings/scripts/test/JS/JSattribute.cpp

    r190637 r190714  
    6363class JSattributeConstructor : public DOMConstructorObject {
    6464private:
    65     JSattributeConstructor(JSC::Structure*, JSDOMGlobalObject*);
     65    JSattributeConstructor(JSC::Structure*, JSDOMGlobalObject&);
    6666    void finishCreation(JSC::VM&, JSDOMGlobalObject&);
    6767
    6868public:
    6969    typedef DOMConstructorObject Base;
    70     static JSattributeConstructor* create(JSC::VM& vm, JSC::Structure* structure, JSDOMGlobalObject* globalObject)
     70    static JSattributeConstructor* create(JSC::VM& vm, JSC::Structure* structure, JSDOMGlobalObject& globalObject)
    7171    {
    7272        JSattributeConstructor* ptr = new (NotNull, JSC::allocateCell<JSattributeConstructor>(vm.heap)) JSattributeConstructor(structure, globalObject);
    73         ptr->finishCreation(vm, *globalObject);
     73        ptr->finishCreation(vm, globalObject);
    7474        return ptr;
    7575    }
    7676
    7777    DECLARE_INFO;
    78     static JSC::Structure* createStructure(JSC::VM& vm, JSC::JSGlobalObject* globalObject, JSC::JSValue prototype)
    79     {
    80         return JSC::Structure::create(vm, globalObject, prototype, JSC::TypeInfo(JSC::ObjectType, StructureFlags), info());
     78    static JSC::Structure* createStructure(JSC::VM& vm, JSC::JSGlobalObject& globalObject, JSC::JSValue prototype)
     79    {
     80        return JSC::Structure::create(vm, &globalObject, prototype, JSC::TypeInfo(JSC::ObjectType, StructureFlags), info());
    8181    }
    8282};
     
    8484const ClassInfo JSattributeConstructor::s_info = { "attributeConstructor", &Base::s_info, 0, CREATE_METHOD_TABLE(JSattributeConstructor) };
    8585
    86 JSattributeConstructor::JSattributeConstructor(Structure* structure, JSDOMGlobalObject* globalObject)
     86JSattributeConstructor::JSattributeConstructor(Structure* structure, JSDOMGlobalObject& globalObject)
    8787    : Base(structure, globalObject)
    8888{
     
    116116const ClassInfo JSattribute::s_info = { "attribute", &Base::s_info, 0, CREATE_METHOD_TABLE(JSattribute) };
    117117
    118 JSattribute::JSattribute(Structure* structure, JSDOMGlobalObject* globalObject, Ref<attribute>&& impl)
     118JSattribute::JSattribute(Structure* structure, JSDOMGlobalObject& globalObject, Ref<attribute>&& impl)
    119119    : JSDOMWrapperWithImplementation<attribute>(structure, globalObject, WTF::move(impl))
    120120{
     
    164164JSValue JSattribute::getConstructor(VM& vm, JSGlobalObject* globalObject)
    165165{
    166     return getDOMConstructor<JSattributeConstructor>(vm, jsCast<JSDOMGlobalObject*>(globalObject));
     166    return getDOMConstructor<JSattributeConstructor>(vm, *jsCast<JSDOMGlobalObject*>(globalObject));
    167167}
    168168
  • trunk/Source/WebCore/bindings/scripts/test/JS/JSattribute.h

    r190403 r190714  
    3434    static JSattribute* create(JSC::Structure* structure, JSDOMGlobalObject* globalObject, Ref<attribute>&& impl)
    3535    {
    36         JSattribute* ptr = new (NotNull, JSC::allocateCell<JSattribute>(globalObject->vm().heap)) JSattribute(structure, globalObject, WTF::move(impl));
     36        JSattribute* ptr = new (NotNull, JSC::allocateCell<JSattribute>(globalObject->vm().heap)) JSattribute(structure, *globalObject, WTF::move(impl));
    3737        ptr->finishCreation(globalObject->vm());
    3838        return ptr;
     
    5353    static JSC::JSValue getConstructor(JSC::VM&, JSC::JSGlobalObject*);
    5454protected:
    55     JSattribute(JSC::Structure*, JSDOMGlobalObject*, Ref<attribute>&&);
     55    JSattribute(JSC::Structure*, JSDOMGlobalObject&, Ref<attribute>&&);
    5656
    5757    void finishCreation(JSC::VM& vm)
  • trunk/Source/WebCore/bindings/scripts/test/JS/JSreadonly.cpp

    r190637 r190714  
    6060class JSreadonlyConstructor : public DOMConstructorObject {
    6161private:
    62     JSreadonlyConstructor(JSC::Structure*, JSDOMGlobalObject*);
     62    JSreadonlyConstructor(JSC::Structure*, JSDOMGlobalObject&);
    6363    void finishCreation(JSC::VM&, JSDOMGlobalObject&);
    6464
    6565public:
    6666    typedef DOMConstructorObject Base;
    67     static JSreadonlyConstructor* create(JSC::VM& vm, JSC::Structure* structure, JSDOMGlobalObject* globalObject)
     67    static JSreadonlyConstructor* create(JSC::VM& vm, JSC::Structure* structure, JSDOMGlobalObject& globalObject)
    6868    {
    6969        JSreadonlyConstructor* ptr = new (NotNull, JSC::allocateCell<JSreadonlyConstructor>(vm.heap)) JSreadonlyConstructor(structure, globalObject);
    70         ptr->finishCreation(vm, *globalObject);
     70        ptr->finishCreation(vm, globalObject);
    7171        return ptr;
    7272    }
    7373
    7474    DECLARE_INFO;
    75     static JSC::Structure* createStructure(JSC::VM& vm, JSC::JSGlobalObject* globalObject, JSC::JSValue prototype)
     75    static JSC::Structure* createStructure(JSC::VM& vm, JSC::JSGlobalObject& globalObject, JSC::JSValue prototype)
    7676    {
    77         return JSC::Structure::create(vm, globalObject, prototype, JSC::TypeInfo(JSC::ObjectType, StructureFlags), info());
     77        return JSC::Structure::create(vm, &globalObject, prototype, JSC::TypeInfo(JSC::ObjectType, StructureFlags), info());
    7878    }
    7979};
     
    8181const ClassInfo JSreadonlyConstructor::s_info = { "readonlyConstructor", &Base::s_info, 0, CREATE_METHOD_TABLE(JSreadonlyConstructor) };
    8282
    83 JSreadonlyConstructor::JSreadonlyConstructor(Structure* structure, JSDOMGlobalObject* globalObject)
     83JSreadonlyConstructor::JSreadonlyConstructor(Structure* structure, JSDOMGlobalObject& globalObject)
    8484    : Base(structure, globalObject)
    8585{
     
    112112const ClassInfo JSreadonly::s_info = { "readonly", &Base::s_info, 0, CREATE_METHOD_TABLE(JSreadonly) };
    113113
    114 JSreadonly::JSreadonly(Structure* structure, JSDOMGlobalObject* globalObject, Ref<readonly>&& impl)
     114JSreadonly::JSreadonly(Structure* structure, JSDOMGlobalObject& globalObject, Ref<readonly>&& impl)
    115115    : JSDOMWrapperWithImplementation<readonly>(structure, globalObject, WTF::move(impl))
    116116{
     
    143143JSValue JSreadonly::getConstructor(VM& vm, JSGlobalObject* globalObject)
    144144{
    145     return getDOMConstructor<JSreadonlyConstructor>(vm, jsCast<JSDOMGlobalObject*>(globalObject));
     145    return getDOMConstructor<JSreadonlyConstructor>(vm, *jsCast<JSDOMGlobalObject*>(globalObject));
    146146}
    147147
  • trunk/Source/WebCore/bindings/scripts/test/JS/JSreadonly.h

    r190403 r190714  
    3333    static JSreadonly* create(JSC::Structure* structure, JSDOMGlobalObject* globalObject, Ref<readonly>&& impl)
    3434    {
    35         JSreadonly* ptr = new (NotNull, JSC::allocateCell<JSreadonly>(globalObject->vm().heap)) JSreadonly(structure, globalObject, WTF::move(impl));
     35        JSreadonly* ptr = new (NotNull, JSC::allocateCell<JSreadonly>(globalObject->vm().heap)) JSreadonly(structure, *globalObject, WTF::move(impl));
    3636        ptr->finishCreation(globalObject->vm());
    3737        return ptr;
     
    5252    static JSC::JSValue getConstructor(JSC::VM&, JSC::JSGlobalObject*);
    5353protected:
    54     JSreadonly(JSC::Structure*, JSDOMGlobalObject*, Ref<readonly>&&);
     54    JSreadonly(JSC::Structure*, JSDOMGlobalObject&, Ref<readonly>&&);
    5555
    5656    void finishCreation(JSC::VM& vm)
Note: See TracChangeset for help on using the changeset viewer.