Index: src/messages.h |
diff --git a/src/messages.h b/src/messages.h |
index acc42037e53b67389425186aa6daa0815775ce3f..675aa598f4ab518df277d20e7346a969ef11c172 100644 |
--- a/src/messages.h |
+++ b/src/messages.h |
@@ -51,6 +51,8 @@ class CallSite { |
Handle<Object> GetFunctionName(); |
Handle<Object> GetScriptNameOrSourceUrl(); |
Handle<Object> GetMethodName(); |
+ Handle<Object> GetTypeName(); |
+ Handle<Object> GetEvalOrigin(); |
// Return 1-based line number, including line offset. |
int GetLineNumber(); |
// Return 1-based column number, including column offset if first line. |
@@ -89,10 +91,26 @@ enum FrameSkipMode { |
SKIP_NONE, |
}; |
-MaybeHandle<Object> ConstructError(Isolate* isolate, Handle<JSFunction> target, |
- Handle<Object> new_target, |
- Handle<Object> message, FrameSkipMode mode, |
- bool suppress_detailed_trace); |
+class ErrorUtils : public AllStatic { |
+ public: |
+ static MaybeHandle<Object> Construct( |
+ Isolate* isolate, Handle<JSFunction> target, Handle<Object> new_target, |
+ Handle<Object> message, FrameSkipMode mode, bool suppress_detailed_trace); |
+ |
+ static MaybeHandle<String> ToString(Isolate* isolate, Handle<Object> recv); |
+}; |
+ |
+class CallSiteUtils : public AllStatic { |
+ public: |
+ static MaybeHandle<Object> Construct(Isolate* isolate, |
+ Handle<JSFunction> target, |
+ Handle<Object> new_target, |
+ Handle<Object> receiver, |
+ Handle<Object> fun, Handle<Object> pos, |
+ Handle<Object> strict_mode); |
+ |
+ static MaybeHandle<String> ToString(Isolate* isolate, Handle<Object> recv); |
+}; |
#define MESSAGE_TEMPLATES(T) \ |
/* Error */ \ |