Ignore:
Timestamp:
Aug 30, 2017, 3:54:22 PM (8 years ago)
Author:
Ryan Haddad
Message:

Unreviewed, rolling out r221327.

This change caused test262 failures.

Reverted changeset:

"[JSC] Use reifying system for "name" property of builtin
JSFunction"
https://bugs.webkit.org/show_bug.cgi?id=175260
http://trac.webkit.org/changeset/221327

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/runtime/JSObject.cpp

    r221327 r221404  
    29702970        name = vm.propertyNames->anonymous.impl();
    29712971    ASSERT(name);
    2972     JSFunction* function = JSFunction::create(vm, static_cast<FunctionExecutable*>(functionExecutable), globalObject);
     2972    JSFunction* function = JSFunction::createBuiltinFunction(vm, static_cast<FunctionExecutable*>(functionExecutable), globalObject);
    29732973    putDirect(vm, propertyName, function, attributes);
    29742974    return function;
     
    29772977JSFunction* JSObject::putDirectBuiltinFunctionWithoutTransition(VM& vm, JSGlobalObject* globalObject, const PropertyName& propertyName, FunctionExecutable* functionExecutable, unsigned attributes)
    29782978{
    2979     JSFunction* function = JSFunction::create(vm, static_cast<FunctionExecutable*>(functionExecutable), globalObject);
     2979    JSFunction* function = JSFunction::createBuiltinFunction(vm, static_cast<FunctionExecutable*>(functionExecutable), globalObject);
    29802980    putDirectWithoutTransition(vm, propertyName, function, attributes);
    29812981    return function;
Note: See TracChangeset for help on using the changeset viewer.