<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>105341</bug_id>
          
          <creation_ts>2012-12-18 13:51:35 -0800</creation_ts>
          <short_desc>[Mac] Remove Platform.h macros from JavaScriptCore Private Headers</short_desc>
          <delta_ts>2013-02-02 05:01:22 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>JavaScriptCore</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          <dependson>108749</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Joseph Pecoraro">joepeck</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ddkilzer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>794009</commentid>
    <comment_count>0</comment_count>
    <who name="Joseph Pecoraro">joepeck</who>
    <bug_when>2012-12-18 13:51:35 -0800</bug_when>
    <thetext>JavaScriptCore&apos;s public headers are free of Platform.h/Compiler.h macros, but it has numerous uses in its private headers. This should be cleaned up and &quot;PrivateHeaders&quot; added to the check for macros build phase.

    shell&gt; TARGET_BUILD_DIR=&quot;$build/Release&quot; PROJECT_NAME=&quot;JavaScriptCore&quot; SHALLOW_BUNDLE=&quot;NO&quot; ./Tools/Scripts/check-for-inappropriate-macros-in-external-headers PrivateHeaders
    ERROR: &apos;JavaScriptCore.framework/Versions/A/PrivateHeaders/AbstractMacroAssembler.h:36&apos; included forbidden macro &apos;ENABLE&apos; =&gt; &apos;#if ENABLE(ASSEMBLER)&apos;
    ERROR: &apos;JavaScriptCore.framework/Versions/A/PrivateHeaders/AbstractMacroAssembler.h:39&apos; included forbidden macro &apos;PLATFORM&apos; =&gt; &apos;#if PLATFORM(QT)&apos;
    ERROR: &apos;JavaScriptCore.framework/Versions/A/PrivateHeaders/AbstractMacroAssembler.h:40&apos; included forbidden macro &apos;ENABLE&apos; =&gt; &apos;#define ENABLE_JIT_CONSTANT_BLINDING 0&apos;
    ERROR: &apos;JavaScriptCore.framework/Versions/A/PrivateHeaders/AbstractMacroAssembler.h:43&apos; included forbidden macro &apos;ENABLE&apos; =&gt; &apos;#ifndef ENABLE_JIT_CONSTANT_BLINDING&apos;
    ...

If there are certain files where we will allow macros, the check-for-inappropriate-macros script can take individual files that we want to keep checking.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>796478</commentid>
    <comment_count>1</comment_count>
    <who name="David Kilzer (:ddkilzer)">ddkilzer</who>
    <bug_when>2012-12-21 14:52:27 -0800</bug_when>
    <thetext>(In reply to comment #0)
&gt;     ERROR: &apos;JavaScriptCore.framework/Versions/A/PrivateHeaders/AbstractMacroAssembler.h:36&apos; included forbidden macro &apos;ENABLE&apos; =&gt; &apos;#if ENABLE(ASSEMBLER)&apos;
&gt;     ERROR: &apos;JavaScriptCore.framework/Versions/A/PrivateHeaders/AbstractMacroAssembler.h:39&apos; included forbidden macro &apos;PLATFORM&apos; =&gt; &apos;#if PLATFORM(QT)&apos;

These appear to be real issues.

&gt;     ERROR: &apos;JavaScriptCore.framework/Versions/A/PrivateHeaders/AbstractMacroAssembler.h:40&apos; included forbidden macro &apos;ENABLE&apos; =&gt; &apos;#define ENABLE_JIT_CONSTANT_BLINDING 0&apos;
&gt;     ERROR: &apos;JavaScriptCore.framework/Versions/A/PrivateHeaders/AbstractMacroAssembler.h:43&apos; included forbidden macro &apos;ENABLE&apos; =&gt; &apos;#ifndef ENABLE_JIT_CONSTANT_BLINDING&apos;

These appear to be correct mitigation of the ENABLE() macros which the script shouldn&apos;t flagged as errors.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>