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

Side by Side Diff: include/v8.h

Issue 412513003: Version 3.27.34.7 (merged r22223) (Closed) Base URL: https://v8.googlecode.com/svn/branches/3.27
Patch Set: updates 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') | no next file with comments »
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 4373 matching lines...) Expand 10 before | Expand all | Expand 10 after
4384 * run when the script call depth decrements to zero. 4384 * run when the script call depth decrements to zero.
4385 */ 4385 */
4386 void SetAutorunMicrotasks(bool autorun); 4386 void SetAutorunMicrotasks(bool autorun);
4387 4387
4388 /** 4388 /**
4389 * Experimental: Returns whether the Microtask Work Queue is automatically 4389 * Experimental: Returns whether the Microtask Work Queue is automatically
4390 * run when the script call depth decrements to zero. 4390 * run when the script call depth decrements to zero.
4391 */ 4391 */
4392 bool WillAutorunMicrotasks() const; 4392 bool WillAutorunMicrotasks() const;
4393 4393
4394 /**
4395 * Enables the host application to provide a mechanism for recording
4396 * statistics counters.
4397 */
4398 void SetCounterFunction(CounterLookupCallback);
4399
4400 /**
4401 * Enables the host application to provide a mechanism for recording
4402 * histograms. The CreateHistogram function returns a
4403 * histogram which will later be passed to the AddHistogramSample
4404 * function.
4405 */
4406 void SetCreateHistogramFunction(CreateHistogramCallback);
4407 void SetAddHistogramSampleFunction(AddHistogramSampleCallback);
4408
4394 private: 4409 private:
4395 template<class K, class V, class Traits> friend class PersistentValueMap; 4410 template<class K, class V, class Traits> friend class PersistentValueMap;
4396 4411
4397 Isolate(); 4412 Isolate();
4398 Isolate(const Isolate&); 4413 Isolate(const Isolate&);
4399 ~Isolate(); 4414 ~Isolate();
4400 Isolate& operator=(const Isolate&); 4415 Isolate& operator=(const Isolate&);
4401 void* operator new(size_t size); 4416 void* operator new(size_t size);
4402 void operator delete(void*, size_t); 4417 void operator delete(void*, size_t);
4403 4418
(...skipping 276 matching lines...) Expand 10 before | Expand all | Expand 10 after
4680 static void SetFlagsFromCommandLine(int* argc, 4695 static void SetFlagsFromCommandLine(int* argc,
4681 char** argv, 4696 char** argv,
4682 bool remove_flags); 4697 bool remove_flags);
4683 4698
4684 /** Get the version string. */ 4699 /** Get the version string. */
4685 static const char* GetVersion(); 4700 static const char* GetVersion();
4686 4701
4687 /** 4702 /**
4688 * Enables the host application to provide a mechanism for recording 4703 * Enables the host application to provide a mechanism for recording
4689 * statistics counters. 4704 * statistics counters.
4705 *
4706 * Deprecated, use Isolate::SetCounterFunction instead.
4690 */ 4707 */
4691 static void SetCounterFunction(CounterLookupCallback); 4708 static void SetCounterFunction(CounterLookupCallback);
4692 4709
4693 /** 4710 /**
4694 * Enables the host application to provide a mechanism for recording 4711 * Enables the host application to provide a mechanism for recording
4695 * histograms. The CreateHistogram function returns a 4712 * histograms. The CreateHistogram function returns a
4696 * histogram which will later be passed to the AddHistogramSample 4713 * histogram which will later be passed to the AddHistogramSample
4697 * function. 4714 * function.
4715 *
4716 * Deprecated, use Isolate::SetCreateHistogramFunction instead.
4717 * Isolate::SetAddHistogramSampleFunction instead.
4698 */ 4718 */
4699 static void SetCreateHistogramFunction(CreateHistogramCallback); 4719 static void SetCreateHistogramFunction(CreateHistogramCallback);
4720
4721 /** Deprecated, use Isolate::SetAddHistogramSampleFunction instead. */
4700 static void SetAddHistogramSampleFunction(AddHistogramSampleCallback); 4722 static void SetAddHistogramSampleFunction(AddHistogramSampleCallback);
4701 4723
4702 /** Callback function for reporting failed access checks.*/ 4724 /** Callback function for reporting failed access checks.*/
4703 static void SetFailedAccessCheckCallbackFunction(FailedAccessCheckCallback); 4725 static void SetFailedAccessCheckCallbackFunction(FailedAccessCheckCallback);
4704 4726
4705 /** 4727 /**
4706 * Enables the host application to receive a notification before a 4728 * Enables the host application to receive a notification before a
4707 * garbage collection. Allocations are not allowed in the 4729 * garbage collection. Allocations are not allowed in the
4708 * callback function, you therefore cannot manipulate objects (set 4730 * callback function, you therefore cannot manipulate objects (set
4709 * or delete properties for example) since it is possible such 4731 * or delete properties for example) since it is possible such
(...skipping 1944 matching lines...) Expand 10 before | Expand all | Expand 10 after
6654 */ 6676 */
6655 6677
6656 6678
6657 } // namespace v8 6679 } // namespace v8
6658 6680
6659 6681
6660 #undef TYPE_CHECK 6682 #undef TYPE_CHECK
6661 6683
6662 6684
6663 #endif // V8_H_ 6685 #endif // V8_H_
OLDNEW
« no previous file with comments | « no previous file | src/api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698