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 1547 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1558 PROFILE(isolate_, CodeCreateEvent(tag, code_object, description)); | 1558 PROFILE(isolate_, CodeCreateEvent(tag, code_object, description)); |
1559 } | 1559 } |
1560 | 1560 |
1561 | 1561 |
1562 void Logger::LogCodeInfo() { | 1562 void Logger::LogCodeInfo() { |
1563 if (!log_->IsEnabled() || !FLAG_ll_prof) return; | 1563 if (!log_->IsEnabled() || !FLAG_ll_prof) return; |
1564 #if V8_TARGET_ARCH_IA32 | 1564 #if V8_TARGET_ARCH_IA32 |
1565 const char arch[] = "ia32"; | 1565 const char arch[] = "ia32"; |
1566 #elif V8_TARGET_ARCH_X64 | 1566 #elif V8_TARGET_ARCH_X64 |
1567 const char arch[] = "x64"; | 1567 const char arch[] = "x64"; |
| 1568 #elif V8_TARGET_ARCH_X32 |
| 1569 const char arch[] = "x32"; |
1568 #elif V8_TARGET_ARCH_ARM | 1570 #elif V8_TARGET_ARCH_ARM |
1569 const char arch[] = "arm"; | 1571 const char arch[] = "arm"; |
1570 #elif V8_TARGET_ARCH_MIPS | 1572 #elif V8_TARGET_ARCH_MIPS |
1571 const char arch[] = "mips"; | 1573 const char arch[] = "mips"; |
1572 #else | 1574 #else |
1573 const char arch[] = "unknown"; | 1575 const char arch[] = "unknown"; |
1574 #endif | 1576 #endif |
1575 LowLevelLogWriteBytes(arch, sizeof(arch)); | 1577 LowLevelLogWriteBytes(arch, sizeof(arch)); |
1576 } | 1578 } |
1577 | 1579 |
(...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1810 profiler_ = NULL; | 1812 profiler_ = NULL; |
1811 } | 1813 } |
1812 | 1814 |
1813 delete ticker_; | 1815 delete ticker_; |
1814 ticker_ = NULL; | 1816 ticker_ = NULL; |
1815 | 1817 |
1816 return log_->Close(); | 1818 return log_->Close(); |
1817 } | 1819 } |
1818 | 1820 |
1819 } } // namespace v8::internal | 1821 } } // namespace v8::internal |
OLD | NEW |