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 1439 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1450 LogEventsAndTags tag = Logger::STUB_TAG; | 1450 LogEventsAndTags tag = Logger::STUB_TAG; |
1451 const char* description = "Unknown code from the snapshot"; | 1451 const char* description = "Unknown code from the snapshot"; |
1452 switch (code_object->kind()) { | 1452 switch (code_object->kind()) { |
1453 case Code::FUNCTION: | 1453 case Code::FUNCTION: |
1454 case Code::OPTIMIZED_FUNCTION: | 1454 case Code::OPTIMIZED_FUNCTION: |
1455 return; // We log this later using LogCompiledFunctions. | 1455 return; // We log this later using LogCompiledFunctions. |
1456 case Code::UNARY_OP_IC: // fall through | 1456 case Code::UNARY_OP_IC: // fall through |
1457 case Code::BINARY_OP_IC: // fall through | 1457 case Code::BINARY_OP_IC: // fall through |
1458 case Code::COMPARE_IC: // fall through | 1458 case Code::COMPARE_IC: // fall through |
1459 case Code::TO_BOOLEAN_IC: // fall through | 1459 case Code::TO_BOOLEAN_IC: // fall through |
1460 case Code::COMPILED_STUB: // fall through | |
1461 case Code::STUB: | 1460 case Code::STUB: |
1462 description = | 1461 description = |
1463 CodeStub::MajorName(CodeStub::GetMajorKey(code_object), true); | 1462 CodeStub::MajorName(CodeStub::GetMajorKey(code_object), true); |
1464 if (description == NULL) | 1463 if (description == NULL) |
1465 description = "A stub from the snapshot"; | 1464 description = "A stub from the snapshot"; |
1466 tag = Logger::STUB_TAG; | 1465 tag = Logger::STUB_TAG; |
1467 break; | 1466 break; |
1468 case Code::BUILTIN: | 1467 case Code::BUILTIN: |
1469 description = "A builtin from the snapshot"; | 1468 description = "A builtin from the snapshot"; |
1470 tag = Logger::BUILTIN_TAG; | 1469 tag = Logger::BUILTIN_TAG; |
(...skipping 358 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1829 void SamplerRegistry::RemoveActiveSampler(Sampler* sampler) { | 1828 void SamplerRegistry::RemoveActiveSampler(Sampler* sampler) { |
1830 ASSERT(sampler->IsActive()); | 1829 ASSERT(sampler->IsActive()); |
1831 ScopedLock lock(active_samplers_mutex); | 1830 ScopedLock lock(active_samplers_mutex); |
1832 ASSERT(active_samplers_ != NULL); | 1831 ASSERT(active_samplers_ != NULL); |
1833 bool removed = active_samplers_->RemoveElement(sampler); | 1832 bool removed = active_samplers_->RemoveElement(sampler); |
1834 ASSERT(removed); | 1833 ASSERT(removed); |
1835 USE(removed); | 1834 USE(removed); |
1836 } | 1835 } |
1837 | 1836 |
1838 } } // namespace v8::internal | 1837 } } // namespace v8::internal |
OLD | NEW |