OLD | NEW |
1 // Copyright 2006-2008 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2008 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 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
121 } | 121 } |
122 | 122 |
123 | 123 |
124 // Print (debug) message to console. | 124 // Print (debug) message to console. |
125 void OS::VPrint(const char* format, va_list args) { | 125 void OS::VPrint(const char* format, va_list args) { |
126 // Minimalistic implementation for bootstrapping. | 126 // Minimalistic implementation for bootstrapping. |
127 vfprintf(stdout, format, args); | 127 vfprintf(stdout, format, args); |
128 } | 128 } |
129 | 129 |
130 | 130 |
| 131 void OS::FPrint(FILE* out, const char* format, ...) { |
| 132 va_list args; |
| 133 va_start(args, format); |
| 134 VFPrint(out, format, args); |
| 135 va_end(args); |
| 136 } |
| 137 |
| 138 |
| 139 void OS::VFPrint(FILE* out, const char* format, va_list args) { |
| 140 vfprintf(out, format, args); |
| 141 } |
| 142 |
| 143 |
131 // Print error message to console. | 144 // Print error message to console. |
132 void OS::PrintError(const char* format, ...) { | 145 void OS::PrintError(const char* format, ...) { |
133 // Minimalistic implementation for bootstrapping. | 146 // Minimalistic implementation for bootstrapping. |
134 va_list args; | 147 va_list args; |
135 va_start(args, format); | 148 va_start(args, format); |
136 VPrintError(format, args); | 149 VPrintError(format, args); |
137 va_end(args); | 150 va_end(args); |
138 } | 151 } |
139 | 152 |
140 | 153 |
(...skipping 316 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
457 } | 470 } |
458 | 471 |
459 | 472 |
460 void ProfileSampler::Stop() { | 473 void ProfileSampler::Stop() { |
461 UNIMPLEMENTED(); | 474 UNIMPLEMENTED(); |
462 } | 475 } |
463 | 476 |
464 #endif // ENABLE_LOGGING_AND_PROFILING | 477 #endif // ENABLE_LOGGING_AND_PROFILING |
465 | 478 |
466 } } // namespace v8::internal | 479 } } // namespace v8::internal |
OLD | NEW |