Changeset 187205 in webkit for trunk/Source/JavaScriptCore/builtins/BuiltinExecutables.cpp
- Timestamp:
- Jul 22, 2015, 7:36:20 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/builtins/BuiltinExecutables.cpp
r186959 r187205 53 53 break; 54 54 case ConstructorKind::Base: 55 return createExecutableInternal(makeSource(baseConstructorCode), name, constructorKind );55 return createExecutableInternal(makeSource(baseConstructorCode), name, constructorKind, ConstructAbility::CanConstruct); 56 56 case ConstructorKind::Derived: 57 return createExecutableInternal(makeSource(derivedConstructorCode), name, constructorKind );57 return createExecutableInternal(makeSource(derivedConstructorCode), name, constructorKind, ConstructAbility::CanConstruct); 58 58 } 59 59 ASSERT_NOT_REACHED(); … … 61 61 } 62 62 63 UnlinkedFunctionExecutable* BuiltinExecutables::createExecutableInternal(const SourceCode& source, const Identifier& name, ConstructorKind constructorKind )63 UnlinkedFunctionExecutable* BuiltinExecutables::createExecutableInternal(const SourceCode& source, const Identifier& name, ConstructorKind constructorKind, ConstructAbility constructAbility) 64 64 { 65 65 JSTextPosition positionBeforeLastNewline; … … 104 104 body->overrideName(name); 105 105 VariableEnvironment dummyTDZVariables; 106 UnlinkedFunctionExecutable* functionExecutable = UnlinkedFunctionExecutable::create(&m_vm, source, body, kind, dummyTDZVariables, WTF::move(sourceOverride));106 UnlinkedFunctionExecutable* functionExecutable = UnlinkedFunctionExecutable::create(&m_vm, source, body, kind, constructAbility, dummyTDZVariables, WTF::move(sourceOverride)); 107 107 functionExecutable->m_nameValue.set(m_vm, functionExecutable, jsString(&m_vm, name.string())); 108 108 return functionExecutable; … … 118 118 {\ 119 119 if (!m_##name##Executable)\ 120 m_##name##Executable = Weak<UnlinkedFunctionExecutable>(createBuiltinExecutable(m_##name##Source, m_vm.propertyNames->builtinNames().functionName##PublicName() ), this, &m_##name##Executable);\120 m_##name##Executable = Weak<UnlinkedFunctionExecutable>(createBuiltinExecutable(m_##name##Source, m_vm.propertyNames->builtinNames().functionName##PublicName(), s_##name##ConstructAbility), this, &m_##name##Executable);\ 121 121 return m_##name##Executable.get();\ 122 122 }
Note:
See TracChangeset
for help on using the changeset viewer.