Changeset 188219 in webkit for trunk/Source/JavaScriptCore/builtins/BuiltinExecutables.cpp
- Timestamp:
- Aug 10, 2015, 1:24:35 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/builtins/BuiltinExecutables.cpp
r187205 r188219 85 85 RELEASE_ASSERT(funcExpr); 86 86 RELEASE_ASSERT(funcExpr->isFuncExprNode()); 87 Function BodyNode* body = static_cast<FuncExprNode*>(funcExpr)->body();87 FunctionMetadataNode* metadata = static_cast<FuncExprNode*>(funcExpr)->metadata(); 88 88 RELEASE_ASSERT(!program->hasCapturedVariables()); 89 89 90 body->setEndPosition(positionBeforeLastNewline);91 RELEASE_ASSERT( body);92 RELEASE_ASSERT( body->ident().isNull());90 metadata->setEndPosition(positionBeforeLastNewline); 91 RELEASE_ASSERT(metadata); 92 RELEASE_ASSERT(metadata->ident().isNull()); 93 93 94 94 // This function assumes an input string that would result in a single anonymous function expression. 95 body->setEndPosition(positionBeforeLastNewline);96 RELEASE_ASSERT( body);95 metadata->setEndPosition(positionBeforeLastNewline); 96 RELEASE_ASSERT(metadata); 97 97 for (const auto& closedVariable : program->closedVariables()) { 98 98 if (closedVariable == m_vm.propertyNames->arguments.impl()) … … 102 102 continue; 103 103 } 104 body->overrideName(name);104 metadata->overrideName(name); 105 105 VariableEnvironment dummyTDZVariables; 106 UnlinkedFunctionExecutable* functionExecutable = UnlinkedFunctionExecutable::create(&m_vm, source, body, kind, constructAbility, dummyTDZVariables, WTF::move(sourceOverride));106 UnlinkedFunctionExecutable* functionExecutable = UnlinkedFunctionExecutable::create(&m_vm, source, metadata, kind, constructAbility, dummyTDZVariables, WTF::move(sourceOverride)); 107 107 functionExecutable->m_nameValue.set(m_vm, functionExecutable, jsString(&m_vm, name.string())); 108 108 return functionExecutable;
Note:
See TracChangeset
for help on using the changeset viewer.