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

Side by Side Diff: include/v8.h

Issue 315033002: Support external startup data in V8. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Fix build issue by making sure the target is empty (as opposed to not the chain of depedencies) whe… 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 4639 matching lines...) Expand 10 before | Expand all | Expand 10 after
4650 * A helper class StartupDataDecompressor is provided. It implements 4650 * A helper class StartupDataDecompressor is provided. It implements
4651 * the protocol of the interaction described above, and can be used in 4651 * the protocol of the interaction described above, and can be used in
4652 * most cases instead of calling these API functions directly. 4652 * most cases instead of calling these API functions directly.
4653 */ 4653 */
4654 static StartupData::CompressionAlgorithm GetCompressedStartupDataAlgorithm(); 4654 static StartupData::CompressionAlgorithm GetCompressedStartupDataAlgorithm();
4655 static int GetCompressedStartupDataCount(); 4655 static int GetCompressedStartupDataCount();
4656 static void GetCompressedStartupData(StartupData* compressed_data); 4656 static void GetCompressedStartupData(StartupData* compressed_data);
4657 static void SetDecompressedStartupData(StartupData* decompressed_data); 4657 static void SetDecompressedStartupData(StartupData* decompressed_data);
4658 4658
4659 /** 4659 /**
4660 * Hand startup data to V8, in case the embedder has chosen to build
4661 * V8 with external startup data.
4662 *
4663 * Note:
4664 * - By default the startup data is linked into the V8 library, in which
4665 * case this function is not meaningful.
4666 * - If this needs to be called, it needs to be called before V8
4667 * tries to make use of its built-ins.
4668 * - To avoid unnecessary copies of data, V8 will point directly into the
4669 * given data blob, so pretty please keep it around until V8 exit.
4670 * - Compression of the startup blob might be useful, but needs to
4671 * handled entirely on the embedders' side.
4672 * - The call will abort if the data is invalid.
4673 */
4674 static void SetNativesDataBlob(StartupData* startup_blob);
4675 static void SetSnapshotDataBlob(StartupData* startup_blob);
4676
4677 /**
4660 * Adds a message listener. 4678 * Adds a message listener.
4661 * 4679 *
4662 * The same message listener can be added more than once and in that 4680 * The same message listener can be added more than once and in that
4663 * case it will be called more than once for each message. 4681 * case it will be called more than once for each message.
4664 * 4682 *
4665 * If data is specified, it will be passed to the callback when it is called. 4683 * If data is specified, it will be passed to the callback when it is called.
4666 * Otherwise, the exception object will be passed to the callback instead. 4684 * Otherwise, the exception object will be passed to the callback instead.
4667 */ 4685 */
4668 static bool AddMessageListener(MessageCallback that, 4686 static bool AddMessageListener(MessageCallback that,
4669 Handle<Value> data = Handle<Value>()); 4687 Handle<Value> data = Handle<Value>());
(...skipping 1964 matching lines...) Expand 10 before | Expand all | Expand 10 after
6634 */ 6652 */
6635 6653
6636 6654
6637 } // namespace v8 6655 } // namespace v8
6638 6656
6639 6657
6640 #undef TYPE_CHECK 6658 #undef TYPE_CHECK
6641 6659
6642 6660
6643 #endif // V8_H_ 6661 #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