OLD | NEW |
1 // Copyright 2009 the V8 project authors. All rights reserved. | 1 // Copyright 2009 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 448 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
459 // Utility class for formatting log messages. It fills the message into the | 459 // Utility class for formatting log messages. It fills the message into the |
460 // static buffer in Log. | 460 // static buffer in Log. |
461 class LogMessageBuilder BASE_EMBEDDED { | 461 class LogMessageBuilder BASE_EMBEDDED { |
462 public: | 462 public: |
463 explicit LogMessageBuilder(); | 463 explicit LogMessageBuilder(); |
464 ~LogMessageBuilder() { } | 464 ~LogMessageBuilder() { } |
465 | 465 |
466 void Append(const char* format, ...); | 466 void Append(const char* format, ...); |
467 void Append(const char* format, va_list args); | 467 void Append(const char* format, va_list args); |
468 void Append(const char c); | 468 void Append(const char c); |
469 void Append(String *str); | 469 void Append(String* str); |
470 void AppendDetailed(String* str, bool show_impl_info); | 470 void AppendDetailed(String* str, bool show_impl_info); |
471 | 471 |
472 void WriteToLogFile(); | 472 void WriteToLogFile(); |
473 void WriteCStringToLogFile(const char* str); | 473 void WriteCStringToLogFile(const char* str); |
474 | 474 |
475 private: | 475 private: |
476 ScopedLock sl; | 476 ScopedLock sl; |
477 int pos_; | 477 int pos_; |
478 }; | 478 }; |
479 | 479 |
(...skipping 836 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1316 } else if (previous_->state_ == EXTERNAL) { | 1316 } else if (previous_->state_ == EXTERNAL) { |
1317 // We are leaving V8. | 1317 // We are leaving V8. |
1318 Heap::Protect(); | 1318 Heap::Protect(); |
1319 } | 1319 } |
1320 } | 1320 } |
1321 #endif | 1321 #endif |
1322 } | 1322 } |
1323 #endif | 1323 #endif |
1324 | 1324 |
1325 } } // namespace v8::internal | 1325 } } // namespace v8::internal |
OLD | NEW |