Title: [140719] trunk/Source/_javascript_Core
- Revision
- 140719
- Author
- [email protected]
- Date
- 2013-01-24 13:59:07 -0800 (Thu, 24 Jan 2013)
Log Message
DFG::JITCompiler::getSpeculation() methods are badly named and superfluous
https://bugs.webkit.org/show_bug.cgi?id=107860
Reviewed by Mark Hahnenberg.
* dfg/DFGJITCompiler.h:
(JITCompiler):
* dfg/DFGSpeculativeJIT64.cpp:
(JSC::DFG::SpeculativeJIT::compileLogicalNot):
(JSC::DFG::SpeculativeJIT::emitBranch):
Modified Paths
Diff
Modified: trunk/Source/_javascript_Core/ChangeLog (140718 => 140719)
--- trunk/Source/_javascript_Core/ChangeLog 2013-01-24 21:39:55 UTC (rev 140718)
+++ trunk/Source/_javascript_Core/ChangeLog 2013-01-24 21:59:07 UTC (rev 140719)
@@ -1,3 +1,16 @@
+2013-01-24 Filip Pizlo <[email protected]>
+
+ DFG::JITCompiler::getSpeculation() methods are badly named and superfluous
+ https://bugs.webkit.org/show_bug.cgi?id=107860
+
+ Reviewed by Mark Hahnenberg.
+
+ * dfg/DFGJITCompiler.h:
+ (JITCompiler):
+ * dfg/DFGSpeculativeJIT64.cpp:
+ (JSC::DFG::SpeculativeJIT::compileLogicalNot):
+ (JSC::DFG::SpeculativeJIT::emitBranch):
+
2013-01-24 Mark Hahnenberg <[email protected]>
Objective-C API: Rename JSValue.h/APIJSValue.h to JSCJSValue.h/JSValue.h
Modified: trunk/Source/_javascript_Core/dfg/DFGJITCompiler.h (140718 => 140719)
--- trunk/Source/_javascript_Core/dfg/DFGJITCompiler.h 2013-01-24 21:39:55 UTC (rev 140718)
+++ trunk/Source/_javascript_Core/dfg/DFGJITCompiler.h 2013-01-24 21:59:07 UTC (rev 140719)
@@ -340,11 +340,6 @@
m_exceptionChecks.append(CallExceptionRecord(functionCall, exceptionCheck, codeOrigin));
}
- // Helper methods to get predictions
- SpeculatedType getSpeculation(Node& node) { return node.prediction(); }
- SpeculatedType getSpeculation(NodeIndex nodeIndex) { return getSpeculation(graph()[nodeIndex]); }
- SpeculatedType getSpeculation(Edge nodeUse) { return getSpeculation(nodeUse.index()); }
-
void appendExitInfo(MacroAssembler::JumpList jumpsToFail = MacroAssembler::JumpList())
{
OSRExitCompilationInfo info;
Modified: trunk/Source/_javascript_Core/dfg/DFGSpeculativeJIT64.cpp (140718 => 140719)
--- trunk/Source/_javascript_Core/dfg/DFGSpeculativeJIT64.cpp 2013-01-24 21:39:55 UTC (rev 140718)
+++ trunk/Source/_javascript_Core/dfg/DFGSpeculativeJIT64.cpp 2013-01-24 21:59:07 UTC (rev 140719)
@@ -1934,7 +1934,7 @@
return;
}
- SpeculatedType prediction = m_jit.getSpeculation(node.child1());
+ SpeculatedType prediction = at(node.child1()).prediction();
if (isBooleanSpeculation(prediction)) {
if (isBooleanSpeculation(m_state.forNode(node.child1()).m_type)) {
SpeculateBooleanOperand value(this, node.child1());
@@ -2066,7 +2066,7 @@
JSValueOperand value(this, node.child1());
GPRReg valueGPR = value.gpr();
- bool predictBoolean = isBooleanSpeculation(m_jit.getSpeculation(node.child1()));
+ bool predictBoolean = isBooleanSpeculation(at(node.child1()).prediction());
if (predictBoolean) {
if (isBooleanSpeculation(m_state.forNode(node.child1()).m_type)) {
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo/webkit-changes