<?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>62014</bug_id>
          
          <creation_ts>2011-06-03 07:35:02 -0700</creation_ts>
          <short_desc>Undefined reference to v8::HeapProfiler::DefineWrapperClass() due to ScriptProfiler::initialize()</short_desc>
          <delta_ts>2011-06-06 02:08:28 -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>WebCore Misc.</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</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="Steve Block">steveblock</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>mnaganov</cc>
    
    <cc>pfeldman</cc>
    
    <cc>steveblock</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>414877</commentid>
    <comment_count>0</comment_count>
    <who name="Steve Block">steveblock</who>
    <bug_when>2011-06-03 07:35:02 -0700</bug_when>
    <thetext>http://trac.webkit.org/changeset/81265 added ScriptProfiler::initialize(), which calls v8::HeapProfiler::DefineWrapperClass().

On Android, this gives a linker error because we build v8 without ENABLE_LOGGING_AND_PROFILING defined.

Should there be enable guard around either the call site (in V8DOMWindowShell::initContextIfNeeded()) or implementation of ScriptProfiler::initialize() ?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>414889</commentid>
    <comment_count>1</comment_count>
    <who name="Mikhail Naganov">mnaganov</who>
    <bug_when>2011-06-03 07:44:26 -0700</bug_when>
    <thetext>I&apos;m sorry! Will fix today.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>415107</commentid>
    <comment_count>2</comment_count>
    <who name="Mikhail Naganov">mnaganov</who>
    <bug_when>2011-06-03 12:49:55 -0700</bug_when>
    <thetext>Fixed in V8: http://code.google.com/p/v8/source/detail?r=8170
I have defined stub implementations when profiling is disabled (consistent with the rest of the API implementation).
BTW, we are planning to do something with this option, as Crankshaft can&apos;t work w/o profiler parts. See http://code.google.com/p/v8/issues/detail?id=1271</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>415748</commentid>
    <comment_count>3</comment_count>
    <who name="Steve Block">steveblock</who>
    <bug_when>2011-06-06 02:08:28 -0700</bug_when>
    <thetext>Thanks Mikhail</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>