| 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 1382 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1393 Code* code_object = Code::cast(object); | 1393 Code* code_object = Code::cast(object); |
| 1394 LogEventsAndTags tag = Logger::STUB_TAG; | 1394 LogEventsAndTags tag = Logger::STUB_TAG; |
| 1395 const char* description = "Unknown code from the snapshot"; | 1395 const char* description = "Unknown code from the snapshot"; |
| 1396 switch (code_object->kind()) { | 1396 switch (code_object->kind()) { |
| 1397 case Code::FUNCTION: | 1397 case Code::FUNCTION: |
| 1398 case Code::OPTIMIZED_FUNCTION: | 1398 case Code::OPTIMIZED_FUNCTION: |
| 1399 return; // We log this later using LogCompiledFunctions. | 1399 return; // We log this later using LogCompiledFunctions. |
| 1400 case Code::UNARY_OP_IC: // fall through | 1400 case Code::UNARY_OP_IC: // fall through |
| 1401 case Code::BINARY_OP_IC: // fall through | 1401 case Code::BINARY_OP_IC: // fall through |
| 1402 case Code::COMPARE_IC: // fall through | 1402 case Code::COMPARE_IC: // fall through |
| 1403 case Code::TO_BOOLEAN_IC: // fall through |
| 1403 case Code::STUB: | 1404 case Code::STUB: |
| 1404 description = | 1405 description = |
| 1405 CodeStub::MajorName(CodeStub::GetMajorKey(code_object), true); | 1406 CodeStub::MajorName(CodeStub::GetMajorKey(code_object), true); |
| 1406 if (description == NULL) | 1407 if (description == NULL) |
| 1407 description = "A stub from the snapshot"; | 1408 description = "A stub from the snapshot"; |
| 1408 tag = Logger::STUB_TAG; | 1409 tag = Logger::STUB_TAG; |
| 1409 break; | 1410 break; |
| 1410 case Code::BUILTIN: | 1411 case Code::BUILTIN: |
| 1411 description = "A builtin from the snapshot"; | 1412 description = "A builtin from the snapshot"; |
| 1412 tag = Logger::BUILTIN_TAG; | 1413 tag = Logger::BUILTIN_TAG; |
| (...skipping 347 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1760 void SamplerRegistry::RemoveActiveSampler(Sampler* sampler) { | 1761 void SamplerRegistry::RemoveActiveSampler(Sampler* sampler) { |
| 1761 ASSERT(sampler->IsActive()); | 1762 ASSERT(sampler->IsActive()); |
| 1762 ScopedLock lock(mutex_); | 1763 ScopedLock lock(mutex_); |
| 1763 ASSERT(active_samplers_ != NULL); | 1764 ASSERT(active_samplers_ != NULL); |
| 1764 bool removed = active_samplers_->RemoveElement(sampler); | 1765 bool removed = active_samplers_->RemoveElement(sampler); |
| 1765 ASSERT(removed); | 1766 ASSERT(removed); |
| 1766 USE(removed); | 1767 USE(removed); |
| 1767 } | 1768 } |
| 1768 | 1769 |
| 1769 } } // namespace v8::internal | 1770 } } // namespace v8::internal |
| OLD | NEW |