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/bailout-reason.h" | 10 #include "src/bailout-reason.h" |
(...skipping 378 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
389 #elif V8_TARGET_ARCH_ARM | 389 #elif V8_TARGET_ARCH_ARM |
390 const char arch[] = "arm"; | 390 const char arch[] = "arm"; |
391 #elif V8_TARGET_ARCH_PPC | 391 #elif V8_TARGET_ARCH_PPC |
392 const char arch[] = "ppc"; | 392 const char arch[] = "ppc"; |
393 #elif V8_TARGET_ARCH_MIPS | 393 #elif V8_TARGET_ARCH_MIPS |
394 const char arch[] = "mips"; | 394 const char arch[] = "mips"; |
395 #elif V8_TARGET_ARCH_X87 | 395 #elif V8_TARGET_ARCH_X87 |
396 const char arch[] = "x87"; | 396 const char arch[] = "x87"; |
397 #elif V8_TARGET_ARCH_ARM64 | 397 #elif V8_TARGET_ARCH_ARM64 |
398 const char arch[] = "arm64"; | 398 const char arch[] = "arm64"; |
| 399 #elif V8_TARGET_ARCH_S390 |
| 400 const char arch[] = "s390"; |
399 #else | 401 #else |
400 const char arch[] = "unknown"; | 402 const char arch[] = "unknown"; |
401 #endif | 403 #endif |
402 LogWriteBytes(arch, sizeof(arch)); | 404 LogWriteBytes(arch, sizeof(arch)); |
403 } | 405 } |
404 | 406 |
405 void LowLevelLogger::LogRecordedBuffer(AbstractCode* code, SharedFunctionInfo*, | 407 void LowLevelLogger::LogRecordedBuffer(AbstractCode* code, SharedFunctionInfo*, |
406 const char* name, int length) { | 408 const char* name, int length) { |
407 CodeCreateStruct event; | 409 CodeCreateStruct event; |
408 event.name_size = length; | 410 event.name_size = length; |
(...skipping 1453 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1862 removeCodeEventListener(jit_logger_); | 1864 removeCodeEventListener(jit_logger_); |
1863 delete jit_logger_; | 1865 delete jit_logger_; |
1864 jit_logger_ = NULL; | 1866 jit_logger_ = NULL; |
1865 } | 1867 } |
1866 | 1868 |
1867 return log_->Close(); | 1869 return log_->Close(); |
1868 } | 1870 } |
1869 | 1871 |
1870 } // namespace internal | 1872 } // namespace internal |
1871 } // namespace v8 | 1873 } // namespace v8 |
OLD | NEW |