Commit 79569924 authored by verwaest@chromium.org's avatar verwaest@chromium.org

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
parent 595d0ea8
......@@ -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);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment