| Index: runtime/vm/object.cc
|
| ===================================================================
|
| --- runtime/vm/object.cc (revision 41280)
|
| +++ runtime/vm/object.cc (working copy)
|
| @@ -12561,7 +12561,8 @@
|
|
|
| void ContextScope::SetTokenIndexAt(intptr_t scope_index,
|
| intptr_t token_pos) const {
|
| - VariableDescAddr(scope_index)->token_pos = Smi::New(token_pos);
|
| + StoreSmi(&VariableDescAddr(scope_index)->token_pos,
|
| + Smi::New(token_pos));
|
| }
|
|
|
|
|
| @@ -12581,7 +12582,8 @@
|
|
|
|
|
| void ContextScope::SetIsFinalAt(intptr_t scope_index, bool is_final) const {
|
| - VariableDescAddr(scope_index)->is_final = Bool::Get(is_final).raw();
|
| + StorePointer(&(VariableDescAddr(scope_index)->is_final),
|
| + Bool::Get(is_final).raw());
|
| }
|
|
|
|
|
| @@ -12591,7 +12593,8 @@
|
|
|
|
|
| void ContextScope::SetIsConstAt(intptr_t scope_index, bool is_const) const {
|
| - VariableDescAddr(scope_index)->is_const = Bool::Get(is_const).raw();
|
| + StorePointer(&(VariableDescAddr(scope_index)->is_const),
|
| + Bool::Get(is_const).raw());
|
| }
|
|
|
|
|
| @@ -12627,7 +12630,8 @@
|
|
|
| void ContextScope::SetContextIndexAt(intptr_t scope_index,
|
| intptr_t context_index) const {
|
| - VariableDescAddr(scope_index)->context_index = Smi::New(context_index);
|
| + StoreSmi(&(VariableDescAddr(scope_index)->context_index),
|
| + Smi::New(context_index));
|
| }
|
|
|
|
|
| @@ -12638,7 +12642,8 @@
|
|
|
| void ContextScope::SetContextLevelAt(intptr_t scope_index,
|
| intptr_t context_level) const {
|
| - VariableDescAddr(scope_index)->context_level = Smi::New(context_level);
|
| + StoreSmi(&(VariableDescAddr(scope_index)->context_level),
|
| + Smi::New(context_level));
|
| }
|
|
|
|
|
|
|