| 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_ |
| 11 #define V8_MESSAGES_H_ | 11 #define V8_MESSAGES_H_ |
| 12 | 12 |
| 13 #include "handles-inl.h" | 13 #include "src/handles-inl.h" |
| 14 | 14 |
| 15 // Forward declaration of MessageLocation. | 15 // Forward declaration of MessageLocation. |
| 16 namespace v8 { | 16 namespace v8 { |
| 17 namespace internal { | 17 namespace internal { |
| 18 class MessageLocation; | 18 class MessageLocation; |
| 19 } } // namespace v8::internal | 19 } } // namespace v8::internal |
| 20 | 20 |
| 21 | 21 |
| 22 class V8Message { | 22 class V8Message { |
| 23 public: | 23 public: |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 83 const MessageLocation* loc, | 83 const MessageLocation* loc, |
| 84 Handle<Object> message_obj); | 84 Handle<Object> message_obj); |
| 85 static Handle<String> GetMessage(Isolate* isolate, Handle<Object> data); | 85 static Handle<String> GetMessage(Isolate* isolate, Handle<Object> data); |
| 86 static SmartArrayPointer<char> GetLocalizedMessage(Isolate* isolate, | 86 static SmartArrayPointer<char> GetLocalizedMessage(Isolate* isolate, |
| 87 Handle<Object> data); | 87 Handle<Object> data); |
| 88 }; | 88 }; |
| 89 | 89 |
| 90 } } // namespace v8::internal | 90 } } // namespace v8::internal |
| 91 | 91 |
| 92 #endif // V8_MESSAGES_H_ | 92 #endif // V8_MESSAGES_H_ |
| OLD | NEW |