Commit 82c0ea4b authored by yangguo@chromium.org's avatar yangguo@chromium.org

Fix bogus assertions for tracing and verify.

R=mstarzinger@chromium.org
BUG=

Review URL: https://chromiumcodereview.appspot.com/15778012

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@14985 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent cb0d1468
...@@ -527,6 +527,7 @@ class ReachabilityAnalyzer BASE_EMBEDDED { ...@@ -527,6 +527,7 @@ class ReachabilityAnalyzer BASE_EMBEDDED {
void HGraph::Verify(bool do_full_verify) const { void HGraph::Verify(bool do_full_verify) const {
Heap::RelocationLock(isolate()->heap()); Heap::RelocationLock(isolate()->heap());
AllowHandleDereference allow_deref;
AllowDeferredHandleDereference allow_deferred_deref; AllowDeferredHandleDereference allow_deferred_deref;
for (int i = 0; i < blocks_.length(); i++) { for (int i = 0; i < blocks_.length(); i++) {
HBasicBlock* block = blocks_.at(i); HBasicBlock* block = blocks_.at(i);
...@@ -4564,7 +4565,6 @@ void HGraph::MarkLive(HValue* ref, HValue* instr, ZoneList<HValue*>* worklist) { ...@@ -4564,7 +4565,6 @@ void HGraph::MarkLive(HValue* ref, HValue* instr, ZoneList<HValue*>* worklist) {
if (FLAG_trace_dead_code_elimination) { if (FLAG_trace_dead_code_elimination) {
HeapStringAllocator allocator; HeapStringAllocator allocator;
StringStream stream(&allocator); StringStream stream(&allocator);
AllowDeferredHandleDereference debug_output;
if (ref != NULL) { if (ref != NULL) {
ref->PrintTo(&stream); ref->PrintTo(&stream);
} else { } else {
...@@ -11256,14 +11256,16 @@ void HTracer::TraceCompilation(CompilationInfo* info) { ...@@ -11256,14 +11256,16 @@ void HTracer::TraceCompilation(CompilationInfo* info) {
void HTracer::TraceLithium(const char* name, LChunk* chunk) { void HTracer::TraceLithium(const char* name, LChunk* chunk) {
ASSERT(!FLAG_parallel_recompilation); ASSERT(!FLAG_parallel_recompilation);
AllowDeferredHandleDereference debug_output; AllowHandleDereference allow_deref;
AllowDeferredHandleDereference allow_deferred_deref;
Trace(name, chunk->graph(), chunk); Trace(name, chunk->graph(), chunk);
} }
void HTracer::TraceHydrogen(const char* name, HGraph* graph) { void HTracer::TraceHydrogen(const char* name, HGraph* graph) {
ASSERT(!FLAG_parallel_recompilation); ASSERT(!FLAG_parallel_recompilation);
AllowDeferredHandleDereference debug_output; AllowHandleDereference allow_deref;
AllowDeferredHandleDereference allow_deferred_deref;
Trace(name, graph, NULL); Trace(name, graph, NULL);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment