<?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>122929</bug_id>
          
          <creation_ts>2013-10-16 16:58:42 -0700</creation_ts>
          <short_desc>We need test coverage for just the Baseline JIT</short_desc>
          <delta_ts>2013-10-16 20:35:30 -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>JavaScriptCore</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</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>
          <dependson>122930</dependson>
    
    <dependson>122937</dependson>
    
    <dependson>122938</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Filip Pizlo">fpizlo</reporter>
          <assigned_to name="Filip Pizlo">fpizlo</assigned_to>
          <cc>ap</cc>
    
    <cc>barraclough</cc>
    
    <cc>ggaren</cc>
    
    <cc>mark.lam</cc>
    
    <cc>mhahnenberg</cc>
    
    <cc>msaboff</cc>
    
    <cc>oliver</cc>
    
    <cc>sam</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>940588</commentid>
    <comment_count>0</comment_count>
    <who name="Filip Pizlo">fpizlo</who>
    <bug_when>2013-10-16 16:58:42 -0700</bug_when>
    <thetext>Currently we can run tests for just the LLInt very easily, and we&apos;re getting better at running tests that are targeted at the DFG and FTL.  But the Baseline JIT needs some love, also.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>940598</commentid>
    <comment_count>1</comment_count>
      <attachid>214409</attachid>
    <who name="Filip Pizlo">fpizlo</who>
    <bug_when>2013-10-16 17:21:37 -0700</bug_when>
    <thetext>Created attachment 214409
the patch

Note, I will land this after I make sure that all of the tests pass in this configuration.  I suspect that I will see failures.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>940601</commentid>
    <comment_count>2</comment_count>
    <who name="Filip Pizlo">fpizlo</who>
    <bug_when>2013-10-16 17:28:18 -0700</bug_when>
    <thetext>Sure enough this reveals a crash:

mozilla-tests.yaml/ecma/Statements/12.10-1.js.mozilla-baseline: 12.10-1 The with statment
mozilla-tests.yaml/ecma/Statements/12.10-1.js.mozilla-baseline: ASSERTION FAILED: !Heap::heap(value) || Heap::heap(value) == Heap::heap(thisObject)
mozilla-tests.yaml/ecma/Statements/12.10-1.js.mozilla-baseline: /Volumes/Data/primary/OpenSource/Source/JavaScriptCore/runtime/JSObject.cpp(347) : static void JSC::JSObject::put(JSC::JSCell *, JSC::ExecState *, JSC::PropertyName, JSC::JSValue, JSC::PutPropertySlot &amp;)
mozilla-tests.yaml/ecma/Statements/12.10-1.js.mozilla-baseline: 1   0x10098ffd0 WTFCrash
mozilla-tests.yaml/ecma/Statements/12.10-1.js.mozilla-baseline: 2   0x10075c0cc JSC::JSObject::put(JSC::JSCell*, JSC::ExecState*, JSC::PropertyName, JSC::JSValue, JSC::PutPropertySlot&amp;)
mozilla-tests.yaml/ecma/Statements/12.10-1.js.mozilla-baseline: 3   0x100552cad JSC::JSValue::put(JSC::ExecState*, JSC::PropertyName, JSC::JSValue, JSC::PutPropertySlot&amp;)
mozilla-tests.yaml/ecma/Statements/12.10-1.js.mozilla-baseline: 4   0x10054df0e operationPutByIdNonStrictOptimizeWithReturnAddress
mozilla-tests.yaml/ecma/Statements/12.10-1.js.mozilla-baseline: 5   0x4e58cb207457
mozilla-tests.yaml/ecma/Statements/12.10-1.js.mozilla-baseline: 6   0x1006cad77 JSC::JITCode::execute(JSC::JSStack*, JSC::ExecState*, JSC::VM*)
mozilla-tests.yaml/ecma/Statements/12.10-1.js.mozilla-baseline: 7   0x1006adf8b JSC::Interpreter::execute(JSC::ProgramExecutable*, JSC::ExecState*, JSC::JSObject*)
mozilla-tests.yaml/ecma/Statements/12.10-1.js.mozilla-baseline: 8   0x10047980f JSC::evaluate(JSC::ExecState*, JSC::SourceCode const&amp;, JSC::JSValue, JSC::JSValue*)
mozilla-tests.yaml/ecma/Statements/12.10-1.js.mozilla-baseline: 9   0x100365827 runWithScripts(GlobalObject*, WTF::Vector&lt;Script, 0ul, WTF::CrashOnOverflow&gt; const&amp;, bool)
mozilla-tests.yaml/ecma/Statements/12.10-1.js.mozilla-baseline: 10  0x100364f1c jscmain(int, char**)
mozilla-tests.yaml/ecma/Statements/12.10-1.js.mozilla-baseline: 11  0x100364cf6 main
mozilla-tests.yaml/ecma/Statements/12.10-1.js.mozilla-baseline: 12  0x7fff845865fd start
mozilla-tests.yaml/ecma/Statements/12.10-1.js.mozilla-baseline: test_script_2124: line 2:  7580 Segmentation fault: 11  &quot;$@&quot; /Volumes/Data/primary/OpenSource/WebKitBuild/Debug/jsc --useLLInt\=false --useDFGJIT\=false /Volumes/Data/primary/OpenSource/Source/JavaScriptCore/tests/mozilla/ecma/shell.js 12.10-1.js
mozilla-tests.yaml/ecma/Statements/12.10-1.js.mozilla-baseline: ERROR: Unexpected exit code: 139</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>940602</commentid>
    <comment_count>3</comment_count>
    <who name="Filip Pizlo">fpizlo</who>
    <bug_when>2013-10-16 17:29:20 -0700</bug_when>
    <thetext>And another failure:

jsc-layout-tests.yaml/js/script-tests/dictionary-prototype-caching.js.layout-no-llint: DIFF FAILURE!
jsc-layout-tests.yaml/js/script-tests/dictionary-prototype-caching.js.layout-no-llint: --- /Volumes/Data/primary/OpenSource/LayoutTests/js/dictionary-prototype-caching-expected.txt	2013-10-01 11:22:42.000000000 -0700
jsc-layout-tests.yaml/js/script-tests/dictionary-prototype-caching.js.layout-no-llint: +++ /Volumes/Data/primary/OpenSource/WebKitBuild/Debug/jsc-stress-results/jsc-layout-tests.yaml/js/script-tests/dictionary-prototype-caching.js.layout-no-llint.out	2013-10-16 17:28:57.000000000 -0700
jsc-layout-tests.yaml/js/script-tests/dictionary-prototype-caching.js.layout-no-llint: @@ -9,7 +9,7 @@
jsc-layout-tests.yaml/js/script-tests/dictionary-prototype-caching.js.layout-no-llint:  PASS protoKeys is [1,2,3]
jsc-layout-tests.yaml/js/script-tests/dictionary-prototype-caching.js.layout-no-llint:  PASS testFunction(subclass1) is true
jsc-layout-tests.yaml/js/script-tests/dictionary-prototype-caching.js.layout-no-llint:  PASS testFunction(subclass2) is true
jsc-layout-tests.yaml/js/script-tests/dictionary-prototype-caching.js.layout-no-llint: -PASS testFunction(subclass2) is true
jsc-layout-tests.yaml/js/script-tests/dictionary-prototype-caching.js.layout-no-llint: +FAIL testFunction(subclass2) should be true. Was false.
jsc-layout-tests.yaml/js/script-tests/dictionary-prototype-caching.js.layout-no-llint:  PASS successfullyParsed is true
jsc-layout-tests.yaml/js/script-tests/dictionary-prototype-caching.js.layout-no-llint:  
jsc-layout-tests.yaml/js/script-tests/dictionary-prototype-caching.js.layout-no-llint:  TEST COMPLETE</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>940630</commentid>
    <comment_count>4</comment_count>
    <who name="Filip Pizlo">fpizlo</who>
    <bug_when>2013-10-16 19:48:59 -0700</bug_when>
    <thetext>(In reply to comment #2)
&gt; Sure enough this reveals a crash:
&gt; 
&gt; mozilla-tests.yaml/ecma/Statements/12.10-1.js.mozilla-baseline: 12.10-1 The with statment
&gt; mozilla-tests.yaml/ecma/Statements/12.10-1.js.mozilla-baseline: ASSERTION FAILED: !Heap::heap(value) || Heap::heap(value) == Heap::heap(thisObject)
&gt; mozilla-tests.yaml/ecma/Statements/12.10-1.js.mozilla-baseline: /Volumes/Data/primary/OpenSource/Source/JavaScriptCore/runtime/JSObject.cpp(347) : static void JSC::JSObject::put(JSC::JSCell *, JSC::ExecState *, JSC::PropertyName, JSC::JSValue, JSC::PutPropertySlot &amp;)
&gt; mozilla-tests.yaml/ecma/Statements/12.10-1.js.mozilla-baseline: 1   0x10098ffd0 WTFCrash
&gt; mozilla-tests.yaml/ecma/Statements/12.10-1.js.mozilla-baseline: 2   0x10075c0cc JSC::JSObject::put(JSC::JSCell*, JSC::ExecState*, JSC::PropertyName, JSC::JSValue, JSC::PutPropertySlot&amp;)
&gt; mozilla-tests.yaml/ecma/Statements/12.10-1.js.mozilla-baseline: 3   0x100552cad JSC::JSValue::put(JSC::ExecState*, JSC::PropertyName, JSC::JSValue, JSC::PutPropertySlot&amp;)
&gt; mozilla-tests.yaml/ecma/Statements/12.10-1.js.mozilla-baseline: 4   0x10054df0e operationPutByIdNonStrictOptimizeWithReturnAddress
&gt; mozilla-tests.yaml/ecma/Statements/12.10-1.js.mozilla-baseline: 5   0x4e58cb207457
&gt; mozilla-tests.yaml/ecma/Statements/12.10-1.js.mozilla-baseline: 6   0x1006cad77 JSC::JITCode::execute(JSC::JSStack*, JSC::ExecState*, JSC::VM*)
&gt; mozilla-tests.yaml/ecma/Statements/12.10-1.js.mozilla-baseline: 7   0x1006adf8b JSC::Interpreter::execute(JSC::ProgramExecutable*, JSC::ExecState*, JSC::JSObject*)
&gt; mozilla-tests.yaml/ecma/Statements/12.10-1.js.mozilla-baseline: 8   0x10047980f JSC::evaluate(JSC::ExecState*, JSC::SourceCode const&amp;, JSC::JSValue, JSC::JSValue*)
&gt; mozilla-tests.yaml/ecma/Statements/12.10-1.js.mozilla-baseline: 9   0x100365827 runWithScripts(GlobalObject*, WTF::Vector&lt;Script, 0ul, WTF::CrashOnOverflow&gt; const&amp;, bool)
&gt; mozilla-tests.yaml/ecma/Statements/12.10-1.js.mozilla-baseline: 10  0x100364f1c jscmain(int, char**)
&gt; mozilla-tests.yaml/ecma/Statements/12.10-1.js.mozilla-baseline: 11  0x100364cf6 main
&gt; mozilla-tests.yaml/ecma/Statements/12.10-1.js.mozilla-baseline: 12  0x7fff845865fd start
&gt; mozilla-tests.yaml/ecma/Statements/12.10-1.js.mozilla-baseline: test_script_2124: line 2:  7580 Segmentation fault: 11  &quot;$@&quot; /Volumes/Data/primary/OpenSource/WebKitBuild/Debug/jsc --useLLInt\=false --useDFGJIT\=false /Volumes/Data/primary/OpenSource/Source/JavaScriptCore/tests/mozilla/ecma/shell.js 12.10-1.js
&gt; mozilla-tests.yaml/ecma/Statements/12.10-1.js.mozilla-baseline: ERROR: Unexpected exit code: 139

Fix in: https://bugs.webkit.org/show_bug.cgi?id=122937</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>940642</commentid>
    <comment_count>5</comment_count>
    <who name="Filip Pizlo">fpizlo</who>
    <bug_when>2013-10-16 20:35:30 -0700</bug_when>
    <thetext>Landed in http://trac.webkit.org/changeset/157557</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>214409</attachid>
            <date>2013-10-16 17:21:37 -0700</date>
            <delta_ts>2013-10-16 20:26:46 -0700</delta_ts>
            <desc>the patch</desc>
            <filename>blah.patch</filename>
            <type>text/plain</type>
            <size>2567</size>
            <attacher name="Filip Pizlo">fpizlo</attacher>
            
              <data encoding="base64">SW5kZXg6IFRvb2xzL0NoYW5nZUxvZwo9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09Ci0tLSBUb29scy9DaGFuZ2VMb2cJKHJl
dmlzaW9uIDE1NzU0MykKKysrIFRvb2xzL0NoYW5nZUxvZwkod29ya2luZyBjb3B5KQpAQCAtMSwz
ICsxLDE1IEBACisyMDEzLTEwLTE2ICBGaWxpcCBQaXpsbyAgPGZwaXpsb0BhcHBsZS5jb20+CisK
KyAgICAgICAgV2UgbmVlZCB0ZXN0IGNvdmVyYWdlIGZvciBqdXN0IHRoZSBCYXNlbGluZSBKSV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ywgIi0tdXNlTExJbnQ9ZmFsc2UiLCAiLS11c2VERkdKSVQ9ZmFsc2UiKQor
ZW5kCisKIGRlZiBydW5Nb3ppbGxhVGVzdERGR0VhZ2VyTm9DSklUKG1vZGUsICpleHRyYUZpbGVz
KQogICAgIHJ1bk1vemlsbGFUZXN0KCJkZmctZWFnZXItbm8tY2ppdCIsIG1vZGUsIGV4dHJhRmls
ZXMsICItLWVuYWJsZUNvbmN1cnJlbnRKSVQ9ZmFsc2UiLCAqRUFHRVJfT1BUSU9OUykKIGVuZApA
QCAtNTA4LDYgKzUyMiw3IEBAIGVuZAogZGVmIGRlZmF1bHRSdW5Nb3ppbGxhVGVzdChtb2RlLCAq
ZXh0cmFGaWxlcykKICAgICBydW5Nb3ppbGxhVGVzdERlZmF1bHQobW9kZSwgKmV4dHJhRmlsZXMp
CiAgICAgcnVuTW96aWxsYVRlc3RMTEludChtb2RlLCAqZXh0cmFGaWxlcykKKyAgICBydW5Nb3pp
bGxhVGVzdEJhc2VsaW5lSklUKG1vZGUsICpleHRyYUZpbGVzKQogICAgIHJ1bk1vemlsbGFUZXN0
REZHRWFnZXJOb0NKSVQobW9kZSwgKmV4dHJhRmlsZXMpCiBlbmQKIApAQCAtNzA0LDYgKzcxOSw4
IEBAIHRvRGVsZXRlLmVhY2ggewogICAgIEZpbGUudW5saW5rKHBhcmFsbGVsRGlyICsgZmlsZW5h
bWUpCiB9CiAKK3B1dHMKKwogJHJ1bmxpc3QuZWFjaCB7CiAgICAgfCBwbGFuIHwKICAgICBwbGFu
LndyaXRlUnVuU2NyaXB0KHBhcmFsbGVsRGlyICsgInRlc3Rfc2NyaXB0XyN7cGxhbi5pbmRleH0i
KQo=
</data>
<flag name="review"
          id="236948"
          type_id="1"
          status="+"
          setter="sam"
    />
          </attachment>
      

    </bug>

</bugzilla>