Title: [106834] branches/safari-534.54-branch/Source/_javascript_Core
Diff
Modified: branches/safari-534.54-branch/Source/_javascript_Core/ChangeLog (106833 => 106834)
--- branches/safari-534.54-branch/Source/_javascript_Core/ChangeLog 2012-02-06 20:42:40 UTC (rev 106833)
+++ branches/safari-534.54-branch/Source/_javascript_Core/ChangeLog 2012-02-06 20:48:10 UTC (rev 106834)
@@ -1,3 +1,27 @@
+2011-02-06 Lucas Forschler <[email protected]>
+
+ Merge 106594
+
+ 2012-02-02 Filip Pizlo <[email protected]>
+
+ Throwing away bytecode and then reparsing during DFG optimization is just
+ plain wrong and makes things crash
+ https://bugs.webkit.org/show_bug.cgi?id=77680
+ <rdar://problem/10798490>
+
+ Reviewed by Oliver Hunt.
+
+ This is the minimal surgical fix: it removes the code that triggered bytecode
+ throw-away. Once we're confident that this is a good idea, we can kill all of
+ the code that implements the feature.
+
+ * bytecode/CodeBlock.h:
+ (JSC::CodeBlock::discardBytecodeLater):
+ (JSC::CodeBlock::addValueProfile):
+ * jit/JITDriver.h:
+ (JSC::jitCompileIfAppropriate):
+ (JSC::jitCompileFunctionIfAppropriate):
+
2011-02-01 Lucas Forschler <[email protected]>
Merge 106207
Modified: branches/safari-534.54-branch/Source/_javascript_Core/bytecode/CodeBlock.h (106833 => 106834)
--- branches/safari-534.54-branch/Source/_javascript_Core/bytecode/CodeBlock.h 2012-02-06 20:42:40 UTC (rev 106833)
+++ branches/safari-534.54-branch/Source/_javascript_Core/bytecode/CodeBlock.h 2012-02-06 20:48:10 UTC (rev 106834)
@@ -509,13 +509,6 @@
{
m_shouldDiscardBytecode = true;
}
- void handleBytecodeDiscardingOpportunity()
- {
- if (!!alternative())
- discardBytecode();
- else
- discardBytecodeLater();
- }
#ifndef NDEBUG
bool usesOpcode(OpcodeID);
@@ -648,6 +641,7 @@
#if ENABLE(VALUE_PROFILER)
ValueProfile* addValueProfile(int bytecodeOffset)
{
+ ASSERT(m_valueProfiles.isEmpty() || m_valueProfiles.last().m_bytecodeOffset < bytecodeOffset);
m_valueProfiles.append(ValueProfile(bytecodeOffset));
return &m_valueProfiles.last();
}
Modified: branches/safari-534.54-branch/Source/_javascript_Core/runtime/Executable.cpp (106833 => 106834)
--- branches/safari-534.54-branch/Source/_javascript_Core/runtime/Executable.cpp 2012-02-06 20:42:40 UTC (rev 106833)
+++ branches/safari-534.54-branch/Source/_javascript_Core/runtime/Executable.cpp 2012-02-06 20:48:10 UTC (rev 106834)
@@ -210,10 +210,6 @@
}
m_jitCodeForCall = JIT::compile(scopeChainNode->globalData, m_evalCodeBlock.get());
}
-#if !ENABLE(OPCODE_SAMPLING)
- if (!BytecodeGenerator::dumpsGeneratedCode())
- m_evalCodeBlock->handleBytecodeDiscardingOpportunity();
-#endif
m_evalCodeBlock->setJITCode(m_jitCodeForCall, MacroAssemblerCodePtr());
}
#endif
@@ -354,10 +350,6 @@
}
m_jitCodeForCall = JIT::compile(scopeChainNode->globalData, m_programCodeBlock.get());
}
-#if !ENABLE(OPCODE_SAMPLING)
- if (!BytecodeGenerator::dumpsGeneratedCode())
- m_programCodeBlock->handleBytecodeDiscardingOpportunity();
-#endif
m_programCodeBlock->setJITCode(m_jitCodeForCall, MacroAssemblerCodePtr());
}
#endif
@@ -542,10 +534,6 @@
}
m_jitCodeForCall = JIT::compile(globalData, m_codeBlockForCall.get(), &m_jitCodeForCallWithArityCheck);
}
-#if !ENABLE(OPCODE_SAMPLING)
- if (!BytecodeGenerator::dumpsGeneratedCode())
- m_codeBlockForCall->handleBytecodeDiscardingOpportunity();
-#endif
m_codeBlockForCall->setJITCode(m_jitCodeForCall, m_jitCodeForCallWithArityCheck);
}
@@ -605,10 +593,6 @@
}
m_jitCodeForConstruct = JIT::compile(globalData, m_codeBlockForConstruct.get(), &m_jitCodeForConstructWithArityCheck);
}
-#if !ENABLE(OPCODE_SAMPLING)
- if (!BytecodeGenerator::dumpsGeneratedCode())
- m_codeBlockForConstruct->handleBytecodeDiscardingOpportunity();
-#endif
m_codeBlockForConstruct->setJITCode(m_jitCodeForConstruct, m_jitCodeForConstructWithArityCheck);
}
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes