OLD | NEW |
1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 1541 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1552 code_objects[compiled_funcs_count] = Handle<Code>(sfi->code()); | 1552 code_objects[compiled_funcs_count] = Handle<Code>(sfi->code()); |
1553 } | 1553 } |
1554 ++compiled_funcs_count; | 1554 ++compiled_funcs_count; |
1555 } | 1555 } |
1556 } | 1556 } |
1557 | 1557 |
1558 // Iterate all optimized functions in all contexts. | 1558 // Iterate all optimized functions in all contexts. |
1559 EnumerateOptimizedFunctionsVisitor visitor(sfis, | 1559 EnumerateOptimizedFunctionsVisitor visitor(sfis, |
1560 code_objects, | 1560 code_objects, |
1561 &compiled_funcs_count); | 1561 &compiled_funcs_count); |
1562 Deoptimizer::VisitAllOptimizedFunctions(&visitor); | 1562 Deoptimizer::VisitAllOptimizedFunctions(heap->isolate(), &visitor); |
1563 | 1563 |
1564 return compiled_funcs_count; | 1564 return compiled_funcs_count; |
1565 } | 1565 } |
1566 | 1566 |
1567 | 1567 |
1568 void Logger::LogCodeObject(Object* object) { | 1568 void Logger::LogCodeObject(Object* object) { |
1569 if (FLAG_log_code || FLAG_ll_prof || is_logging_code_events()) { | 1569 if (FLAG_log_code || FLAG_ll_prof || is_logging_code_events()) { |
1570 Code* code_object = Code::cast(object); | 1570 Code* code_object = Code::cast(object); |
1571 LogEventsAndTags tag = Logger::STUB_TAG; | 1571 LogEventsAndTags tag = Logger::STUB_TAG; |
1572 const char* description = "Unknown code from the snapshot"; | 1572 const char* description = "Unknown code from the snapshot"; |
(...skipping 380 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1953 void SamplerRegistry::RemoveActiveSampler(Sampler* sampler) { | 1953 void SamplerRegistry::RemoveActiveSampler(Sampler* sampler) { |
1954 ASSERT(sampler->IsActive()); | 1954 ASSERT(sampler->IsActive()); |
1955 ScopedLock lock(active_samplers_mutex); | 1955 ScopedLock lock(active_samplers_mutex); |
1956 ASSERT(active_samplers_ != NULL); | 1956 ASSERT(active_samplers_ != NULL); |
1957 bool removed = active_samplers_->RemoveElement(sampler); | 1957 bool removed = active_samplers_->RemoveElement(sampler); |
1958 ASSERT(removed); | 1958 ASSERT(removed); |
1959 USE(removed); | 1959 USE(removed); |
1960 } | 1960 } |
1961 | 1961 |
1962 } } // namespace v8::internal | 1962 } } // namespace v8::internal |
OLD | NEW |