Revision: 14912
Author:   [email protected]
Date:     Mon Jun  3 02:08:00 2013
Log:      Remove unnecessary code from the json-parser.

[email protected]

Review URL: https://chromiumcodereview.appspot.com/16306005
http://code.google.com/p/v8/source/detail?r=14912

Modified:
 /branches/bleeding_edge/src/json-parser.h

=======================================
--- /branches/bleeding_edge/src/json-parser.h   Wed May  8 08:02:08 2013
+++ /branches/bleeding_edge/src/json-parser.h   Mon Jun  3 02:08:00 2013
@@ -457,16 +457,6 @@
       int length = properties.length();
       for (int i = 0; i < length; i++) {
         Handle<Object> 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<Smi>::cast(value)->value());
-          }
-        }
         json_object->FastPropertyAtPut(i, *value);
       }
     }

--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
--- You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to