<?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>67979</bug_id>
          
          <creation_ts>2011-09-12 18:55:24 -0700</creation_ts>
          <short_desc>REGRESSION(94981): Non-JavaScriptCore builds cannot compile without compiling runtime/UString.cpp</short_desc>
          <delta_ts>2011-09-13 01:27:59 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>New Bugs</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>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="WebKit Review Bot">webkit.review.bot</reporter>
          <assigned_to name="WebKit Review Bot">webkit.review.bot</assigned_to>
          <cc>ap</cc>
    
    <cc>barraclough</cc>
    
    <cc>fishd</cc>
    
    <cc>ggaren</cc>
    
    <cc>jamesr</cc>
    
    <cc>msaboff</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>466024</commentid>
    <comment_count>0</comment_count>
    <who name="WebKit Review Bot">webkit.review.bot</who>
    <bug_when>2011-09-12 18:55:24 -0700</bug_when>
    <thetext>REGRESSION(94981): Non-JavaScriptCore builds cannot compile without compiling runtime/UString.cpp
Requested by jamesr_ on #webkit.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>466028</commentid>
    <comment_count>1</comment_count>
    <who name="James Robinson">jamesr</who>
    <bug_when>2011-09-12 18:59:05 -0700</bug_when>
    <thetext>http://trac.webkit.org/changeset/94981 added a caller to UString::latin1() in YarrInterpreter.cpp.  UString::latin1() is defined in runtime/UString.cpp, as opposed to most UString functions which are defined in UString.h.  This creates a new build time dependency on runtime/ from yarr/ which didn&apos;t previously exist.  For ports that build (or can build) without JSC this is a bit tricky to resolve, since compiling UString.cpp requires building the rest of runtime/ and (it seems from a brief inspection) most of the rest of JSC.

One fix would be to use the wtf/text/ string types instead of JSC::UString inside of YARR. Another option would be to put the definition of latin1() in UString.h.

What is the expected dependency graph here between runtime/, wtf/ and yarr/?

See http://trac.webkit.org/changeset/94997</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>466038</commentid>
    <comment_count>2</comment_count>
    <who name="James Robinson">jamesr</who>
    <bug_when>2011-09-12 19:20:49 -0700</bug_when>
    <thetext>WTF::String has a latin1() that looks identical to UString&apos;s.  Would it make sense for CharAccess be implemented in terms of WTF::String or WTF::StringImpl instead of JSC::Ustring?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>466150</commentid>
    <comment_count>3</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2011-09-12 23:03:44 -0700</bug_when>
    <thetext>This shouldn&apos;t have resulted in a rollout. Non-JSC builds are not required to be maintained by core developers - this was a condition for admitting those in trunk.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>466151</commentid>
    <comment_count>4</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2011-09-12 23:04:57 -0700</bug_when>
    <thetext>Sorry, I had absolutely no reason to complain - looks like there was no rollout. My apologies.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>466188</commentid>
    <comment_count>5</comment_count>
    <who name="Gavin Barraclough">barraclough</who>
    <bug_when>2011-09-13 01:27:59 -0700</bug_when>
    <thetext>&gt; What is the expected dependency graph here between runtime/, wtf/ and yarr/?

yarr is dependent on much of the rest of JSC.  e.g. yarr has a JIT and as such makes use of JSC assemblers classes.  Personally I would be interesting in making yarr depend solely on wtf, but this would mean moving the JIT code generation infrastructure into wtf, and I&apos;m not sure if I&apos;d find support for that idea. :-)

&gt; WTF::String has a latin1() that looks identical to UString&apos;s.  Would it make sense for CharAccess be implemented in terms of WTF::String or WTF::StringImpl instead of JSC::Ustring?

Yep, it should be possible to make this be in terms of StringImpl (or WTF::String, but StringImpl is used broadly throughout JSC &amp; WTF::String isn&apos;t currently).

In the longer term, the plan is for UString to go away (we very nearly finished unifying UString &amp; String some time back, but didn&apos;t quite get there), but CharAccess is a temporary class (a part of the process of introducing 8-bit string support to StringImpl), and CharAccess would likely be replaced by something that worked in terms of StringImpls or Strings anyway.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>