OLD | NEW |
1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "src/log.h" | 5 #include "src/log.h" |
6 | 6 |
7 #include <cstdarg> | 7 #include <cstdarg> |
8 #include <sstream> | 8 #include <sstream> |
9 | 9 |
10 #include "src/v8.h" | 10 #include "src/v8.h" |
(...skipping 384 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
395 | 395 |
396 void LowLevelLogger::LogCodeInfo() { | 396 void LowLevelLogger::LogCodeInfo() { |
397 #if V8_TARGET_ARCH_IA32 | 397 #if V8_TARGET_ARCH_IA32 |
398 const char arch[] = "ia32"; | 398 const char arch[] = "ia32"; |
399 #elif V8_TARGET_ARCH_X64 && V8_TARGET_ARCH_64_BIT | 399 #elif V8_TARGET_ARCH_X64 && V8_TARGET_ARCH_64_BIT |
400 const char arch[] = "x64"; | 400 const char arch[] = "x64"; |
401 #elif V8_TARGET_ARCH_X64 && V8_TARGET_ARCH_32_BIT | 401 #elif V8_TARGET_ARCH_X64 && V8_TARGET_ARCH_32_BIT |
402 const char arch[] = "x32"; | 402 const char arch[] = "x32"; |
403 #elif V8_TARGET_ARCH_ARM | 403 #elif V8_TARGET_ARCH_ARM |
404 const char arch[] = "arm"; | 404 const char arch[] = "arm"; |
| 405 #elif V8_TARGET_ARCH_PPC |
| 406 const char arch[] = "ppc"; |
405 #elif V8_TARGET_ARCH_MIPS | 407 #elif V8_TARGET_ARCH_MIPS |
406 const char arch[] = "mips"; | 408 const char arch[] = "mips"; |
407 #elif V8_TARGET_ARCH_X87 | 409 #elif V8_TARGET_ARCH_X87 |
408 const char arch[] = "x87"; | 410 const char arch[] = "x87"; |
409 #elif V8_TARGET_ARCH_ARM64 | 411 #elif V8_TARGET_ARCH_ARM64 |
410 const char arch[] = "arm64"; | 412 const char arch[] = "arm64"; |
411 #else | 413 #else |
412 const char arch[] = "unknown"; | 414 const char arch[] = "unknown"; |
413 #endif | 415 #endif |
414 LogWriteBytes(arch, sizeof(arch)); | 416 LogWriteBytes(arch, sizeof(arch)); |
(...skipping 1516 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1931 if (jit_logger_) { | 1933 if (jit_logger_) { |
1932 removeCodeEventListener(jit_logger_); | 1934 removeCodeEventListener(jit_logger_); |
1933 delete jit_logger_; | 1935 delete jit_logger_; |
1934 jit_logger_ = NULL; | 1936 jit_logger_ = NULL; |
1935 } | 1937 } |
1936 | 1938 |
1937 return log_->Close(); | 1939 return log_->Close(); |
1938 } | 1940 } |
1939 | 1941 |
1940 } } // namespace v8::internal | 1942 } } // namespace v8::internal |
OLD | NEW |