Changeset 95751 in webkit for trunk/Source/JavaScriptCore/ChangeLog
- Timestamp:
- Sep 22, 2011, 2:22:17 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/ChangeLog
r95742 r95751 1 2011-09-22 Gavin Barraclough <[email protected]> 2 3 Implement Function.prototype.bind 4 https://bugs.webkit.org/show_bug.cgi?id=26382 5 6 Reviewed by Sam Weinig. 7 8 This patch provides a basic functional implementation 9 for Function.bind. It should (hopefully!) be fully 10 functionally correct, and the bound functions can be 11 called to quickly (since they are a subclass of 12 JSFunction, not InternalFunction), but we'll probably 13 want to follow up with some optimization work to keep 14 bound calls in JIT code. 15 16 * JavaScriptCore.JSVALUE32_64only.exp: 17 * JavaScriptCore.JSVALUE64only.exp: 18 * JavaScriptCore.exp: 19 * JavaScriptCore.xcodeproj/project.pbxproj: 20 * jit/JITStubs.cpp: 21 (JSC::JITThunks::hostFunctionStub): 22 * jit/JITStubs.h: 23 * jsc.cpp: 24 (GlobalObject::addFunction): 25 * runtime/CommonIdentifiers.h: 26 * runtime/ConstructData.h: 27 * runtime/Executable.h: 28 (JSC::NativeExecutable::NativeExecutable): 29 * runtime/FunctionPrototype.cpp: 30 (JSC::FunctionPrototype::addFunctionProperties): 31 (JSC::functionProtoFuncBind): 32 * runtime/FunctionPrototype.h: 33 * runtime/JSBoundFunction.cpp: Added. 34 (JSC::boundFunctionCall): 35 (JSC::boundFunctionConstruct): 36 (JSC::JSBoundFunction::create): 37 (JSC::JSBoundFunction::hasInstance): 38 (JSC::JSBoundFunction::getOwnPropertySlot): 39 (JSC::JSBoundFunction::getOwnPropertyDescriptor): 40 (JSC::JSBoundFunction::JSBoundFunction): 41 (JSC::JSBoundFunction::finishCreation): 42 * runtime/JSBoundFunction.h: Added. 43 (JSC::JSBoundFunction::targetFunction): 44 (JSC::JSBoundFunction::boundThis): 45 (JSC::JSBoundFunction::boundArgs): 46 (JSC::JSBoundFunction::createStructure): 47 * runtime/JSFunction.cpp: 48 (JSC::JSFunction::create): 49 (JSC::JSFunction::finishCreation): 50 (JSC::createDescriptorForThrowingProperty): 51 (JSC::JSFunction::getOwnPropertySlot): 52 * runtime/JSFunction.h: 53 * runtime/JSGlobalData.cpp: 54 (JSC::JSGlobalData::getHostFunction): 55 * runtime/JSGlobalData.h: 56 * runtime/JSGlobalObject.cpp: 57 (JSC::JSGlobalObject::reset): 58 (JSC::JSGlobalObject::visitChildren): 59 * runtime/JSGlobalObject.h: 60 (JSC::JSGlobalObject::boundFunctionStructure): 61 * runtime/Lookup.cpp: 62 (JSC::setUpStaticFunctionSlot): 63 1 64 2011-09-22 Oliver Hunt <[email protected]> 2 65
Note:
See TracChangeset
for help on using the changeset viewer.