Ignore:
Timestamp:
Sep 22, 2009, 5:40:58 PM (16 years ago)
Author:
[email protected]
Message:

Code sampling builds are broken.
https://bugs.webkit.org/show_bug.cgi?id=29662

Reviewed by Geoff Garen

Fix build.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/bytecompiler/BytecodeGenerator.cpp

    r47775 r48662  
    274274        for (size_t i = 0; i < functionStack.size(); ++i) {
    275275            FunctionBodyNode* function = functionStack[i];
    276             globalObject->putWithAttributes(exec, function->ident(), new (exec) JSFunction(exec, makeFunction(function), scopeChain.node()), DontDelete);
     276            globalObject->putWithAttributes(exec, function->ident(), new (exec) JSFunction(exec, makeFunction(exec, function), scopeChain.node()), DontDelete);
    277277        }
    278278        for (size_t i = 0; i < varStack.size(); ++i) {
     
    400400    const DeclarationStacks::FunctionStack& functionStack = evalNode->functionStack();
    401401    for (size_t i = 0; i < functionStack.size(); ++i)
    402         m_codeBlock->addFunctionDecl(makeFunction(functionStack[i]));
     402        m_codeBlock->addFunctionDecl(makeFunction(m_globalData, functionStack[i]));
    403403
    404404    const DeclarationStacks::VarStack& varStack = evalNode->varStack();
     
    13171317RegisterID* BytecodeGenerator::emitNewFunction(RegisterID* dst, FunctionBodyNode* function)
    13181318{
    1319     unsigned index = m_codeBlock->addFunctionDecl(makeFunction(function));
     1319    unsigned index = m_codeBlock->addFunctionDecl(makeFunction(m_globalData, function));
    13201320
    13211321    emitOpcode(op_new_func);
     
    13371337{
    13381338    FunctionBodyNode* function = n->body();
    1339     unsigned index = m_codeBlock->addFunctionExpr(makeFunction(function));
     1339    unsigned index = m_codeBlock->addFunctionExpr(makeFunction(m_globalData, function));
    13401340
    13411341    emitOpcode(op_new_func_exp);
Note: See TracChangeset for help on using the changeset viewer.