Changeset 192935 in webkit for trunk/Source/JavaScriptCore/runtime/CodeCache.cpp
- Timestamp:
- Dec 1, 2015, 5:37:19 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/runtime/CodeCache.cpp
r192914 r192935 104 104 std::unique_ptr<RootNode> rootNode = parse<RootNode>( 105 105 &vm, source, Identifier(), builtinMode, strictMode, 106 CacheTypes<UnlinkedCodeBlockType>::parseMode, SuperBinding::NotNeeded,error, nullptr, ConstructorKind::None, thisTDZMode);106 CacheTypes<UnlinkedCodeBlockType>::parseMode, error, nullptr, ConstructorKind::None, thisTDZMode); 107 107 if (!rootNode) 108 108 return nullptr; … … 161 161 std::unique_ptr<ProgramNode> program = parse<ProgramNode>( 162 162 &vm, source, Identifier(), JSParserBuiltinMode::NotBuiltin, 163 JSParserStrictMode::NotStrict, SourceParseMode::ProgramMode, SuperBinding::NotNeeded,163 JSParserStrictMode::NotStrict, SourceParseMode::ProgramMode, 164 164 error, &positionBeforeLastNewline); 165 165 if (!program) { … … 189 189 // The Function constructor only has access to global variables, so no variables will be under TDZ. 190 190 VariableEnvironment emptyTDZVariables; 191 UnlinkedFunctionExecutable* functionExecutable = UnlinkedFunctionExecutable::create(&vm, source, metadata, UnlinkedNormalFunction, ConstructAbility::CanConstruct, GeneratorThisMode::NonEmpty,emptyTDZVariables);191 UnlinkedFunctionExecutable* functionExecutable = UnlinkedFunctionExecutable::create(&vm, source, metadata, UnlinkedNormalFunction, ConstructAbility::CanConstruct, emptyTDZVariables); 192 192 functionExecutable->m_nameValue.set(vm, functionExecutable, jsString(&vm, name.string())); 193 193
Note:
See TracChangeset
for help on using the changeset viewer.