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

Side by Side Diff: include/v8.h

Issue 782573002: Sketch of on demand snapshot generation for d8 Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Add bits needed by the Chrome implementation Created 6 years 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 | « 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 5312 matching lines...) Expand 10 before | Expand all | Expand 10 after
5323 * tries to make use of its built-ins. 5323 * tries to make use of its built-ins.
5324 * - To avoid unnecessary copies of data, V8 will point directly into the 5324 * - To avoid unnecessary copies of data, V8 will point directly into the
5325 * given data blob, so pretty please keep it around until V8 exit. 5325 * given data blob, so pretty please keep it around until V8 exit.
5326 * - Compression of the startup blob might be useful, but needs to 5326 * - Compression of the startup blob might be useful, but needs to
5327 * handled entirely on the embedders' side. 5327 * handled entirely on the embedders' side.
5328 * - The call will abort if the data is invalid. 5328 * - The call will abort if the data is invalid.
5329 */ 5329 */
5330 static void SetNativesDataBlob(StartupData* startup_blob); 5330 static void SetNativesDataBlob(StartupData* startup_blob);
5331 static void SetSnapshotDataBlob(StartupData* startup_blob); 5331 static void SetSnapshotDataBlob(StartupData* startup_blob);
5332 5332
5333 static void CreateV8Snapshot(const char* raw_file,
5334 const char* raw_context_file,
5335 const char* startup_blob,
5336 const char* extra_code,
5337 const char* out_file);
5338
5339 static void CreateSnapshotFromHeap(Isolate* isolate,
5340 const char* raw_file,
5341 const char* raw_context_file,
5342 const char* startup_blob,
5343 const char* extra_code,
5344 const char* out_file);
5345 static void SetFlags(bool harmony, int random_seed, bool probe);
5346 static void SetLogFilePerIsolate(bool logfile);
5347
5333 /** 5348 /**
5334 * Adds a message listener. 5349 * Adds a message listener.
5335 * 5350 *
5336 * The same message listener can be added more than once and in that 5351 * The same message listener can be added more than once and in that
5337 * case it will be called more than once for each message. 5352 * case it will be called more than once for each message.
5338 * 5353 *
5339 * If data is specified, it will be passed to the callback when it is called. 5354 * If data is specified, it will be passed to the callback when it is called.
5340 * Otherwise, the exception object will be passed to the callback instead. 5355 * Otherwise, the exception object will be passed to the callback instead.
5341 */ 5356 */
5342 // TODO(dcarney): deprecate this. 5357 // TODO(dcarney): deprecate this.
(...skipping 2125 matching lines...) Expand 10 before | Expand all | Expand 10 after
7468 */ 7483 */
7469 7484
7470 7485
7471 } // namespace v8 7486 } // namespace v8
7472 7487
7473 7488
7474 #undef TYPE_CHECK 7489 #undef TYPE_CHECK
7475 7490
7476 7491
7477 #endif // V8_H_ 7492 #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