Chromium Code Reviews| Index: vm/ast.cc |
| =================================================================== |
| --- vm/ast.cc (revision 2344) |
| +++ vm/ast.cc (working copy) |
| @@ -94,8 +94,9 @@ |
| dbl ^= literal().raw(); |
| // Preserve negative zero. |
| double new_value = (dbl.value() == 0.0) ? -0.0 : (0.0 - dbl.value()); |
| - const Instance& literal = Instance::ZoneHandle(Double::New(new_value)); |
| - return new LiteralNode(this->token_index(), literal); |
| + Double& double_instance = Double::ZoneHandle(Double::New(new_value)); |
|
siva
2011/12/12 18:50:30
Do you want to allocate this also in the old space
srdjan
2011/12/21 22:30:17
Done.
|
| + double_instance ^= double_instance.Canonicalize(); |
| + return new LiteralNode(this->token_index(), double_instance); |
| } |
| } |
| return NULL; |