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

Side by Side Diff: include/v8.h

Issue 334913004: Support external startup data in V8. (retry) (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: rebase + style fix Created 6 years, 6 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 | « build/features.gypi ('k') | 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 4650 matching lines...) Expand 10 before | Expand all | Expand 10 after
4661 * A helper class StartupDataDecompressor is provided. It implements 4661 * A helper class StartupDataDecompressor is provided. It implements
4662 * the protocol of the interaction described above, and can be used in 4662 * the protocol of the interaction described above, and can be used in
4663 * most cases instead of calling these API functions directly. 4663 * most cases instead of calling these API functions directly.
4664 */ 4664 */
4665 static StartupData::CompressionAlgorithm GetCompressedStartupDataAlgorithm(); 4665 static StartupData::CompressionAlgorithm GetCompressedStartupDataAlgorithm();
4666 static int GetCompressedStartupDataCount(); 4666 static int GetCompressedStartupDataCount();
4667 static void GetCompressedStartupData(StartupData* compressed_data); 4667 static void GetCompressedStartupData(StartupData* compressed_data);
4668 static void SetDecompressedStartupData(StartupData* decompressed_data); 4668 static void SetDecompressedStartupData(StartupData* decompressed_data);
4669 4669
4670 /** 4670 /**
4671 * Hand startup data to V8, in case the embedder has chosen to build
4672 * V8 with external startup data.
4673 *
4674 * Note:
4675 * - By default the startup data is linked into the V8 library, in which
4676 * case this function is not meaningful.
4677 * - If this needs to be called, it needs to be called before V8
4678 * tries to make use of its built-ins.
4679 * - To avoid unnecessary copies of data, V8 will point directly into the
4680 * given data blob, so pretty please keep it around until V8 exit.
4681 * - Compression of the startup blob might be useful, but needs to
4682 * handled entirely on the embedders' side.
4683 * - The call will abort if the data is invalid.
4684 */
4685 static void SetNativesDataBlob(StartupData* startup_blob);
4686 static void SetSnapshotDataBlob(StartupData* startup_blob);
4687
4688 /**
4671 * Adds a message listener. 4689 * Adds a message listener.
4672 * 4690 *
4673 * The same message listener can be added more than once and in that 4691 * The same message listener can be added more than once and in that
4674 * case it will be called more than once for each message. 4692 * case it will be called more than once for each message.
4675 * 4693 *
4676 * If data is specified, it will be passed to the callback when it is called. 4694 * If data is specified, it will be passed to the callback when it is called.
4677 * Otherwise, the exception object will be passed to the callback instead. 4695 * Otherwise, the exception object will be passed to the callback instead.
4678 */ 4696 */
4679 static bool AddMessageListener(MessageCallback that, 4697 static bool AddMessageListener(MessageCallback that,
4680 Handle<Value> data = Handle<Value>()); 4698 Handle<Value> data = Handle<Value>());
(...skipping 2002 matching lines...) Expand 10 before | Expand all | Expand 10 after
6683 */ 6701 */
6684 6702
6685 6703
6686 } // namespace v8 6704 } // namespace v8
6687 6705
6688 6706
6689 #undef TYPE_CHECK 6707 #undef TYPE_CHECK
6690 6708
6691 6709
6692 #endif // V8_H_ 6710 #endif // V8_H_
OLDNEW
« no previous file with comments | « build/features.gypi ('k') | src/api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698