| Index: src/vm-state-inl.h
|
| ===================================================================
|
| --- src/vm-state-inl.h (revision 5653)
|
| +++ src/vm-state-inl.h (working copy)
|
| @@ -75,9 +75,9 @@
|
| #endif
|
| state_ = state;
|
| // Save the previous state.
|
| - previous_ = reinterpret_cast<VMState*>(current_state_);
|
| + previous_ = Top::current_vm_state();
|
| // Install the new state.
|
| - OS::ReleaseStore(¤t_state_, reinterpret_cast<AtomicWord>(this));
|
| + Top::set_current_vm_state(this);
|
|
|
| #ifdef ENABLE_LOGGING_AND_PROFILING
|
| if (FLAG_log_state_changes) {
|
| @@ -106,7 +106,7 @@
|
| VMState::~VMState() {
|
| if (disabled_) return;
|
| // Return to the previous state.
|
| - OS::ReleaseStore(¤t_state_, reinterpret_cast<AtomicWord>(previous_));
|
| + Top::set_current_vm_state(previous_);
|
|
|
| #ifdef ENABLE_LOGGING_AND_PROFILING
|
| if (FLAG_log_state_changes) {
|
|
|