Ignore:
Timestamp:
Jul 16, 2009, 4:28:34 PM (16 years ago)
Author:
[email protected]
Message:

2009-07-16 Zoltan Horvath <[email protected]>

Reviewed by Oliver Hunt.

Allow custom memory allocation control in ExceptionInfo and RareData struct
https://bugs.webkit.org/show_bug.cgi?id=27336

Inherits ExceptionInfo and RareData struct from FastAllocBase because these
have been instantiated by 'new' in JavaScriptCore/bytecode/CodeBlock.cpp:1289 and
in JavaScriptCore/bytecode/CodeBlock.h:453.

Remove unnecessary WTF
namespace from CodeBlock inheritance.
  • bytecode/CodeBlock.h:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/bytecode/CodeBlock.h

    r45609 r45995  
    222222#endif
    223223
    224     class CodeBlock : public WTF::FastAllocBase {
     224    class CodeBlock : public FastAllocBase {
    225225        friend class JIT;
    226226    public:
     
    494494        SymbolTable m_symbolTable;
    495495
    496         struct ExceptionInfo {
     496        struct ExceptionInfo : FastAllocBase {
    497497            Vector<ExpressionRangeInfo> m_expressionInfo;
    498498            Vector<LineInfo> m_lineInfo;
     
    505505        OwnPtr<ExceptionInfo> m_exceptionInfo;
    506506
    507         struct RareData {
     507        struct RareData : FastAllocBase {
    508508            Vector<HandlerInfo> m_exceptionHandlers;
    509509
Note: See TracChangeset for help on using the changeset viewer.