Changeset 230105 in webkit for trunk/Source/JavaScriptCore/runtime/Lookup.cpp
- Timestamp:
- Mar 30, 2018, 9:05:22 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/runtime/Lookup.cpp
r230102 r230105 34 34 JSFunction* function = nullptr; 35 35 if (value.attributes() & PropertyAttribute::Builtin) 36 function = JSFunction::create(vm, value.builtinAccessorGetterGenerator()(vm) .value(), globalObject);36 function = JSFunction::create(vm, value.builtinAccessorGetterGenerator()(vm), globalObject); 37 37 else { 38 38 String getterName = tryMakeString(ASCIILiteral("get "), String(*propertyName.publicName())); … … 46 46 } 47 47 48 bool setUpStaticFunctionSlot( ExecState* exec, const ClassInfo* classInfo, const HashTableValue* entry, JSObject* thisObject, PropertyName propertyName, PropertySlot& slot)48 bool setUpStaticFunctionSlot(VM& vm, const ClassInfo* classInfo, const HashTableValue* entry, JSObject* thisObject, PropertyName propertyName, PropertySlot& slot) 49 49 { 50 VM& vm = exec->vm();51 auto scope = DECLARE_THROW_SCOPE(vm);52 50 ASSERT(thisObject->globalObject()); 53 51 ASSERT(entry->attributes() & PropertyAttribute::BuiltinOrFunctionOrAccessorOrLazyProperty); … … 62 60 return false; 63 61 64 reifyStaticProperty(vm, exec, classInfo, propertyName, *entry, *thisObject); 65 RETURN_IF_EXCEPTION(scope, false); 62 reifyStaticProperty(vm, classInfo, propertyName, *entry, *thisObject); 66 63 67 64 offset = thisObject->getDirectOffset(vm, propertyName, attributes);
Note:
See TracChangeset
for help on using the changeset viewer.