Changeset 163225 in webkit for trunk/Source/JavaScriptCore/runtime/CodeCache.cpp
- Timestamp:
- Jan 31, 2014, 5:37:59 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/runtime/CodeCache.cpp
r163195 r163225 145 145 RefPtr<ProgramNode> program = parse<ProgramNode>(&vm, source, 0, Identifier(), JSParseNormal, JSParseProgramCode, error, &positionBeforeLastNewline); 146 146 if (!program) { 147 RELEASE_ASSERT(error.m_type != ParserError::ErrorNone);147 ASSERT(error.m_type != ParserError::ErrorNone); 148 148 m_sourceCode.remove(addResult.iterator); 149 149 return 0; … … 152 152 // This function assumes an input string that would result in a single anonymous function expression. 153 153 StatementNode* exprStatement = program->singleStatement(); 154 RELEASE_ASSERT(exprStatement);155 RELEASE_ASSERT(exprStatement->isExprStatement());154 ASSERT(exprStatement); 155 ASSERT(exprStatement->isExprStatement()); 156 156 ExpressionNode* funcExpr = static_cast<ExprStatementNode*>(exprStatement)->expr(); 157 RELEASE_ASSERT(funcExpr);157 ASSERT(funcExpr); 158 158 RELEASE_ASSERT(funcExpr->isFuncExprNode()); 159 159 FunctionBodyNode* body = static_cast<FuncExprNode*>(funcExpr)->body(); 160 RELEASE_ASSERT(!program->hasCapturedVariables());161 162 160 body->setEndPosition(positionBeforeLastNewline); 163 RELEASE_ASSERT(body);164 RELEASE_ASSERT(body->ident().isNull());161 ASSERT(body); 162 ASSERT(body->ident().isNull()); 165 163 166 UnlinkedFunctionExecutable* functionExecutable = UnlinkedFunctionExecutable::create(&vm, source, body, true , UnlinkedNormalFunction);164 UnlinkedFunctionExecutable* functionExecutable = UnlinkedFunctionExecutable::create(&vm, source, body, true); 167 165 functionExecutable->m_nameValue.set(vm, functionExecutable, jsString(&vm, name.string())); 168 166
Note:
See TracChangeset
for help on using the changeset viewer.