<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>[164092] trunk/Source/JavaScriptCore</title>
</head>
<body>

<style type="text/css"><!--
#msg dl.meta { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dl.meta dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer, #logmsg { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt;  }
#msg dl a { font-weight: bold}
#msg dl a:link    { color:#fc3; }
#msg dl a:active  { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { overflow: auto; background: #ffc; border: 1px #fa0 solid; padding: 6px; }
#logmsg { background: #ffc; border: 1px #fa0 solid; padding: 1em 1em 0 1em; }
#logmsg p, #logmsg pre, #logmsg blockquote { margin: 0 0 1em 0; }
#logmsg p, #logmsg li, #logmsg dt, #logmsg dd { line-height: 14pt; }
#logmsg h1, #logmsg h2, #logmsg h3, #logmsg h4, #logmsg h5, #logmsg h6 { margin: .5em 0; }
#logmsg h1:first-child, #logmsg h2:first-child, #logmsg h3:first-child, #logmsg h4:first-child, #logmsg h5:first-child, #logmsg h6:first-child { margin-top: 0; }
#logmsg ul, #logmsg ol { padding: 0; list-style-position: inside; margin: 0 0 0 1em; }
#logmsg ul { text-indent: -1em; padding-left: 1em; }#logmsg ol { text-indent: -1.5em; padding-left: 1.5em; }
#logmsg > ul, #logmsg > ol { margin: 0 0 1em 0; }
#logmsg pre { background: #eee; padding: 1em; }
#logmsg blockquote { border: 1px solid #fa0; border-left-width: 10px; padding: 1em 1em 0 1em; background: white;}
#logmsg dl { margin: 0; }
#logmsg dt { font-weight: bold; }
#logmsg dd { margin: 0; padding: 0 0 0.5em 0; }
#logmsg dd:before { content:'\00bb';}
#logmsg table { border-spacing: 0px; border-collapse: collapse; border-top: 4px solid #fa0; border-bottom: 1px solid #fa0; background: #fff; }
#logmsg table th { text-align: left; font-weight: normal; padding: 0.2em 0.5em; border-top: 1px dotted #fa0; }
#logmsg table td { text-align: right; border-top: 1px dotted #fa0; padding: 0.2em 0.5em; }
#logmsg table thead th { text-align: center; border-bottom: 1px solid #fa0; }
#logmsg table th.Corner { text-align: left; }
#logmsg hr { border: none 0; border-top: 2px dashed #fa0; height: 1px; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff  {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<div id="msg">
<dl class="meta">
<dt>Revision</dt> <dd><a href="http://trac.webkit.org/projects/webkit/changeset/164092">164092</a></dd>
<dt>Author</dt> <dd>fpizlo@apple.com</dd>
<dt>Date</dt> <dd>2014-02-13 21:37:38 -0800 (Thu, 13 Feb 2014)</dd>
</dl>

<h3>Log Message</h3>
<pre>Kill some of the last vestiges of the C++ interpreter's PICs
https://bugs.webkit.org/show_bug.cgi?id=128796

Reviewed by Michael Saboff.

* bytecode/BytecodeUseDef.h:
(JSC::computeUsesForBytecodeOffset):
(JSC::computeDefsForBytecodeOffset):
* bytecode/CodeBlock.cpp:
(JSC::CodeBlock::printGetByIdOp):
(JSC::CodeBlock::printGetByIdCacheStatus):
(JSC::CodeBlock::dumpBytecode):
(JSC::CodeBlock::CodeBlock):
* bytecode/GetByIdStatus.cpp:
(JSC::GetByIdStatus::computeForStubInfo):
* bytecode/Opcode.h:
(JSC::padOpcodeName):
* bytecode/PolymorphicAccessStructureList.h:
(JSC::PolymorphicAccessStructureList::PolymorphicStubInfo::PolymorphicStubInfo):
(JSC::PolymorphicAccessStructureList::PolymorphicStubInfo::set):
(JSC::PolymorphicAccessStructureList::PolymorphicAccessStructureList):
(JSC::PolymorphicAccessStructureList::visitWeak):
* bytecode/StructureStubInfo.cpp:
(JSC::StructureStubInfo::deref):
(JSC::StructureStubInfo::visitWeakReferences):
* bytecode/StructureStubInfo.h:
(JSC::isGetByIdAccess):
* jit/JIT.cpp:
(JSC::JIT::privateCompileMainPass):
* jit/Repatch.cpp:
(JSC::getPolymorphicStructureList):
(JSC::tryBuildGetByIDList):
* llint/LowLevelInterpreter.asm:</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkSourceJavaScriptCoreChangeLog">trunk/Source/JavaScriptCore/ChangeLog</a></li>
<li><a href="#trunkSourceJavaScriptCorebytecodeBytecodeUseDefh">trunk/Source/JavaScriptCore/bytecode/BytecodeUseDef.h</a></li>
<li><a href="#trunkSourceJavaScriptCorebytecodeCodeBlockcpp">trunk/Source/JavaScriptCore/bytecode/CodeBlock.cpp</a></li>
<li><a href="#trunkSourceJavaScriptCorebytecodeGetByIdStatuscpp">trunk/Source/JavaScriptCore/bytecode/GetByIdStatus.cpp</a></li>
<li><a href="#trunkSourceJavaScriptCorebytecodeOpcodeh">trunk/Source/JavaScriptCore/bytecode/Opcode.h</a></li>
<li><a href="#trunkSourceJavaScriptCorebytecodePolymorphicAccessStructureListh">trunk/Source/JavaScriptCore/bytecode/PolymorphicAccessStructureList.h</a></li>
<li><a href="#trunkSourceJavaScriptCorebytecodeStructureStubInfocpp">trunk/Source/JavaScriptCore/bytecode/StructureStubInfo.cpp</a></li>
<li><a href="#trunkSourceJavaScriptCorebytecodeStructureStubInfoh">trunk/Source/JavaScriptCore/bytecode/StructureStubInfo.h</a></li>
<li><a href="#trunkSourceJavaScriptCorejitJITcpp">trunk/Source/JavaScriptCore/jit/JIT.cpp</a></li>
<li><a href="#trunkSourceJavaScriptCorejitRepatchcpp">trunk/Source/JavaScriptCore/jit/Repatch.cpp</a></li>
<li><a href="#trunkSourceJavaScriptCorellintLowLevelInterpreterasm">trunk/Source/JavaScriptCore/llint/LowLevelInterpreter.asm</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkSourceJavaScriptCoreChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Source/JavaScriptCore/ChangeLog (164091 => 164092)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/JavaScriptCore/ChangeLog        2014-02-14 04:03:59 UTC (rev 164091)
+++ trunk/Source/JavaScriptCore/ChangeLog        2014-02-14 05:37:38 UTC (rev 164092)
</span><span class="lines">@@ -1,3 +1,39 @@
</span><ins>+2014-02-13  Filip Pizlo  &lt;fpizlo@apple.com&gt;
+
+        Kill some of the last vestiges of the C++ interpreter's PICs
+        https://bugs.webkit.org/show_bug.cgi?id=128796
+
+        Reviewed by Michael Saboff.
+
+        * bytecode/BytecodeUseDef.h:
+        (JSC::computeUsesForBytecodeOffset):
+        (JSC::computeDefsForBytecodeOffset):
+        * bytecode/CodeBlock.cpp:
+        (JSC::CodeBlock::printGetByIdOp):
+        (JSC::CodeBlock::printGetByIdCacheStatus):
+        (JSC::CodeBlock::dumpBytecode):
+        (JSC::CodeBlock::CodeBlock):
+        * bytecode/GetByIdStatus.cpp:
+        (JSC::GetByIdStatus::computeForStubInfo):
+        * bytecode/Opcode.h:
+        (JSC::padOpcodeName):
+        * bytecode/PolymorphicAccessStructureList.h:
+        (JSC::PolymorphicAccessStructureList::PolymorphicStubInfo::PolymorphicStubInfo):
+        (JSC::PolymorphicAccessStructureList::PolymorphicStubInfo::set):
+        (JSC::PolymorphicAccessStructureList::PolymorphicAccessStructureList):
+        (JSC::PolymorphicAccessStructureList::visitWeak):
+        * bytecode/StructureStubInfo.cpp:
+        (JSC::StructureStubInfo::deref):
+        (JSC::StructureStubInfo::visitWeakReferences):
+        * bytecode/StructureStubInfo.h:
+        (JSC::isGetByIdAccess):
+        * jit/JIT.cpp:
+        (JSC::JIT::privateCompileMainPass):
+        * jit/Repatch.cpp:
+        (JSC::getPolymorphicStructureList):
+        (JSC::tryBuildGetByIDList):
+        * llint/LowLevelInterpreter.asm:
+
</ins><span class="cx"> 2014-02-13  Mark Lam  &lt;mark.lam@apple.com&gt;
</span><span class="cx"> 
</span><span class="cx">         The JSContainerConvertor and ObjcContainerConvertor need to protect JSValueRefs. Part 2.
</span></span></pre></div>
<a id="trunkSourceJavaScriptCorebytecodeBytecodeUseDefh"></a>
<div class="modfile"><h4>Modified: trunk/Source/JavaScriptCore/bytecode/BytecodeUseDef.h (164091 => 164092)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/JavaScriptCore/bytecode/BytecodeUseDef.h        2014-02-14 04:03:59 UTC (rev 164091)
+++ trunk/Source/JavaScriptCore/bytecode/BytecodeUseDef.h        2014-02-14 05:37:38 UTC (rev 164092)
</span><span class="lines">@@ -99,13 +99,10 @@
</span><span class="cx">         return;
</span><span class="cx">     }
</span><span class="cx">     case op_put_by_index:
</span><del>-    case op_put_by_id_replace:
-    case op_put_by_id_transition:
</del><span class="cx">     case op_put_by_id_transition_direct:
</span><span class="cx">     case op_put_by_id_transition_direct_out_of_line:
</span><span class="cx">     case op_put_by_id_transition_normal:
</span><span class="cx">     case op_put_by_id_transition_normal_out_of_line:
</span><del>-    case op_put_by_id_generic:
</del><span class="cx">     case op_put_by_id_out_of_line:
</span><span class="cx">     case op_put_by_id:
</span><span class="cx">     case op_put_to_scope: {
</span><span class="lines">@@ -126,18 +123,7 @@
</span><span class="cx">     case op_to_primitive:
</span><span class="cx">     case op_get_by_id:
</span><span class="cx">     case op_get_by_id_out_of_line:
</span><del>-    case op_get_by_id_self:
-    case op_get_by_id_proto:
-    case op_get_by_id_chain:
-    case op_get_by_id_getter_self:
-    case op_get_by_id_getter_proto:
-    case op_get_by_id_getter_chain:
-    case op_get_by_id_custom_self:
-    case op_get_by_id_custom_proto:
-    case op_get_by_id_custom_chain:
-    case op_get_by_id_generic:
</del><span class="cx">     case op_get_array_length:
</span><del>-    case op_get_string_length:
</del><span class="cx">     case op_get_arguments_length:
</span><span class="cx">     case op_typeof:
</span><span class="cx">     case op_is_undefined:
</span><span class="lines">@@ -291,13 +277,10 @@
</span><span class="cx">     case op_switch_string:
</span><span class="cx">     case op_put_by_id:
</span><span class="cx">     case op_put_by_id_out_of_line:
</span><del>-    case op_put_by_id_replace:
-    case op_put_by_id_transition:
</del><span class="cx">     case op_put_by_id_transition_direct:
</span><span class="cx">     case op_put_by_id_transition_direct_out_of_line:
</span><span class="cx">     case op_put_by_id_transition_normal:
</span><span class="cx">     case op_put_by_id_transition_normal_out_of_line:
</span><del>-    case op_put_by_id_generic:
</del><span class="cx">     case op_put_getter_setter:
</span><span class="cx">     case op_put_by_val:
</span><span class="cx">     case op_put_by_val_direct:
</span><span class="lines">@@ -330,18 +313,7 @@
</span><span class="cx">     case op_construct:
</span><span class="cx">     case op_get_by_id:
</span><span class="cx">     case op_get_by_id_out_of_line:
</span><del>-    case op_get_by_id_self:
-    case op_get_by_id_proto:
-    case op_get_by_id_chain:
-    case op_get_by_id_getter_self:
-    case op_get_by_id_getter_proto:
-    case op_get_by_id_getter_chain:
-    case op_get_by_id_custom_self:
-    case op_get_by_id_custom_proto:
-    case op_get_by_id_custom_chain:
-    case op_get_by_id_generic:
</del><span class="cx">     case op_get_array_length:
</span><del>-    case op_get_string_length:
</del><span class="cx">     case op_check_has_instance:
</span><span class="cx">     case op_instanceof:
</span><span class="cx">     case op_get_by_val:
</span></span></pre></div>
<a id="trunkSourceJavaScriptCorebytecodeCodeBlockcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/JavaScriptCore/bytecode/CodeBlock.cpp (164091 => 164092)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/JavaScriptCore/bytecode/CodeBlock.cpp        2014-02-14 04:03:59 UTC (rev 164091)
+++ trunk/Source/JavaScriptCore/bytecode/CodeBlock.cpp        2014-02-14 05:37:38 UTC (rev 164092)
</span><span class="lines">@@ -264,42 +264,9 @@
</span><span class="cx">     case op_get_by_id_out_of_line:
</span><span class="cx">         op = &quot;get_by_id_out_of_line&quot;;
</span><span class="cx">         break;
</span><del>-    case op_get_by_id_self:
-        op = &quot;get_by_id_self&quot;;
-        break;
-    case op_get_by_id_proto:
-        op = &quot;get_by_id_proto&quot;;
-        break;
-    case op_get_by_id_chain:
-        op = &quot;get_by_id_chain&quot;;
-        break;
-    case op_get_by_id_getter_self:
-        op = &quot;get_by_id_getter_self&quot;;
-        break;
-    case op_get_by_id_getter_proto:
-        op = &quot;get_by_id_getter_proto&quot;;
-        break;
-    case op_get_by_id_getter_chain:
-        op = &quot;get_by_id_getter_chain&quot;;
-        break;
-    case op_get_by_id_custom_self:
-        op = &quot;get_by_id_custom_self&quot;;
-        break;
-    case op_get_by_id_custom_proto:
-        op = &quot;get_by_id_custom_proto&quot;;
-        break;
-    case op_get_by_id_custom_chain:
-        op = &quot;get_by_id_custom_chain&quot;;
-        break;
-    case op_get_by_id_generic:
-        op = &quot;get_by_id_generic&quot;;
-        break;
</del><span class="cx">     case op_get_array_length:
</span><span class="cx">         op = &quot;array_length&quot;;
</span><span class="cx">         break;
</span><del>-    case op_get_string_length:
-        op = &quot;string_length&quot;;
-        break;
</del><span class="cx">     default:
</span><span class="cx">         RELEASE_ASSERT_NOT_REACHED();
</span><span class="cx">         op = 0;
</span><span class="lines">@@ -382,11 +349,6 @@
</span><span class="cx">                 out.printf(&quot;self&quot;);
</span><span class="cx">                 baseStructure = stubInfo.u.getByIdSelf.baseObjectStructure.get();
</span><span class="cx">                 break;
</span><del>-            case access_get_by_id_proto:
-                out.printf(&quot;proto&quot;);
-                baseStructure = stubInfo.u.getByIdProto.baseObjectStructure.get();
-                prototypeStructure = stubInfo.u.getByIdProto.prototypeStructure.get();
-                break;
</del><span class="cx">             case access_get_by_id_chain:
</span><span class="cx">                 out.printf(&quot;chain&quot;);
</span><span class="cx">                 baseStructure = stubInfo.u.getByIdChain.baseObjectStructure.get();
</span><span class="lines">@@ -397,11 +359,6 @@
</span><span class="cx">                 structureList = stubInfo.u.getByIdSelfList.structureList;
</span><span class="cx">                 listSize = stubInfo.u.getByIdSelfList.listSize;
</span><span class="cx">                 break;
</span><del>-            case access_get_by_id_proto_list:
-                out.printf(&quot;proto_list&quot;);
-                structureList = stubInfo.u.getByIdProtoList.structureList;
-                listSize = stubInfo.u.getByIdProtoList.listSize;
-                break;
</del><span class="cx">             case access_unset:
</span><span class="cx">                 out.printf(&quot;unset&quot;);
</span><span class="cx">                 break;
</span><span class="lines">@@ -441,16 +398,9 @@
</span><span class="cx">                         out.printf(&quot;, &quot;);
</span><span class="cx">                     out.printf(&quot;(&quot;);
</span><span class="cx">                     dumpStructure(out, &quot;base&quot;, exec, structureList-&gt;list[i].base.get(), ident);
</span><del>-                    if (structureList-&gt;list[i].isChain) {
-                        if (structureList-&gt;list[i].u.chain.get()) {
-                            out.printf(&quot;, &quot;);
-                            dumpChain(out, exec, structureList-&gt;list[i].u.chain.get(), ident);
-                        }
-                    } else {
-                        if (structureList-&gt;list[i].u.proto.get()) {
-                            out.printf(&quot;, &quot;);
-                            dumpStructure(out, &quot;proto&quot;, exec, structureList-&gt;list[i].u.proto.get(), ident);
-                        }
</del><ins>+                    if (structureList-&gt;list[i].chain.get()) {
+                        out.printf(&quot;, &quot;);
+                        dumpChain(out, exec, structureList-&gt;list[i].chain.get(), ident);
</ins><span class="cx">                     }
</span><span class="cx">                     out.printf(&quot;)&quot;);
</span><span class="cx">                 }
</span><span class="lines">@@ -967,18 +917,7 @@
</span><span class="cx">         }
</span><span class="cx">         case op_get_by_id:
</span><span class="cx">         case op_get_by_id_out_of_line:
</span><del>-        case op_get_by_id_self:
-        case op_get_by_id_proto:
-        case op_get_by_id_chain:
-        case op_get_by_id_getter_self:
-        case op_get_by_id_getter_proto:
-        case op_get_by_id_getter_chain:
-        case op_get_by_id_custom_self:
-        case op_get_by_id_custom_proto:
-        case op_get_by_id_custom_chain:
-        case op_get_by_id_generic:
-        case op_get_array_length:
-        case op_get_string_length: {
</del><ins>+        case op_get_array_length: {
</ins><span class="cx">             printGetByIdOp(out, exec, location, it);
</span><span class="cx">             printGetByIdCacheStatus(out, exec, location, map);
</span><span class="cx">             dumpValueProfiling(out, it, hasPrintedProfiling);
</span><span class="lines">@@ -997,14 +936,6 @@
</span><span class="cx">             printPutByIdOp(out, exec, location, it, &quot;put_by_id_out_of_line&quot;);
</span><span class="cx">             break;
</span><span class="cx">         }
</span><del>-        case op_put_by_id_replace: {
-            printPutByIdOp(out, exec, location, it, &quot;put_by_id_replace&quot;);
-            break;
-        }
-        case op_put_by_id_transition: {
-            printPutByIdOp(out, exec, location, it, &quot;put_by_id_transition&quot;);
-            break;
-        }
</del><span class="cx">         case op_put_by_id_transition_direct: {
</span><span class="cx">             printPutByIdOp(out, exec, location, it, &quot;put_by_id_transition_direct&quot;);
</span><span class="cx">             break;
</span><span class="lines">@@ -1021,10 +952,6 @@
</span><span class="cx">             printPutByIdOp(out, exec, location, it, &quot;put_by_id_transition_normal_out_of_line&quot;);
</span><span class="cx">             break;
</span><span class="cx">         }
</span><del>-        case op_put_by_id_generic: {
-            printPutByIdOp(out, exec, location, it, &quot;put_by_id_generic&quot;);
-            break;
-        }
</del><span class="cx">         case op_put_getter_setter: {
</span><span class="cx">             int r0 = (++it)-&gt;u.operand;
</span><span class="cx">             int id0 = (++it)-&gt;u.operand;
</span><span class="lines">@@ -1778,18 +1705,7 @@
</span><span class="cx">             break;
</span><span class="cx">         }
</span><span class="cx">         case op_get_by_id_out_of_line:
</span><del>-        case op_get_by_id_self:
-        case op_get_by_id_proto:
-        case op_get_by_id_chain:
-        case op_get_by_id_getter_self:
-        case op_get_by_id_getter_proto:
-        case op_get_by_id_getter_chain:
-        case op_get_by_id_custom_self:
-        case op_get_by_id_custom_proto:
-        case op_get_by_id_custom_chain:
-        case op_get_by_id_generic:
</del><span class="cx">         case op_get_array_length:
</span><del>-        case op_get_string_length:
</del><span class="cx">             CRASH();
</span><span class="cx"> 
</span><span class="cx">         case op_init_global_const_nop: {
</span></span></pre></div>
<a id="trunkSourceJavaScriptCorebytecodeGetByIdStatuscpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/JavaScriptCore/bytecode/GetByIdStatus.cpp (164091 => 164092)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/JavaScriptCore/bytecode/GetByIdStatus.cpp        2014-02-14 04:03:59 UTC (rev 164091)
+++ trunk/Source/JavaScriptCore/bytecode/GetByIdStatus.cpp        2014-02-14 05:37:38 UTC (rev 164092)
</span><span class="lines">@@ -161,26 +161,16 @@
</span><span class="cx">     if (stubInfo-&gt;resetByGC)
</span><span class="cx">         return GetByIdStatus(TakesSlowPath, true);
</span><span class="cx"> 
</span><del>-    PolymorphicAccessStructureList* list;
-    int listSize;
-    switch (stubInfo-&gt;accessType) {
-    case access_get_by_id_self_list:
</del><ins>+    PolymorphicAccessStructureList* list = 0;
+    int listSize = 0;
+    if (stubInfo-&gt;accessType == access_get_by_id_self_list) {
</ins><span class="cx">         list = stubInfo-&gt;u.getByIdSelfList.structureList;
</span><span class="cx">         listSize = stubInfo-&gt;u.getByIdSelfList.listSize;
</span><del>-        break;
-    case access_get_by_id_proto_list:
-        list = stubInfo-&gt;u.getByIdProtoList.structureList;
-        listSize = stubInfo-&gt;u.getByIdProtoList.listSize;
-        break;
-    default:
-        list = 0;
-        listSize = 0;
-        break;
</del><ins>+        for (int i = 0; i &lt; listSize; ++i) {
+            if (!list-&gt;list[i].isDirect)
+                return GetByIdStatus(MakesCalls, true);
+        }
</ins><span class="cx">     }
</span><del>-    for (int i = 0; i &lt; listSize; ++i) {
-        if (!list-&gt;list[i].isDirect)
-            return GetByIdStatus(MakesCalls, true);
-    }
</del><span class="cx">     
</span><span class="cx">     // Finally figure out if we can derive an access strategy.
</span><span class="cx">     GetByIdStatus result;
</span><span class="lines">@@ -250,17 +240,6 @@
</span><span class="cx">         break;
</span><span class="cx">     }
</span><span class="cx">         
</span><del>-    case access_get_by_id_proto: {
-        if (!stubInfo-&gt;u.getByIdProto.isDirect)
-            return GetByIdStatus(MakesCalls, true);
-        result.m_chain = adoptRef(new IntendedStructureChain(
-            profiledBlock,
-            stubInfo-&gt;u.getByIdProto.baseObjectStructure.get(),
-            stubInfo-&gt;u.getByIdProto.prototypeStructure.get()));
-        computeForChain(result, profiledBlock, uid);
-        break;
-    }
-        
</del><span class="cx">     case access_get_by_id_chain: {
</span><span class="cx">         if (!stubInfo-&gt;u.getByIdChain.isDirect)
</span><span class="cx">             return GetByIdStatus(MakesCalls, true);
</span></span></pre></div>
<a id="trunkSourceJavaScriptCorebytecodeOpcodeh"></a>
<div class="modfile"><h4>Modified: trunk/Source/JavaScriptCore/bytecode/Opcode.h (164091 => 164092)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/JavaScriptCore/bytecode/Opcode.h        2014-02-14 04:03:59 UTC (rev 164091)
+++ trunk/Source/JavaScriptCore/bytecode/Opcode.h        2014-02-14 05:37:38 UTC (rev 164092)
</span><span class="lines">@@ -102,28 +102,14 @@
</span><span class="cx">     macro(op_init_global_const, 5) \
</span><span class="cx">     macro(op_get_by_id, 9) /* has value profiling */ \
</span><span class="cx">     macro(op_get_by_id_out_of_line, 9) /* has value profiling */ \
</span><del>-    macro(op_get_by_id_self, 9) /* has value profiling */ \
-    macro(op_get_by_id_proto, 9) /* has value profiling */ \
-    macro(op_get_by_id_chain, 9) /* has value profiling */ \
-    macro(op_get_by_id_getter_self, 9) /* has value profiling */ \
-    macro(op_get_by_id_getter_proto, 9) /* has value profiling */ \
-    macro(op_get_by_id_getter_chain, 9) /* has value profiling */ \
-    macro(op_get_by_id_custom_self, 9) /* has value profiling */ \
-    macro(op_get_by_id_custom_proto, 9) /* has value profiling */ \
-    macro(op_get_by_id_custom_chain, 9) /* has value profiling */ \
-    macro(op_get_by_id_generic, 9) /* has value profiling */ \
</del><span class="cx">     macro(op_get_array_length, 9) /* has value profiling */ \
</span><del>-    macro(op_get_string_length, 9) /* has value profiling */ \
</del><span class="cx">     macro(op_get_arguments_length, 4) \
</span><span class="cx">     macro(op_put_by_id, 9) \
</span><span class="cx">     macro(op_put_by_id_out_of_line, 9) \
</span><del>-    macro(op_put_by_id_transition, 9) \
</del><span class="cx">     macro(op_put_by_id_transition_direct, 9) \
</span><span class="cx">     macro(op_put_by_id_transition_direct_out_of_line, 9) \
</span><span class="cx">     macro(op_put_by_id_transition_normal, 9) \
</span><span class="cx">     macro(op_put_by_id_transition_normal_out_of_line, 9) \
</span><del>-    macro(op_put_by_id_replace, 9) \
-    macro(op_put_by_id_generic, 9) \
</del><span class="cx">     macro(op_del_by_id, 4) \
</span><span class="cx">     macro(op_get_by_val, 6) /* has value profiling */ \
</span><span class="cx">     macro(op_get_argument_by_val, 6) /* must be the same size as op_get_by_val */ \
</span></span></pre></div>
<a id="trunkSourceJavaScriptCorebytecodePolymorphicAccessStructureListh"></a>
<div class="modfile"><h4>Modified: trunk/Source/JavaScriptCore/bytecode/PolymorphicAccessStructureList.h (164091 => 164092)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/JavaScriptCore/bytecode/PolymorphicAccessStructureList.h        2014-02-14 04:03:59 UTC (rev 164091)
+++ trunk/Source/JavaScriptCore/bytecode/PolymorphicAccessStructureList.h        2014-02-14 05:37:38 UTC (rev 164092)
</span><span class="lines">@@ -46,46 +46,32 @@
</span><span class="cx">     WTF_MAKE_FAST_ALLOCATED;
</span><span class="cx"> public:
</span><span class="cx">     struct PolymorphicStubInfo {
</span><del>-        bool isChain;
-        bool isDirect;
</del><ins>+        bool isDirect : 1;
+        unsigned count : 31;
</ins><span class="cx">         RefPtr&lt;JITStubRoutine&gt; stubRoutine;
</span><span class="cx">         WriteBarrier&lt;Structure&gt; base;
</span><del>-        union {
-            WriteBarrierBase&lt;Structure&gt; proto;
-            WriteBarrierBase&lt;StructureChain&gt; chain;
-        } u;
</del><ins>+        WriteBarrier&lt;StructureChain&gt; chain;
</ins><span class="cx"> 
</span><span class="cx">         PolymorphicStubInfo()
</span><span class="cx">         {
</span><del>-            u.proto.clear();
</del><span class="cx">         }
</span><span class="cx"> 
</span><span class="cx">         void set(VM&amp; vm, JSCell* owner, PassRefPtr&lt;JITStubRoutine&gt; _stubRoutine, Structure* _base, bool _isDirect)
</span><span class="cx">         {
</span><span class="cx">             stubRoutine = _stubRoutine;
</span><span class="cx">             base.set(vm, owner, _base);
</span><del>-            u.proto.clear();
-            isChain = false;
</del><span class="cx">             isDirect = _isDirect;
</span><ins>+            count = 0;
</ins><span class="cx">         }
</span><span class="cx">             
</span><del>-        void set(VM&amp; vm, JSCell* owner, PassRefPtr&lt;JITStubRoutine&gt; _stubRoutine, Structure* _base, Structure* _proto, bool _isDirect)
</del><ins>+        void set(VM&amp; vm, JSCell* owner, PassRefPtr&lt;JITStubRoutine&gt; _stubRoutine, Structure* _base, StructureChain* _chain, bool _isDirect, unsigned _count)
</ins><span class="cx">         {
</span><span class="cx">             stubRoutine = _stubRoutine;
</span><span class="cx">             base.set(vm, owner, _base);
</span><del>-            u.proto.set(vm, owner, _proto);
-            isChain = false;
</del><ins>+            chain.set(vm, owner, _chain);
</ins><span class="cx">             isDirect = _isDirect;
</span><ins>+            count = _count;
</ins><span class="cx">         }
</span><del>-            
-        void set(VM&amp; vm, JSCell* owner, PassRefPtr&lt;JITStubRoutine&gt; _stubRoutine, Structure* _base, StructureChain* _chain, bool _isDirect)
-        {
-            stubRoutine = _stubRoutine;
-            base.set(vm, owner, _base);
-            u.chain.set(vm, owner, _chain);
-            isChain = true;
-            isDirect = _isDirect;
-        }
</del><span class="cx">     } list[POLYMORPHIC_LIST_CACHE_SIZE];
</span><span class="cx">         
</span><span class="cx">     PolymorphicAccessStructureList()
</span><span class="lines">@@ -97,34 +83,22 @@
</span><span class="cx">         list[0].set(vm, owner, stubRoutine, firstBase, isDirect);
</span><span class="cx">     }
</span><span class="cx"> 
</span><del>-    PolymorphicAccessStructureList(VM&amp; vm, JSCell* owner, PassRefPtr&lt;JITStubRoutine&gt; stubRoutine, Structure* firstBase, Structure* firstProto, bool isDirect)
</del><ins>+    PolymorphicAccessStructureList(VM&amp; vm, JSCell* owner, PassRefPtr&lt;JITStubRoutine&gt; stubRoutine, Structure* firstBase, StructureChain* firstChain, bool isDirect, unsigned count)
</ins><span class="cx">     {
</span><del>-        list[0].set(vm, owner, stubRoutine, firstBase, firstProto, isDirect);
</del><ins>+        list[0].set(vm, owner, stubRoutine, firstBase, firstChain, isDirect, count);
</ins><span class="cx">     }
</span><span class="cx"> 
</span><del>-    PolymorphicAccessStructureList(VM&amp; vm, JSCell* owner, PassRefPtr&lt;JITStubRoutine&gt; stubRoutine, Structure* firstBase, StructureChain* firstChain, bool isDirect)
-    {
-        list[0].set(vm, owner, stubRoutine, firstBase, firstChain, isDirect);
-    }
-
</del><span class="cx">     bool visitWeak(int count)
</span><span class="cx">     {
</span><span class="cx">         for (int i = 0; i &lt; count; ++i) {
</span><span class="cx">             PolymorphicStubInfo&amp; info = list[i];
</span><del>-            if (!info.base) {
-                // We're being marked during initialisation of an entry
-                ASSERT(!info.u.proto);
</del><ins>+            if (!info.base)
</ins><span class="cx">                 continue;
</span><del>-            }
</del><span class="cx">                 
</span><span class="cx">             if (!Heap::isMarked(info.base.get()))
</span><span class="cx">                 return false;
</span><del>-            if (info.u.proto &amp;&amp; !info.isChain
-                &amp;&amp; !Heap::isMarked(info.u.proto.get()))
</del><ins>+            if (info.chain &amp;&amp; !Heap::isMarked(info.chain.get()))
</ins><span class="cx">                 return false;
</span><del>-            if (info.u.chain &amp;&amp; info.isChain
-                &amp;&amp; !Heap::isMarked(info.u.chain.get()))
-                return false;
</del><span class="cx">         }
</span><span class="cx">             
</span><span class="cx">         return true;
</span></span></pre></div>
<a id="trunkSourceJavaScriptCorebytecodeStructureStubInfocpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/JavaScriptCore/bytecode/StructureStubInfo.cpp (164091 => 164092)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/JavaScriptCore/bytecode/StructureStubInfo.cpp        2014-02-14 04:03:59 UTC (rev 164091)
+++ trunk/Source/JavaScriptCore/bytecode/StructureStubInfo.cpp        2014-02-14 05:37:38 UTC (rev 164092)
</span><span class="lines">@@ -41,11 +41,6 @@
</span><span class="cx">         delete polymorphicStructures;
</span><span class="cx">         return;
</span><span class="cx">     }
</span><del>-    case access_get_by_id_proto_list: {
-        PolymorphicAccessStructureList* polymorphicStructures = u.getByIdProtoList.structureList;
-        delete polymorphicStructures;
-        return;
-    }
</del><span class="cx">     case access_put_by_id_list:
</span><span class="cx">         delete u.putByIdList.list;
</span><span class="cx">         return;
</span><span class="lines">@@ -55,7 +50,6 @@
</span><span class="cx">         return;
</span><span class="cx">     }
</span><span class="cx">     case access_get_by_id_self:
</span><del>-    case access_get_by_id_proto:
</del><span class="cx">     case access_get_by_id_chain:
</span><span class="cx">     case access_put_by_id_transition_normal:
</span><span class="cx">     case access_put_by_id_transition_direct:
</span><span class="lines">@@ -79,11 +73,6 @@
</span><span class="cx">         if (!Heap::isMarked(u.getByIdSelf.baseObjectStructure.get()))
</span><span class="cx">             return false;
</span><span class="cx">         break;
</span><del>-    case access_get_by_id_proto:
-        if (!Heap::isMarked(u.getByIdProto.baseObjectStructure.get())
-            || !Heap::isMarked(u.getByIdProto.prototypeStructure.get()))
-            return false;
-        break;
</del><span class="cx">     case access_get_by_id_chain:
</span><span class="cx">         if (!Heap::isMarked(u.getByIdChain.baseObjectStructure.get())
</span><span class="cx">             || !Heap::isMarked(u.getByIdChain.chain.get()))
</span><span class="lines">@@ -95,12 +84,6 @@
</span><span class="cx">             return false;
</span><span class="cx">         break;
</span><span class="cx">     }
</span><del>-    case access_get_by_id_proto_list: {
-        PolymorphicAccessStructureList* polymorphicStructures = u.getByIdProtoList.structureList;
-        if (!polymorphicStructures-&gt;visitWeak(u.getByIdProtoList.listSize))
-            return false;
-        break;
-    }
</del><span class="cx">     case access_put_by_id_transition_normal:
</span><span class="cx">     case access_put_by_id_transition_direct:
</span><span class="cx">         if (!Heap::isMarked(u.putByIdTransition.previousStructure.get())
</span></span></pre></div>
<a id="trunkSourceJavaScriptCorebytecodeStructureStubInfoh"></a>
<div class="modfile"><h4>Modified: trunk/Source/JavaScriptCore/bytecode/StructureStubInfo.h (164091 => 164092)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/JavaScriptCore/bytecode/StructureStubInfo.h        2014-02-14 04:03:59 UTC (rev 164091)
+++ trunk/Source/JavaScriptCore/bytecode/StructureStubInfo.h        2014-02-14 05:37:38 UTC (rev 164092)
</span><span class="lines">@@ -47,10 +47,8 @@
</span><span class="cx"> 
</span><span class="cx"> enum AccessType {
</span><span class="cx">     access_get_by_id_self,
</span><del>-    access_get_by_id_proto,
</del><span class="cx">     access_get_by_id_chain,
</span><span class="cx">     access_get_by_id_self_list,
</span><del>-    access_get_by_id_proto_list,
</del><span class="cx">     access_put_by_id_transition_normal,
</span><span class="cx">     access_put_by_id_transition_direct,
</span><span class="cx">     access_put_by_id_replace,
</span><span class="lines">@@ -67,10 +65,8 @@
</span><span class="cx"> {
</span><span class="cx">     switch (accessType) {
</span><span class="cx">     case access_get_by_id_self:
</span><del>-    case access_get_by_id_proto:
</del><span class="cx">     case access_get_by_id_chain:
</span><span class="cx">     case access_get_by_id_self_list:
</span><del>-    case access_get_by_id_proto_list:
</del><span class="cx">     case access_get_by_id_generic:
</span><span class="cx">     case access_get_array_length:
</span><span class="cx">     case access_get_string_length:
</span><span class="lines">@@ -138,14 +134,6 @@
</span><span class="cx">         u.getByIdSelfList.didSelfPatching = didSelfPatching;
</span><span class="cx">     }
</span><span class="cx"> 
</span><del>-    void initGetByIdProtoList(PolymorphicAccessStructureList* structureList, int listSize)
-    {
-        accessType = access_get_by_id_proto_list;
-
-        u.getByIdProtoList.structureList = structureList;
-        u.getByIdProtoList.listSize = listSize;
-    }
-
</del><span class="cx">     // PutById*
</span><span class="cx"> 
</span><span class="cx">     void initPutByIdTransition(VM&amp; vm, JSCell* owner, Structure* previousStructure, Structure* structure, StructureChain* chain, bool isDirect)
</span></span></pre></div>
<a id="trunkSourceJavaScriptCorejitJITcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/JavaScriptCore/jit/JIT.cpp (164091 => 164092)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/JavaScriptCore/jit/JIT.cpp        2014-02-14 04:03:59 UTC (rev 164091)
+++ trunk/Source/JavaScriptCore/jit/JIT.cpp        2014-02-14 05:37:38 UTC (rev 164092)
</span><span class="lines">@@ -290,22 +290,6 @@
</span><span class="cx">         DEFINE_OP(op_resolve_scope)
</span><span class="cx">         DEFINE_OP(op_get_from_scope)
</span><span class="cx">         DEFINE_OP(op_put_to_scope)
</span><del>-
-        case op_get_by_id_chain:
-        case op_get_by_id_generic:
-        case op_get_by_id_proto:
-        case op_get_by_id_self:
-        case op_get_by_id_getter_chain:
-        case op_get_by_id_getter_proto:
-        case op_get_by_id_getter_self:
-        case op_get_by_id_custom_chain:
-        case op_get_by_id_custom_proto:
-        case op_get_by_id_custom_self:
-        case op_get_string_length:
-        case op_put_by_id_generic:
-        case op_put_by_id_replace:
-        case op_put_by_id_transition:
-            RELEASE_ASSERT_NOT_REACHED();
</del><span class="cx">         }
</span><span class="cx">     }
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkSourceJavaScriptCorejitRepatchcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/JavaScriptCore/jit/Repatch.cpp (164091 => 164092)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/JavaScriptCore/jit/Repatch.cpp        2014-02-14 04:03:59 UTC (rev 164091)
+++ trunk/Source/JavaScriptCore/jit/Repatch.cpp        2014-02-14 05:37:38 UTC (rev 164092)
</span><span class="lines">@@ -501,7 +501,7 @@
</span><span class="cx">     } else if (stubInfo.accessType == access_get_by_id_chain) {
</span><span class="cx">         RELEASE_ASSERT(!!stubInfo.stubRoutine);
</span><span class="cx">         slowCase = CodeLocationLabel(stubInfo.stubRoutine-&gt;code().code());
</span><del>-        polymorphicStructureList = new PolymorphicAccessStructureList(*vm, codeBlock-&gt;ownerExecutable(), stubInfo.stubRoutine, stubInfo.u.getByIdChain.baseObjectStructure.get(), stubInfo.u.getByIdChain.chain.get(), true);
</del><ins>+        polymorphicStructureList = new PolymorphicAccessStructureList(*vm, codeBlock-&gt;ownerExecutable(), stubInfo.stubRoutine, stubInfo.u.getByIdChain.baseObjectStructure.get(), stubInfo.u.getByIdChain.chain.get(), stubInfo.u.getByIdChain.isDirect, stubInfo.u.getByIdChain.count);
</ins><span class="cx">         stubInfo.stubRoutine.clear();
</span><span class="cx">         stubInfo.initGetByIdSelfList(polymorphicStructureList, 1, false);
</span><span class="cx">         listIndex = 1;
</span><span class="lines">@@ -726,7 +726,7 @@
</span><span class="cx">         slowCase, stubRoutine) == ProtoChainGenerationFailed)
</span><span class="cx">         return false;
</span><span class="cx">     
</span><del>-    polymorphicStructureList-&gt;list[listIndex].set(*vm, codeBlock-&gt;ownerExecutable(), stubRoutine, structure, slot.isCacheableValue());
</del><ins>+    polymorphicStructureList-&gt;list[listIndex].set(*vm, codeBlock-&gt;ownerExecutable(), stubRoutine, structure, prototypeChain, slot.isCacheableValue(), count);
</ins><span class="cx">     
</span><span class="cx">     patchJumpToGetByIdStub(codeBlock, stubInfo, stubRoutine.get());
</span><span class="cx">     
</span></span></pre></div>
<a id="trunkSourceJavaScriptCorellintLowLevelInterpreterasm"></a>
<div class="modfile"><h4>Modified: trunk/Source/JavaScriptCore/llint/LowLevelInterpreter.asm (164091 => 164092)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/JavaScriptCore/llint/LowLevelInterpreter.asm        2014-02-14 04:03:59 UTC (rev 164091)
+++ trunk/Source/JavaScriptCore/llint/LowLevelInterpreter.asm        2014-02-14 05:37:38 UTC (rev 164092)
</span><span class="lines">@@ -1125,48 +1125,6 @@
</span><span class="cx">     end
</span><span class="cx"> end
</span><span class="cx"> 
</span><del>-_llint_op_get_by_id_chain:
-    notSupported()
-
-_llint_op_get_by_id_custom_chain:
-    notSupported()
-
-_llint_op_get_by_id_custom_proto:
-    notSupported()
-
-_llint_op_get_by_id_custom_self:
-    notSupported()
-
-_llint_op_get_by_id_generic:
-    notSupported()
-
-_llint_op_get_by_id_getter_chain:
-    notSupported()
-
-_llint_op_get_by_id_getter_proto:
-    notSupported()
-
-_llint_op_get_by_id_getter_self:
-    notSupported()
-
-_llint_op_get_by_id_proto:
-    notSupported()
-
-_llint_op_get_by_id_self:
-    notSupported()
-
-_llint_op_get_string_length:
-    notSupported()
-
-_llint_op_put_by_id_generic:
-    notSupported()
-
-_llint_op_put_by_id_replace:
-    notSupported()
-
-_llint_op_put_by_id_transition:
-    notSupported()
-
</del><span class="cx"> _llint_op_init_global_const_nop:
</span><span class="cx">     dispatch(5)
</span><span class="cx"> 
</span></span></pre>
</div>
</div>

</body>
</html>