| OLD | NEW |
| 1 // Copyright 2009 the V8 project authors. All rights reserved. | 1 // Copyright 2009 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 1298 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1309 | 1309 |
| 1310 void Logger::LogCodeObject(Object* object) { | 1310 void Logger::LogCodeObject(Object* object) { |
| 1311 if (FLAG_log_code) { | 1311 if (FLAG_log_code) { |
| 1312 Code* code_object = Code::cast(object); | 1312 Code* code_object = Code::cast(object); |
| 1313 LogEventsAndTags tag = Logger::STUB_TAG; | 1313 LogEventsAndTags tag = Logger::STUB_TAG; |
| 1314 const char* description = "Unknown code from the snapshot"; | 1314 const char* description = "Unknown code from the snapshot"; |
| 1315 switch (code_object->kind()) { | 1315 switch (code_object->kind()) { |
| 1316 case Code::FUNCTION: | 1316 case Code::FUNCTION: |
| 1317 case Code::OPTIMIZED_FUNCTION: | 1317 case Code::OPTIMIZED_FUNCTION: |
| 1318 return; // We log this later using LogCompiledFunctions. | 1318 return; // We log this later using LogCompiledFunctions. |
| 1319 case Code::BINARY_OP_IC: // fall through | |
| 1320 case Code::TYPE_RECORDING_BINARY_OP_IC: // fall through | 1319 case Code::TYPE_RECORDING_BINARY_OP_IC: // fall through |
| 1321 case Code::COMPARE_IC: // fall through | 1320 case Code::COMPARE_IC: // fall through |
| 1322 case Code::STUB: | 1321 case Code::STUB: |
| 1323 description = | 1322 description = |
| 1324 CodeStub::MajorName(CodeStub::GetMajorKey(code_object), true); | 1323 CodeStub::MajorName(CodeStub::GetMajorKey(code_object), true); |
| 1325 if (description == NULL) | 1324 if (description == NULL) |
| 1326 description = "A stub from the snapshot"; | 1325 description = "A stub from the snapshot"; |
| 1327 tag = Logger::STUB_TAG; | 1326 tag = Logger::STUB_TAG; |
| 1328 break; | 1327 break; |
| 1329 case Code::BUILTIN: | 1328 case Code::BUILTIN: |
| (...skipping 327 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1657 void SamplerRegistry::RemoveActiveSampler(Sampler* sampler) { | 1656 void SamplerRegistry::RemoveActiveSampler(Sampler* sampler) { |
| 1658 ASSERT(sampler->IsActive()); | 1657 ASSERT(sampler->IsActive()); |
| 1659 ScopedLock lock(mutex_); | 1658 ScopedLock lock(mutex_); |
| 1660 ASSERT(active_samplers_ != NULL); | 1659 ASSERT(active_samplers_ != NULL); |
| 1661 bool removed = active_samplers_->RemoveElement(sampler); | 1660 bool removed = active_samplers_->RemoveElement(sampler); |
| 1662 ASSERT(removed); | 1661 ASSERT(removed); |
| 1663 USE(removed); | 1662 USE(removed); |
| 1664 } | 1663 } |
| 1665 | 1664 |
| 1666 } } // namespace v8::internal | 1665 } } // namespace v8::internal |
| OLD | NEW |