Ignore:
Timestamp:
Oct 3, 2015, 6:45:21 PM (10 years ago)
Author:
[email protected]
Message:

Unreviewed, rolling out r190522.
https://bugs.webkit.org/show_bug.cgi?id=149787

Caused a lot of leaks (Requested by ap on #webkit).

Reverted changeset:

"Unreviewed, rolling back in r190450"
https://bugs.webkit.org/show_bug.cgi?id=149727
http://trac.webkit.org/changeset/190522

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/bytecode/InlineCallFrame.h

    r190522 r190546  
    3030#include "CodeBlockHash.h"
    3131#include "CodeOrigin.h"
     32#include "Executable.h"
    3233#include "ValueRecovery.h"
    3334#include "WriteBarrier.h"
     
    4243struct InlineCallFrame;
    4344class ExecState;
     45class ScriptExecutable;
    4446class JSFunction;
    4547
     
    173175   
    174176    Vector<ValueRecovery> arguments; // Includes 'this'.
    175     WriteBarrier<CodeBlock> baselineCodeBlock;
     177    WriteBarrier<ScriptExecutable> executable;
    176178    ValueRecovery calleeRecovery;
    177179    CodeOrigin directCaller;
     
    208210    CString hashAsStringIfPossible() const;
    209211   
     212    CodeBlock* baselineCodeBlock() const;
     213   
    210214    void setStackOffset(signed offset)
    211215    {
     
    216220    ptrdiff_t callerFrameOffset() const { return stackOffset * sizeof(Register) + CallFrame::callerFrameOffset(); }
    217221    ptrdiff_t returnPCOffset() const { return stackOffset * sizeof(Register) + CallFrame::returnPCOffset(); }
    218 
    219     bool isStrictMode() const { return baselineCodeBlock->isStrictMode(); }
    220222
    221223    void dumpBriefFunctionInformation(PrintStream&) const;
     
    230232{
    231233    RELEASE_ASSERT(inlineCallFrame);
    232     return inlineCallFrame->baselineCodeBlock.get();
     234    ScriptExecutable* executable = inlineCallFrame->executable.get();
     235    RELEASE_ASSERT(executable->structure()->classInfo() == FunctionExecutable::info());
     236    return static_cast<FunctionExecutable*>(executable)->baselineCodeBlockFor(inlineCallFrame->specializationKind());
    233237}
    234238
Note: See TracChangeset for help on using the changeset viewer.