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

Side by Side Diff: include/v8.h

Issue 389573006: Change ScriptCompiler::CompileOptions and add d8 --cache. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 5 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') | src/api.cc » ('J')
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 1056 matching lines...) Expand 10 before | Expand all | Expand 10 after
1067 Source& operator=(const Source&); 1067 Source& operator=(const Source&);
1068 1068
1069 Local<String> source_string; 1069 Local<String> source_string;
1070 1070
1071 // Origin information 1071 // Origin information
1072 Handle<Value> resource_name; 1072 Handle<Value> resource_name;
1073 Handle<Integer> resource_line_offset; 1073 Handle<Integer> resource_line_offset;
1074 Handle<Integer> resource_column_offset; 1074 Handle<Integer> resource_column_offset;
1075 Handle<Boolean> resource_is_shared_cross_origin; 1075 Handle<Boolean> resource_is_shared_cross_origin;
1076 1076
1077 // Cached data from previous compilation (if any), or generated during 1077 // Cached data from previous compilation (if a kConsume*Cache flag is
1078 // compilation (if the generate_cached_data flag is passed to 1078 // set), or hold newly generated cache data (kProduce*Cache flags) are
1079 // ScriptCompiler). 1079 // set when calling a compile method.
1080 CachedData* cached_data; 1080 CachedData* cached_data;
1081 }; 1081 };
1082 1082
1083 enum CompileOptions { 1083 enum CompileOptions {
1084 kNoCompileOptions, 1084 kNoCompileOptions = 0,
1085 kProduceDataToCache = 1 << 0 1085 kProduceParserCache,
1086 kConsumeParserCache,
1087 kProduceCodeCache,
1088 kConsumeCodeCache
1086 }; 1089 };
1087 1090
1088 /** 1091 /**
1089 * Compiles the specified script (context-independent). 1092 * Compiles the specified script (context-independent).
1090 * Cached data as part of the source object can be optionally produced to be 1093 * Cached data as part of the source object can be optionally produced to be
1091 * consumed later to speed up compilation of identical source scripts. 1094 * consumed later to speed up compilation of identical source scripts.
1092 * 1095 *
1093 * Note that when producing cached data, the source must point to NULL for 1096 * Note that when producing cached data, the source must point to NULL for
1094 * cached data. When consuming cached data, the cached data must have been 1097 * cached data. When consuming cached data, the cached data must have been
1095 * produced by the same version of V8. 1098 * produced by the same version of V8.
(...skipping 5628 matching lines...) Expand 10 before | Expand all | Expand 10 after
6724 */ 6727 */
6725 6728
6726 6729
6727 } // namespace v8 6730 } // namespace v8
6728 6731
6729 6732
6730 #undef TYPE_CHECK 6733 #undef TYPE_CHECK
6731 6734
6732 6735
6733 #endif // V8_H_ 6736 #endif // V8_H_
OLDNEW
« no previous file with comments | « no previous file | src/api.cc » ('j') | src/api.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698