Reviewers: Yang,

Message:
PTAL

Description:
Remove unnecessary code from the json-parser.

Please review this at https://codereview.chromium.org/16306005/

SVN Base: https://v8.googlecode.com/svn/branches/bleeding_edge

Affected files:
  M src/json-parser.h


Index: src/json-parser.h
diff --git a/src/json-parser.h b/src/json-parser.h
index ddc3b736e3624aa556c46798bb13e49842ff87be..14cfe99542fe34edaa38b58567f701a69c8c9af4 100644
--- a/src/json-parser.h
+++ b/src/json-parser.h
@@ -457,16 +457,6 @@ Handle<Object> JsonParser<seq_ascii>::ParseJsonObject() {
       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