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 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
96 static MaybeHandle<Object> Construct( | 96 static MaybeHandle<Object> Construct( |
97 Isolate* isolate, Handle<JSFunction> target, Handle<Object> new_target, | 97 Isolate* isolate, Handle<JSFunction> target, Handle<Object> new_target, |
98 Handle<Object> message, FrameSkipMode mode, bool suppress_detailed_trace); | 98 Handle<Object> message, FrameSkipMode mode, bool suppress_detailed_trace); |
99 | 99 |
100 static MaybeHandle<String> ToString(Isolate* isolate, Handle<Object> recv); | 100 static MaybeHandle<String> ToString(Isolate* isolate, Handle<Object> recv); |
101 }; | 101 }; |
102 | 102 |
103 class CallSiteUtils : public AllStatic { | 103 class CallSiteUtils : public AllStatic { |
104 public: | 104 public: |
105 static MaybeHandle<Object> Construct(Isolate* isolate, | 105 static MaybeHandle<Object> Construct(Isolate* isolate, |
106 Handle<JSFunction> target, | |
107 Handle<Object> new_target, | |
108 Handle<Object> receiver, | 106 Handle<Object> receiver, |
109 Handle<Object> fun, Handle<Object> pos, | 107 Handle<Object> fun, Handle<Object> pos, |
110 Handle<Object> strict_mode); | 108 Handle<Object> strict_mode); |
111 | 109 |
112 static MaybeHandle<String> ToString(Isolate* isolate, Handle<Object> recv); | 110 static MaybeHandle<String> ToString(Isolate* isolate, Handle<Object> recv); |
113 }; | 111 }; |
114 | 112 |
115 #define MESSAGE_TEMPLATES(T) \ | 113 #define MESSAGE_TEMPLATES(T) \ |
116 /* Error */ \ | 114 /* Error */ \ |
117 T(None, "") \ | 115 T(None, "") \ |
(...skipping 458 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
576 static Handle<String> GetMessage(Isolate* isolate, Handle<Object> data); | 574 static Handle<String> GetMessage(Isolate* isolate, Handle<Object> data); |
577 static std::unique_ptr<char[]> GetLocalizedMessage(Isolate* isolate, | 575 static std::unique_ptr<char[]> GetLocalizedMessage(Isolate* isolate, |
578 Handle<Object> data); | 576 Handle<Object> data); |
579 }; | 577 }; |
580 | 578 |
581 | 579 |
582 } // namespace internal | 580 } // namespace internal |
583 } // namespace v8 | 581 } // namespace v8 |
584 | 582 |
585 #endif // V8_MESSAGES_H_ | 583 #endif // V8_MESSAGES_H_ |
OLD | NEW |