Ignore:
Timestamp:
Jan 31, 2014, 5:37:59 PM (12 years ago)
Author:
[email protected]
Message:

2014-01-31 Oliver Hunt <[email protected]>

Rollout r163195 and related patches

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/runtime/CodeCache.cpp

    r163195 r163225  
    145145    RefPtr<ProgramNode> program = parse<ProgramNode>(&vm, source, 0, Identifier(), JSParseNormal, JSParseProgramCode, error, &positionBeforeLastNewline);
    146146    if (!program) {
    147         RELEASE_ASSERT(error.m_type != ParserError::ErrorNone);
     147        ASSERT(error.m_type != ParserError::ErrorNone);
    148148        m_sourceCode.remove(addResult.iterator);
    149149        return 0;
     
    152152    // This function assumes an input string that would result in a single anonymous function expression.
    153153    StatementNode* exprStatement = program->singleStatement();
    154     RELEASE_ASSERT(exprStatement);
    155     RELEASE_ASSERT(exprStatement->isExprStatement());
     154    ASSERT(exprStatement);
     155    ASSERT(exprStatement->isExprStatement());
    156156    ExpressionNode* funcExpr = static_cast<ExprStatementNode*>(exprStatement)->expr();
    157     RELEASE_ASSERT(funcExpr);
     157    ASSERT(funcExpr);
    158158    RELEASE_ASSERT(funcExpr->isFuncExprNode());
    159159    FunctionBodyNode* body = static_cast<FuncExprNode*>(funcExpr)->body();
    160     RELEASE_ASSERT(!program->hasCapturedVariables());
    161    
    162160    body->setEndPosition(positionBeforeLastNewline);
    163     RELEASE_ASSERT(body);
    164     RELEASE_ASSERT(body->ident().isNull());
     161    ASSERT(body);
     162    ASSERT(body->ident().isNull());
    165163
    166     UnlinkedFunctionExecutable* functionExecutable = UnlinkedFunctionExecutable::create(&vm, source, body, true, UnlinkedNormalFunction);
     164    UnlinkedFunctionExecutable* functionExecutable = UnlinkedFunctionExecutable::create(&vm, source, body, true);
    167165    functionExecutable->m_nameValue.set(vm, functionExecutable, jsString(&vm, name.string()));
    168166
Note: See TracChangeset for help on using the changeset viewer.