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 1510 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1521 void Logger::LogCodeInfo() { | 1521 void Logger::LogCodeInfo() { |
1522 if (!log_->IsEnabled() || !FLAG_ll_prof) return; | 1522 if (!log_->IsEnabled() || !FLAG_ll_prof) return; |
1523 #if V8_TARGET_ARCH_IA32 | 1523 #if V8_TARGET_ARCH_IA32 |
1524 const char arch[] = "ia32"; | 1524 const char arch[] = "ia32"; |
1525 #elif V8_TARGET_ARCH_X64 | 1525 #elif V8_TARGET_ARCH_X64 |
1526 const char arch[] = "x64"; | 1526 const char arch[] = "x64"; |
1527 #elif V8_TARGET_ARCH_ARM | 1527 #elif V8_TARGET_ARCH_ARM |
1528 const char arch[] = "arm"; | 1528 const char arch[] = "arm"; |
1529 #elif V8_TARGET_ARCH_MIPS | 1529 #elif V8_TARGET_ARCH_MIPS |
1530 const char arch[] = "mips"; | 1530 const char arch[] = "mips"; |
| 1531 #elif V8_TARGET_ARCH_SH4 |
| 1532 const char arch[] = "sh4"; |
1531 #else | 1533 #else |
1532 const char arch[] = "unknown"; | 1534 const char arch[] = "unknown"; |
1533 #endif | 1535 #endif |
1534 LowLevelLogWriteBytes(arch, sizeof(arch)); | 1536 LowLevelLogWriteBytes(arch, sizeof(arch)); |
1535 } | 1537 } |
1536 | 1538 |
1537 | 1539 |
1538 void Logger::RegisterSnapshotCodeName(Code* code, | 1540 void Logger::RegisterSnapshotCodeName(Code* code, |
1539 const char* name, | 1541 const char* name, |
1540 int name_size) { | 1542 int name_size) { |
(...skipping 327 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1868 void SamplerRegistry::RemoveActiveSampler(Sampler* sampler) { | 1870 void SamplerRegistry::RemoveActiveSampler(Sampler* sampler) { |
1869 ASSERT(sampler->IsActive()); | 1871 ASSERT(sampler->IsActive()); |
1870 ScopedLock lock(active_samplers_mutex); | 1872 ScopedLock lock(active_samplers_mutex); |
1871 ASSERT(active_samplers_ != NULL); | 1873 ASSERT(active_samplers_ != NULL); |
1872 bool removed = active_samplers_->RemoveElement(sampler); | 1874 bool removed = active_samplers_->RemoveElement(sampler); |
1873 ASSERT(removed); | 1875 ASSERT(removed); |
1874 USE(removed); | 1876 USE(removed); |
1875 } | 1877 } |
1876 | 1878 |
1877 } } // namespace v8::internal | 1879 } } // namespace v8::internal |
OLD | NEW |