<!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>[172120] trunk</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/172120">172120</a></dd>
<dt>Author</dt> <dd>commit-queue@webkit.org</dd>
<dt>Date</dt> <dd>2014-08-05 19:30:22 -0700 (Tue, 05 Aug 2014)</dd>
</dl>
<h3>Log Message</h3>
<pre>Unreviewed, rolling out <a href="http://trac.webkit.org/projects/webkit/changeset/172099">r172099</a>.
https://bugs.webkit.org/show_bug.cgi?id=135635
Needs a do-over. (Requested by kling on #webkit).
Reverted changeset:
"The JIT should cache property lookup misses."
https://bugs.webkit.org/show_bug.cgi?id=135578
http://trac.webkit.org/changeset/172099</pre>
<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkLayoutTestsChangeLog">trunk/LayoutTests/ChangeLog</a></li>
<li><a href="#trunkSourceJavaScriptCoreChangeLog">trunk/Source/JavaScriptCore/ChangeLog</a></li>
<li><a href="#trunkSourceJavaScriptCorejitRepatchcpp">trunk/Source/JavaScriptCore/jit/Repatch.cpp</a></li>
<li><a href="#trunkSourceJavaScriptCoreruntimePropertySloth">trunk/Source/JavaScriptCore/runtime/PropertySlot.h</a></li>
</ul>
<h3>Removed Paths</h3>
<ul>
<li><a href="#trunkLayoutTestsjsregressscripttestsundefinedpropertyaccessjs">trunk/LayoutTests/js/regress/script-tests/undefined-property-access.js</a></li>
<li><a href="#trunkLayoutTestsjsregressundefinedpropertyaccessexpectedtxt">trunk/LayoutTests/js/regress/undefined-property-access-expected.txt</a></li>
<li><a href="#trunkLayoutTestsjsregressundefinedpropertyaccesshtml">trunk/LayoutTests/js/regress/undefined-property-access.html</a></li>
</ul>
</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkLayoutTestsChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/ChangeLog (172119 => 172120)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/ChangeLog        2014-08-06 02:19:40 UTC (rev 172119)
+++ trunk/LayoutTests/ChangeLog        2014-08-06 02:30:22 UTC (rev 172120)
</span><span class="lines">@@ -1,3 +1,16 @@
</span><ins>+2014-08-05 Commit Queue <commit-queue@webkit.org>
+
+ Unreviewed, rolling out r172099.
+ https://bugs.webkit.org/show_bug.cgi?id=135635
+
+ Needs a do-over. (Requested by kling on #webkit).
+
+ Reverted changeset:
+
+ "The JIT should cache property lookup misses."
+ https://bugs.webkit.org/show_bug.cgi?id=135578
+ http://trac.webkit.org/changeset/172099
+
</ins><span class="cx"> 2014-08-05 Nikos Andronikos <nikos.andronikos-webkit@cisra.canon.com.au>
</span><span class="cx">
</span><span class="cx"> [CG] strokeRect does not honor lineJoin
</span></span></pre></div>
<a id="trunkLayoutTestsjsregressscripttestsundefinedpropertyaccessjs"></a>
<div class="delfile"><h4>Deleted: trunk/LayoutTests/js/regress/script-tests/undefined-property-access.js (172119 => 172120)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/js/regress/script-tests/undefined-property-access.js        2014-08-06 02:19:40 UTC (rev 172119)
+++ trunk/LayoutTests/js/regress/script-tests/undefined-property-access.js        2014-08-06 02:30:22 UTC (rev 172120)
</span><span class="lines">@@ -1,9 +0,0 @@
</span><del>-someGlobal = 0;
-
-function foo() {
- var myObject = {};
- for (var i = 0; i < 10000000; ++i) {
- someGlobal = myObject.undefinedProperty;
- }
-}
-foo();
</del></span></pre></div>
<a id="trunkLayoutTestsjsregressundefinedpropertyaccessexpectedtxt"></a>
<div class="delfile"><h4>Deleted: trunk/LayoutTests/js/regress/undefined-property-access-expected.txt (172119 => 172120)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/js/regress/undefined-property-access-expected.txt        2014-08-06 02:19:40 UTC (rev 172119)
+++ trunk/LayoutTests/js/regress/undefined-property-access-expected.txt        2014-08-06 02:30:22 UTC (rev 172120)
</span><span class="lines">@@ -1,10 +0,0 @@
</span><del>-JSRegress/undefined-property-access
-
-On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
-
-
-PASS no exception thrown
-PASS successfullyParsed is true
-
-TEST COMPLETE
-
</del></span></pre></div>
<a id="trunkLayoutTestsjsregressundefinedpropertyaccesshtml"></a>
<div class="delfile"><h4>Deleted: trunk/LayoutTests/js/regress/undefined-property-access.html (172119 => 172120)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/js/regress/undefined-property-access.html        2014-08-06 02:19:40 UTC (rev 172119)
+++ trunk/LayoutTests/js/regress/undefined-property-access.html        2014-08-06 02:30:22 UTC (rev 172120)
</span><span class="lines">@@ -1,12 +0,0 @@
</span><del>-<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
-<html>
-<head>
-<script src="../../resources/js-test-pre.js"></script>
-</head>
-<body>
-<script src="../../resources/regress-pre.js"></script>
-<script src="script-tests/undefined-property-access.js"></script>
-<script src="../../resources/regress-post.js"></script>
-<script src="../../resources/js-test-post.js"></script>
-</body>
-</html>
</del></span></pre></div>
<a id="trunkSourceJavaScriptCoreChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Source/JavaScriptCore/ChangeLog (172119 => 172120)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/JavaScriptCore/ChangeLog        2014-08-06 02:19:40 UTC (rev 172119)
+++ trunk/Source/JavaScriptCore/ChangeLog        2014-08-06 02:30:22 UTC (rev 172120)
</span><span class="lines">@@ -1,3 +1,16 @@
</span><ins>+2014-08-05 Commit Queue <commit-queue@webkit.org>
+
+ Unreviewed, rolling out r172099.
+ https://bugs.webkit.org/show_bug.cgi?id=135635
+
+ Needs a do-over. (Requested by kling on #webkit).
+
+ Reverted changeset:
+
+ "The JIT should cache property lookup misses."
+ https://bugs.webkit.org/show_bug.cgi?id=135578
+ http://trac.webkit.org/changeset/172099
+
</ins><span class="cx"> 2014-08-05 Przemyslaw Kuczynski <p.kuczynski@samsung.com>
</span><span class="cx">
</span><span class="cx"> Fix resource leak of unclosed file descriptor.
</span></span></pre></div>
<a id="trunkSourceJavaScriptCorejitRepatchcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/JavaScriptCore/jit/Repatch.cpp (172119 => 172120)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/JavaScriptCore/jit/Repatch.cpp        2014-08-06 02:19:40 UTC (rev 172119)
+++ trunk/Source/JavaScriptCore/jit/Repatch.cpp        2014-08-06 02:30:22 UTC (rev 172120)
</span><span class="lines">@@ -52,8 +52,6 @@
</span><span class="cx">
</span><span class="cx"> namespace JSC {
</span><span class="cx">
</span><del>-static void patchJumpToGetByIdStub(CodeBlock*, StructureStubInfo&, JITStubRoutine*);
-
</del><span class="cx"> // Beware: in this code, it is not safe to assume anything about the following registers
</span><span class="cx"> // that would ordinarily have well-known values:
</span><span class="cx"> // - tagTypeNumberRegister
</span><span class="lines">@@ -228,7 +226,6 @@
</span><span class="cx">
</span><span class="cx"> enum ByIdStubKind {
</span><span class="cx"> GetValue,
</span><del>- GetUndefined,
</del><span class="cx"> CallGetter,
</span><span class="cx"> CallCustomGetter,
</span><span class="cx"> CallSetter,
</span><span class="lines">@@ -240,8 +237,6 @@
</span><span class="cx"> switch (kind) {
</span><span class="cx"> case GetValue:
</span><span class="cx"> return "GetValue";
</span><del>- case GetUndefined:
- return "GetUndefined";
</del><span class="cx"> case CallGetter:
</span><span class="cx"> return "CallGetter";
</span><span class="cx"> case CallCustomGetter:
</span><span class="lines">@@ -260,8 +255,6 @@
</span><span class="cx"> {
</span><span class="cx"> if (slot.isCacheableValue())
</span><span class="cx"> return GetValue;
</span><del>- if (slot.isUnset())
- return GetUndefined;
</del><span class="cx"> if (slot.isCacheableCustom())
</span><span class="cx"> return CallCustomGetter;
</span><span class="cx"> RELEASE_ASSERT(slot.isCacheableGetter());
</span><span class="lines">@@ -306,7 +299,7 @@
</span><span class="cx"> static_cast<GPRReg>(stubInfo.patch.valueGPR));
</span><span class="cx"> GPRReg scratchGPR = TempRegisterSet(stubInfo.patch.usedRegisters).getFreeGPR();
</span><span class="cx"> bool needToRestoreScratch = scratchGPR == InvalidGPRReg;
</span><del>- RELEASE_ASSERT(!needToRestoreScratch || (kind == GetValue || kind == GetUndefined));
</del><ins>+ RELEASE_ASSERT(!needToRestoreScratch || kind == GetValue);
</ins><span class="cx">
</span><span class="cx"> CCallHelpers stubJit(&exec->vm(), exec->codeBlock());
</span><span class="cx"> if (needToRestoreScratch) {
</span><span class="lines">@@ -364,28 +357,24 @@
</span><span class="cx"> }
</span><span class="cx"> }
</span><span class="cx">
</span><del>- GPRReg baseForAccessGPR = InvalidGPRReg;
- if (kind != GetUndefined) {
- if (chain) {
- // We could have clobbered scratchGPR earlier, so we have to reload from baseGPR to get the target.
- if (loadTargetFromProxy)
- stubJit.loadPtr(MacroAssembler::Address(baseGPR, JSProxy::targetOffset()), baseForGetGPR);
- stubJit.move(MacroAssembler::TrustedImmPtr(protoObject), scratchGPR);
- baseForAccessGPR = scratchGPR;
- } else {
- // For proxy objects, we need to do all the Structure checks before moving the baseGPR into
- // baseForGetGPR because if we fail any of the checks then we would have the wrong value in baseGPR
- // on the slow path.
- if (loadTargetFromProxy)
- stubJit.move(scratchGPR, baseForGetGPR);
- baseForAccessGPR = baseForGetGPR;
- }
</del><ins>+ GPRReg baseForAccessGPR;
+ if (chain) {
+ // We could have clobbered scratchGPR earlier, so we have to reload from baseGPR to get the target.
+ if (loadTargetFromProxy)
+ stubJit.loadPtr(MacroAssembler::Address(baseGPR, JSProxy::targetOffset()), baseForGetGPR);
+ stubJit.move(MacroAssembler::TrustedImmPtr(protoObject), scratchGPR);
+ baseForAccessGPR = scratchGPR;
+ } else {
+ // For proxy objects, we need to do all the Structure checks before moving the baseGPR into
+ // baseForGetGPR because if we fail any of the checks then we would have the wrong value in baseGPR
+ // on the slow path.
+ if (loadTargetFromProxy)
+ stubJit.move(scratchGPR, baseForGetGPR);
+ baseForAccessGPR = baseForGetGPR;
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> GPRReg loadedValueGPR = InvalidGPRReg;
</span><del>- if (kind == GetUndefined)
- stubJit.moveTrustedValue(jsUndefined(), valueRegs);
- else if (kind != CallCustomGetter && kind != CallCustomSetter) {
</del><ins>+ if (kind != CallCustomGetter && kind != CallCustomSetter) {
</ins><span class="cx"> if (kind == GetValue)
</span><span class="cx"> loadedValueGPR = valueRegs.payloadGPR();
</span><span class="cx"> else
</span><span class="lines">@@ -419,7 +408,7 @@
</span><span class="cx"> std::unique_ptr<CallLinkInfo> callLinkInfo;
</span><span class="cx">
</span><span class="cx"> MacroAssembler::Jump success, fail;
</span><del>- if (kind != GetValue && kind != GetUndefined) {
</del><ins>+ if (kind != GetValue) {
</ins><span class="cx"> // Need to make sure that whenever this call is made in the future, we remember the
</span><span class="cx"> // place that we made it from. It just so happens to be the place that we are at
</span><span class="cx"> // right now!
</span><span class="lines">@@ -740,46 +729,15 @@
</span><span class="cx"> // FIXME: Cache property access for immediates.
</span><span class="cx"> if (!baseValue.isCell())
</span><span class="cx"> return GiveUpOnCache;
</span><del>-
- if (!slot.isCacheable() && !slot.isUnset())
- return GiveUpOnCache;
-
</del><span class="cx"> JSCell* baseCell = baseValue.asCell();
</span><span class="cx"> Structure* structure = baseCell->structure();
</span><ins>+ if (!slot.isCacheable())
+ return GiveUpOnCache;
</ins><span class="cx">
</span><span class="cx"> InlineCacheAction action = actionForCell(*vm, baseCell);
</span><span class="cx"> if (action != AttemptToCache)
</span><span class="cx"> return action;
</span><span class="cx">
</span><del>- if (slot.isUnset()) {
- // Property lookup miss - let's try to cache that.
- size_t count = normalizePrototypeChain(exec, baseCell);
- if (count == InvalidPrototypeChain)
- return GiveUpOnCache;
- StructureChain* prototypeChain = structure->prototypeChain(exec);
- PolymorphicGetByIdList* list = PolymorphicGetByIdList::from(stubInfo);
- if (list->isFull()) {
- // We need this extra check because of recursion.
- return GiveUpOnCache;
- }
-
- RefPtr<JITStubRoutine> stubRoutine;
- generateByIdStub(
- exec, GetUndefined, propertyName, FunctionPtr(), stubInfo, prototypeChain, count, invalidOffset,
- structure, false, nullptr,
- stubInfo.callReturnLocation.labelAtOffset(stubInfo.patch.deltaCallToDone),
- CodeLocationLabel(list->currentSlowPathTarget(stubInfo)), stubRoutine);
-
- list->addAccess(GetByIdAccess(
- *vm, codeBlock->ownerExecutable(),
- GetByIdAccess::SimpleInline,
- stubRoutine, structure, prototypeChain, count));
-
- patchJumpToGetByIdStub(codeBlock, stubInfo, stubRoutine.get());
-
- return list->isFull() ? GiveUpOnCache : RetryCacheLater;
- }
-
</del><span class="cx"> // Optimize self access.
</span><span class="cx"> if (slot.slotBase() == baseValue
</span><span class="cx"> && slot.isCacheableValue()
</span><span class="lines">@@ -802,7 +760,7 @@
</span><span class="cx"> repatchCall(exec->codeBlock(), stubInfo.callReturnLocation, operationGetById);
</span><span class="cx"> }
</span><span class="cx">
</span><del>-void patchJumpToGetByIdStub(CodeBlock* codeBlock, StructureStubInfo& stubInfo, JITStubRoutine* stubRoutine)
</del><ins>+static void patchJumpToGetByIdStub(CodeBlock* codeBlock, StructureStubInfo& stubInfo, JITStubRoutine* stubRoutine)
</ins><span class="cx"> {
</span><span class="cx"> RELEASE_ASSERT(stubInfo.accessType == access_get_by_id_list);
</span><span class="cx"> RepatchBuffer repatchBuffer(codeBlock);
</span></span></pre></div>
<a id="trunkSourceJavaScriptCoreruntimePropertySloth"></a>
<div class="modfile"><h4>Modified: trunk/Source/JavaScriptCore/runtime/PropertySlot.h (172119 => 172120)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/JavaScriptCore/runtime/PropertySlot.h        2014-08-06 02:19:40 UTC (rev 172119)
+++ trunk/Source/JavaScriptCore/runtime/PropertySlot.h        2014-08-06 02:30:22 UTC (rev 172120)
</span><span class="lines">@@ -78,7 +78,6 @@
</span><span class="cx"> JSValue getValue(ExecState*, unsigned propertyName) const;
</span><span class="cx">
</span><span class="cx"> bool isCacheable() const { return m_cacheability == CachingAllowed && m_offset != invalidOffset; }
</span><del>- bool isUnset() const { return m_propertyType == TypeUnset; }
</del><span class="cx"> bool isValue() const { return m_propertyType == TypeValue; }
</span><span class="cx"> bool isAccessor() const { return m_propertyType == TypeGetter; }
</span><span class="cx"> bool isCustom() const { return m_propertyType == TypeCustom; }
</span></span></pre>
</div>
</div>
</body>
</html>