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. | |
| 5361 */ | |
| 5362 enum RAILMode { | |
| 5363 PERFORMANCE_DEFAULT, | |
|
rmcilroy
2016/05/20 10:29:00
Could you add a comment to each of these describin
Sami
2016/05/20 10:37:32
+1, a short snippet per state would be useful -- e
Hannes Payer (out of office)
2016/05/20 11:02:41
Done.
| |
| 5364 PERFORMANCE_RESPONSE, | |
| 5365 PERFORMANCE_ANIMATION, | |
| 5366 PERFORMANCE_IDLE, | |
| 5367 PERFORMANCE_LOAD | |
| 5368 }; | |
| 5369 | |
| 5370 /** | |
| 5360 * Option flags passed to the SetJitCodeEventHandler function. | 5371 * Option flags passed to the SetJitCodeEventHandler function. |
| 5361 */ | 5372 */ |
| 5362 enum JitCodeEventOptions { | 5373 enum JitCodeEventOptions { |
| 5363 kJitCodeEventDefault = 0, | 5374 kJitCodeEventDefault = 0, |
| 5364 // Generate callbacks for already existent code. | 5375 // Generate callbacks for already existent code. |
| 5365 kJitCodeEventEnumExisting = 1 | 5376 kJitCodeEventEnumExisting = 1 |
| 5366 }; | 5377 }; |
| 5367 | 5378 |
| 5368 | 5379 |
| 5369 /** | 5380 /** |
| (...skipping 781 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 6151 */ | 6162 */ |
| 6152 void IsolateInForegroundNotification(); | 6163 void IsolateInForegroundNotification(); |
| 6153 | 6164 |
| 6154 /** | 6165 /** |
| 6155 * Optional notification that the isolate switched to the background. | 6166 * Optional notification that the isolate switched to the background. |
| 6156 * V8 uses these notifications to guide heuristics. | 6167 * V8 uses these notifications to guide heuristics. |
| 6157 */ | 6168 */ |
| 6158 void IsolateInBackgroundNotification(); | 6169 void IsolateInBackgroundNotification(); |
| 6159 | 6170 |
| 6160 /** | 6171 /** |
| 6172 * Optional notification to tell V8 the current performance requirements | |
| 6173 * of the embedder based on RAIL. | |
| 6174 * V8 uses these notifications to guide heuristics. | |
| 6175 */ | |
| 6176 void SetRAILMode(RAILMode rail_mode); | |
| 6177 | |
| 6178 /** | |
| 6161 * Allows the host application to provide the address of a function that is | 6179 * Allows the host application to provide the address of a function that is |
| 6162 * notified each time code is added, moved or removed. | 6180 * notified each time code is added, moved or removed. |
| 6163 * | 6181 * |
| 6164 * \param options options for the JIT code event handler. | 6182 * \param options options for the JIT code event handler. |
| 6165 * \param event_handler the JIT code event handler, which will be invoked | 6183 * \param event_handler the JIT code event handler, which will be invoked |
| 6166 * each time code is added, moved or removed. | 6184 * each time code is added, moved or removed. |
| 6167 * \note \p event_handler won't get notified of existent code. | 6185 * \note \p event_handler won't get notified of existent code. |
| 6168 * \note since code removal notifications are not currently issued, the | 6186 * \note since code removal notifications are not currently issued, the |
| 6169 * \p event_handler may get notifications of code that overlaps earlier | 6187 * \p event_handler may get notifications of code that overlaps earlier |
| 6170 * code notifications. This happens when code areas are reused, and the | 6188 * 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 */ | 8762 */ |
| 8745 | 8763 |
| 8746 | 8764 |
| 8747 } // namespace v8 | 8765 } // namespace v8 |
| 8748 | 8766 |
| 8749 | 8767 |
| 8750 #undef TYPE_CHECK | 8768 #undef TYPE_CHECK |
| 8751 | 8769 |
| 8752 | 8770 |
| 8753 #endif // INCLUDE_V8_H_ | 8771 #endif // INCLUDE_V8_H_ |
| OLD | NEW |