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 <stdarg.h> | 5 #include <stdarg.h> |
6 | 6 |
7 #include "src/v8.h" | 7 #include "src/v8.h" |
8 | 8 |
9 #include "src/bootstrapper.h" | 9 #include "src/bootstrapper.h" |
10 #include "src/code-stubs.h" | 10 #include "src/code-stubs.h" |
(...skipping 536 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
547 | 547 |
548 LowLevelLogger::~LowLevelLogger() { | 548 LowLevelLogger::~LowLevelLogger() { |
549 fclose(ll_output_handle_); | 549 fclose(ll_output_handle_); |
550 ll_output_handle_ = NULL; | 550 ll_output_handle_ = NULL; |
551 } | 551 } |
552 | 552 |
553 | 553 |
554 void LowLevelLogger::LogCodeInfo() { | 554 void LowLevelLogger::LogCodeInfo() { |
555 #if V8_TARGET_ARCH_IA32 | 555 #if V8_TARGET_ARCH_IA32 |
556 const char arch[] = "ia32"; | 556 const char arch[] = "ia32"; |
557 #elif V8_TARGET_ARCH_X64 | 557 #elif V8_TARGET_ARCH_X64 && V8_TARGET_ARCH_64_BIT |
558 const char arch[] = "x64"; | 558 const char arch[] = "x64"; |
| 559 #elif V8_TARGET_ARCH_X64 && V8_TARGET_ARCH_32_BIT |
| 560 const char arch[] = "x32"; |
559 #elif V8_TARGET_ARCH_ARM | 561 #elif V8_TARGET_ARCH_ARM |
560 const char arch[] = "arm"; | 562 const char arch[] = "arm"; |
561 #elif V8_TARGET_ARCH_MIPS | 563 #elif V8_TARGET_ARCH_MIPS |
562 const char arch[] = "mips"; | 564 const char arch[] = "mips"; |
563 #elif V8_TARGET_ARCH_X87 | 565 #elif V8_TARGET_ARCH_X87 |
564 const char arch[] = "x87"; | 566 const char arch[] = "x87"; |
565 #else | 567 #else |
566 const char arch[] = "unknown"; | 568 const char arch[] = "unknown"; |
567 #endif | 569 #endif |
568 LogWriteBytes(arch, sizeof(arch)); | 570 LogWriteBytes(arch, sizeof(arch)); |
(...skipping 1550 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2119 if (jit_logger_) { | 2121 if (jit_logger_) { |
2120 removeCodeEventListener(jit_logger_); | 2122 removeCodeEventListener(jit_logger_); |
2121 delete jit_logger_; | 2123 delete jit_logger_; |
2122 jit_logger_ = NULL; | 2124 jit_logger_ = NULL; |
2123 } | 2125 } |
2124 | 2126 |
2125 return log_->Close(); | 2127 return log_->Close(); |
2126 } | 2128 } |
2127 | 2129 |
2128 } } // namespace v8::internal | 2130 } } // namespace v8::internal |
OLD | NEW |