| 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 1519 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1530 LogEventsAndTags tag = Logger::STUB_TAG; | 1530 LogEventsAndTags tag = Logger::STUB_TAG; |
| 1531 const char* description = "Unknown code from the snapshot"; | 1531 const char* description = "Unknown code from the snapshot"; |
| 1532 switch (code_object->kind()) { | 1532 switch (code_object->kind()) { |
| 1533 case Code::FUNCTION: | 1533 case Code::FUNCTION: |
| 1534 case Code::OPTIMIZED_FUNCTION: | 1534 case Code::OPTIMIZED_FUNCTION: |
| 1535 return; // We log this later using LogCompiledFunctions. | 1535 return; // We log this later using LogCompiledFunctions. |
| 1536 case Code::UNARY_OP_IC: // fall through | 1536 case Code::UNARY_OP_IC: // fall through |
| 1537 case Code::BINARY_OP_IC: // fall through | 1537 case Code::BINARY_OP_IC: // fall through |
| 1538 case Code::COMPARE_IC: // fall through | 1538 case Code::COMPARE_IC: // fall through |
| 1539 case Code::TO_BOOLEAN_IC: // fall through | 1539 case Code::TO_BOOLEAN_IC: // fall through |
| 1540 case Code::COMPILED_STUB: // fall through |
| 1540 case Code::STUB: | 1541 case Code::STUB: |
| 1541 description = | 1542 description = |
| 1542 CodeStub::MajorName(CodeStub::GetMajorKey(code_object), true); | 1543 CodeStub::MajorName(CodeStub::GetMajorKey(code_object), true); |
| 1543 if (description == NULL) | 1544 if (description == NULL) |
| 1544 description = "A stub from the snapshot"; | 1545 description = "A stub from the snapshot"; |
| 1545 tag = Logger::STUB_TAG; | 1546 tag = Logger::STUB_TAG; |
| 1546 break; | 1547 break; |
| 1547 case Code::BUILTIN: | 1548 case Code::BUILTIN: |
| 1548 description = "A builtin from the snapshot"; | 1549 description = "A builtin from the snapshot"; |
| 1549 tag = Logger::BUILTIN_TAG; | 1550 tag = Logger::BUILTIN_TAG; |
| (...skipping 381 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1931 void SamplerRegistry::RemoveActiveSampler(Sampler* sampler) { | 1932 void SamplerRegistry::RemoveActiveSampler(Sampler* sampler) { |
| 1932 ASSERT(sampler->IsActive()); | 1933 ASSERT(sampler->IsActive()); |
| 1933 ScopedLock lock(active_samplers_mutex); | 1934 ScopedLock lock(active_samplers_mutex); |
| 1934 ASSERT(active_samplers_ != NULL); | 1935 ASSERT(active_samplers_ != NULL); |
| 1935 bool removed = active_samplers_->RemoveElement(sampler); | 1936 bool removed = active_samplers_->RemoveElement(sampler); |
| 1936 ASSERT(removed); | 1937 ASSERT(removed); |
| 1937 USE(removed); | 1938 USE(removed); |
| 1938 } | 1939 } |
| 1939 | 1940 |
| 1940 } } // namespace v8::internal | 1941 } } // namespace v8::internal |
| OLD | NEW |