| 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 4632 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4643 * When an isolate is no longer used its resources should be freed | 4643 * When an isolate is no longer used its resources should be freed |
| 4644 * by calling Dispose(). Using the delete operator is not allowed. | 4644 * by calling Dispose(). Using the delete operator is not allowed. |
| 4645 * | 4645 * |
| 4646 * V8::Initialize() must have run prior to this. | 4646 * V8::Initialize() must have run prior to this. |
| 4647 */ | 4647 */ |
| 4648 static Isolate* New(const CreateParams& params = CreateParams()); | 4648 static Isolate* New(const CreateParams& params = CreateParams()); |
| 4649 | 4649 |
| 4650 /** | 4650 /** |
| 4651 * Returns the entered isolate for the current thread or NULL in | 4651 * Returns the entered isolate for the current thread or NULL in |
| 4652 * case there is no current isolate. | 4652 * case there is no current isolate. |
| 4653 * |
| 4654 * This method must not be invoked before V8::Initialize() was invoked. |
| 4653 */ | 4655 */ |
| 4654 static Isolate* GetCurrent(); | 4656 static Isolate* GetCurrent(); |
| 4655 | 4657 |
| 4656 /** | 4658 /** |
| 4657 * Methods below this point require holding a lock (using Locker) in | 4659 * Methods below this point require holding a lock (using Locker) in |
| 4658 * a multi-threaded environment. | 4660 * a multi-threaded environment. |
| 4659 */ | 4661 */ |
| 4660 | 4662 |
| 4661 /** | 4663 /** |
| 4662 * Sets this isolate as the entered one for the current thread. | 4664 * Sets this isolate as the entered one for the current thread. |
| (...skipping 2769 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7432 */ | 7434 */ |
| 7433 | 7435 |
| 7434 | 7436 |
| 7435 } // namespace v8 | 7437 } // namespace v8 |
| 7436 | 7438 |
| 7437 | 7439 |
| 7438 #undef TYPE_CHECK | 7440 #undef TYPE_CHECK |
| 7439 | 7441 |
| 7440 | 7442 |
| 7441 #endif // V8_H_ | 7443 #endif // V8_H_ |
| OLD | NEW |