Changeset 200452 in webkit
- Timestamp:
- May 5, 2016, 12:54:14 AM (9 years ago)
- Location:
- trunk/Source/JavaScriptCore
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/ChangeLog
r200447 r200452 1 2016-05-05 Joseph Pecoraro <pecoraro@apple.com> 2 3 Create console object lazily 4 https://bugs.webkit.org/show_bug.cgi?id=157328 5 6 Reviewed by Geoffrey Garen. 7 8 * runtime/CommonIdentifiers.h: 9 * runtime/JSGlobalObject.cpp: 10 (JSC::createConsoleProperty): 11 (JSC::JSGlobalObject::init): Deleted. 12 1 13 2016-05-04 Michael Saboff <msaboff@apple.com> 2 14 -
trunk/Source/JavaScriptCore/runtime/CommonIdentifiers.h
r200426 r200452 130 130 macro(compile) \ 131 131 macro(configurable) \ 132 macro(console) \133 132 macro(constructor) \ 134 133 macro(count) \ -
trunk/Source/JavaScriptCore/runtime/JSGlobalObject.cpp
r200430 r200452 195 195 } 196 196 197 static JSValue createConsoleProperty(VM& vm, JSObject* object) 198 { 199 JSGlobalObject* global = jsCast<JSGlobalObject*>(object); 200 return ConsoleObject::create(vm, global, ConsoleObject::createStructure(vm, global, global->objectPrototype())); 201 } 202 197 203 } // namespace JSC 198 204 … … 223 229 JSON createJSONProperty DontEnum|PropertyCallback 224 230 Math createMathProperty DontEnum|PropertyCallback 231 console createConsoleProperty DontEnum|PropertyCallback 225 232 Int8Array JSGlobalObject::m_typedArrayInt8 DontEnum|ClassStructure 226 233 Int16Array JSGlobalObject::m_typedArrayInt16 DontEnum|ClassStructure … … 635 642 ReflectObject* reflectObject = ReflectObject::create(vm, this, ReflectObject::createStructure(vm, this, m_objectPrototype.get())); 636 643 putDirectWithoutTransition(vm, vm.propertyNames->Reflect, reflectObject, DontEnum); 637 638 putDirectWithoutTransition(vm, vm.propertyNames->console, ConsoleObject::create(vm, this, ConsoleObject::createStructure(vm, this, m_objectPrototype.get())), DontEnum);639 644 640 645 m_moduleLoader.set(vm, this, ModuleLoaderObject::create(vm, this, ModuleLoaderObject::createStructure(vm, this, m_objectPrototype.get())));
Note:
See TracChangeset
for help on using the changeset viewer.