28 #ifndef V8_VM_STATE_INL_H_
29 #define V8_VM_STATE_INL_H_
62 template <StateTag Tag>
63 VMState<Tag>::VMState(
Isolate* isolate)
64 : isolate_(isolate), previous_tag_(isolate->current_vm_state()) {
69 isolate_->set_current_vm_state(Tag);
73 template <StateTag Tag>
74 VMState<Tag>::~VMState() {
77 TimerEvent(
Logger::END, Logger::TimerEventScope::v8_external));
79 isolate_->set_current_vm_state(previous_tag_);
83 ExternalCallbackScope::ExternalCallbackScope(Isolate* isolate,
Address callback)
86 previous_scope_(isolate->external_callback_scope()) {
88 scope_address_ = Simulator::current(isolate)->get_sp();
90 isolate_->set_external_callback_scope(
this);
93 ExternalCallbackScope::~ExternalCallbackScope() {
94 isolate_->set_external_callback_scope(previous_scope_);
97 Address ExternalCallbackScope::scope_address() {
99 return scope_address_;
101 return reinterpret_cast<Address>(
this);
108 #endif // V8_VM_STATE_INL_H_
enable upcoming ES6 features enable harmony block scoping enable harmony enable harmony proxies enable harmony generators enable harmony numeric enable harmony string enable harmony math functions harmony_scoping harmony_symbols harmony_collections harmony_iteration harmony_strings harmony_scoping harmony_maths tracks arrays with only smi values Optimize object Array DOM strings and string pretenure call new trace pretenuring decisions of HAllocate instructions track fields with only smi values track fields with heap values track_fields track_fields Enables optimizations which favor memory size over execution speed use string slices optimization filter maximum number of GVN fix point iterations use function inlining use allocation folding eliminate write barriers targeting allocations in optimized code maximum source size in bytes considered for a single inlining maximum cumulative number of AST nodes considered for inlining crankshaft harvests type feedback from stub cache trace check elimination phase hydrogen tracing filter NULL
#define LOG(isolate, Call)
const char * StateToString(StateTag state)
static const char * v8_external