Changeset 45943 in webkit for trunk/JavaScriptCore


Ignore:
Timestamp:
Jul 15, 2009, 1:55:08 PM (16 years ago)
Author:
[email protected]
Message:

JavaScriptCore:

2009-07-15 Kwang Yul Seo <[email protected]>

Reviewed by Eric Seidel.

https://bugs.webkit.org/show_bug.cgi?id=26794
Make Yacc-generated parsers to use fastMalloc/fastFree.


Define YYMALLOC and YYFREE to fastMalloc and fastFree
respectively.

  • parser/Grammar.y:

WebCore:

2009-07-15 Kwang Yul Seo <[email protected]>

Reviewed by Eric Seidel.

https://bugs.webkit.org/show_bug.cgi?id=26794
Make Yacc-generated parsers to use fastMalloc/fastFree.


Define YYMALLOC and YYFREE to fastMalloc and fastFree
respectively.

  • css/CSSGrammar.y:
  • xml/XPathGrammar.y:
Location:
trunk/JavaScriptCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/ChangeLog

    r45933 r45943  
     12009-07-15  Kwang Yul Seo  <[email protected]>
     2
     3        Reviewed by Eric Seidel.
     4
     5        https://bugs.webkit.org/show_bug.cgi?id=26794
     6        Make Yacc-generated parsers to use fastMalloc/fastFree.
     7       
     8        Define YYMALLOC and YYFREE to fastMalloc and fastFree
     9        respectively.
     10
     11        * parser/Grammar.y:
     12
    1132009-07-15  Darin Adler  <[email protected]>
    214
  • trunk/JavaScriptCore/parser/Grammar.y

    r45106 r45943  
    3737#include "NodeInfo.h"
    3838#include "Parser.h"
     39#include <wtf/FastMalloc.h>
    3940#include <wtf/MathExtras.h>
     41
     42#define YYMALLOC fastMalloc
     43#define YYFREE fastFree
    4044
    4145#define YYMAXDEPTH 10000
     
    8892#pragma warning(disable: 4244)
    8993#pragma warning(disable: 4702)
    90 
    91 // At least some of the time, the declarations of malloc and free that bison
    92 // generates are causing warnings. A way to avoid this is to explicitly define
    93 // the macros so that bison doesn't try to declare malloc and free.
    94 #define YYMALLOC malloc
    95 #define YYFREE free
    9694
    9795#endif
Note: See TracChangeset for help on using the changeset viewer.