Ignore:
Timestamp:
Jan 10, 2018, 11:41:12 AM (8 years ago)
Author:
[email protected]
Message:

Unreviewed, rolling out r226667 and r226673.
https://bugs.webkit.org/show_bug.cgi?id=181488

This caused a flaky crash. (Requested by mlewis13 on #webkit).

Reverted changesets:

"CodeBlocks should be in IsoSubspaces"
https://bugs.webkit.org/show_bug.cgi?id=180884
https://trac.webkit.org/changeset/226667

"REGRESSION (r226667): CodeBlocks should be in IsoSubspaces"
https://bugs.webkit.org/show_bug.cgi?id=180884
https://trac.webkit.org/changeset/226673

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/runtime/FunctionExecutable.h

    r226667 r226725  
    11/*
    2  * Copyright (C) 2009-2018 Apple Inc. All rights reserved.
     2 * Copyright (C) 2009-2017 Apple Inc. All rights reserved.
    33 *
    44 * Redistribution and use in source and binary forms, with or without
     
    2626#pragma once
    2727
    28 #include "ExecutableToCodeBlockEdge.h"
    2928#include "ScriptExecutable.h"
    3029#include "SourceCode.h"
     
    7069    FunctionCodeBlock* eitherCodeBlock()
    7170    {
    72         ExecutableToCodeBlockEdge* edge;
    7371        if (m_codeBlockForCall)
    74             edge = m_codeBlockForCall.get();
    75         else
    76             edge = m_codeBlockForConstruct.get();
    77         return bitwise_cast<FunctionCodeBlock*>(ExecutableToCodeBlockEdge::unwrap(edge));
     72            return m_codeBlockForCall.get();
     73        return m_codeBlockForConstruct.get();
    7874    }
    7975       
     
    8581    FunctionCodeBlock* codeBlockForCall()
    8682    {
    87         return bitwise_cast<FunctionCodeBlock*>(ExecutableToCodeBlockEdge::unwrap(m_codeBlockForCall.get()));
     83        return m_codeBlockForCall.get();
    8884    }
    8985
    9086    bool isGeneratedForConstruct() const
    9187    {
    92         return !!m_codeBlockForConstruct;
     88        return m_codeBlockForConstruct.get();
    9389    }
    9490
    9591    FunctionCodeBlock* codeBlockForConstruct()
    9692    {
    97         return bitwise_cast<FunctionCodeBlock*>(ExecutableToCodeBlockEdge::unwrap(m_codeBlockForConstruct.get()));
     93        return m_codeBlockForConstruct.get();
    9894    }
    9995       
     
    209205    unsigned m_parametersStartOffset;
    210206    WriteBarrier<UnlinkedFunctionExecutable> m_unlinkedExecutable;
    211     WriteBarrier<ExecutableToCodeBlockEdge> m_codeBlockForCall;
    212     WriteBarrier<ExecutableToCodeBlockEdge> m_codeBlockForConstruct;
     207    WriteBarrier<FunctionCodeBlock> m_codeBlockForCall;
     208    WriteBarrier<FunctionCodeBlock> m_codeBlockForConstruct;
    213209    RefPtr<TypeSet> m_returnStatementTypeSet;
    214210    WriteBarrier<InferredValue> m_singletonFunction;
Note: See TracChangeset for help on using the changeset viewer.