diff options
author | Ryan Dahl <ry@tinyclouds.org> | 2010-10-21 15:22:38 -0700 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2010-10-21 15:22:38 -0700 |
commit | 3b861db31d1ecc92149cf6b2497b6539276e0f70 (patch) | |
tree | 67c84f64183536213383373804520f84b931d865 /deps/v8/src/vm-state.h | |
parent | 2629296c257b6d74e86e9f9139b04ba5e27b68d8 (diff) | |
download | node-new-3b861db31d1ecc92149cf6b2497b6539276e0f70.tar.gz |
Upgrade V8 to 2.5.1
Diffstat (limited to 'deps/v8/src/vm-state.h')
-rw-r--r-- | deps/v8/src/vm-state.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/deps/v8/src/vm-state.h b/deps/v8/src/vm-state.h index 080eb8ded6..cc91e83714 100644 --- a/deps/v8/src/vm-state.h +++ b/deps/v8/src/vm-state.h @@ -28,6 +28,8 @@ #ifndef V8_VM_STATE_H_ #define V8_VM_STATE_H_ +#include "top.h" + namespace v8 { namespace internal { @@ -44,16 +46,16 @@ class VMState BASE_EMBEDDED { // Used for debug asserts. static bool is_outermost_external() { - return current_state_ == 0; + return Top::current_vm_state() == 0; } static StateTag current_state() { - VMState* state = reinterpret_cast<VMState*>(current_state_); + VMState* state = Top::current_vm_state(); return state ? state->state() : EXTERNAL; } static Address external_callback() { - VMState* state = reinterpret_cast<VMState*>(current_state_); + VMState* state = Top::current_vm_state(); return state ? state->external_callback_ : NULL; } @@ -63,8 +65,6 @@ class VMState BASE_EMBEDDED { VMState* previous_; Address external_callback_; - // A stack of VM states. - static AtomicWord current_state_; #else public: explicit VMState(StateTag state) {} |