Ignore:
Timestamp:
Mar 30, 2018, 9:05:22 AM (7 years ago)
Author:
Ryan Haddad
Message:

Unreviewed, rolling out r230102.

Caused assertion failures on JSC bots.

Reverted changeset:

"A stack overflow in the parsing of a builtin (called by
createExecutable) cause a crash instead of a catchable js
exception"
https://bugs.webkit.org/show_bug.cgi?id=184074
https://trac.webkit.org/changeset/230102

File:
1 edited

Legend:

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

    r230102 r230105  
    3434        JSFunction* function = nullptr;
    3535        if (value.attributes() & PropertyAttribute::Builtin)
    36             function = JSFunction::create(vm, value.builtinAccessorGetterGenerator()(vm).value(), globalObject);
     36            function = JSFunction::create(vm, value.builtinAccessorGetterGenerator()(vm), globalObject);
    3737        else {
    3838            String getterName = tryMakeString(ASCIILiteral("get "), String(*propertyName.publicName()));
     
    4646}
    4747
    48 bool setUpStaticFunctionSlot(ExecState* exec, const ClassInfo* classInfo, const HashTableValue* entry, JSObject* thisObject, PropertyName propertyName, PropertySlot& slot)
     48bool setUpStaticFunctionSlot(VM& vm, const ClassInfo* classInfo, const HashTableValue* entry, JSObject* thisObject, PropertyName propertyName, PropertySlot& slot)
    4949{
    50     VM& vm = exec->vm();
    51     auto scope = DECLARE_THROW_SCOPE(vm);
    5250    ASSERT(thisObject->globalObject());
    5351    ASSERT(entry->attributes() & PropertyAttribute::BuiltinOrFunctionOrAccessorOrLazyProperty);
     
    6260            return false;
    6361
    64         reifyStaticProperty(vm, exec, classInfo, propertyName, *entry, *thisObject);
    65         RETURN_IF_EXCEPTION(scope, false);
     62        reifyStaticProperty(vm, classInfo, propertyName, *entry, *thisObject);
    6663
    6764        offset = thisObject->getDirectOffset(vm, propertyName, attributes);
Note: See TracChangeset for help on using the changeset viewer.