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 1432 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1443 | 1443 |
1444 | 1444 |
1445 void Logger::LogCodeInfo() { | 1445 void Logger::LogCodeInfo() { |
1446 if (!log_->IsEnabled() || !FLAG_ll_prof) return; | 1446 if (!log_->IsEnabled() || !FLAG_ll_prof) return; |
1447 #if V8_TARGET_ARCH_IA32 | 1447 #if V8_TARGET_ARCH_IA32 |
1448 const char arch[] = "ia32"; | 1448 const char arch[] = "ia32"; |
1449 #elif V8_TARGET_ARCH_X64 | 1449 #elif V8_TARGET_ARCH_X64 |
1450 const char arch[] = "x64"; | 1450 const char arch[] = "x64"; |
1451 #elif V8_TARGET_ARCH_ARM | 1451 #elif V8_TARGET_ARCH_ARM |
1452 const char arch[] = "arm"; | 1452 const char arch[] = "arm"; |
| 1453 #elif V8_TARGET_ARCH_MIPS |
| 1454 const char arch[] = "mips"; |
1453 #else | 1455 #else |
1454 const char arch[] = "unknown"; | 1456 const char arch[] = "unknown"; |
1455 #endif | 1457 #endif |
1456 LowLevelLogWriteBytes(arch, sizeof(arch)); | 1458 LowLevelLogWriteBytes(arch, sizeof(arch)); |
1457 } | 1459 } |
1458 | 1460 |
1459 | 1461 |
1460 void Logger::RegisterSnapshotCodeName(Code* code, | 1462 void Logger::RegisterSnapshotCodeName(Code* code, |
1461 const char* name, | 1463 const char* name, |
1462 int name_size) { | 1464 int name_size) { |
(...skipping 304 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1767 void SamplerRegistry::RemoveActiveSampler(Sampler* sampler) { | 1769 void SamplerRegistry::RemoveActiveSampler(Sampler* sampler) { |
1768 ASSERT(sampler->IsActive()); | 1770 ASSERT(sampler->IsActive()); |
1769 ScopedLock lock(mutex_); | 1771 ScopedLock lock(mutex_); |
1770 ASSERT(active_samplers_ != NULL); | 1772 ASSERT(active_samplers_ != NULL); |
1771 bool removed = active_samplers_->RemoveElement(sampler); | 1773 bool removed = active_samplers_->RemoveElement(sampler); |
1772 ASSERT(removed); | 1774 ASSERT(removed); |
1773 USE(removed); | 1775 USE(removed); |
1774 } | 1776 } |
1775 | 1777 |
1776 } } // namespace v8::internal | 1778 } } // namespace v8::internal |
OLD | NEW |