| OLD | NEW |
| 1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 the V8 project authors. All rights reserved. |
| 2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
| 3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
| 4 // met: | 4 // met: |
| 5 // | 5 // |
| 6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
| 7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
| 8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
| 9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
| 10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
| (...skipping 9537 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 9548 } else { | 9548 } else { |
| 9549 CodeStub::Major major_key = info->code_stub()->MajorKey(); | 9549 CodeStub::Major major_key = info->code_stub()->MajorKey(); |
| 9550 PrintStringProperty("name", CodeStub::MajorName(major_key, false)); | 9550 PrintStringProperty("name", CodeStub::MajorName(major_key, false)); |
| 9551 PrintStringProperty("method", "stub"); | 9551 PrintStringProperty("method", "stub"); |
| 9552 } | 9552 } |
| 9553 PrintLongProperty("date", static_cast<int64_t>(OS::TimeCurrentMillis())); | 9553 PrintLongProperty("date", static_cast<int64_t>(OS::TimeCurrentMillis())); |
| 9554 } | 9554 } |
| 9555 | 9555 |
| 9556 | 9556 |
| 9557 void HTracer::TraceLithium(const char* name, LChunk* chunk) { | 9557 void HTracer::TraceLithium(const char* name, LChunk* chunk) { |
| 9558 ASSERT(!FLAG_parallel_recompilation); | 9558 ASSERT(!FLAG_concurrent_recompilation); |
| 9559 AllowHandleDereference allow_deref; | 9559 AllowHandleDereference allow_deref; |
| 9560 AllowDeferredHandleDereference allow_deferred_deref; | 9560 AllowDeferredHandleDereference allow_deferred_deref; |
| 9561 Trace(name, chunk->graph(), chunk); | 9561 Trace(name, chunk->graph(), chunk); |
| 9562 } | 9562 } |
| 9563 | 9563 |
| 9564 | 9564 |
| 9565 void HTracer::TraceHydrogen(const char* name, HGraph* graph) { | 9565 void HTracer::TraceHydrogen(const char* name, HGraph* graph) { |
| 9566 ASSERT(!FLAG_parallel_recompilation); | 9566 ASSERT(!FLAG_concurrent_recompilation); |
| 9567 AllowHandleDereference allow_deref; | 9567 AllowHandleDereference allow_deref; |
| 9568 AllowDeferredHandleDereference allow_deferred_deref; | 9568 AllowDeferredHandleDereference allow_deferred_deref; |
| 9569 Trace(name, graph, NULL); | 9569 Trace(name, graph, NULL); |
| 9570 } | 9570 } |
| 9571 | 9571 |
| 9572 | 9572 |
| 9573 void HTracer::Trace(const char* name, HGraph* graph, LChunk* chunk) { | 9573 void HTracer::Trace(const char* name, HGraph* graph, LChunk* chunk) { |
| 9574 Tag tag(this, "cfg"); | 9574 Tag tag(this, "cfg"); |
| 9575 PrintStringProperty("name", name); | 9575 PrintStringProperty("name", name); |
| 9576 const ZoneList<HBasicBlock*>* blocks = graph->blocks(); | 9576 const ZoneList<HBasicBlock*>* blocks = graph->blocks(); |
| (...skipping 266 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 9843 if (ShouldProduceTraceOutput()) { | 9843 if (ShouldProduceTraceOutput()) { |
| 9844 isolate()->GetHTracer()->TraceHydrogen(name(), graph_); | 9844 isolate()->GetHTracer()->TraceHydrogen(name(), graph_); |
| 9845 } | 9845 } |
| 9846 | 9846 |
| 9847 #ifdef DEBUG | 9847 #ifdef DEBUG |
| 9848 graph_->Verify(false); // No full verify. | 9848 graph_->Verify(false); // No full verify. |
| 9849 #endif | 9849 #endif |
| 9850 } | 9850 } |
| 9851 | 9851 |
| 9852 } } // namespace v8::internal | 9852 } } // namespace v8::internal |
| OLD | NEW |