| 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 5358 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5369 void* new_code_start; | 5369 void* new_code_start; |
| 5370 }; | 5370 }; |
| 5371 }; | 5371 }; |
| 5372 | 5372 |
| 5373 /** | 5373 /** |
| 5374 * Option flags passed to the SetRAILMode function. | 5374 * Option flags passed to the SetRAILMode function. |
| 5375 * See documentation https://developers.google.com/web/tools/chrome-devtools/ | 5375 * See documentation https://developers.google.com/web/tools/chrome-devtools/ |
| 5376 * profile/evaluate-performance/rail | 5376 * profile/evaluate-performance/rail |
| 5377 */ | 5377 */ |
| 5378 enum RAILMode { | 5378 enum RAILMode { |
| 5379 // Default performance mode: V8 will optimize for both latency and | |
| 5380 // throughput in this mode. | |
| 5381 PERFORMANCE_DEFAULT, | |
| 5382 // Response performance mode: In this mode very low virtual machine latency | 5379 // Response performance mode: In this mode very low virtual machine latency |
| 5383 // is provided. V8 will try to avoid JavaScript execution interruptions. | 5380 // is provided. V8 will try to avoid JavaScript execution interruptions. |
| 5384 // Throughput may be throttled. | 5381 // Throughput may be throttled. |
| 5385 PERFORMANCE_RESPONSE, | 5382 PERFORMANCE_RESPONSE, |
| 5386 // Animation performance mode: In this mode low virtual machine latency is | 5383 // Animation performance mode: In this mode low virtual machine latency is |
| 5387 // provided. V8 will try to avoid as many JavaScript execution interruptions | 5384 // provided. V8 will try to avoid as many JavaScript execution interruptions |
| 5388 // as possible. Throughput may be throttled | 5385 // as possible. Throughput may be throttled. This is the default mode. |
| 5389 PERFORMANCE_ANIMATION, | 5386 PERFORMANCE_ANIMATION, |
| 5390 // Idle performance mode: The embedder is idle. V8 can complete deferred work | 5387 // Idle performance mode: The embedder is idle. V8 can complete deferred work |
| 5391 // in this mode. | 5388 // in this mode. |
| 5392 PERFORMANCE_IDLE, | 5389 PERFORMANCE_IDLE, |
| 5393 // Load performance mode: In this mode high throughput is provided. V8 may | 5390 // Load performance mode: In this mode high throughput is provided. V8 may |
| 5394 // turn off latency optimizations. | 5391 // turn off latency optimizations. |
| 5395 PERFORMANCE_LOAD | 5392 PERFORMANCE_LOAD |
| 5396 }; | 5393 }; |
| 5397 | 5394 |
| 5398 /** | 5395 /** |
| (...skipping 3492 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8891 */ | 8888 */ |
| 8892 | 8889 |
| 8893 | 8890 |
| 8894 } // namespace v8 | 8891 } // namespace v8 |
| 8895 | 8892 |
| 8896 | 8893 |
| 8897 #undef TYPE_CHECK | 8894 #undef TYPE_CHECK |
| 8898 | 8895 |
| 8899 | 8896 |
| 8900 #endif // INCLUDE_V8_H_ | 8897 #endif // INCLUDE_V8_H_ |
| OLD | NEW |