From 79569924489e44ea392518d2af5ee99d9d440c24 Mon Sep 17 00:00:00 2001 From: "verwaest@chromium.org" Date: Mon, 3 Jun 2013 09:08:00 +0000 Subject: [PATCH] Remove unnecessary code from the json-parser. R=yangguo@chromium.org Review URL: https://chromiumcodereview.appspot.com/16306005 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@14912 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 --- src/json-parser.h | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/src/json-parser.h b/src/json-parser.h index ddc3b73..14cfe99 100644 --- a/src/json-parser.h +++ b/src/json-parser.h @@ -457,16 +457,6 @@ Handle JsonParser::ParseJsonObject() { int length = properties.length(); for (int i = 0; i < length; i++) { Handle value = properties[i]; - // If the target representation is double and the value is already - // double, use the existing box. - if (FLAG_track_double_fields && value->IsSmi()) { - Representation representation = - map->instance_descriptors()->GetDetails(i).representation(); - if (representation.IsDouble()) { - value = factory()->NewHeapNumber( - Handle::cast(value)->value()); - } - } json_object->FastPropertyAtPut(i, *value); } } -- 2.7.4