Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 5339 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 5350 | 5350 |
| 5351 // Only valid for CODE_ADD_LINE_POS_INFO | 5351 // Only valid for CODE_ADD_LINE_POS_INFO |
| 5352 struct line_info_t line_info; | 5352 struct line_info_t line_info; |
| 5353 | 5353 |
| 5354 // New location of instructions. Only valid for CODE_MOVED. | 5354 // New location of instructions. Only valid for CODE_MOVED. |
| 5355 void* new_code_start; | 5355 void* new_code_start; |
| 5356 }; | 5356 }; |
| 5357 }; | 5357 }; |
| 5358 | 5358 |
| 5359 /** | 5359 /** |
| 5360 * Option flags passed to the SetRAILMode function. | |
|
ulan
2016/05/20 11:15:56
Link https://developers.google.com/web/tools/chrom
| |
| 5361 */ | |
| 5362 enum RAILMode { | |
| 5363 // Default performance mode: V8 will optimize for both latency and | |
| 5364 // throughput in this mode. | |
| 5365 PERFORMANCE_DEFAULT, | |
| 5366 // Response performance mode: In this mode moderate virtual machine latency | |
| 5367 // is provided. V8 will try to avoid long JavaScript execution interruptions. | |
| 5368 // Throughput may be throttled. | |
| 5369 PERFORMANCE_RESPONSE, | |
| 5370 // Animation performance mode: In this mode low virtual machine latency is | |
|
Sami
2016/05/20 11:08:03
In my mind RESPONSE is the one where we'd want the
rmcilroy
2016/05/20 11:12:52
+1 - response would be for something where the ani
| |
| 5371 // provided. V8 will try to avoid as many JavaScript execution interruptions | |
| 5372 // as possible. Throughput may be throttled | |
| 5373 PERFORMANCE_ANIMATION, | |
| 5374 // Idle performance mode: The embedder is idle. V8 can complete deferred work | |
| 5375 // in this mode. | |
| 5376 PERFORMANCE_IDLE, | |
| 5377 // Load performance mode: In this mode high throughput is provided. V8 may | |
| 5378 // turn off latency optimizations. | |
| 5379 PERFORMANCE_LOAD | |
| 5380 }; | |
| 5381 | |
| 5382 /** | |
| 5360 * Option flags passed to the SetJitCodeEventHandler function. | 5383 * Option flags passed to the SetJitCodeEventHandler function. |
| 5361 */ | 5384 */ |
| 5362 enum JitCodeEventOptions { | 5385 enum JitCodeEventOptions { |
| 5363 kJitCodeEventDefault = 0, | 5386 kJitCodeEventDefault = 0, |
| 5364 // Generate callbacks for already existent code. | 5387 // Generate callbacks for already existent code. |
| 5365 kJitCodeEventEnumExisting = 1 | 5388 kJitCodeEventEnumExisting = 1 |
| 5366 }; | 5389 }; |
| 5367 | 5390 |
| 5368 | 5391 |
| 5369 /** | 5392 /** |
| (...skipping 781 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 6151 */ | 6174 */ |
| 6152 void IsolateInForegroundNotification(); | 6175 void IsolateInForegroundNotification(); |
| 6153 | 6176 |
| 6154 /** | 6177 /** |
| 6155 * Optional notification that the isolate switched to the background. | 6178 * Optional notification that the isolate switched to the background. |
| 6156 * V8 uses these notifications to guide heuristics. | 6179 * V8 uses these notifications to guide heuristics. |
| 6157 */ | 6180 */ |
| 6158 void IsolateInBackgroundNotification(); | 6181 void IsolateInBackgroundNotification(); |
| 6159 | 6182 |
| 6160 /** | 6183 /** |
| 6184 * Optional notification to tell V8 the current performance requirements | |
| 6185 * of the embedder based on RAIL. | |
| 6186 * V8 uses these notifications to guide heuristics. | |
| 6187 */ | |
| 6188 void SetRAILMode(RAILMode rail_mode); | |
| 6189 | |
| 6190 /** | |
| 6161 * Allows the host application to provide the address of a function that is | 6191 * Allows the host application to provide the address of a function that is |
| 6162 * notified each time code is added, moved or removed. | 6192 * notified each time code is added, moved or removed. |
| 6163 * | 6193 * |
| 6164 * \param options options for the JIT code event handler. | 6194 * \param options options for the JIT code event handler. |
| 6165 * \param event_handler the JIT code event handler, which will be invoked | 6195 * \param event_handler the JIT code event handler, which will be invoked |
| 6166 * each time code is added, moved or removed. | 6196 * each time code is added, moved or removed. |
| 6167 * \note \p event_handler won't get notified of existent code. | 6197 * \note \p event_handler won't get notified of existent code. |
| 6168 * \note since code removal notifications are not currently issued, the | 6198 * \note since code removal notifications are not currently issued, the |
| 6169 * \p event_handler may get notifications of code that overlaps earlier | 6199 * \p event_handler may get notifications of code that overlaps earlier |
| 6170 * code notifications. This happens when code areas are reused, and the | 6200 * code notifications. This happens when code areas are reused, and the |
| (...skipping 2573 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 8744 */ | 8774 */ |
| 8745 | 8775 |
| 8746 | 8776 |
| 8747 } // namespace v8 | 8777 } // namespace v8 |
| 8748 | 8778 |
| 8749 | 8779 |
| 8750 #undef TYPE_CHECK | 8780 #undef TYPE_CHECK |
| 8751 | 8781 |
| 8752 | 8782 |
| 8753 #endif // INCLUDE_V8_H_ | 8783 #endif // INCLUDE_V8_H_ |
| OLD | NEW |