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 // 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 // The infrastructure used for (localized) message reporting in V8. | 5 // The infrastructure used for (localized) message reporting in V8. |
6 // | 6 // |
7 // Note: there's a big unresolved issue about ownership of the data | 7 // Note: there's a big unresolved issue about ownership of the data |
8 // structures used by this framework. | 8 // structures used by this framework. |
9 | 9 |
10 #ifndef V8_MESSAGES_H_ | 10 #ifndef V8_MESSAGES_H_ |
(...skipping 437 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
448 Isolate* isolate, MessageTemplate::Template type, MessageLocation* loc, | 448 Isolate* isolate, MessageTemplate::Template type, MessageLocation* loc, |
449 Handle<Object> argument, Handle<JSArray> stack_frames); | 449 Handle<Object> argument, Handle<JSArray> stack_frames); |
450 | 450 |
451 // Report a formatted message (needs JS allocation). | 451 // Report a formatted message (needs JS allocation). |
452 static void ReportMessage(Isolate* isolate, MessageLocation* loc, | 452 static void ReportMessage(Isolate* isolate, MessageLocation* loc, |
453 Handle<JSMessageObject> message); | 453 Handle<JSMessageObject> message); |
454 | 454 |
455 static void DefaultMessageReport(Isolate* isolate, const MessageLocation* loc, | 455 static void DefaultMessageReport(Isolate* isolate, const MessageLocation* loc, |
456 Handle<Object> message_obj); | 456 Handle<Object> message_obj); |
457 static Handle<String> GetMessage(Isolate* isolate, Handle<Object> data); | 457 static Handle<String> GetMessage(Isolate* isolate, Handle<Object> data); |
458 static SmartArrayPointer<char> GetLocalizedMessage(Isolate* isolate, | 458 static base::SmartArrayPointer<char> GetLocalizedMessage(Isolate* isolate, |
459 Handle<Object> data); | 459 Handle<Object> data); |
460 }; | 460 }; |
461 } } // namespace v8::internal | 461 } } // namespace v8::internal |
462 | 462 |
463 #endif // V8_MESSAGES_H_ | 463 #endif // V8_MESSAGES_H_ |
OLD | NEW |