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

Side by Side Diff: include/v8.h

Issue 1156733002: Implement bookmarks for ExternalStreamingStream. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 7 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
« 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 // 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 /** \mainpage V8 API Reference Guide 5 /** \mainpage V8 API Reference Guide
6 * 6 *
7 * V8 is Google's open source JavaScript engine. 7 * V8 is Google's open source JavaScript engine.
8 * 8 *
9 * This set of documents provides reference material generated from the 9 * This set of documents provides reference material generated from the
10 * V8 header file, include/v8.h. 10 * V8 header file, include/v8.h.
(...skipping 1204 matching lines...) Expand 10 before | Expand all | Expand 10 after
1215 * two data chunks, but doesn't handle multi-byte characters split between 1215 * two data chunks, but doesn't handle multi-byte characters split between
1216 * more than two data chunks. The embedder can avoid this problem by always 1216 * more than two data chunks. The embedder can avoid this problem by always
1217 * returning at least 2 bytes of data. 1217 * returning at least 2 bytes of data.
1218 * 1218 *
1219 * If the embedder wants to cancel the streaming, they should make the next 1219 * If the embedder wants to cancel the streaming, they should make the next
1220 * GetMoreData call return 0. V8 will interpret it as end of data (and most 1220 * GetMoreData call return 0. V8 will interpret it as end of data (and most
1221 * probably, parsing will fail). The streaming task will return as soon as 1221 * probably, parsing will fail). The streaming task will return as soon as
1222 * V8 has parsed the data it received so far. 1222 * V8 has parsed the data it received so far.
1223 */ 1223 */
1224 virtual size_t GetMoreData(const uint8_t** src) = 0; 1224 virtual size_t GetMoreData(const uint8_t** src) = 0;
1225
1226 virtual bool SetBookmark();
jochen (gone - plz use gerrit) 2015/05/22 15:54:29 Please add a comment about what this is supposed t
1227 virtual void ResetToBookmark();
1225 }; 1228 };
1226 1229
1227 1230
1228 /** 1231 /**
1229 * Source code which can be streamed into V8 in pieces. It will be parsed 1232 * Source code which can be streamed into V8 in pieces. It will be parsed
1230 * while streaming. It can be compiled after the streaming is complete. 1233 * while streaming. It can be compiled after the streaming is complete.
1231 * StreamedSource must be kept alive while the streaming task is ran (see 1234 * StreamedSource must be kept alive while the streaming task is ran (see
1232 * ScriptStreamingTask below). 1235 * ScriptStreamingTask below).
1233 */ 1236 */
1234 class V8_EXPORT StreamedSource { 1237 class V8_EXPORT StreamedSource {
(...skipping 6880 matching lines...) Expand 10 before | Expand all | Expand 10 after
8115 */ 8118 */
8116 8119
8117 8120
8118 } // namespace v8 8121 } // namespace v8
8119 8122
8120 8123
8121 #undef TYPE_CHECK 8124 #undef TYPE_CHECK
8122 8125
8123 8126
8124 #endif // V8_H_ 8127 #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