Chromium Code Reviews| Index: runtime/vm/object.cc |
| =================================================================== |
| --- runtime/vm/object.cc (revision 29395) |
| +++ runtime/vm/object.cc (working copy) |
| @@ -4051,8 +4051,8 @@ |
| void Function::ReattachCode(const Code& code) const { |
| - set_unoptimized_code(code); |
| - SetCode(code); |
| + StorePointer(&raw_ptr()->code_, code.raw()); |
| + StorePointer(&raw_ptr()->unoptimized_code_, code.raw()); |
| CodePatcher::RestoreEntry(code); |
| } |