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 6673 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
6684 void* Context::GetAlignedPointerFromEmbedderData(int index) { | 6684 void* Context::GetAlignedPointerFromEmbedderData(int index) { |
6685 #ifndef V8_ENABLE_CHECKS | 6685 #ifndef V8_ENABLE_CHECKS |
6686 typedef internal::Internals I; | 6686 typedef internal::Internals I; |
6687 return I::ReadEmbedderData<void*>(this, index); | 6687 return I::ReadEmbedderData<void*>(this, index); |
6688 #else | 6688 #else |
6689 return SlowGetAlignedPointerFromEmbedderData(index); | 6689 return SlowGetAlignedPointerFromEmbedderData(index); |
6690 #endif | 6690 #endif |
6691 } | 6691 } |
6692 | 6692 |
6693 | 6693 |
6694 // Logging and profiling. A StateTag represents a possible state of | |
6695 // the VM. The logger maintains a stack of these. Creating a VMState | |
6696 // object enters a state by pushing on the stack, and destroying a | |
6697 // VMState object leaves a state by popping the current state from the | |
6698 // stack. | |
6699 | |
6700 enum StateTag { | |
Benedikt Meurer
2014/08/14 04:20:23
Move this to v8-sampler.h and fix the comment (VMS
gholap
2014/08/15 17:54:13
Now that you've mentioned it, I've looked into bot
Benedikt Meurer
2014/08/18 04:22:03
Great! We should not expose internal state via the
| |
6701 JS, // Executing JavaScript. | |
6702 GC, // Garbage Collection. | |
6703 COMPILER, // Compiling JavaScript. | |
6704 OTHER, | |
6705 EXTERNAL, // External call. (For example, a call into blink) | |
6706 IDLE // The VM is idle. | |
6707 }; | |
6708 | |
6694 /** | 6709 /** |
6695 * \example shell.cc | 6710 * \example shell.cc |
6696 * A simple shell that takes a list of expressions on the | 6711 * A simple shell that takes a list of expressions on the |
6697 * command-line and executes them. | 6712 * command-line and executes them. |
6698 */ | 6713 */ |
6699 | 6714 |
6700 | 6715 |
6701 /** | 6716 /** |
6702 * \example process.cc | 6717 * \example process.cc |
6703 */ | 6718 */ |
6704 | 6719 |
6705 | 6720 |
6706 } // namespace v8 | 6721 } // namespace v8 |
6707 | 6722 |
6708 | 6723 |
6709 #undef TYPE_CHECK | 6724 #undef TYPE_CHECK |
6710 | 6725 |
6711 | 6726 |
6712 #endif // V8_H_ | 6727 #endif // V8_H_ |
OLD | NEW |