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 4412 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 4423 * Experimental: Returns whether the Microtask Work Queue is automatically | 4423 * Experimental: Returns whether the Microtask Work Queue is automatically |
| 4424 * run when the script call depth decrements to zero. | 4424 * run when the script call depth decrements to zero. |
| 4425 */ | 4425 */ |
| 4426 bool WillAutorunMicrotasks() const; | 4426 bool WillAutorunMicrotasks() const; |
| 4427 | 4427 |
| 4428 /** | 4428 /** |
| 4429 * Sets a callback for counting the number of times a feature of V8 is used. | 4429 * Sets a callback for counting the number of times a feature of V8 is used. |
| 4430 */ | 4430 */ |
| 4431 void SetUseCounterCallback(UseCounterCallback callback); | 4431 void SetUseCounterCallback(UseCounterCallback callback); |
| 4432 | 4432 |
| 4433 /** | |
| 4434 * Enables the host application to provide a mechanism for recording | |
| 4435 * statistics counters. | |
| 4436 */ | |
| 4437 void SetCounterFunction(CounterLookupCallback); | |
| 4438 | |
| 4439 /** | |
| 4440 * Enables the host application to provide a mechanism for recording | |
| 4441 * histograms. The CreateHistogram function returns a | |
| 4442 * histogram which will later be passed to the AddHistogramSample | |
| 4443 * function. | |
| 4444 */ | |
| 4445 void SetCreateHistogramFunction(CreateHistogramCallback); | |
| 4446 void SetAddHistogramSampleFunction(AddHistogramSampleCallback); | |
| 4447 | |
| 4433 private: | 4448 private: |
| 4434 template<class K, class V, class Traits> friend class PersistentValueMap; | 4449 template<class K, class V, class Traits> friend class PersistentValueMap; |
| 4435 | 4450 |
| 4436 Isolate(); | 4451 Isolate(); |
| 4437 Isolate(const Isolate&); | 4452 Isolate(const Isolate&); |
| 4438 ~Isolate(); | 4453 ~Isolate(); |
| 4439 Isolate& operator=(const Isolate&); | 4454 Isolate& operator=(const Isolate&); |
| 4440 void* operator new(size_t size); | 4455 void* operator new(size_t size); |
| 4441 void operator delete(void*, size_t); | 4456 void operator delete(void*, size_t); |
| 4442 | 4457 |
| (...skipping 294 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 4737 static void SetFlagsFromCommandLine(int* argc, | 4752 static void SetFlagsFromCommandLine(int* argc, |
| 4738 char** argv, | 4753 char** argv, |
| 4739 bool remove_flags); | 4754 bool remove_flags); |
| 4740 | 4755 |
| 4741 /** Get the version string. */ | 4756 /** Get the version string. */ |
| 4742 static const char* GetVersion(); | 4757 static const char* GetVersion(); |
| 4743 | 4758 |
| 4744 /** | 4759 /** |
| 4745 * Enables the host application to provide a mechanism for recording | 4760 * Enables the host application to provide a mechanism for recording |
| 4746 * statistics counters. | 4761 * statistics counters. |
| 4762 * | |
| 4763 * Deprecated, will be removed. | |
|
Sven Panne
2014/07/07 06:50:18
I think that
Deprecated, use Isolate::SetCount
| |
| 4747 */ | 4764 */ |
| 4748 static void SetCounterFunction(CounterLookupCallback); | 4765 static void SetCounterFunction(CounterLookupCallback); |
| 4749 | 4766 |
| 4750 /** | 4767 /** |
| 4751 * Enables the host application to provide a mechanism for recording | 4768 * Enables the host application to provide a mechanism for recording |
| 4752 * histograms. The CreateHistogram function returns a | 4769 * histograms. The CreateHistogram function returns a |
| 4753 * histogram which will later be passed to the AddHistogramSample | 4770 * histogram which will later be passed to the AddHistogramSample |
| 4754 * function. | 4771 * function. |
| 4772 * | |
| 4773 * Deprecated, will be removed. | |
|
Sven Panne
2014/07/07 06:50:18
Same here.
| |
| 4755 */ | 4774 */ |
| 4756 static void SetCreateHistogramFunction(CreateHistogramCallback); | 4775 static void SetCreateHistogramFunction(CreateHistogramCallback); |
| 4757 static void SetAddHistogramSampleFunction(AddHistogramSampleCallback); | 4776 static void SetAddHistogramSampleFunction(AddHistogramSampleCallback); |
|
Sven Panne
2014/07/07 06:50:18
Missing deprecation comment.
| |
| 4758 | 4777 |
| 4759 /** Callback function for reporting failed access checks.*/ | 4778 /** Callback function for reporting failed access checks.*/ |
| 4760 static void SetFailedAccessCheckCallbackFunction(FailedAccessCheckCallback); | 4779 static void SetFailedAccessCheckCallbackFunction(FailedAccessCheckCallback); |
| 4761 | 4780 |
| 4762 /** | 4781 /** |
| 4763 * Enables the host application to receive a notification before a | 4782 * Enables the host application to receive a notification before a |
| 4764 * garbage collection. Allocations are not allowed in the | 4783 * garbage collection. Allocations are not allowed in the |
| 4765 * callback function, you therefore cannot manipulate objects (set | 4784 * callback function, you therefore cannot manipulate objects (set |
| 4766 * or delete properties for example) since it is possible such | 4785 * or delete properties for example) since it is possible such |
| 4767 * operations will result in the allocation of objects. It is possible | 4786 * operations will result in the allocation of objects. It is possible |
| (...skipping 1940 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 6708 */ | 6727 */ |
| 6709 | 6728 |
| 6710 | 6729 |
| 6711 } // namespace v8 | 6730 } // namespace v8 |
| 6712 | 6731 |
| 6713 | 6732 |
| 6714 #undef TYPE_CHECK | 6733 #undef TYPE_CHECK |
| 6715 | 6734 |
| 6716 | 6735 |
| 6717 #endif // V8_H_ | 6736 #endif // V8_H_ |
| OLD | NEW |