| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 10770 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 10781 if (FLAG_hydrogen_stats) { | 10781 if (FLAG_hydrogen_stats) { |
| 10782 int64_t end = OS::Ticks(); | 10782 int64_t end = OS::Ticks(); |
| 10783 unsigned size = Zone::allocation_size_ - start_allocation_size_; | 10783 unsigned size = Zone::allocation_size_ - start_allocation_size_; |
| 10784 HStatistics::Instance()->SaveTiming(name_, end - start_, size); | 10784 HStatistics::Instance()->SaveTiming(name_, end - start_, size); |
| 10785 } | 10785 } |
| 10786 | 10786 |
| 10787 // Produce trace output if flag is set so that the first letter of the | 10787 // Produce trace output if flag is set so that the first letter of the |
| 10788 // phase name matches the command line parameter FLAG_trace_phase. | 10788 // phase name matches the command line parameter FLAG_trace_phase. |
| 10789 if (FLAG_trace_hydrogen && | 10789 if (FLAG_trace_hydrogen && |
| 10790 OS::StrChr(const_cast<char*>(FLAG_trace_phase), name_[0]) != NULL) { | 10790 OS::StrChr(const_cast<char*>(FLAG_trace_phase), name_[0]) != NULL) { |
| 10791 AllowHandleDereference allow_handle_deref(graph_->isolate()); |
| 10791 if (graph_ != NULL) HTracer::Instance()->TraceHydrogen(name_, graph_); | 10792 if (graph_ != NULL) HTracer::Instance()->TraceHydrogen(name_, graph_); |
| 10792 if (chunk_ != NULL) HTracer::Instance()->TraceLithium(name_, chunk_); | 10793 if (chunk_ != NULL) HTracer::Instance()->TraceLithium(name_, chunk_); |
| 10793 if (allocator_ != NULL) { | 10794 if (allocator_ != NULL) { |
| 10794 HTracer::Instance()->TraceLiveRanges(name_, allocator_); | 10795 HTracer::Instance()->TraceLiveRanges(name_, allocator_); |
| 10795 } | 10796 } |
| 10796 } | 10797 } |
| 10797 | 10798 |
| 10798 #ifdef DEBUG | 10799 #ifdef DEBUG |
| 10799 if (graph_ != NULL) graph_->Verify(false); // No full verify. | 10800 if (graph_ != NULL) graph_->Verify(false); // No full verify. |
| 10800 if (allocator_ != NULL) allocator_->Verify(); | 10801 if (allocator_ != NULL) allocator_->Verify(); |
| 10801 #endif | 10802 #endif |
| 10802 } | 10803 } |
| 10803 | 10804 |
| 10804 } } // namespace v8::internal | 10805 } } // namespace v8::internal |
| OLD | NEW |