| 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 1586 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1597 | 1597 |
| 1598 void Logger::LogCodeObject(Object* object) { | 1598 void Logger::LogCodeObject(Object* object) { |
| 1599 if (FLAG_log_code || FLAG_ll_prof) { | 1599 if (FLAG_log_code || FLAG_ll_prof) { |
| 1600 Code* code_object = Code::cast(object); | 1600 Code* code_object = Code::cast(object); |
| 1601 LogEventsAndTags tag = Logger::STUB_TAG; | 1601 LogEventsAndTags tag = Logger::STUB_TAG; |
| 1602 const char* description = "Unknown code from the snapshot"; | 1602 const char* description = "Unknown code from the snapshot"; |
| 1603 switch (code_object->kind()) { | 1603 switch (code_object->kind()) { |
| 1604 case Code::FUNCTION: | 1604 case Code::FUNCTION: |
| 1605 case Code::OPTIMIZED_FUNCTION: | 1605 case Code::OPTIMIZED_FUNCTION: |
| 1606 return; // We log this later using LogCompiledFunctions. | 1606 return; // We log this later using LogCompiledFunctions. |
| 1607 case Code::TYPE_RECORDING_UNARY_OP_IC: // fall through | 1607 case Code::UNARY_OP_IC: // fall through |
| 1608 case Code::TYPE_RECORDING_BINARY_OP_IC: // fall through | 1608 case Code::BINARY_OP_IC: // fall through |
| 1609 case Code::COMPARE_IC: // fall through | 1609 case Code::COMPARE_IC: // fall through |
| 1610 case Code::STUB: | 1610 case Code::STUB: |
| 1611 description = | 1611 description = |
| 1612 CodeStub::MajorName(CodeStub::GetMajorKey(code_object), true); | 1612 CodeStub::MajorName(CodeStub::GetMajorKey(code_object), true); |
| 1613 if (description == NULL) | 1613 if (description == NULL) |
| 1614 description = "A stub from the snapshot"; | 1614 description = "A stub from the snapshot"; |
| 1615 tag = Logger::STUB_TAG; | 1615 tag = Logger::STUB_TAG; |
| 1616 break; | 1616 break; |
| 1617 case Code::BUILTIN: | 1617 case Code::BUILTIN: |
| 1618 description = "A builtin from the snapshot"; | 1618 description = "A builtin from the snapshot"; |
| (...skipping 365 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1984 void SamplerRegistry::RemoveActiveSampler(Sampler* sampler) { | 1984 void SamplerRegistry::RemoveActiveSampler(Sampler* sampler) { |
| 1985 ASSERT(sampler->IsActive()); | 1985 ASSERT(sampler->IsActive()); |
| 1986 ScopedLock lock(mutex_); | 1986 ScopedLock lock(mutex_); |
| 1987 ASSERT(active_samplers_ != NULL); | 1987 ASSERT(active_samplers_ != NULL); |
| 1988 bool removed = active_samplers_->RemoveElement(sampler); | 1988 bool removed = active_samplers_->RemoveElement(sampler); |
| 1989 ASSERT(removed); | 1989 ASSERT(removed); |
| 1990 USE(removed); | 1990 USE(removed); |
| 1991 } | 1991 } |
| 1992 | 1992 |
| 1993 } } // namespace v8::internal | 1993 } } // namespace v8::internal |
| OLD | NEW |