Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(157)

Side by Side Diff: include/v8.h

Issue 12378069: Merged r13762 into 3.16 branch. (Closed) Base URL: https://v8.googlecode.com/svn/branches/3.16
Patch Set: Created 7 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | src/api.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 3151 matching lines...) Expand 10 before | Expand all | Expand 10 after
3162 static StartupData::CompressionAlgorithm GetCompressedStartupDataAlgorithm(); 3162 static StartupData::CompressionAlgorithm GetCompressedStartupDataAlgorithm();
3163 static int GetCompressedStartupDataCount(); 3163 static int GetCompressedStartupDataCount();
3164 static void GetCompressedStartupData(StartupData* compressed_data); 3164 static void GetCompressedStartupData(StartupData* compressed_data);
3165 static void SetDecompressedStartupData(StartupData* decompressed_data); 3165 static void SetDecompressedStartupData(StartupData* decompressed_data);
3166 3166
3167 /** 3167 /**
3168 * Adds a message listener. 3168 * Adds a message listener.
3169 * 3169 *
3170 * The same message listener can be added more than once and in that 3170 * The same message listener can be added more than once and in that
3171 * case it will be called more than once for each message. 3171 * case it will be called more than once for each message.
3172 *
3173 * If data is specified, it will be passed to the callback when it is called.
3174 * Otherwise, the exception object will be passed to the callback instead.
3172 */ 3175 */
3173 static bool AddMessageListener(MessageCallback that); 3176 static bool AddMessageListener(MessageCallback that,
3177 Handle<Value> data = Handle<Value>());
3174 3178
3175 /** 3179 /**
3176 * Remove all message listeners from the specified callback function. 3180 * Remove all message listeners from the specified callback function.
3177 */ 3181 */
3178 static void RemoveMessageListeners(MessageCallback that); 3182 static void RemoveMessageListeners(MessageCallback that);
3179 3183
3180 /** 3184 /**
3181 * Tells V8 to capture current stack trace when uncaught exception occurs 3185 * Tells V8 to capture current stack trace when uncaught exception occurs
3182 * and report it to the message listeners. The option is off by default. 3186 * and report it to the message listeners. The option is off by default.
3183 */ 3187 */
(...skipping 1744 matching lines...) Expand 10 before | Expand all | Expand 10 after
4928 4932
4929 4933
4930 } // namespace v8 4934 } // namespace v8
4931 4935
4932 4936
4933 #undef V8EXPORT 4937 #undef V8EXPORT
4934 #undef TYPE_CHECK 4938 #undef TYPE_CHECK
4935 4939
4936 4940
4937 #endif // V8_H_ 4941 #endif // V8_H_
OLDNEW
« no previous file with comments | « no previous file | src/api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698